DeviceInfo
The DeviceInfo element provides various information about the device. More...
Inherits QtObject
Properties
Methods
Detailed Description
Property Documentation
read-onlyactivatedLocks : flag |
This property holds the activated locks. Available locks include:
- DeviceInfo.NoLock - No lock.
- DeviceInfo.PinLock - Device can be locked by PIN code or password.
- DeviceInfo.TouchOrKeyboardLock - Device can be locked by touch or keyboard.
- DeviceInfo.UnknownLock - Lock types requested but no result received yet.
read-onlyenabledLocks : flag |
This property holds the enabled locks. Available locks include:
- DeviceInfo.NoLock - No lock.
- DeviceInfo.PinLock - Device can be locked by PIN code or password.
- DeviceInfo.TouchOrKeyboardLock - Device can be locked by touch or keyboard.
- DeviceInfo.UnknownLock - Lock types requested but no result received yet.
monitorThermalState : bool |
This property holds whether or not monitor the change of thermal state.
This property holds the thermal state. Possible values are:
- DeviceInfo.UnknownThermal - The thermal state is unknown.
- DeviceInfo.NormalThermal - The thermal state is normal.
- DeviceInfo.WarningThermal - The thermal state is warning.
- DeviceInfo.AlertThermal - The thermal state is alert.
- DeviceInfo.ErrorThermal - The thermal state is error.
Method Documentation
bool DeviceInfo::hasFeature(Feature feature) |
Returns true if the feature is supported, otherwise false. The following features can be queried:
- DeviceInfo.BluetoothFeature - Bluetooth feature.
- DeviceInfo.CameraFeature - Camera feature.
- DeviceInfo.FmRadioFeature - Frequency modulation (FM) radio feature.
- DeviceInfo.FmTransmitterFeature - Frequency modulation (FM) radio transmitter feature.
- DeviceInfo.InfraredFeature - Infrared communication feature.
- DeviceInfo.LedFeature - Light-emitting diode (LED) feature.
- DeviceInfo.MemoryCardFeature - Memory card feature.
- DeviceInfo.UsbFeature - Universal system bus (USB) feature.
- DeviceInfo.VibrationFeature - Vibration feature.
- DeviceInfo.WlanFeature - Wireless local area network (WLAN) feature.
- DeviceInfo.SimFeature - Subscriber identity module (SIM) feature.
- DeviceInfo.PositioningFeature - Positioning feature, e.g. Global Positioning System (GPS).
- DeviceInfo.VideoOutFeature - Video out feature.
- DeviceInfo.HapticsFeature - Haptics feature, the platform can provide audio and/or visual and/or vibration feedback.
- DeviceInfo.NfcFeature - Near Field Communication (NFC) feature
int DeviceInfo::imeiCount() |
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 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.
string DeviceInfo::manufacturer() |
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.
string DeviceInfo::productName() |
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.
string DeviceInfo::uniqueDeviceID() |
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. The following versions can be queried:
- DeviceInfo.Os - Operating system version. For Linux, it returns the version of the distribution if any.
- DeviceInfo.Firmware - Version of (flashable) system as a whole. For Linux, it's the version of the kernel.
|