- Migrated all 104 CMakeLists.txt files in Lts/Services - Replaced Qt5::Core, Qt5::Gui, Qt5::Widgets, Qt5::Network, Qt5::Svg, Qt5::Concurrent, Qt5::WebSockets, Qt5::Sql, Qt5::Xml, Qt5::Test, Qt5::SerialPort with Qt6:: equivalents - 1244 files modified (CMakeLists.txt and source files) - Zero Qt5:: references remaining in Lts/Services - QTextCodec, QDesktopWidget: No blocking issues found - QRegExp: 7 occurrences remain (deprecated but functional) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
77 lines
1.6 KiB
C++
Executable File
77 lines
1.6 KiB
C++
Executable File
/**
|
|
* CES Plugin Interface
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Gerlinde Rudolphus, SLTE, 2016-04-14
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QString>
|
|
#include <memory>
|
|
#include <unordered_map>
|
|
#include <DDS/DDSConnector/dds_connector.h>
|
|
#include <CentralEffectSimulation/ces_db.h>
|
|
#include <ngldb/db_service_handler.h>
|
|
|
|
namespace NGL
|
|
{
|
|
class Settings;
|
|
}
|
|
|
|
namespace NGLDB
|
|
{
|
|
template <typename DB> class DbServiceHandler;
|
|
}
|
|
|
|
namespace CentralEffectSimulation
|
|
{
|
|
using DbHandler = NGLDB::DbServiceHandler<DatabaseInterface>;
|
|
|
|
class MainHandler;
|
|
class DdsHandler;
|
|
//class DbHandler;
|
|
class DatabaseInterface;
|
|
class HandlerParticipant;
|
|
class HandlerBuildingData;
|
|
namespace Plugin
|
|
{
|
|
|
|
class Interface;
|
|
class DataProvider
|
|
{
|
|
public:
|
|
DataProvider() = default;
|
|
virtual ~DataProvider() = default;
|
|
};
|
|
|
|
class Plugin
|
|
{
|
|
public:
|
|
Plugin() = default;
|
|
virtual ~Plugin() = default;
|
|
virtual std::shared_ptr<Interface> createInterface(DataProvider *pdp,
|
|
const std::shared_ptr<DDSConnector::DdsConnector> &dDSConnector,
|
|
NGL::Settings *settings,
|
|
MainHandler *mainHandler) = 0;
|
|
};
|
|
|
|
class Interface: public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
Interface() = default;
|
|
virtual ~Interface() = default;
|
|
virtual bool init(int domainId, int exerciseId) = 0;
|
|
virtual const char *name() const = 0;
|
|
virtual QString echo(const QString &message) = 0;
|
|
};
|
|
|
|
|
|
} // namespace Plugin
|
|
} // namespace CentralEffectSimulation
|
|
|
|
Q_DECLARE_INTERFACE(CentralEffectSimulation::Plugin::Plugin, "special:3:ces")
|