00001 /* 00002 Copyright (C) 2010 Collabora Multimedia. 00003 @author Mauricio Piacentini <mauricio.piacentini@collabora.co.uk> 00004 00005 This library is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU Lesser General Public License as published 00007 by the Free Software Foundation; either version 2.1 of the License, or 00008 (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public License 00016 along with this program. If not, see <http://www.gnu.org/licenses/>. 00017 */ 00018 #ifndef QGST_CLOCK_H 00019 #define QGST_CLOCK_H 00020 00021 #include "object.h" 00022 #include "clocktime.h" 00023 00024 namespace QGst { 00025 00029 class QTGSTREAMER_EXPORT Clock : public Object 00030 { 00031 QGST_WRAPPER(Clock) 00032 public: 00033 static ClockPtr systemClock(); 00034 00035 ClockTime resolution() const; 00036 ClockTime clockTime() const; 00037 QTime time() const; 00038 }; 00039 00040 } 00041 00042 QGST_REGISTER_TYPE(QGst::Clock) 00043 00044 #endif // QGST_CLOCK_H