56 lines
1.2 KiB
C++
Executable File
56 lines
1.2 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* GetElokaList
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Christian Fröbel, SLSE, 2017-10-23
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AudioVideoManagement/icommand.h>
|
|
#include <AudioVideoManagement/list_response_collector.h>
|
|
#include <QVector>
|
|
#include <QString>
|
|
|
|
namespace AudioVideoManagement
|
|
{
|
|
|
|
class IAvaComm;
|
|
class IAvaCommandDoneObserver;
|
|
|
|
namespace AvaCommands
|
|
{
|
|
|
|
/**
|
|
* @author Christian Fröbel
|
|
*/
|
|
class GetElokaList final : public ICommand
|
|
{
|
|
public:
|
|
GetElokaList(IAvaComm *comm, IAvaCommandDoneObserver *observer, const QString &streamName);
|
|
|
|
void send() override;
|
|
QString debug() const override { return QLatin1String("GetElokaList"); }
|
|
|
|
const QVector<QString> &elokaSignals() const { return m_elokaSignals; }
|
|
|
|
private slots:
|
|
void onOk();
|
|
|
|
private:
|
|
void done();
|
|
void onElokaListReceived(QVector<QString> &&elokaSignals);
|
|
|
|
const QString m_streamName;
|
|
bool m_ok{false};
|
|
QVector<QString> m_elokaSignals; //!< available ELOKA-signals
|
|
ElokaListCollector m_collector;
|
|
IAvaComm *m_comm;
|
|
IAvaCommandDoneObserver *m_observer;
|
|
};
|
|
|
|
} // namespace AvaCommands
|
|
} // namespace AudioVideoManagement
|