Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

QServiceNumbers Class Reference
[QtTelephonyModule]

The QServiceNumbers class provides access to GSM service numbers such as voice mail and SMS service center. More...

    #include <QServiceNumbers>

Inherits QCommInterface.

Inherited by QModemServiceNumbers.

Public Types

Public Functions

Public Slots

Signals

Additional Inherited Members


Detailed Description

The QServiceNumbers class provides access to GSM service numbers such as voice mail and SMS service center.

The value of service numbers may be queried with requestServiceNumber(). The telephony service will respond by emitting the serviceNumber() signal.

The value of service numbers may be changed with setServiceNumber(). The telephony service will respond by emitting the setServiceNumberResult() signal, indicating whether the request succeeded or failed.

See also QCommInterface.


Member Type Documentation

enum QServiceNumbers::NumberId

This enum defines the service number to query or set with QServiceNumbers.

ConstantValueDescription
QServiceNumbers::VoiceMail0Query or set the voice mail number on the SIM.
QServiceNumbers::SmsServiceCenter1Query or set the SMS service center number.
QServiceNumbers::SubscriberNumber2Query or set the subscriber's number in the SIM.


Member Function Documentation

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

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

See also QCommServiceManager::supports().

QServiceNumbers::~QServiceNumbers ()

Destroy this service number object.

void QServiceNumbers::requestServiceNumber ( QServiceNumbers::NumberId id )   [virtual slot]

Request the current value of service number id. The service responds by emitting the serviceNumber() signal.

See also serviceNumber() and setServiceNumber().

void QServiceNumbers::serviceNumber ( QServiceNumbers::NumberId id, const QString & number )   [signal]

Signal that is emitted in response to requestServiceNumber(), to report the number associated with id. If number is empty, then the number is not set.

See also requestServiceNumber() and setServiceNumber().

void QServiceNumbers::setServiceNumber ( QServiceNumbers::NumberId id, const QString & number )   [virtual slot]

Sets the value of service number id to number. The service responds by emitting the setServiceNumberResult() signal.

See also setServiceNumberResult(), requestServiceNumber(), and serviceNumber().

void QServiceNumbers::setServiceNumberResult ( QServiceNumbers::NumberId id, QTelephony::Result result )   [signal]

Signal that is emitted to report the result of calling setServiceNumber() for id.

See also setServiceNumber().


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3