Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The UIApplicationMonitor class monitors the running state of UI applications. More...
#include <UIApplicationMonitor>
Inherits QObject.
The UIApplicationMonitor class monitors the running state of UI applications.
The UI application monitor provides a friendly interface to monitoring the state of UI applications. The UIApplicationMonitor class uses the following messages to monitor application state.
To Application | From Application | Description |
---|---|---|
raise() | QPE/QtopiaApplication:appRaised(QString) | Used to raise, and confirm the raise of, the application UI. |
QPE/QtopiaApplication:busy(QString) | The application has notified the system that it is busy. | |
QPE/QtopiaApplication:notBusy(QString) | The application has notified the system that it is not busy. |
Additionally the UIApplicationMonitor class uses the following value space keys to monitor application state.
Value Space Key | Description |
---|---|
/System/Applications/<app name>/Tasks/UI | True when the application is showing UI, false if not. |
This class is part of the Qt Extended server and cannot be used by other Qt Extended applications.
The ApplicationState enum represents the current state of a UI application.
Every application will have at least on of the following states:
Constant | Value | Description |
---|---|---|
UIApplicationMonitor::NotRunning | 0x0000 | The application is not currently running, does not appear to be a UI application, or is not currently showing a UI. An application is considered not running whenever the value space key /System/Applications/<application>/Tasks/UI is false. |
UIApplicationMonitor::Starting | 0x0001 | The application is currently starting, in response to a raise() message. The busy flag is automatically set for applications in the Starting state. It is unset when they enter the Running state or terminate. |
UIApplicationMonitor::Running | 0x0002 | The application is running and displaying a UI. An application is considered running whenever the value space key /System/Applications/<application>/Tasks/UI is true. |
Additionally, zero or more of the following flags may be applied to any application in the Starting or Running state.
Constant | Value | Description |
---|---|---|
UIApplicationMonitor::NotResponding | 0x0100 | The application is not responding. An application is marked as not responding if it does not send an appRaised(QString) message in response to a raise() message within the notRespondingTimeout() time limit. |
UIApplicationMonitor::Busy | 0x0200 | The application is busy. |
UIApplicationMonitor::Active | 0x0400 | The application is active. The active application is the application that created the currently active window. |
The following masks are also supported.
Constant | Value | Description |
---|---|---|
UIApplicationMonitor::StateMask | 0x00FF | Masks the enumeration bits used by application states. |
Construct a new UIApplicationMonitor instance with the provided parent.
Destroy the UIApplicationMonitor instance.
Returns the current state of application.
Emitted whenever application's state changes. newState will be set to the application's new state.
Emitted when any application is busy.
Return a list of all busy applications.
Emitted when no applications are busy.
Return a list of all not responding applications.
Returns the current not responding timeout in milliseconds.
See also setNotRespondingTimeout().
Return a list of all running UI applications. An application is "running" if it is showing a UI.
Set the not responding timeout to timeout milliseconds.
See also notRespondingTimeout().
Copyright © 2009 Nokia | Trademarks | Qt Extended 4.4.3 |