Qt Mobility Reference Documentation

QML DeviceInfo Element

The DeviceInfo element allows you to access information anbout the device and receive notifications from the device. More...

  • List of all members, including inherited members
  • Signals

    Methods

    Detailed Description

    This element is part of the QtMobility.systeminfo 1.1 module. It is a convience class to make QML usage easier.

    Note: To use notification signals, you need to use the start* slots.

     Component.onCompleted: {
         deviceinfo.startPowerStateChanged();
         deviceinfo.startBatteryLevelChanged();
     }

    See also QSystemDeviceInfo.

    Signal Documentation

    DeviceInfo::batteryLevelChanged ()

    This handler is called when battery level has changed. Note: To receive this notification, you must first call startBatteryLevelChanged.


    DeviceInfo::batteryStatusChanged ()

    This handler is called when battery status has changed. Note: To receive this notification, you must first call startBatteryStatusChanged.


    DeviceInfo::bluetoothStateChanged ()

    This handler is called when bluetooth power states has changed. Note: To receive this notification, you must first call startBluetoothStateChanged.


    DeviceInfo::currentProfileChanged ()

    This handler is called when current device profile has changed. Note: To receive this notification, you must first call startCurrentProfileChanged.


    DeviceInfo::powerStateChanged ()

    This handler is called when the power state has changed. Note: To receive this notification, you must first call startPowerStateChanged.


    Method Documentation

    DeviceInfo::startBatteryLevelChanged ()

    This function is needed to start batteryLevelChanged notification


    DeviceInfo::startBatteryStatusChanged ()

    This function is needed to start batteryStatusChanged notification


    DeviceInfo::startBluetoothStateChanged ()

    This function is needed to start bluetoothStateChanged notification


    DeviceInfo::startCurrentProfileChanged ()

    This function is needed to start currentProfileChanged notification


    DeviceInfo::startPowerStateChanged ()

    This function is needed to start powerStateChanged notification


    X

    Thank you for giving your feedback.

    Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.