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  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QSystemInfo Class Reference

The QSystemInfo class provides access to various general information from the system. More...

 #include <QSystemInfo>

Inherits: QObject.

Note: All functions in this class are reentrant.

This class was introduced in Qt Mobility 1.0.

Public Types

enum Feature { BluetoothFeature, CameraFeature, FmradioFeature, IrFeature, ..., FmTransmitterFeature }
enum Version { Os, QtCore, Firmware, QtMobility }

Properties

  • 1 property inherited from QObject

Public Functions

QSystemInfo ( QObject * parent = 0 )
virtual ~QSystemInfo ()
QStringList availableLanguages ()
QString currentCountryCode ()
QString currentLanguage ()
bool hasFeatureSupported ( QSystemInfo::Feature feature )
QString version ( QSystemInfo::Version type, const QString & parameter = QString() )
  • 29 public functions inherited from QObject

Signals

void currentLanguageChanged ( const QString & lang )

Additional Inherited Members

  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 4 static public members inherited from QObject
  • 7 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The QSystemInfo class provides access to various general information from the system.

Note: All functions in this class are reentrant.

Warning: On Symbian this class does not support QObject::moveToThread().

Member Type Documentation

enum QSystemInfo::Feature

This enum describes the features of the device or computer.

ConstantValueDescription
QSystemInfo::BluetoothFeature0Bluetooth feature available.
QSystemInfo::CameraFeature1Camera feature available.
QSystemInfo::FmradioFeature2FM Radio feature available.
QSystemInfo::IrFeature3Infrared feature available.
QSystemInfo::LedFeature4LED's feature available.
QSystemInfo::MemcardFeature5Memory card feature available.
QSystemInfo::UsbFeature6Universal System Bus (USB) feature available.
QSystemInfo::VibFeature7Vibration feature available.
QSystemInfo::WlanFeature8Wireless Local Area Network (WLAN) feature available.
QSystemInfo::SimFeature9Subscriber Identity Module (SIM) available.
QSystemInfo::LocationFeature10Global Positioning System (GPS) and/or other location feature available.
QSystemInfo::VideoOutFeature11Video out feature available.
QSystemInfo::HapticsFeature12Haptics feature available.
QSystemInfo::FmTransmitterFeature13FM Radio transmitter available. Since 1.2

enum QSystemInfo::Version

This enum describes the version component.

ConstantValueDescription
QSystemInfo::Os1Operating system version / platform ID.
QSystemInfo::QtCore2Qt library version.
QSystemInfo::Firmware3Version of (flashable) system as a whole.
QSystemInfo::QtMobility4QtMobility library version. Since 1.1

Property Documentation

availableLanguages : const QStringList

This property holds list of available languages.

Returns a QStringList of available Qt language translations in 2 letter ISO 639-1 format. If the Qt translations cannot be found, returns the current system language.

This property was introduced in Qt Mobility 1.0.

Access functions:

QStringList availableLanguages ()

currentCountryCode : const QString

This property holds the current locale country code.

Returns the 2 letter ISO 3166-1 for the current country code.

This property was introduced in Qt Mobility 1.0.

Access functions:

QString currentCountryCode ()

currentLanguage : const QString

This property holds the current Language.

Returns the current language in 2 letter ISO 639-1 format.

This property was introduced in Qt Mobility 1.0.

Access functions:

QString currentLanguage ()

Notifier signal:

void currentLanguageChanged ( const QString & lang )

Member Function Documentation

QSystemInfo::QSystemInfo ( QObject * parent = 0 )

Constructs a QSystemInfo object with the given parent.

QSystemInfo::~QSystemInfo () [virtual]

Destroys the QSystemInfo object

void QSystemInfo::currentLanguageChanged ( const QString & lang ) [signal]

This signal is emitted whenever the current language changes, specified by lang, which is in 2 letter, ISO 639-1 specification form.

This function was introduced in Qt Mobility 1.0.

bool QSystemInfo::hasFeatureSupported ( QSystemInfo::Feature feature )

Returns true if the QSystemInfo::Feature feature is supported, otherwise false.

This function was introduced in Qt Mobility 1.0.

QString QSystemInfo::version ( QSystemInfo::Version type, const QString & parameter = QString() )

Returns the version of QSystemInfo::Version type, with optional platform dependent parameter as a string.

In case of error or not available, an empty string is returned.

This function was introduced in Qt Mobility 1.0.

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

Hébergement Web