| Home · All Classes · Grouped Classes · Annotated · Functions |
The QNetworkRegistration class provides information about network operators. More...
#include <QNetworkRegistration>
Inherits QCommInterface.
Inherited by QNetworkRegistrationServer.
The QNetworkRegistration class provides information about network operators.
The network registration information that is reported includes the registrationState(), currentOperatorId(), currentOperatorName(), currentOperatorMode(), and currentOperatorTechnology(). On GSM networks, the information may also include the locationAreaCode() and cellId() for the current cell.
All telephony services are expected to implement the QNetworkRegistration interface so that client applications can be made aware of when a service can be used to make phone calls or perform other telephony operations. For simple telephony services (e.g. VoIP providers), it is sufficient that registrationState() be either RegistrationNone or RegistrationHome to indicate when the network is registered.
See also QNetworkRegistrationServer and QCommInterface.
Construct a new network registration object for service and attach it to parent. The object will be created in client mode if mode is Client, or server mode otherwise.
If service is empty, this class will use the first available service that supports network registration. If there is more than one service that supports network registration, the caller should enumerate them with QCommServiceManager::supports() and create separate QNetworkRegistration objects for each.
See also QCommServiceManager::supports().
Destroy this network registration object.
Signal that is emitted when a requestAvailableOperators() request completes. The opers parameter contains the list of available operators.
See also requestAvailableOperators().
Returns the GSM cell id, or ci. Returns -1 if the cell id is unknown. The locationChanged() signal can be used to detect changes in this value.
See also locationAreaCode() and locationChanged().
Signal that is emitted when the current operator information changes.
See also currentOperatorId(), currentOperatorName(), currentOperatorMode(), and currentOperatorTechnology().
Returns the identifier of the current network operator, which can be used in a setCurrentOperator() request do change between OperatorModeAutomatic and OperatorModeManual.
See also currentOperatorMode(), currentOperatorTechnology(), and currentOperatorChanged().
Returns the mode that the current network operator is operating in.
See also currentOperatorName(), currentOperatorTechnology(), and currentOperatorChanged().
Returns the name of the current network operator.
See also currentOperatorMode(), currentOperatorTechnology(), and currentOperatorChanged().
Returns the technology used by the current network operator (GSM, UTRAN, VoIP, etc).
See also currentOperatorName(), currentOperatorMode(), and currentOperatorChanged().
Returns true if the network registration service has initialized the modem and is ready to attempt to register to the network; false otherwise. Attempts to change the operator with setCurrentOperator() will always fail before this function returns true.
See also initializedChanged().
Signal that is emitted when the state of initialized() changes.
See also initialized().
Returns the GSM location area code, or lac. Returns -1 if the location area code is unknown. The locationChanged() signal can be used to detect changes in this value.
See also cellId() and locationChanged().
Signal that is emitted when the locationAreaCode() or cellId() changes.
If both the registrationState() and the location has changed, then registrationStateChanged() will be sent before locationChanged(), but the new location will already be available in slots connected to registrationStateChanged().
See also locationAreaCode() and cellId().
Returns the current network registration state.
See also registrationStateChanged().
Signal that is emitted when the registration state changes.
See also registrationState().
Request a list of all available network operators. The server will respond with the availableOperators() signal.
The preferred operator list on the SIM card can be accessed with the QPreferredNetworkOperators class.
See also availableOperators() and QPreferredNetworkOperators.
Sets the current network operator information to mode, id, and technology. The server will respond with the setCurrentOperatorResult() signal when the request completes.
If the request succeeds, then the client may also receive the currentOperatorChanged() signal to indicate the newly selected values. The currentOperatorChanged() signal may be suppressed if the request succeeded, but the new values are the same as the previous ones.
See also setCurrentOperatorResult().
Signal that is emitted when a setCurrentOperator() request completes. The result parameter indicates the result of the request.
See also setCurrentOperator().
| Copyright © 2007 Trolltech | Trademarks | Qtopia 4.2.5 |