/** * @RDE_HEADER@ * ChooseStreamOverview * $Id$ * $HeadURL$ * $Author$ * Created by Christian Fröbel, NLSE, 2018-03-28 */ #include "choose_stream_overview.h" #include 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(other); if (!other_) return false; return m_dialogId == other_->m_dialogId; } } // namespace AvaCommands } // namespace AudioVideoManagement