add overloards using cpp types to replace qt ones later (#51)

This commit is contained in:
Iuri Matias
2026-04-16 12:41:17 -04:00
committed by GitHub
parent 1468180b25
commit 1a0cb031db
10 changed files with 348 additions and 0 deletions
+11
View File
@@ -2,6 +2,7 @@
#include "logos_api_client.h"
#include "logos_api_provider.h"
#include "token_manager.h"
#include <string>
LogosAPI::LogosAPI(const QString& module_name, QObject *parent)
: QObject(parent)
@@ -19,6 +20,11 @@ LogosAPI::LogosAPI(const QString& module_name, QObject *parent)
qRegisterMetaType<LogosResult>("LogosResult");
}
LogosAPI::LogosAPI(const std::string& module_name, QObject *parent)
: LogosAPI(QString::fromStdString(module_name), parent)
{
}
LogosAPI::~LogosAPI()
{
// Provider and client will be automatically deleted as child objects
@@ -48,6 +54,11 @@ LogosAPIClient* LogosAPI::getClient(const QString& target_module) const
return client;
}
LogosAPIClient* LogosAPI::getClient(const std::string& target_module) const
{
return getClient(QString::fromStdString(target_module));
}
TokenManager* LogosAPI::getTokenManager() const
{
return m_token_manager;