Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

IdleTaskStartup Class Reference
[QtBaseModule]

The IdleTaskStartup class provides an interface for launching server tasks while the system is idle. More...

    #include <IdleTaskStartup>

Inherits QObject.

Public Functions

Public Slots

Signals

Additional Inherited Members


Detailed Description

The IdleTaskStartup class provides an interface for launching server tasks while the system is idle.

IdleTaskStartup takes a list of server tasks to be started. The tasks will be launched either when the system is idle or when a specified maximum timeout is reached.

The system is considered idle when no user-generated events (such as keyboard/mouse input events) have occurred for a period of time and there are no active phone calls.

This class is part of the Qt Extended server and cannot be used by other Qt Extended applications.


Member Function Documentation

IdleTaskStartup::IdleTaskStartup ( QtopiaServerTasksPrivate * qst, QList<QtopiaServerTasksPrivate::Task *> const & tasks, int idleTimeout = 4000, int maximumTimeout = 60000 )

Constructs the IdleTaskStartup.

After start() is called, tasks will be launched through the interface provided by qst. The system is considered idle if no user-generated events have occurred within idleTimeout milliseconds.

After maximumTimeout milliseconds have elapsed, all remaining tasks will be launched. If many tasks have not been started by this time, the device may temporarily become unresponsive.

IdleTaskStartup::~IdleTaskStartup ()   [virtual]

Destroys the IdleTaskStartup.

void IdleTaskStartup::finished ()   [signal]

This signal is emitted after this IdleTaskStartup has launched all its specified tasks.

void IdleTaskStartup::start ()   [slot]

Start launching tasks when idle.


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3