QSystemDeviceInfo Class ReferenceThe QSystemDeviceInfo class provides access to device information from the system. More... #include <QSystemDeviceInfo> Inherits QObject. Public Types
Properties
Public Functions
Signals
Static Public Members
Additional Inherited Members
Detailed DescriptionThe QSystemDeviceInfo class provides access to device information from the system. Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QSystemDeviceInfo::NoBatteryLevel | 0 | Battery level undetermined. |
QSystemDeviceInfo::BatteryCritical | 1 | Battery level is critical 3% or less. |
QSystemDeviceInfo::BatteryVeryLow | 2 | Battery level is very low, 10% or less. |
QSystemDeviceInfo::BatteryLow | 3 | Battery level is low 40% or less. |
QSystemDeviceInfo::BatteryNormal | 4 | Battery level is above 40%. |
This enum describes the device method of user input.
Constant | Value | Description |
---|---|---|
QSystemDeviceInfo::Keys | 0x0000001 | Device has key/buttons. |
QSystemDeviceInfo::Keypad | 0x0000002 | Device has keypad (1,2,3, etc). |
QSystemDeviceInfo::Keyboard | 0x0000004 | Device has qwerty keyboard. |
QSystemDeviceInfo::SingleTouch | 0x0000008 | Device has single touch screen. |
QSystemDeviceInfo::MultiTouch | 0x0000010 | Device has muti touch screen. |
QSystemDeviceInfo::Mouse | 0x0000020 | Device has a mouse. |
The InputMethodFlags type is a typedef for QFlags<InputMethod>. It stores an OR combination of InputMethod values.
This enum describes the power state:
Constant | Value | Description |
---|---|---|
QSystemDeviceInfo::UnknownPower | 0 | Power error. |
QSystemDeviceInfo::BatteryPower | 1 | On battery power. |
QSystemDeviceInfo::WallPower | 2 | On wall power. |
QSystemDeviceInfo::WallPowerChargingBattery | 3 | On wall power and charging main battery. |
This enum describes the current operating profile of the device or computer.
Constant | Value | Description |
---|---|---|
QSystemDeviceInfo::UnknownProfile | 0 | Profile unknown or error. |
QSystemDeviceInfo::SilentProfile | 1 | Silent profile. |
QSystemDeviceInfo::NormalProfile | 2 | Normal profile. |
QSystemDeviceInfo::LoudProfile | 3 | Loud profile. |
QSystemDeviceInfo::VibProfile | 4 | Vibrate profile. |
QSystemDeviceInfo::OfflineProfile | 5 | Offline profile. |
QSystemDeviceInfo::PowersaveProfile | 6 | Powersave profile. |
QSystemDeviceInfo::CustomProfile | 7 | Custom profile. |
This enum describes the status is the sim card or cards.
Constant | Value | Description |
---|---|---|
QSystemDeviceInfo::SimNotAvailable | 0 | SIM is not available on this device. |
QSystemDeviceInfo::SingleSimAvailable | 1 | One SIM card is available on this. |
QSystemDeviceInfo::DualSimAvailable | 2 | Two SIM cards are available on this device. |
QSystemDeviceInfo::SimLocked | 3 | Device has SIM lock enabled. |
This property holds the battery level.
Returns the battery charge level as percentage 1 - 100 scale.
Access functions:
int | batteryLevel () const |
This property holds the battery status.
Returns the battery charge status.
Access functions:
QSystemDeviceInfo::BatteryStatus | batteryStatus () |
This property holds the power state.
Gets the current QSystemDeviceInfo::currentPowerState state.
Access functions:
QSystemDeviceInfo::PowerState | currentPowerState () |
This property holds the device profile Gets the current QSystemDeviceInfo::currentProfile device profile.
Access functions:
QSystemDeviceInfo::Profile | currentProfile () |
This property holds the IMEI.
Returns the International Mobile Equipment Identity (IMEI), or a null QString in the case of none.
Access functions:
QString | imei () |
This property holds the IMSI.
Returns the International Mobile Subscriber Identity (IMSI), or a null QString in the case of none.
Access functions:
QString | imsi () |
This property holds the supported inputmethods.
Returns the QSystemDeviceInfo::InputMethodFlags InputMethodType that the system uses.
Access functions:
QSystemDeviceInfo::InputMethodFlags | inputMethodType () |
This property holds device lock.
Returns true if the device is locked, otherwise false.
Access functions:
bool | isDeviceLocked () |
This property holds the manufacture's name.
Returns the name of the manufacturer of this device. In the case of desktops, the name of the vendor of the motherboard.
Access functions:
QString | manufacturer () |
This property holds the model name.
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.
Access functions:
QString | model () |
This property holds the product name.
Returns the product name of the device. In the case where no product information is available,
Access functions:
QString | productName () |
This property holds the status of the sim card. Returns the QSystemDeviceInfo::simStatus status of SIM card.
Access functions:
QSystemDeviceInfo::SimStatus | simStatus () |
Constructs a QSystemDeviceInfo with the given parent.
Destroys the QSystemDeviceInfo object.
This signal is emitted when battery level has changed. level is the new level.
This signal is emitted when battery status has changed. status is the new status.
This signal is emitted whenever bluetooth state changes, specified by on.
This signal is emitted whenever the network profile changes, specified by profile.
This signal is emitted when the power state has changed, such as when a phone gets plugged qint32o the wall. state is the new power state.
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.0-tp | |
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