Home · All Classes · Grouped Classes · Annotated · Functions

DeviceButtonTask Class Reference

The DeviceButtonTask class performs configurable actions when special purpose buttons are pressed or held. More...

    #include <DeviceButtonTask>

Inherits QObject.

Signals

Additional Inherited Members


Detailed Description

The DeviceButtonTask class performs configurable actions when special purpose buttons are pressed or held.

The DeviceButtonTask provides a Qtopia Server Task. Qtopia Server Tasks are documented in full in the QtopiaServerApplication class documentation.

Task NameDeviceButton
InterfacesDeviceButtonTask
ServicesNone

The DeviceButtonTask class provides the server backend for the QDeviceButton and QDeviceButtonManager APIs. The DeviceButtonTask will issue the actions for all configured button mappings without a specified context.

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

See also QDeviceButton and QDeviceButtonManager.


Member Function Documentation

void DeviceButtonTask::activated ( int keycode, bool wasHeld, bool isPressed )   [signal]

Emitted whenever the special-function button keycode was pressed. wasHeld will be true if the button was held and false if the button was pressed.

isPressed is true if the button is still depressed, or false if the signal was generated on the release of the button.

This signal will be emitted after the button action has been performed.


Copyright © 2008 Nokia Trademarks
Qtopia 4.3.3