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

DeviceButtonTask Class Reference
[QtBaseModule]

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 Qt Extended Server Task. Qt Extended 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 Qt Extended server and cannot be used by other Qt Extended 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 © 2009 Nokia Trademarks
Qt Extended 4.4.3