Qt Simulator Manual 1.2.0

GenericSystemInfoScriptInterface Class Reference

Exposed as sysinfo.generic. More...

 #include <GenericSystemInfoScriptInterface>

Public Types

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 }

Properties

Public Functions

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

Public Slots

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 )

Detailed Description

Exposed as sysinfo.generic.

Member Type Documentation

enum GenericSystemInfoScriptInterface::BatteryStatus

enum GenericSystemInfoScriptInterface::Feature

enum GenericSystemInfoScriptInterface::InputMethod
flags GenericSystemInfoScriptInterface::InputMethodFlags

The InputMethodFlags type is a typedef for QFlags<InputMethod>. It stores an OR combination of InputMethod values.

enum GenericSystemInfoScriptInterface::PowerState

enum GenericSystemInfoScriptInterface::Profile

enum GenericSystemInfoScriptInterface::SimStatus

enum GenericSystemInfoScriptInterface::Version

Property Documentation

availableLanguages : QStringList

Access functions:

QStringList availableLanguages () const
void setAvailableLanguages ( const QStringList & v )

batteryLevel : int

Access functions:

int batteryLevel () const
void setBatteryLevel ( int v )

colorDepth : int

Access functions:

int colorDepth ( int screen = 0 ) const
void setColorDepth ( int depth )

currentCountryCode : QString

Access functions:

QString currentCountryCode () const
void setCurrentCountryCode ( const QString & v )

currentLanguage : QString

Access functions:

QString currentLanguage () const
void setCurrentLanguage ( const QString & v )

currentPowerState : PowerState

Access functions:

GenericSystemInfoScriptInterface::PowerState currentPowerState () const
void setCurrentPowerState ( GenericSystemInfoScriptInterface::PowerState v )

currentProfile : Profile

Access functions:

GenericSystemInfoScriptInterface::Profile currentProfile () const
void setCurrentProfile ( GenericSystemInfoScriptInterface::Profile v )

deviceLocked : bool

Access functions:

bool isDeviceLocked () const
void setDeviceLocked ( bool v )

displayBrightness : int

Access functions:

int displayBrightness ( int screen = 0 ) const
void setDisplayBrightness ( int brightness )

imei : QString

Access functions:

QString imei () const
void setImei ( const QString & v )

imsi : QString

Access functions:

QString imsi () const
void setImsi ( const QString & v )

inputMethod : InputMethodFlags

Access functions:

GenericSystemInfoScriptInterface::InputMethodFlags inputMethod () const
void setInputMethod ( GenericSystemInfoScriptInterface::InputMethodFlags v )

manufacturer : QString

Access functions:

QString manufacturer () const
void setManufacturer ( const QString & v )

model : QString

Access functions:

QString model () const
void setModel ( const QString & v )

productName : QString

Access functions:

QString productName () const
void setProductName ( const QString & v )

simStatus : SimStatus

Access functions:

GenericSystemInfoScriptInterface::SimStatus simStatus () const
void setSimStatus ( GenericSystemInfoScriptInterface::SimStatus v )

Member Function Documentation

GenericSystemInfoScriptInterface::GenericSystemInfoScriptInterface ( GenericSystemInfoUi * ui )

GenericSystemInfoScriptInterface::~GenericSystemInfoScriptInterface ()

void GenericSystemInfoScriptInterface::addAvailableLanguage ( const QString & v ) [slot]

GenericSystemInfoScriptInterface::BatteryStatus GenericSystemInfoScriptInterface::batteryStatus () const

bool GenericSystemInfoScriptInterface::hasFeature ( GenericSystemInfoScriptInterface::Feature f ) const

void GenericSystemInfoScriptInterface::removeAllAvailableLanguages () [slot]

bool GenericSystemInfoScriptInterface::removeAvailableLanguage ( const QString & v ) [slot]

void GenericSystemInfoScriptInterface::setFeature ( GenericSystemInfoScriptInterface::Feature f, bool enabled ) [slot]

See also hasFeature().

void GenericSystemInfoScriptInterface::setVersion ( GenericSystemInfoScriptInterface::Version v, const QString & to ) [slot]

See also version().

QString GenericSystemInfoScriptInterface::version ( GenericSystemInfoScriptInterface::Version v, const QString & param = "" ) const

See also setVersion().

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

[0]; s.parentNode.insertBefore(ga, s); })();