Files
logos-cpp-sdk/cpp/implementations/qt_remote/qt_remote_registry.h
Iuri MatiasandLogos Workspace 4197ee1830 Finish Abstraction & Refactor (Ongoing) - part 1 (#25)
* refactor: abstract connection/transport; and clearly separate qt remote obj and qt local into separate implementations

* abstract qt remote registry

* add mock implementation; these serves to further test the abstraction but also useful for testing modules later

* use LogosObject instead of QObject

* abstract provider side

* updates to use new api

* re-add async api back

---------

Co-authored-by: Logos Workspace <logos@workspace.local>
2026-03-23 11:45:25 -04:00

28 lines
728 B
C++

#ifndef QT_REMOTE_REGISTRY_H
#define QT_REMOTE_REGISTRY_H
#include "../../logos_registry.h"
#include <QString>
class QRemoteObjectRegistryHost;
/**
* @brief LogosRegistry implementation backed by QRemoteObjectRegistryHost.
*
* Used in Remote (multi-process) mode. The registry host is created in the
* constructor and torn down in the destructor, so the lifetime of this object
* directly controls the lifetime of the IPC rendezvous point.
*/
class QtRemoteRegistry : public LogosRegistry {
public:
explicit QtRemoteRegistry(const QString& url);
~QtRemoteRegistry() override;
bool isInitialized() const override;
private:
QRemoteObjectRegistryHost* m_registryHost;
};
#endif // QT_REMOTE_REGISTRY_H