2 * copyright (c) 2010 Sveriges Television AB <info@casparcg.com>
\r
4 * This file is part of CasparCG.
\r
6 * CasparCG is free software: you can redistribute it and/or modify
\r
7 * it under the terms of the GNU General Public License as published by
\r
8 * the Free Software Foundation, either version 3 of the License, or
\r
9 * (at your option) any later version.
\r
11 * CasparCG is distributed in the hope that it will be useful,
\r
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
14 * GNU General Public License for more details.
\r
16 * You should have received a copy of the GNU General Public License
\r
17 * along with CasparCG. If not, see <http://www.gnu.org/licenses/>.
\r
21 #ifndef __AMCPCOMMANDSIMPL_H__
\r
22 #define __AMCPCOMMANDSIMPL_H__
\r
24 #include "AMCPCommand.h"
\r
26 namespace caspar { namespace protocol {
\r
28 std::wstring ListMedia();
\r
29 std::wstring ListTemplates();
\r
33 class LoadCommand : public AMCPCommandBase<true, ImmediatelyAndClear, 1>
\r
38 class LoadbgCommand : public AMCPCommandBase<true, AddToQueue, 1>
\r
43 class PlayCommand: public AMCPCommandBase<true, AddToQueue, 0>
\r
48 class PauseCommand: public AMCPCommandBase<true, AddToQueue, 0>
\r
53 class StopCommand : public AMCPCommandBase<true, ImmediatelyAndClear, 0>
\r
58 class ClearCommand : public AMCPCommandBase<true, ImmediatelyAndClear, 0>
\r
63 class CGCommand : public AMCPCommandBase<true, AddToQueue, 1>
\r
66 bool ValidateLayer(const std::wstring& layerstring);
\r
68 bool DoExecuteAdd();
\r
69 bool DoExecutePlay();
\r
70 bool DoExecuteStop();
\r
71 bool DoExecuteNext();
\r
72 bool DoExecuteRemove();
\r
73 bool DoExecuteClear();
\r
74 bool DoExecuteUpdate();
\r
75 bool DoExecuteInvoke();
\r
76 bool DoExecuteInfo();
\r
79 class DataCommand : public AMCPCommandBase<false, AddToQueue, 1>
\r
82 bool DoExecuteStore();
\r
83 bool DoExecuteRetrieve();
\r
84 bool DoExecuteList();
\r
87 class ClsCommand : public AMCPCommandBase<false, AddToQueue, 0>
\r
92 class TlsCommand : public AMCPCommandBase<false, AddToQueue, 0>
\r
97 class CinfCommand : public AMCPCommandBase<false, AddToQueue, 1>
\r
102 class InfoCommand : public AMCPCommandBase<false, AddToQueue, 0>
\r
105 InfoCommand(const std::vector<safe_ptr<core::channel>>& channels) : channels_(channels){}
\r
108 const std::vector<safe_ptr<core::channel>>& channels_;
\r
111 class VersionCommand : public AMCPCommandBase<false, AddToQueue, 0>
\r
116 class ByeCommand : public AMCPCommandBase<false, AddToQueue, 0>
\r
121 class SetCommand : public AMCPCommandBase<true, AddToQueue, 2>
\r
126 //class KillCommand : public AMCPCommand
\r
129 // KillCommand() {}
\r
130 // virtual bool DoExecute();
\r
131 // virtual AMCPCommandCondition CheckConditions();
\r
133 // virtual bool NeedChannel() {
\r
136 // virtual AMCPCommandScheduling GetDefaultScheduling() {
\r
137 // return AddToQueue;
\r
139 // virtual int GetMinimumParameters() {
\r
145 }} //namespace caspar
\r
147 #endif //__AMCPCOMMANDSIMPL_H__