Exposed as sysinfo.generic. More...
#include <GenericSystemInfoScriptInterface>
enum | BatteryStatus { NoBatteryLevel, BatteryCritical, BatteryVeryLow, BatteryLow, BatteryNormal } |
enum | Feature { BluetoothFeature, CameraFeature, FmradioFeature, IrFeature, ..., HapticsFeature } |
enum | InputMethod { Keys, Keypad, Keyboard, SingleTouch, MultiTouch, Mouse } |
flags | InputMethodFlags |
enum | PowerState { UnknownPower, BatteryPower, WallPower, WallPowerChargingBattery } |
enum | Profile { UnknownProfile, SilentProfile, NormalProfile, LoudProfile, ..., CustomProfile } |
enum | SimStatus { SimNotAvailable, SingleSimAvailable, DualSimAvailable, SimLocked } |
enum | Version { Os, QtCore, Firmware } |
|
|
GenericSystemInfoScriptInterface ( GenericSystemInfoUi * ui ) | |
~GenericSystemInfoScriptInterface () | |
QStringList | availableLanguages () const |
int | batteryLevel () const |
GenericSystemInfoScriptInterface::BatteryStatus | batteryStatus () const |
int | colorDepth ( int screen = 0 ) const |
QString | currentCountryCode () const |
QString | currentLanguage () const |
GenericSystemInfoScriptInterface::PowerState | currentPowerState () const |
GenericSystemInfoScriptInterface::Profile | currentProfile () const |
int | displayBrightness ( int screen = 0 ) const |
bool | hasFeature ( GenericSystemInfoScriptInterface::Feature f ) const |
QString | imei () const |
QString | imsi () const |
GenericSystemInfoScriptInterface::InputMethodFlags | inputMethod () const |
bool | isDeviceLocked () const |
QString | manufacturer () const |
QString | model () const |
QString | productName () const |
GenericSystemInfoScriptInterface::SimStatus | simStatus () const |
QString | version ( GenericSystemInfoScriptInterface::Version v, const QString & param = "" ) const |
void | addAvailableLanguage ( const QString & v ) |
void | removeAllAvailableLanguages () |
bool | removeAvailableLanguage ( const QString & v ) |
void | setAvailableLanguages ( const QStringList & v ) |
void | setBatteryLevel ( int v ) |
void | setColorDepth ( int depth ) |
void | setCurrentCountryCode ( const QString & v ) |
void | setCurrentLanguage ( const QString & v ) |
void | setCurrentPowerState ( GenericSystemInfoScriptInterface::PowerState v ) |
void | setCurrentProfile ( GenericSystemInfoScriptInterface::Profile v ) |
void | setDeviceLocked ( bool v ) |
void | setDisplayBrightness ( int brightness ) |
void | setFeature ( GenericSystemInfoScriptInterface::Feature f, bool enabled ) |
void | setImei ( const QString & v ) |
void | setImsi ( const QString & v ) |
void | setInputMethod ( GenericSystemInfoScriptInterface::InputMethodFlags v ) |
void | setManufacturer ( const QString & v ) |
void | setModel ( const QString & v ) |
void | setProductName ( const QString & v ) |
void | setSimStatus ( GenericSystemInfoScriptInterface::SimStatus v ) |
void | setVersion ( GenericSystemInfoScriptInterface::Version v, const QString & to ) |
Exposed as sysinfo.generic.
The InputMethodFlags type is a typedef for QFlags<InputMethod>. It stores an OR combination of InputMethod values.
Access functions:
QStringList | availableLanguages () const |
void | setAvailableLanguages ( const QStringList & v ) |
Access functions:
int | batteryLevel () const |
void | setBatteryLevel ( int v ) |
Access functions:
int | colorDepth ( int screen = 0 ) const |
void | setColorDepth ( int depth ) |
Access functions:
QString | currentCountryCode () const |
void | setCurrentCountryCode ( const QString & v ) |
Access functions:
QString | currentLanguage () const |
void | setCurrentLanguage ( const QString & v ) |
Access functions:
GenericSystemInfoScriptInterface::PowerState | currentPowerState () const |
void | setCurrentPowerState ( GenericSystemInfoScriptInterface::PowerState v ) |
Access functions:
GenericSystemInfoScriptInterface::Profile | currentProfile () const |
void | setCurrentProfile ( GenericSystemInfoScriptInterface::Profile v ) |
Access functions:
bool | isDeviceLocked () const |
void | setDeviceLocked ( bool v ) |
Access functions:
int | displayBrightness ( int screen = 0 ) const |
void | setDisplayBrightness ( int brightness ) |
Access functions:
QString | imei () const |
void | setImei ( const QString & v ) |
Access functions:
QString | imsi () const |
void | setImsi ( const QString & v ) |
Access functions:
GenericSystemInfoScriptInterface::InputMethodFlags | inputMethod () const |
void | setInputMethod ( GenericSystemInfoScriptInterface::InputMethodFlags v ) |
Access functions:
QString | manufacturer () const |
void | setManufacturer ( const QString & v ) |
Access functions:
QString | model () const |
void | setModel ( const QString & v ) |
Access functions:
QString | productName () const |
void | setProductName ( const QString & v ) |
Access functions:
GenericSystemInfoScriptInterface::SimStatus | simStatus () const |
void | setSimStatus ( GenericSystemInfoScriptInterface::SimStatus v ) |
See also hasFeature().
See also version().
See also setVersion().