- 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>
52 lines
1.2 KiB
C++
Executable File
52 lines
1.2 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* ICommand
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Christian Fröbel, SLSE, 2017-06-29
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AudioVideoManagement/avm_export.h>
|
|
#include <QObject>
|
|
|
|
namespace AudioVideoManagement
|
|
{
|
|
|
|
/**
|
|
* Internal helper class for AvaControl in order to send a command to the
|
|
* AVS system and synchronize with the reponse.
|
|
* This way AvaControl ensures that a new command is only sent when the
|
|
* response of the previous command has been received.
|
|
*
|
|
* The idea is that upon send() the command connects to the signals of interest
|
|
* of AvaComm. When the command is done it calls AvaControl::done(this).
|
|
*
|
|
* @author Christian Fröbel
|
|
*/
|
|
class AVM_COMMON_EXPORT ICommand : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
virtual ~ICommand() = default;
|
|
|
|
virtual void send() = 0;
|
|
|
|
virtual QString debug() const = 0;
|
|
|
|
virtual bool canTimeout() const { return false; }
|
|
|
|
/**
|
|
* Check whether this command nullifies other.
|
|
* Nullifying means that when this command is sent after other,
|
|
* it would nullify the effect of other.
|
|
* If so, other can be dropped.
|
|
*/
|
|
virtual bool nullifies(ICommand *other) const { Q_UNUSED(other); return false; }
|
|
};
|
|
|
|
} // namespace AudioVideoManagement
|