Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Services/AudioVideoManagement/AvsCommands/set_script.h
T
torstenandCopilot d5af8b9764 Session 026: Lts/Services Qt5:: to Qt6:: migration
- 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>
2026-08-25 19:23:30 +02:00

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 <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