Adds initial intermediate qt6 porting state
This commit is contained in:
11247 files changed
+1891537
No files matched your search
@@ -0,0 +1,73 @@
|
||||
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "WebSocketInterface/Messages/reply_message.h"
|
||||
#include "logger.h"
|
||||
#include <QObject>
|
||||
#include <QTimer>
|
||||
#include <boost/optional.hpp>
|
||||
|
||||
namespace AudioVideoManagement
|
||||
{
|
||||
namespace Interface
|
||||
{
|
||||
class Dtc;
|
||||
}
|
||||
|
||||
class ActiveFrequencyPlanning;
|
||||
class FrequencyPlanning;
|
||||
class CnrConfig;
|
||||
|
||||
}
|
||||
|
||||
namespace InfrastructureManagement
|
||||
{
|
||||
namespace Interface
|
||||
{
|
||||
class Dtc;
|
||||
}
|
||||
}
|
||||
|
||||
enum class DataModification;
|
||||
|
||||
namespace CombatNetRadio
|
||||
{
|
||||
|
||||
|
||||
|
||||
class ConfigCnr : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ConfigCnr(int exerciseId, AudioVideoManagement::Interface::Dtc *avmDtc, InfrastructureManagement::Interface::Dtc *ismDtc);
|
||||
|
||||
bool hasActiveFrequencyPlanning() const { return !m_configCnrData.radioCircuit.empty(); }
|
||||
|
||||
|
||||
const WebSocketInterface::Messages::ConfigCnrMessage::ConfigCnrData &data() const;
|
||||
|
||||
signals:
|
||||
void changed();
|
||||
|
||||
private:
|
||||
void buildConfigCnrData();
|
||||
boost::optional<AudioVideoManagement::FrequencyPlanning> activePlan() const;
|
||||
|
||||
void onActiveFrequencyPlanningChanged(const AudioVideoManagement::ActiveFrequencyPlanning &data, DataModification modType);
|
||||
void onFrequencyPlanningChanged(const AudioVideoManagement::FrequencyPlanning &data, DataModification modType);
|
||||
void onCnrConfigChanged(const AudioVideoManagement::CnrConfig &data, DataModification modType);
|
||||
bool isInActiveFrequencyPlanning(const AudioVideoManagement::CnrConfig &data);
|
||||
|
||||
int m_exerciseId;
|
||||
AudioVideoManagement::Interface::Dtc *m_avmDtc;
|
||||
InfrastructureManagement::Interface::Dtc *m_ismDtc;
|
||||
WebSocketInterface::Messages::ConfigCnrMessage::ConfigCnrData m_configCnrData;
|
||||
QTimer m_timer;
|
||||
LOGGER_T m_logger;
|
||||
LOGGER_T m_loggerJson;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user