Go to the documentation of this file.00001
00002
00003
00004
00005
00009
00010
00011 #pragma once
00012
00013 #include "remoteControlDomainInterface.h"
00014 #include "virtualConstructor.h"
00015 #include "absoluteTime.h"
00016
00017 #include <vlutil/vlString.h>
00018
00019 class DtFilename;
00020
00021 namespace MAKLogger
00022 {
00023
00026 class DT_DLL_LGRSIM DtRemoteControlRecordInterface : public DtRemoteControlDomainInterface
00027 {
00028 public:
00029
00030 DT_VIRTUAL_CTR(DtRemoteControlRecordInterface,(DtRemoteControlInterface*))
00031
00032
00033 virtual ~DtRemoteControlRecordInterface();
00034
00035 private:
00037 DtRemoteControlRecordInterface(const DtRemoteControlRecordInterface&);
00039 DtRemoteControlRecordInterface& operator=(const DtRemoteControlRecordInterface&);
00040
00041 public:
00042
00044
00045 virtual bool isFileOpened() const;
00046 virtual void resetIsFileOpened(bool fileOpened);
00048
00050
00051 virtual bool isRecording() const;
00052 virtual void resetIsRecording(bool recording);
00054
00056
00057 virtual bool isPaused() const;
00058 virtual void resetIsPaused(bool paused);
00060
00062
00063 virtual bool isPauseOnRecord() const;
00064 virtual void resetIsPauseOnRecord(bool pauseOnRecord);
00066
00068
00069
00071 virtual DtSequenceNumber newFile(const DtFilename& filename, bool overwrite,
00072 bool constructFileNameAndPath,
00073 const DtEntityIdentifier& destination=DtRemoteControlInterface::wildcardAddress());
00074
00077 virtual DtSequenceNumber closeFile(
00078 const DtEntityIdentifier& destination=DtRemoteControlInterface::wildcardAddress());
00079
00082 virtual DtSequenceNumber record(bool multipleFiles,
00083 const DtEntityIdentifier& destination=DtRemoteControlInterface::wildcardAddress());
00084
00087 virtual DtSequenceNumber cancel(
00088 const DtEntityIdentifier& destination=DtRemoteControlInterface::wildcardAddress());
00089
00092 virtual DtSequenceNumber stop(bool closeAndOpenForPlayback,
00093 const DtEntityIdentifier& destination=DtRemoteControlInterface::wildcardAddress());
00094
00097 virtual DtSequenceNumber pause(
00098 const DtEntityIdentifier& destination=DtRemoteControlInterface::wildcardAddress());
00099
00102 virtual DtSequenceNumber unpause(
00103 const DtEntityIdentifier& destination=DtRemoteControlInterface::wildcardAddress());
00104
00106 virtual DtSequenceNumber setPauseOnRecord(bool enable,
00107 const DtEntityIdentifier& destination=DtRemoteControlInterface::wildcardAddress());
00108
00110
00112 virtual void processResponse(const DtLgrResponsePdu& responsePdu);
00113
00115 virtual void clearReceivedResponseCounts();
00116
00117 public:
00118
00120 static const char* commandToString(int command);
00121
00122 protected:
00123
00125
00126
00128 virtual void newFileOpened(const DtEntityIdentifier& source, const DtString& filename);
00129
00132 virtual void newFileOpened(const DtString& filename);
00133
00137 virtual void newFileFailed(const DtEntityIdentifier& source, const DtString& reason);
00138
00140 virtual void fileClosed(const DtEntityIdentifier& source);
00141
00144 virtual void fileClosed();
00145
00147 virtual void recordingChanged(const DtEntityIdentifier& source, bool recordingState);
00148
00151 virtual void recordingChanged(bool currentlyRecording);
00152
00154 virtual void recordingPausedChanged(const DtEntityIdentifier& source, bool paused);
00155
00158 virtual void recordingPausedChanged(bool paused);
00159
00161 virtual void fileEmptyChanged(const DtEntityIdentifier& source);
00162
00165 virtual void fileEmptyChanged();
00166
00168 virtual void pauseOnRecordAsChanged(const DtEntityIdentifier& source, bool enable);
00169
00172 virtual void pauseOnRecordAsChanged(bool enable);
00173
00175
00176 protected:
00177
00178 DtFilename myFileName;
00179 bool myIsFileOpened;
00180 bool myPendingIsFileOpened;
00181 bool myIsFileRecording;
00182 bool myPendingIsFileRecording;
00183 bool myIsPaused;
00184 bool myPendingIsPaused;
00185 bool myIsPauseOnRecord;
00186 bool myPendingIsPauseOnRecord;
00187
00188 int myReceivedNewFileOpened;
00189 int myReceivedFileClosed;
00190 int myReceivedNewFileFailed;
00191 int myReceivedRecordingChanged;
00192 int myReceivedRecordingPausedChanged;
00193 int myReceivedFileEmptyChanged;
00194 int myReceivedPauseOnRecordAsChanged;
00195
00196 };
00197 }