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  · 

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.

s.parentNode.insertBefore(ga, s); })(); -->
Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 53
  2. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  3. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  4. BlackBerry 10 : premières images du prochain OS de RIM qui devrait intégrer des widgets et des tuiles inspirées de Windows Phone 0
  5. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  6. Adieu qmake, bienvenue qbs : Qt Building Suite, un outil déclaratif et extensible pour la compilation de projets Qt 17
  7. La rubrique Qt a besoin de vous ! 1
Page suivante

Le blog Digia au hasard

Logo

Déploiement d'applications Qt Commercial sur les tablettes Windows 8

Le blog Digia est l'endroit privilégié pour la communication sur l'édition commerciale de Qt, où des réponses publiques sont apportées aux questions les plus posées au support. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

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 qtsimulator-1.0
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