mirror of
https://github.com/logos-co/logos-cpp-sdk.git
synced 2026-08-31 17:51:07 +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
764 B
C++
28 lines
764 B
C++
#ifndef LOGOS_REGISTRY_FACTORY_H
|
|
#define LOGOS_REGISTRY_FACTORY_H
|
|
|
|
#include <memory>
|
|
#include <QString>
|
|
|
|
class LogosRegistry;
|
|
|
|
namespace LogosRegistryFactory {
|
|
|
|
/**
|
|
* @brief Create a registry appropriate for the current LogosMode.
|
|
*
|
|
* In Remote mode a QtRemoteRegistry is created, binding a
|
|
* QRemoteObjectRegistryHost to the given @p url.
|
|
*
|
|
* In Local (in-process) mode a NullRegistry is created — no IPC
|
|
* endpoint is needed because all modules share the same process.
|
|
*
|
|
* @param url The address to bind the registry to (ignored in Local mode).
|
|
* @return Owning pointer to the new registry.
|
|
*/
|
|
std::unique_ptr<LogosRegistry> create(const QString& url);
|
|
|
|
}
|
|
|
|
#endif // LOGOS_REGISTRY_FACTORY_H
|