QSystemNetworkInfo Class ReferenceThe QSystemNetworkInfo class provides access to network information from the system. More... #include <QSystemNetworkInfo> Inherits QObject. Public Types
Properties
Public Functions
Signals
Static Public Members
Additional Inherited Members
Detailed DescriptionThe QSystemNetworkInfo class provides access to network information from the system. Member Type Documentation
flags QSystemNetworkInfo::NetworkModes |
Constant | Value | Description |
---|---|---|
QSystemNetworkInfo::UnknownMode | 0 | Unknown network.or netowrk error. |
QSystemNetworkInfo::GsmMode | 1 | Global System for Mobile (GSM) network. |
QSystemNetworkInfo::CdmaMode | 2 | Code division multiple access (CDMA) network. |
QSystemNetworkInfo::WcdmaMode | 3 | Wideband Code Division Multiple Access (W-CDMA) network. |
QSystemNetworkInfo::WlanMode | 4 | Wireless Local Area Network (WLAN) network. |
QSystemNetworkInfo::EthernetMode | 5 | Wired Local Area network. |
QSystemNetworkInfo::BluetoothMode | 6 | Bluetooth network. |
QSystemNetworkInfo::WimaxMode | 7 | Wimax network. |
The NetworkModes type is a typedef for QFlags<NetworkMode>. It stores an OR combination of NetworkMode values.
This enum describes the status of the network connection:
Constant | Value | Description |
---|---|---|
QSystemNetworkInfo::UndefinedStatus | 0 | There is no network device, or error. |
QSystemNetworkInfo::NoNetworkAvailable | 1 | There is no network available. |
QSystemNetworkInfo::EmergencyOnly | 2 | Emergency calls only. |
QSystemNetworkInfo::Searching | 3 | Searching for or connecting with the network. |
QSystemNetworkInfo::Busy | 4 | Network is busy. |
QSystemNetworkInfo::Connected | 5 | Connected to newtwork. |
QSystemNetworkInfo::HomeNetwork | 6 | On Home Network. |
QSystemNetworkInfo::Denied | 7 | Network access denied. |
QSystemNetworkInfo::Roaming | 8 | On Roaming network. |
This property holds the devices Cell ID Returns the Cell ID of the connected tower or based station.
Access functions:
int | cellId () |
This property holds the current MCC.
Returns the current Mobile Country Code. In the case of none such as a Desktop, an empty string. /
Access functions:
QString | currentMobileCountryCode () |
This property holds the current MNC.
Returns the current Mobile Network Code. In the case of none such as a Desktop, an empty string.
Access functions:
QString | currentMobileNetworkCode () |
This property holds the home MNC.
Returns the home Mobile Network Code. In the case of none such as a Desktop, an empty string.
Access functions:
QString | homeMobileCountryCode () |
This property holds the home MCC.
Returns the home Mobile Country Code. In the case of none such as a Desktop, an empty string.
Access functions:
QString | homeMobileNetworkCode () |
This property holds the LAC.
Returns the Location Area Code. In the case of none such as a Desktop, an empty string.
Access functions:
int | locationAreaCode () |
Constructs a QSystemNetworkInfo object with the given parent.
Destroys the QSystemNetworkInfo object.
This signal is emitted whenever the Mobile Country Code changes, specified by mcc.
This signal is emitted whenever the network Mobile Network Code changes, specified by mnc.
Returns the first found QNetworkInterface for type mode.
Returns the MAC address for the interface servicing the network mode.
This signal is emitted whenever the network mode changes, specified by mode.
Returns the name of the operator for the network mode. For wlan this returns the network's current SSID. In the case of no network such as a desktop, an empty string.
This signal is emitted whenever the network mode name changes, specified by netName.
Returns the strength of the network signal, per network mode , 0 - 100 linear scaling, or -1 in the case of unknown network mode or error.
In the case of QSystemNetworkInfo::EthMode, it will either be 100 for carrier active, or 0 for when there is no carrier or cable connected.
This signal is emitted whenever the network mode signal strength changes, specified by strength.
Returns the status of the network mode.
This signal is emitted whenever the network status of mode changes, specified by status.
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.0-tp | |
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 ! |
Copyright © 2000-2012 - www.developpez.com