Files
qt5-legatus-legacy/Lts/Services/AudioVideoManagement/AvsCommands/choose_stream_overview.cpp
T
2026-08-13 18:33:10 +02:00

38 lines
934 B
C++
Executable File

/**
* @RDE_HEADER@
* ChooseStreamOverview
* $Id$
* $HeadURL$
* $Author$
* Created by Christian Fröbel, NLSE, 2018-03-28
*/
#include "choose_stream_overview.h"
#include <AudioVideoManagement/iava_comm.h>
namespace AudioVideoManagement
{
namespace AvaCommands
{
ChooseStreamOverview::ChooseStreamOverview(IAvaComm *comm, IAvaCommandDoneObserver *observer, const QString &dialogId, const QStringList &streamNames, bool muted)
: SimpleCommand(QLatin1String("ChooseStreamOverview"), comm, observer, [=] (IAvaComm *comm) { comm->chooseStreamOverview(dialogId, streamNames, muted); } )
, m_dialogId(dialogId)
{
}
bool ChooseStreamOverview::nullifies(ICommand *other) const
{
Q_ASSERT(other);
ChooseStreamOverview *other_ = dynamic_cast<ChooseStreamOverview*>(other);
if (!other_)
return false;
return m_dialogId == other_->m_dialogId;
}
} // namespace AvaCommands
} // namespace AudioVideoManagement