12 #ifndef CXPLAYBACKTIME_H_
13 #define CXPLAYBACKTIME_H_
15 #include "cxResourceExport.h"
21 #include <boost/shared_ptr.hpp>
45 void initialize(QDateTime start, qint64
length);
47 void forward(qint64 msecs);
48 void rewind(qint64 msecs);
49 bool isPlaying()
const;
51 void setTime(QDateTime time);
52 QDateTime getTime()
const;
53 void setOffset(qint64 val);
54 void moveOffset(qint64 delta);
55 qint64 getOffset()
const;
56 qint64 getLength()
const;
57 QDateTime getStartTime()
const;
58 void setSpeed(
double val);
59 double getSpeed()
const;
60 void setResolution(qint64 val);
61 double getResolution();
82 qint64 mLastPlayOffset;
96 TimelineEvent(QString description,
double start,
double end) : mDescription(description), mStartTime(start), mEndTime(
end) {}
97 TimelineEvent(QString description,
double time) : mDescription(description), mStartTime(time), mEndTime(time) {}
104 bool isInside(
double time,
double tol_ms=0)
const;
105 bool isSingular()
const;