#include "logos_transport_factory.h" #include "logos_transport.h" #include "logos_mode.h" #include "implementations/qt_local/local_transport.h" #include "implementations/qt_remote/remote_transport.h" #include "implementations/mock/mock_transport.h" namespace LogosTransportFactory { std::unique_ptr createHost(const QString& registryUrl) { if (LogosModeConfig::isLocal()) { return std::make_unique(); } if (LogosModeConfig::isMock()) { return std::make_unique(); } return std::make_unique(registryUrl); } std::unique_ptr createConnection(const QString& registryUrl) { if (LogosModeConfig::isLocal()) { return std::make_unique(); } if (LogosModeConfig::isMock()) { return std::make_unique(); } return std::make_unique(registryUrl); } }