mirror of
https://github.com/logos-co/logos-cpp-sdk.git
synced 2026-08-31 09:41:06 +00:00
* 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>
28 lines
728 B
C++
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
|