00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef QGST_CLOCKTIME_H
00019 #define QGST_CLOCKTIME_H
00020
00021 #include "global.h"
00022 class QTime;
00023
00024 namespace QGst {
00025
00029 typedef qint64 ClockTimeDiff;
00030
00031
00037 class QTGSTREAMER_EXPORT ClockTime
00038 {
00039 public:
00041 static const quint64 None = -1;
00042
00043 inline ClockTime(quint64 t = None) : m_clocktime(t) {}
00044 inline operator quint64() const { return m_clocktime; }
00045
00047 inline bool isValid() const { return m_clocktime != None; }
00048
00053 QTime toTime() const;
00054
00056 static ClockTime fromTime(const QTime & time);
00057
00058 private:
00059 quint64 m_clocktime;
00060 };
00061
00062 }
00063
00064 QGST_REGISTER_TYPE(QGst::ClockTime)
00065
00066 #endif // QGST_CLOCKTIME_H