- 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>
61 lines
1.3 KiB
C++
Executable File
61 lines
1.3 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* QueryEloka
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Astrid Mueller, SGAS, 2017-11-14
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "icommand.h"
|
|
#include <AudioVideoManagement/ava_types.h>
|
|
#include <AudioVideoManagement/list_response_collector.h>
|
|
#include <QVector>
|
|
|
|
namespace AudioVideoManagement
|
|
{
|
|
|
|
class IAvaComm;
|
|
class IAvaCommandDoneObserver;
|
|
|
|
namespace AvaCommands
|
|
{
|
|
|
|
/**
|
|
* Command to issue queryEloka with modes AvaQueryElokaMode::Push or AvaQueryElokaMode::Poll.
|
|
* When mode is AvaQueryElokaMode::Stop, queryEloka is a SimpleCommand.
|
|
*
|
|
* @author Astrid Müller
|
|
*/
|
|
class QueryEloka final : public ICommand
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QueryEloka(IAvaComm *comm, IAvaCommandDoneObserver *observer, AvaQueryElokaMode mode);
|
|
|
|
void send() override;
|
|
QString debug() const override { return QLatin1String("QueryEloka"); }
|
|
|
|
const QVector<AvaEloka> &eloka() const { return m_eloka; }
|
|
|
|
private slots:
|
|
void onOk();
|
|
|
|
private:
|
|
void done();
|
|
void onQueryElokaListReceived(QVector<AvaEloka> &&eloka);
|
|
|
|
const AvaQueryElokaMode m_mode;
|
|
bool m_ok{false};
|
|
IAvaComm *m_comm;
|
|
IAvaCommandDoneObserver *m_observer;
|
|
QVector<AvaEloka> m_eloka;
|
|
QueryElokaListCollector m_collector;
|
|
};
|
|
|
|
} // namespace AvaCommands
|
|
} // namespace AudioVideoManagement
|