QtGStreamer
0.10.2
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Pages
QGst
clocktime.h
1
/*
2
Copyright (C) 2011 Collabora Ltd. <info@collabora.co.uk>
3
@author George Kiagiadakis <george.kiagiadakis@collabora.co.uk>
4
5
This library is free software; you can redistribute it and/or modify
6
it under the terms of the GNU Lesser General Public License as published
7
by the Free Software Foundation; either version 2.1 of the License, or
8
(at your option) any later version.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU Lesser General Public License for more details.
14
15
You should have received a copy of the GNU Lesser General Public License
16
along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
#ifndef QGST_CLOCKTIME_H
19
#define QGST_CLOCKTIME_H
20
21
#include "global.h"
22
class
QTime;
23
24
namespace
QGst {
25
29
typedef
qint64
ClockTimeDiff
;
30
31
37
class
QTGSTREAMER_EXPORT
ClockTime
38
{
39
public
:
41
static
const
quint64 None = -1;
42
43
inline
ClockTime
(quint64 t = None) : m_clocktime(t) {}
44
inline
operator
quint64()
const
{
return
m_clocktime; }
45
47
inline
bool
isValid
()
const
{
return
m_clocktime != None; }
48
53
QTime toTime()
const
;
54
56
static
ClockTime
fromTime(
const
QTime & time);
57
58
private
:
59
quint64 m_clocktime;
60
};
61
62
}
//namspace QGst
63
64
QGST_REGISTER_TYPE(
QGst::ClockTime
)
65
66
#endif // QGST_CLOCKTIME_H
Generated on Mon Sep 23 2013 15:13:54 for QtGStreamer by
1.8.4