QtGStreamer 1.2.0
Loading...
Searching...
No Matches
clock.h
1/*
2 Copyright (C) 2010 Collabora Multimedia.
3 @author Mauricio Piacentini <mauricio.piacentini@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_CLOCK_H
19#define QGST_CLOCK_H
20
21#include "object.h"
22#include "clocktime.h"
23
24namespace QGst {
25
29class QTGSTREAMER_EXPORT Clock : public Object
30{
31 QGST_WRAPPER(Clock)
32public:
33 static ClockPtr systemClock();
34
35 ClockTime resolution() const;
36 ClockTime clockTime() const;
37 QTime time() const;
38};
39
40}
41
42QGST_REGISTER_TYPE(QGst::Clock)
43
44#endif // QGST_CLOCK_H
Smart pointer class for working with wrapper classes that support reference counting.
Definition refpointer.h:91
A datatype to hold a time, measured in nanoseconds.
Definition clocktime.h:38
Wrapper class for GstClock.
Definition clock.h:30
Wrapper class for GstObject.
Definition object.h:29
Wrappers for GStreamer classes.