MAK Data Logger API Documentation for DIS
lgrPlaybackInterface.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #ifndef lgrPlaybackInterface_H_
10 #define lgrPlaybackInterface_H_
11 
12 #include "lgrTimeInterface.h"
13 #include "virtualConstructor.h"
14 
15 #include <vlutil/vlString.h>
16 #include "signalSlot.h"
17 
18 namespace MAKLogger
19 {
20  class DtLogger;
21  class DtLgrPlaybackDriver;
22  class DtLgrPlaybackCommandFactory;
23 
28  {
29  public:
30 
31  //Used to shorten code.
33 
34  //Used to shorten code.
36 
38  static DtLgrPlaybackInterface* create(DtLogger&);
39 
42  static DtLgrPlaybackInterface* createNonThreadsafe(DtLogger& logger,
43  const DtLgrPlaybackDriver& driver);
44 
45  protected:
46 
49 
50  public:
51 
53  virtual ~DtLgrPlaybackInterface();
54 
55  private:
60  public:
61 
63  virtual void openFile(const DtString& filename) const;
64 
66  virtual void closeFile() const;
67 
69  virtual void saveFile() const;
70 
72  virtual void saveFileAs(const DtString& filename) const;
73 
75  virtual void revertFile() const;
76 
78  virtual void play() const;
79 
81  virtual void stop() const;
82 
84  virtual void pause() const;
85 
87  virtual void unpause() const;
88 
90  virtual void togglePlayPause() const;
91 
93  virtual void restart() const;
94 
96  virtual void jumpToTime(DtAbsoluteTime time) const;
97 
100  virtual void setPlaybackSpeed(double speedMultiplier, bool skipping) const;
101 
104  virtual void setSkippingPlaybackThreshold(double skippingThreshold) const;
105 
107  virtual void setStartStopTimes(DtAbsoluteTime startTime,
108  DtAbsoluteTime stopTime) const;
109 
111  virtual void setLoopAtEnd(bool enable) const;
112 
114  virtual void setPlayOnLoad(bool playOnLoad) const;
115 
117  virtual void setBackupOnSave(bool backup) const;
118 
120  virtual void recoverLastPacket();
121 
123 
125  virtual bool isFileLoaded() const;
126 
128  virtual bool isFileSaved() const;
129 
131  virtual bool isPlaying() const;
132 
134  virtual bool isStopped() const;
135 
137  virtual bool isPaused() const;
138 
140  virtual bool loopAtEnd() const;
141 
143  virtual bool playOnLoad() const;
144 
146  virtual const DtString& filename() const;
147 
149  virtual double playbackSpeed() const;
150 
152  virtual bool skippingPlayback() const;
153 
155  virtual double skippingPlaybackThreshold() const;
156 
158  virtual bool isFileFormatCurrent() const;
159 
161  virtual bool isFileIncomplete() const;
162 
164  virtual bool hasLastPacket() const;
165 
167  virtual bool lastPacketRecovered() const;
168 
170 
177 
182 
183  protected:
184 
186 
187 
189  void fileOpened(DtResponse);
190 
192  void fileClosed(DtResponse);
193 
195  void fileChanged(DtResponse);
196 
198  void fileSaved(DtResponse);
199 
201  void playbackChanged(DtResponse);
202 
204  void playbackSpeedChanged(DtResponse);
205 
207  void skippingPlaybackChanged(DtResponse);
208 
210  void skippingPlaybackThresholdChanged(DtResponse);
211 
213  void fileInvalid(DtResponse);
214 
216  void fileDoesNotExist(DtResponse);
217 
219  void fileIncomplete(DtResponse);
220 
222  void loopAtEndChanged(DtResponse);
223 
225  void playOnLoadChanged(DtResponse);
226 
228  void fileFormatCurrent(DtResponse);
229 
231  void pausedChanged(DtResponse);
232 
234 
236  void connectResponseHandlers();
237 
239  void connectResponse(DtLgrCommandId,
241 
242  protected:
243 
257  DtString myFilename;
259  };
260 
261 }
262 
263 #endif

Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)