Home · All Classes · Grouped Classes · Annotated · Functions

QGprsNetworkRegistration Class Reference

The QGprsNetworkRegistration class provides information about GPRS network registration. More...

    #include <QGprsNetworkRegistration>

Inherits QCommInterface.

Inherited by QGprsNetworkRegistrationServer.

Public Functions

Signals

Additional Inherited Members


Detailed Description

The QGprsNetworkRegistration class provides information about GPRS network registration.

The QNetworkRegistration class provides information about general GSM network registration. The QGprsNetworkRegistration class provides information about an ongoing GPRS session.

See also QNetworkRegistration, QGprsNetworkRegistrationServer, and QCommInterface.


Member Function Documentation

QGprsNetworkRegistration::QGprsNetworkRegistration ( const QString & service = QString(), QObject * parent = 0, QCommInterface::Mode mode = Client )

Construct a new GPRS 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 GPRS network registration. If there is more than one service that supports GPRS network registration, the caller should enumerate them with QCommServiceManager::supports() and create separate QGprsNetworkRegistration objects for each.

See also QCommServiceManager::supports().

QGprsNetworkRegistration::~QGprsNetworkRegistration ()

Destroy this GPRS network registration object.

int QGprsNetworkRegistration::cellId () const

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().

int QGprsNetworkRegistration::locationAreaCode () const

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().

void QGprsNetworkRegistration::locationChanged ()   [signal]

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().

QTelephony::RegistrationState QGprsNetworkRegistration::registrationState () const

Returns the current GPRS network registration state.

See also registrationStateChanged().

void QGprsNetworkRegistration::registrationStateChanged ()   [signal]

Signal that is emitted when the registration state changes.

See also registrationState().


Copyright © 2007 Trolltech Trademarks
Qtopia 4.2.5