TrainingAreaBase: - Add BUILD_RTI guards to dds_handler.cpp (entire file) - Add BUILD_RTI guards to recv_from_dds_aes.h for tab_db.h include - Add BUILD_RTI guards to main_handler.h for tab_db.h include - Remove duplicate m_logger declaration in main_handler.h - Add stub headers for RTI types (tab_db_stub.hpp, tab_enums_stub.hpp, etc.) VideoOverlayManagement: - Fix member initialization order in handler_overlays.h - Fix member initialization order in avs_interface.h - Fix member initialization order in main_handler.h - Change logger.cpp include from NGLLogger.h to INGLLogger.h - Add BUILD_RTI guard to handler_overlays.cpp for RTI signal connection Plugins: - Migrate QDesktopWidget → QScreen in Light/Dark style plugins - Fix CMakeLists.txt for SituationReplayManagement (BUILD_RTI guards) - Fix CMakeLists.txt for CombatNetRadio (Qt6::Core linking) - Remove QDesktopWidget includes in multiple plugin files Infrastructure: - Remove duplicate INGLLogger.h include directory - Add stub headers for ProjectDataManagement (pdm.hpp, etc.) - Add stub headers for RoutingServiceNG BUILD_RTI=OFF build now compiles successfully (1112 targets).
73 lines
2.2 KiB
C++
Executable File
73 lines
2.2 KiB
C++
Executable File
/**
|
|
* MainHandler for VideoOverlayManagement
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by hjl, SLSE, 2016-06-23
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QtCore/QObject>
|
|
#include <QtCore/QTimer>
|
|
|
|
#include "avs_interface.h"
|
|
#include "handler_participant_data.h"
|
|
#include "handler_infrastructure_data.h"
|
|
#include "handler_overlays.h"
|
|
#include "dds_handler.h"
|
|
#include "logger.h"
|
|
|
|
namespace VideoOverlayManagement
|
|
{
|
|
// Forwarddeclarations
|
|
class AvsInterface;
|
|
|
|
class MainHandler
|
|
: public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit MainHandler(QObject *parent = nullptr);
|
|
~MainHandler();
|
|
|
|
bool init(int domainId, int exerciseId);
|
|
|
|
private Q_SLOTS:
|
|
/**
|
|
* Handle signals for AVS Handling
|
|
*/
|
|
void onAvsIfConnectionState(AvsIfConnectionState state);
|
|
void onAvsCmdState(AvsCmdState state);
|
|
void onAvsKeepAliveTimeout();
|
|
bool onTryToInitOverlayHandler(); ///< Initialize OverlayHandler after sucessfully AVS connection
|
|
|
|
/**
|
|
* Sends a keep alive request to the server. Normally this method is
|
|
* called periodically by the KeepAliveTimer.
|
|
*/
|
|
void onSendKeepAlive();
|
|
|
|
|
|
private: // attributes
|
|
|
|
int m_exerciseId; ///< Exercise id
|
|
AvsInterface *m_avsIf; ///< Pointer to AVS-Interface
|
|
AvsIfConnectionState m_avsConnectionState; ///< AVS connection state
|
|
#if BUILD_RTI
|
|
std::shared_ptr<DdsHandler> m_ddsHandler; ///< Pointer to DDS handler
|
|
#endif
|
|
std::shared_ptr<HandlerParticipantData> m_handlerParticipantData; ///< Pointer to participant data handler
|
|
std::shared_ptr<HandlerInfrastructureData> m_handlerInfrastructureData; ///< Pointer to infrastructure data handler
|
|
std::unique_ptr<HandlerOverlays> m_handlerOverlays; ///< Pointer to overlay handler
|
|
|
|
QTimer *m_checkConnectTimer; ///< Wait for AVS connected.
|
|
QTimer *m_keepAliveTriggerTimer; ///< Timer for triggering the keep alive request
|
|
bool m_bAvsSocketWarnedOnce;
|
|
NGL::INGLLogger &m_logger;
|
|
|
|
|
|
|
|
};
|
|
} // namespace VideoOverlayManagement
|