19 class DtCommandDefinition;
55 DT_FACTORY_COMMAND_EXT(4,SaveFileAs,(const
DtString& filename,
56 const
DtString& description, const
bool writeDescription),
58 bool& writeDescription))
62 DT_FACTORY_COMMAND_EXT(5,Revert,(),(const
DtCommand& command))
65 DT_FACTORY_COMMAND_EXT(6,SetBackupOnSave,(
bool backup),
70 DT_FACTORY_COMMAND_EXT(10,Play,(),(
DtCommand& command))
74 DT_FACTORY_COMMAND_EXT(11,Stop,(),(
DtCommand& command))
78 DT_FACTORY_COMMAND_EXT(12,Restart,(),(
DtCommand& command))
82 DT_FACTORY_COMMAND_EXT(13,PlayPause,(),(
DtCommand& command))
85 DT_FACTORY_COMMAND_EXT(14,SetLoopAtEnd,(
bool enable),
89 DT_FACTORY_COMMAND_EXT(16,SetPlayOnLoad,(
bool play),
93 DT_FACTORY_COMMAND_EXT(20,SetPlaybackSpeed,(
double speed,
bool skipping),
94 (const
DtCommand& command,
double& speed,
bool& skipping))
102 DT_FACTORY_COMMAND_EXT(22,Pause,(),(
DtCommand& command))
106 DT_FACTORY_COMMAND_EXT(23,Unpause,(),(
DtCommand& command))
109 DT_FACTORY_COMMAND_EXT(24,SetStartStopTimes,(
DtAbsoluteTime startTime,
118 DT_FACTORY_COMMAND_EXT(26,SetSkippingPlaybackThreshold,(
double skippingPlaybackThreshold),
119 (const
DtCommand& command,
double& skippingPlaybackThreshold))
123 DT_FACTORY_COMMAND_EXT(27,RequestFileList,(
bool listDirs),
124 (const
DtCommand& command,
bool& listDirs))
128 DT_FACTORY_COMMAND_EXT(28,RecoverLastPacket,(),(
DtCommand& command))
131 DT_FACTORY_COMMAND_EXT(29,UpdateTapeDescription,(const
DtString& description),
147 DT_FACTORY_RESPONSE_EXT(-2,FileClosed,
151 DT_FACTORY_RESPONSE_EXT(-3,FileDoesNotExist,
155 DT_FACTORY_RESPONSE_EXT(-4,FileIncomplete,
156 (const
DtString& filename,
bool isIncomplete,
bool hasLastPacket,
bool lastPacketRecovered),
157 (
DtResponse response,
DtString& filename,
bool& isIncomplete,
bool& hasLastPacket,
bool& lastPacketRecovered))
159 DT_FACTORY_RESPONSE_EXT(-5,FileInvalid,
163 DT_FACTORY_RESPONSE_EXT(-6,FileChanged,
167 DT_FACTORY_RESPONSE_EXT(-7,FileSaved,
171 DT_FACTORY_RESPONSE_EXT(-8, FileFormatCurrent,
172 (
bool current,
int version),
173 (
DtResponse response,
bool& current,
int& version))
175 DT_FACTORY_RESPONSE_EXT(-10,PlaybackChanged,
176 (
bool currentlyPlaying),
177 (
DtResponse response,
bool& currentlyPlaying))
181 DT_FACTORY_RESPONSE_EXT(-12,LoopAtEndChanged,
185 DT_FACTORY_RESPONSE_EXT(-13,PlayOnLoadChanged,
189 DT_FACTORY_RESPONSE_EXT(-20,PlaybackSpeedChanged,
193 DT_FACTORY_RESPONSE_EXT(-21,PausedChanged,
197 DT_FACTORY_RESPONSE_EXT(-22,SkippingPlaybackChanged,
198 (
bool skippingPlayback),
201 DT_FACTORY_RESPONSE_EXT(-23,SkippingPlaybackThresholdChanged,
202 (
double skippingPlaybackThreshold),
203 (
DtResponse response,
double& skippingPlaybackThreshold))
205 DT_FACTORY_RESPONSE_EXT(-24,JumpTimeChanged,
209 DT_FACTORY_RESPONSE_EXT(-25,FileList,
210 (
bool listIsDirs, const std::vector<
DtString>& loggerFiles),
213 DT_FACTORY_RESPONSE_EXT(-26,TapeDescriptionUpdated,
214 (const
DtString& tapeDescription, const
bool useDescription),
220 static const
char* commandToString(
int commandId);
223 static const
char* responseToString(
int responseId);