- 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>
70 lines
1.8 KiB
C++
Executable File
70 lines
1.8 KiB
C++
Executable File
/**
|
|
* Handler for all Language HMI objects
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Hanna E. Rathje, SLSE, 2015-09-03
|
|
*/
|
|
#pragma once
|
|
|
|
#include "dds_handler.h"
|
|
#include "logger.h"
|
|
#include "main_handler.h"
|
|
#include <avm_fts.h>
|
|
#include <AudioVideoManagement/avm_db.h>
|
|
#include <QMap>
|
|
#include <QObject>
|
|
#include <memory>
|
|
|
|
namespace AudioVideoManagement
|
|
{
|
|
|
|
class ObjectVideoTeam;
|
|
class ActiveExercises;
|
|
class ExerciseContext;
|
|
class DefaultAvMenus;
|
|
|
|
class HandlerVideoTeam
|
|
: public QObject
|
|
, protected Interface::Fts::VideoTeamModifyRequestHandler
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
HandlerVideoTeam(Interface::Dts *dts, Interface::Fts *fts, DatabaseInterface *db, ActiveExercises *activeExercises);
|
|
|
|
~HandlerVideoTeam();
|
|
|
|
bool init();
|
|
QMap<int, VideoTeam> videoTeams() const;
|
|
|
|
signals:
|
|
/** Signalled after device_config modifications. */
|
|
void avDbReloadNeeded();
|
|
void mvsChanged();
|
|
|
|
private:
|
|
void onVideoTeamModifyRequest(const rti::core::SampleIdentity &cookie,
|
|
const VideoTeamModifyRequest &request) override;
|
|
Core::FunctionReplyObject videoTeamCreateRequest(const VideoTeamModifyRequest &request);
|
|
Core::FunctionReplyObject videoTeamModifyRequest(const VideoTeamModifyRequest &request);
|
|
|
|
bool needDeviceConfig(const VideoTeam &videoTeam) const;
|
|
|
|
void onContextActivated(const ExerciseContext &context);
|
|
void onContextDeactivated(const ExerciseContext &context);
|
|
|
|
private:
|
|
class DeviceConfig;
|
|
|
|
QMap<int, ObjectVideoTeam *> m_videoTeamObjMap;
|
|
Interface::Dts *m_dts;
|
|
Interface::Fts *m_fts;
|
|
DatabaseInterface *m_db;
|
|
ActiveExercises *m_activeExercises;
|
|
LOGGER_T m_logger;
|
|
std::unique_ptr<DeviceConfig> m_deviceConfig;
|
|
};
|
|
|
|
} // namespace AudioVideoManagement
|