- training_area_telegrams.cpp: Fixed QJsonObject initializer syntax (Qt6 requires {{}} not ({}))
- training_area_telegrams.cpp: Fixed fromJson() methods to access m_* members directly
- training_area_telegrams.cpp: Fixed brace mismatches in multiple toJson() methods
- training_area_telegrams.h: Changed Header struct to public members for consistency
- tx_mixin.cpp: Fixed getEquipmentNumber() template for direct member access
- lts_coordinate.cpp: Added missing #include <iomanip>
- MIGRATION_STATUS.md: Added migration progress tracking document
C++17 constraint enforced due to RTI Connext DDS 7.7.0 incompatibility with C++20+
Build status: BUILD_RTI=OFF successful (0 errors, warnings only)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
141 lines
2.9 KiB
C++
141 lines
2.9 KiB
C++
|
|
|
|
#pragma once
|
|
|
|
#include "lts_plugin_manager_export.h"
|
|
|
|
#include <LtsAppDescriptor/lts_app_descriptor.h>
|
|
#include <LtsPluginManager/lts_plugin_loader.h>
|
|
#include <ProjectConfig/project_defines.h>
|
|
#include <QtCore/QFlags>
|
|
#include <QtCore/QMap>
|
|
#include <QtCore/QObject>
|
|
#include <QtCore/QString>
|
|
#include <QtCore/QVector>
|
|
|
|
namespace NGL
|
|
{
|
|
class INGLLogger;
|
|
}
|
|
|
|
namespace DataPluginBase
|
|
{
|
|
class Plugin;
|
|
}
|
|
|
|
namespace GuiPluginBase
|
|
{
|
|
class Plugin;
|
|
}
|
|
|
|
namespace ProjectPlugin
|
|
{
|
|
class Plugin;
|
|
}
|
|
|
|
namespace LtsSession
|
|
{
|
|
class LtsSession;
|
|
class LtsSessionManager;
|
|
struct DdsConnectionParams;
|
|
} // namespace LtsSession
|
|
|
|
namespace DeveloperTools
|
|
{
|
|
class DevDialog;
|
|
}
|
|
|
|
namespace LtsPluginManager
|
|
{
|
|
struct AppPluginInstance
|
|
{
|
|
PluginInstance pluginInstance;
|
|
|
|
QFlags<LtsAppDescriptor::PluginInfo::Flag> m_flags;
|
|
QStringList m_options;
|
|
QString m_appName;
|
|
LtsAppDescriptor::App m_appId = LtsAppDescriptor::App::Login;
|
|
};
|
|
|
|
class LTSPLUGINMANAGER_EXPORT LtsPluginManager : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
LtsPluginManager();
|
|
~LtsPluginManager();
|
|
|
|
bool startApp(const LtsAppDescriptor::AppDescription& app, bool headless,
|
|
const LtsSession::DdsConnectionParams& connParams, const QString& workspaceId = QString(),
|
|
bool hidden = false);
|
|
LtsSession::LtsSession* getSession(IDL::PartitionType partitionType, int partitionId);
|
|
|
|
bool isInitialized() const
|
|
{
|
|
return m_initialized;
|
|
}
|
|
|
|
const LtsAppDescriptor::AppDescription& appDescription() const
|
|
{
|
|
return m_app;
|
|
}
|
|
|
|
QVector<LtsSession::LtsSession*> sessions() const;
|
|
|
|
Q_DECL_DEPRECATED void setMarkedForDeletion()
|
|
{
|
|
m_markedForDeletion = true;
|
|
}
|
|
|
|
Q_DECL_DEPRECATED bool markedForDeletion() const
|
|
{
|
|
return m_markedForDeletion;
|
|
}
|
|
|
|
const QString& description() const
|
|
{
|
|
return m_description;
|
|
}
|
|
|
|
void setDescription(const QString& description)
|
|
{
|
|
m_description = description;
|
|
}
|
|
|
|
static bool hasSituationMapInstance(const LtsAppDescriptor::AppDescription& appDescription,
|
|
bool alsoTestFOrScriptApp = false);
|
|
bool hasSituationMapInstance() const;
|
|
void softQuit();
|
|
void _softQuit();
|
|
|
|
LtsSession::LtsSessionManager* m_sessionManager;
|
|
|
|
private:
|
|
NGL::INGLLogger& m_logger;
|
|
friend class DeveloperTools::DevDialog;
|
|
|
|
LtsAppDescriptor::AppDescription m_app;
|
|
bool m_initialized = false;
|
|
bool m_markedForDeletion;
|
|
QString m_description;
|
|
|
|
private slots:
|
|
|
|
void slotInitializationFinished()
|
|
{
|
|
m_initialized = true;
|
|
}
|
|
|
|
signals:
|
|
void signalQuit();
|
|
void signalSoftQuit();
|
|
void signalLogout();
|
|
void signalInitializationFinished();
|
|
void signalInitializationAborted();
|
|
void signalStillAlive();
|
|
void hideAllOtherBLWs(QObject* caller);
|
|
void taskSwitch(QObject* caller);
|
|
};
|
|
|
|
} // namespace LtsPluginManager
|