Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+44
@@ -0,0 +1,44 @@
|
||||
/**
|
||||
* @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
|
||||
Reference in new issue
Block a user