/**************************************************************************** ** $Id: qtimer.h,v 2.4.2.2 1998/08/21 19:13:24 hanord Exp $ ** ** Definition of QTimer class ** ** Created : 931111 ** ** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved. ** ** This file is part of Troll Tech's internal development tree for Qt. ** ** This header text will be replaced by an appropriate text by the ** mkdist script which generates external distributions. ** ** If you are using the Qt Professional Edition or the Qt Free Edition, ** please notify Troll Tech at <info@troll.no> if you see this text. ** ** To Troll Tech developers: This header was generated by the script ** fixcopyright-int. It has the same number of text lines as the free ** and professional editions to avoid line number inconsistency. ** *****************************************************************************/ #ifndef QTIMER_H #define QTIMER_H #ifndef QT_H #include "qobject.h" #endif // QT_H class Q_EXPORT QTimer : public QObject { Q_OBJECT public: QTimer( QObject *parent=0, const char *name=0 ); ~QTimer(); bool isActive() const; int start( int msec, bool sshot = FALSE ); void changeInterval( int msec ); void stop(); static void singleShot( int msec, QObject *receiver, const char *member ); signals: void timeout(); protected: bool event( QEvent * ); private: int id; bool single; private: // Disabled copy constructor and operator= #if defined(Q_DISABLE_COPY) QTimer( const QTimer & ); QTimer &operator=( const QTimer & ); #endif }; inline bool QTimer::isActive() const { return id >= 0; } #endif // QTIMER_H
Copyright © 1998 Troll Tech | Trademarks | Qt version 1.41
|