- 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>
73 lines
1.9 KiB
C++
Executable File
73 lines
1.9 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* SetScript
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Astrid Müller, SGAS, 2018-02-14
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "icommand.h"
|
|
#include <AudioVideoManagement/ava_types.h>
|
|
#include <QtCore/QString>
|
|
#include <boost/optional.hpp>
|
|
|
|
namespace AudioVideoManagement
|
|
{
|
|
|
|
class IAvaComm;
|
|
class IAvaCommandDoneObserver;
|
|
|
|
namespace AvaCommands
|
|
{
|
|
|
|
/**
|
|
* The response to setScript depends on whether a script is currently
|
|
* set or not.
|
|
* The response to the actual setScript contains -- among other things --
|
|
* a ScriptInfo and a ScriptState.
|
|
* @author Astrid Müller
|
|
*/
|
|
class SetScript final : public ICommand
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SetScript(IAvaComm *comm, IAvaCommandDoneObserver *doneObserver, const QString &dialogId,
|
|
const QString &scriptName, AvaScriptSource source,
|
|
const QVector<AvaScriptEntry> &streams);
|
|
|
|
void send() override;
|
|
QString debug() const override { return QLatin1String("SetScript"); }
|
|
|
|
/**
|
|
* May only be called after the command has successfully completed.
|
|
*/
|
|
///{@
|
|
AvaStreamInfo scriptInfo() const { return *m_scriptInfo; }
|
|
AvaStreamState scriptState() const { return *m_scriptState; }
|
|
///@}
|
|
|
|
private slots:
|
|
void onScriptInfoReceived(const QString &dialogId, const QString &scriptName, const AvaStreamInfo &scriptInfo);
|
|
void onScriptStateReceived(const QString &dialogId, const QString &scriptName, AvaStreamState scriptState);
|
|
|
|
private:
|
|
void done();
|
|
|
|
const QString m_dialogId;
|
|
const QString m_scriptName;
|
|
AvaScriptSource m_scriptSource;
|
|
const QVector<AvaScriptEntry> m_streams;
|
|
boost::optional<AvaStreamInfo> m_scriptInfo;
|
|
boost::optional<AvaStreamState> m_scriptState;
|
|
IAvaComm *m_comm;
|
|
IAvaCommandDoneObserver *m_observer;
|
|
};
|
|
|
|
}
|
|
} // namespace AudioVideoManagement::AvaCommands
|
|
|