mirror of
https://github.com/logos-co/logos-cpp-sdk.git
synced 2026-08-31 01:31:10 +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>
29 lines
711 B
C++
29 lines
711 B
C++
#include "qt_remote_registry.h"
|
|
#include <QRemoteObjectRegistryHost>
|
|
#include <QUrl>
|
|
#include <QDebug>
|
|
|
|
QtRemoteRegistry::QtRemoteRegistry(const QString& url)
|
|
: m_registryHost(nullptr)
|
|
{
|
|
m_registryHost = new QRemoteObjectRegistryHost(QUrl(url));
|
|
|
|
if (m_registryHost) {
|
|
qDebug() << "QtRemoteRegistry: Registry host created at:" << url;
|
|
} else {
|
|
qCritical() << "QtRemoteRegistry: Failed to create registry host at:" << url;
|
|
}
|
|
}
|
|
|
|
QtRemoteRegistry::~QtRemoteRegistry()
|
|
{
|
|
delete m_registryHost;
|
|
m_registryHost = nullptr;
|
|
qDebug() << "QtRemoteRegistry: Registry host destroyed";
|
|
}
|
|
|
|
bool QtRemoteRegistry::isInitialized() const
|
|
{
|
|
return m_registryHost != nullptr;
|
|
}
|