QDeviceInfo ClassThe QDeviceInfo class provides various information of the system. More... #include <QDeviceInfo> Inherits: QObject. Public Types
Properties
Public Functions
Signals
Additional Inherited Members
Detailed DescriptionThe QDeviceInfo class provides various information of the system. Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QDeviceInfo::BluetoothFeature | 0 | Bluetooth feature. |
QDeviceInfo::CameraFeature | 1 | Camera feature. |
QDeviceInfo::FmRadioFeature | 2 | Frequency modulation (FM) radio feature. |
QDeviceInfo::FmTransmitterFeature | 3 | Frequency modulation (FM) radio transmitter feature. |
QDeviceInfo::InfraredFeature | 4 | Infrared communication feature. |
QDeviceInfo::LedFeature | 5 | Light-emitting diode (LED) feature. |
QDeviceInfo::MemoryCardFeature | 6 | Memory card feature. |
QDeviceInfo::UsbFeature | 7 | Universal system bus (USB) feature. |
QDeviceInfo::VibrationFeature | 8 | Vibration feature. |
QDeviceInfo::WlanFeature | 9 | Wireless local area network (WLAN) feature. |
QDeviceInfo::SimFeature | 10 | Subscriber identity module (SIM) feature. |
QDeviceInfo::PositioningFeature | 11 | Positioning feature, e.g. Global Positioning System (GPS). |
QDeviceInfo::VideoOutFeature | 12 | Video out feature. |
QDeviceInfo::HapticsFeature | 13 | Haptics feature, the platform can provide audio and/or visual and/or vibration feedback. |
QDeviceInfo::NfcFeature | 14 | Near Field Communication (NFC) feature. |
This enum describes lock type on the device.
Constant | Value | Description |
---|---|---|
QDeviceInfo::NoLock | 0 | No lock. |
QDeviceInfo::PinLock | 0x0000001 | Device can be locked by PIN code or password. |
QDeviceInfo::TouchOrKeyboardLock | 0x0000002 | Device can be locked by touch or keyboard. |
QDeviceInfo::UnknownLock | 0x0000004 | lock types requested but no result received yet. |
The LockTypeFlags type is a typedef for QFlags<LockType>. It stores an OR combination of LockType values.
This enum describes the thermal state:
Constant | Value | Description |
---|---|---|
QDeviceInfo::UnknownThermal | 0 | The thermal state is unknown. |
QDeviceInfo::NormalThermal | 1 | The thermal state is normal. |
QDeviceInfo::WarningThermal | 2 | The thermal state is warning. |
QDeviceInfo::AlertThermal | 3 | The thermal state is alert. |
QDeviceInfo::ErrorThermal | 4 | The thermal state is error. |
This enum describes the version component.
Constant | Value | Description |
---|---|---|
QDeviceInfo::Os | 0 | Operating system version. For Linux, it returns the version of the distribution if any. |
QDeviceInfo::Firmware | 1 | Version of (flashable) system as a whole. For Linux, it's the version of the kernel. |
This property holds the activated lock types.
The current activated lock types of the device. It suggests that these lock types are also enabled.
Access functions:
QDeviceInfo::LockTypeFlags | activatedLocks() const |
Notifier signal:
void | activatedLocksChanged(QDeviceInfo::LockTypeFlags types) |
This property holds the enabled lock types.
The current lock types that are enabled on the device. Note that it doesn't mean the device is currently locked.
Access functions:
QDeviceInfo::LockTypeFlags | enabledLocks() const |
Notifier signal:
void | enabledLocksChanged(QDeviceInfo::LockTypeFlags types) |
This property holds the thermal state.
The current thermal state of the device. If there are more than one thermal zone devices available, the state of the most critical one is reported.
Access functions:
QDeviceInfo::ThermalState | thermalState() const |
Notifier signal:
void | thermalStateChanged(QDeviceInfo::ThermalState state) |
Constructs a QDeviceInfo object with the given parent.
Destroys the object
Returns true if the feature is supported, otherwise false.
Returns the International Mobile Equipment Identity (IMEI) of the given interface on the device. In case of error, or the information is not available, an empty string is returned.
Returns the count of available International Mobile Equipment Identity (IMEI) of the device. In case of error, or the information is not available, -1 is returned.
Returns the name of the manufacturer of this device, or the name of the vendor of the motherboard as a fallback. In case of error, or the information is not available, an empty string is returned.
Returns the model information of the device, e.g. N8, or the CPU architect as a fallback. In case of error, or the information is not available, an empty string is returned.
Returns the internal product name of the device, e.g. RM-774. In case of error, or the information is not available, an empty string is returned.
For Linux, it returns the codename of the distribution if any.
Returns a unique identifier for the device, or an empty string if on error or not available.
Returns the version of type. In case of error, or the version is unknown, an empty string is returned.