Files
logos-cpp-sdk/cpp/logos_registry_factory.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
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