QML DeviceInfo ElementThe DeviceInfo element allows you to access information anbout the device and receive notifications from the device. More... Properties
Signals
Detailed DescriptionThis 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 set the monitor* properties to true. The following table lists the incompatible changes made to the start* functions between QtMobility 1.1 and 1.2, where they became Q_PROPERTY:
Example new usage: QtMobility 1.1: deviceinfo.startBatteryLevelChanged();
QtMobility 1.2: monitorBatteryLevelChanges: true
See also QSystemDeviceInfo. Property DocumentationReturns the battery charge level as percentage 1 - 100 scale. This documentation was introduced in Qt Mobility Mobility 1.1. Returns the battery charge status. This documentation was introduced in Qt Mobility Mobility 1.1. Gets the current bluetooth power state. This documentation was introduced in Qt Mobility Mobility 1.2. Gets the current QSystemDeviceInfo::currentPowerState state. This documentation was introduced in Qt Mobility Mobility 1.2. Gets the current QSystemDeviceInfo::currentProfile device profile. This documentation was introduced in Qt Mobility Mobility 1.2. Returns the current thermal state of the device. This documentation was introduced in Qt Mobility Mobility 1.2. See also QSystemDeviceInfo::ThermalState. Returns the International Mobile Equipment Identity (IMEI), or a null QString in the case of none. This documentation was introduced in Qt Mobility Mobility 1.2. Returns the International Mobile Subscriber Identity (IMSI), or a null QString in the case of none This documentation was introduced in Qt Mobility Mobility 1.2. Returns the QSystemDeviceInfo::InputMethodFlags InputMethodType that the system uses. This documentation was introduced in Qt Mobility Mobility 1.2. Returns true if the device is locked, otherwise false. This documentation was introduced in Qt Mobility Mobility 1.2. Returns true if the flip keyboard is open, otherwise false; This documentation was introduced in Qt Mobility Mobility 1.2. Returns true if a wireless keyboard is connected, otherwise false; This documentation was introduced in Qt Mobility Mobility 1.2. Returns the type of keyboards found. This documentation was introduced in Qt Mobility Mobility 1.2. Returns the QSystemDeviceInfo::LockTypeFlags type of lock state the device might be in. The LockType must be currently active not just enabled. This documentation was introduced in Qt Mobility Mobility 1.2. Returns the name of the manufacturer of this device. In the case of desktops, the name of the vendor of the motherboard. This documentation was introduced in Qt Mobility Mobility 1.2. Returns the active profile's message ringtone volume. From 0 to 100. This documentation was introduced in Qt Mobility Mobility 1.2. Returns the model information of the device. In the case of desktops where no model information is present, the CPU architect, such as i686, and machine type, such as Server, Desktop or Laptop. This documentation was introduced in Qt Mobility Mobility 1.2. Use the monitorBatteryLevelChanges signal. This documentation was introduced in Qt Mobility Mobility 1.2. Use the monitorBatteryStatusChanges signal. This documentation was introduced in Qt Mobility Mobility 1.2. Use the bluetoothStateChanges signal. This documentation was introduced in Qt Mobility Mobility 1.2. Use the monitorCurrentProfileChanges signal. This documentation was introduced in Qt Mobility Mobility 1.2. Start the connection for the keyboardFlipped signal. This documentation was introduced in Qt Mobility Mobility 1.2. Start the connection for the lockStatusChanged signal. This documentation was introduced in Qt Mobility Mobility 1.2. Use the monitorPowerStateChanges signal. This documentation was introduced in Qt Mobility Mobility 1.2. Use the thermalStateChanges signal. This documentation was introduced in Qt Mobility Mobility 1.2. Start the connection for the wirelessKeyboardConnected signal. This documentation was introduced in Qt Mobility Mobility 1.2. Returns the whether he primary keypad or keyboard light is on. This documentation was introduced in Qt Mobility Mobility 1.2. Returns the product name of the device. In the case where no product information is available, an empty string will be returned. This documentation was introduced in Qt Mobility Mobility 1.2. Returns the whether he secondary keypad or keyboard light is on. This documentation was introduced in Qt Mobility Mobility 1.2. Returns the QSystemDeviceInfo::simStatus status of SIM card. This documentation was introduced in Qt Mobility Mobility 1.2. Returns a unique identifier for the machine. Depending on security enforcement on platform, this may return a non unique number, or 0. This documentation was introduced in Qt Mobility Mobility 1.2. Returns the whether the active profile's vibration is active. This documentation was introduced in Qt Mobility Mobility 1.2. Returns the active profile's voice ringtone volume. From 0 to 100. This documentation was introduced in Qt Mobility Mobility 1.2. Signal DocumentationThis handler is called when battery level has changed. This documentation was introduced in Qt Mobility Mobility 1.1. This handler is called when battery status has changed. This documentation was introduced in Qt Mobility Mobility 1.1. This handler is called when bluetooth power state has changed. This documentation was introduced in Qt Mobility Mobility 1.1. This handler is called when current device profile has changed. This documentation was introduced in Qt Mobility Mobility 1.1. This signal is emitted whenever the device lock state changes This documentation was introduced in Qt Mobility Mobility 1.2. This signal is emitted whenever a phone flips open. This documentation was introduced in Qt Mobility Mobility 1.2. This signal is emitted whenever the lock state changes This documentation was introduced in Qt Mobility Mobility 1.2. This handler is called when the power state has changed. This documentation was introduced in Qt Mobility Mobility 1.1. This handler is called when thermal state has changed. This documentation was introduced in Qt Mobility Mobility 1.2. This signal is emitted whenever a wireless keyboard is connected This documentation was introduced in Qt Mobility Mobility 1.2. |
Publicité
Best OfActualités les plus luesSemaine
Mois
Année
![]()
![]() Le blog Digia au hasard![]() Créer des applications avec un style Metro avec Qt, exemples en QML et C++, un article de Digia Qt traduit par Thibaut CuvelierLe blog Digia est l'endroit privilégié pour la communication sur l'édition commerciale de Qt, où des réponses publiques sont apportées aux questions les plus posées au support. Lire l'article.
CommunautéRessources
Liens utilesContact
Qt dans le magazine |
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtmobility-1.2 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com