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.
enum | Feature { BluetoothFeature, CameraFeature, FmradioFeature, IrFeature, ..., FmTransmitterFeature } |
enum | Version { Os, QtCore, Firmware, QtMobility } |
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() ) |
void | currentLanguageChanged ( const QString & lang ) |
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().
This enum describes the features of the device or computer.
Constant | Value | Description |
---|---|---|
QSystemInfo::BluetoothFeature | 0 | Bluetooth feature available. |
QSystemInfo::CameraFeature | 1 | Camera feature available. |
QSystemInfo::FmradioFeature | 2 | FM Radio feature available. |
QSystemInfo::IrFeature | 3 | Infrared feature available. |
QSystemInfo::LedFeature | 4 | LED's feature available. |
QSystemInfo::MemcardFeature | 5 | Memory card feature available. |
QSystemInfo::UsbFeature | 6 | Universal System Bus (USB) feature available. |
QSystemInfo::VibFeature | 7 | Vibration feature available. |
QSystemInfo::WlanFeature | 8 | Wireless Local Area Network (WLAN) feature available. |
QSystemInfo::SimFeature | 9 | Subscriber Identity Module (SIM) available. |
QSystemInfo::LocationFeature | 10 | Global Positioning System (GPS) and/or other location feature available. |
QSystemInfo::VideoOutFeature | 11 | Video out feature available. |
QSystemInfo::HapticsFeature | 12 | Haptics feature available. |
QSystemInfo::FmTransmitterFeature | 13 | FM Radio transmitter available. Since 1.2 |
This enum describes the version component.
Constant | Value | Description |
---|---|---|
QSystemInfo::Os | 1 | Operating system version / platform ID. |
QSystemInfo::QtCore | 2 | Qt library version. |
QSystemInfo::Firmware | 3 | Version of (flashable) system as a whole. |
QSystemInfo::QtMobility | 4 | QtMobility library version. Since 1.1 |
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 () |
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 () |
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 ) |
Constructs a QSystemInfo object with the given parent.
Destroys the QSystemInfo object
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.
Returns true if the QSystemInfo::Feature feature is supported, otherwise false.
This function was introduced in Qt Mobility 1.0.
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.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.