<class name="QBasicTimer" doc="/** <p>The <a href="QBasicTimer.html#QBasicTimer()"><tt>QBasicTimer</tt></a> class provides timer events for objects.</p> <p>This is a fast, lightweight, and low-level class used by Qt internally. We recommend using the higher-level <a href="QTimer.html"><tt>QTimer</tt></a> class rather than this class if you want to use timers in your applications.</p> <p>To use this class, create a <a href="QBasicTimer.html#QBasicTimer()"><tt>QBasicTimer</tt></a>, and call its <a href="QBasicTimer.html#start(int, com.trolltech.qt.core.QObject)"><tt>start</tt></a> function with a timeout interval and with a pointer to a <a href="QObject.html"><tt>QObject</tt></a> subclass. When the timer times out it will send a timer event to the <a href="QObject.html"><tt>QObject</tt></a> subclass. The timer can be stopped at any time using <a href="QBasicTimer.html#stop()"><tt>stop</tt></a>. <a href="QBasicTimer.html#isActive()"><tt>isActive</tt></a> returns true for a timer that is running; i.e&#x2e; it has been started, has not reached the timeout time, and has not been stopped. The timer's ID can be retrieved using <a href="QBasicTimer.html#timerId()"><tt>timerId</tt></a>.</p> <p>The Wiggly</tt> example uses <a href="QBasicTimer.html#QBasicTimer()"><tt>QBasicTimer</tt></a> to repaint a widget at regular intervals.</p> @see <a href="QTimer.html"><tt>QTimer</tt></a> @see <a href="QTimerEvent.html"><tt>QTimerEvent</tt></a> @see <tt>QObject::timerEvent</tt> @see <a href="%2E%2E/timers.html">Timers</tt></a> @see <a href="%2E%2E/qtjambi-wiggly.html">Wiggly Example</tt></a> */"> <method name="public QBasicTimer()" doc="/** <p>Contructs a basic timer.</p> @see <a href="QBasicTimer.html#start(int, com.trolltech.qt.core.QObject)"><tt>start</tt></a> */"/> <method name="public final boolean isActive()" doc="/** <p>Returns true if the timer is running, has not yet timed out, and has not been stopped; otherwise returns false.</p> @see <a href="QBasicTimer.html#start(int, com.trolltech.qt.core.QObject)"><tt>start</tt></a> @see <a href="QBasicTimer.html#stop()"><tt>stop</tt></a> */"/> <method name="public final void start(int msec, com.trolltech.qt.core.QObject obj)" doc="/** <p>Starts (or restarts) the timer with a <tt>msec</tt> milliseconds timeout.</p> <p>The given <tt>obj</tt> will receive timer events.</p> @see <a href="QBasicTimer.html#stop()"><tt>stop</tt></a> @see <a href="QBasicTimer.html#isActive()"><tt>isActive</tt></a> @see <tt>QObject::timerEvent</tt> */"/> <method name="public final void stop()" doc="/** <p>Stops the timer.</p> @see <a href="QBasicTimer.html#start(int, com.trolltech.qt.core.QObject)"><tt>start</tt></a> @see <a href="QBasicTimer.html#isActive()"><tt>isActive</tt></a> */"/> <method name="public final int timerId()" doc="/** <p>Returns the timer's ID.</p> @see <tt>QTimerEvent::timerId</tt> */"/> </class>