Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

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.


read-onlythermalState : enumeration

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.


string DeviceInfo::imei(int interface)

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.


string DeviceInfo::model()

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.


string DeviceInfo::version(Version type)

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.

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 5.0-snapshot
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 !
 
 
 
 
Partenaires

Hébergement Web