00001 #ifndef __ut_abs_timer_qt_pure_hpp__ 00002 #define __ut_abs_timer_qt_pure_hpp__ 00003 00004 #include <QDateTime> 00005 #include <QTimer> 00006 00007 class QAbsTimer : 00008 public QObject 00009 { 00010 Q_OBJECT 00011 Q_PROPERTY(bool active READ isActive) 00012 00013 private: 00014 QTimer iTimerAo; 00015 QDateTime iExpTime; 00016 00017 private slots: 00018 void handleTimeout(); 00019 00020 public: 00021 QAbsTimer(QObject *parent = 0); 00022 ~QAbsTimer(); 00023 bool isActive() const; 00024 void start(const QDateTime& aExpTime); 00025 void stop(); 00026 00027 signals: 00028 void timeout(); 00029 00030 private: 00031 void startOrSignal(); 00032 }; 00033 00034 #endif /* __ut_abs_timer_qt_pure_hpp__ */ 00035 00036 /** 00037 00038 Copyright 2010 Helsinki Institute for Information Technology (HIIT) 00039 and the authors. All rights reserved. 00040 00041 Authors: Tero Hasu <tero.hasu@hut.fi> 00042 00043 Permission is hereby granted, free of charge, to any person 00044 obtaining a copy of this software and associated documentation files 00045 (the "Software"), to deal in the Software without restriction, 00046 including without limitation the rights to use, copy, modify, merge, 00047 publish, distribute, sublicense, and/or sell copies of the Software, 00048 and to permit persons to whom the Software is furnished to do so, 00049 subject to the following conditions: 00050 00051 The above copyright notice and this permission notice shall be 00052 included in all copies or substantial portions of the Software. 00053 00054 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00055 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00056 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00057 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 00058 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 00059 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00060 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 00061 SOFTWARE. 00062 00063 **/
ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:57 2011 by Doxygen 1.6.1