Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QtopiaTimer class provides timers that can pause automatically when the screen is off. More...
#include <QtopiaTimer>
Inherits QObject.
The QtopiaTimer class provides timers that can pause automatically when the screen is off.
The use of this class is similar to QTimer as the API is the same, except setInterval() and start() now have an optional argument that is the type() of pausing behavior to use.
When the type is PauseWhenInactive, the timer will pause while the screen is off. This allows applications to more easily suspend repetitive processing when the user is not able to interact with the application.
See also QTimer.
This enum type specifies the behavior that QtopiaTimer uses.
Constant | Value | Description |
---|---|---|
QtopiaTimer::Normal | 0x0000 | operate as a QTimer. |
QtopiaTimer::PauseWhenInactive | 0x0001 | pause while the screen turns off. |
Creates a new QtopiaTimer instance with the specified parent.
Destroys the QtopiaTimer instance.
Returns the number of milliseconds that the QtopiaTimer will wait. A value of 0 means that the timer will time out as soon as all the events in the window system event queue have been processed.
See also setInterval().
Returns true if the timer is active; false otherwise.
Returns true if the timer is a single-shot timer; false otherwise. Single-shot timers do not restart automatically.
See also setSingleShot().
Sets the timer to wait msec milliseconds before triggering. The type is set to type.
See also interval() and type().
Sets the timer to be a single-shot timer if singleShot is true. If singleShot is false the timer will restart automatically.
See also isSingleShot().
Starts the timer using the previously-set values.
See also setInterval().
This is an overloaded member function, provided for convenience.
Starts the timer with a new interval msec and type.
See also setInterval() and start().
Stops the timer.
See also isActive().
This signal is emitted when the timer interval has elapsed. Unless the timer is a single-shot timer, it will automatically restart and so trigger after the interval passes again.
See also start(), stop(), and setSingleShot().
Returns the type of the timer.
See also QtopiaTimer::Type and setInterval().
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |