45 lines
984 B
C++
Executable File
45 lines
984 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* ChangeRtProfileCircuitName
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Christian Fröbel, NLE, 2018-12-17
|
|
*/
|
|
|
|
#include "change_rt_profile_circuit_name.h"
|
|
#include <AudioVideoManagement/iava_command_done_observer.h>
|
|
#include <QString>
|
|
#include <QtGlobal>
|
|
|
|
namespace AudioVideoManagement
|
|
{
|
|
namespace AvaCommands
|
|
{
|
|
|
|
ChangeRtProfileCircuitName::ChangeRtProfileCircuitName(IAvaComm *comm, IAvaCommandDoneObserver *observer, RtState *rtState, const RtState::RadioCircuit &radioCircuit)
|
|
: SetRtProfileBase(comm)
|
|
, m_radioCircuit(radioCircuit)
|
|
, m_rtState(rtState)
|
|
, m_observer(observer)
|
|
{
|
|
Q_ASSERT(observer);
|
|
Q_ASSERT(rtState);
|
|
}
|
|
|
|
void ChangeRtProfileCircuitName::send()
|
|
{
|
|
connectToComm();
|
|
|
|
m_rtState->changeName(m_radioCircuit);
|
|
sendCommand(QString::fromStdString(m_rtState->toCommand()));
|
|
}
|
|
|
|
void ChangeRtProfileCircuitName::done()
|
|
{
|
|
disconnectFromComm();
|
|
m_observer->done(this);
|
|
}
|
|
|
|
}} // namespace AudioVideoManagement::AvaCommands
|