Home · All Classes · Annotated · Functions

QPhoneLine Class Reference

The QPhoneLine class provides an interface to a phone line More...

#include <QPhoneLine>

Inherits QObject.

Public Types

Public Functions

Signals

Static Public Members

Additional Inherited Members


Detailed Description

The QPhoneLine class provides an interface to a phone line

The QPhoneLine class abstracts the idea of a single "line" on the local device. Phones will normally only have one line, but it is theoretically possible to have multiple lines, each with its own list of calls. QString() is used in the constructor to refer to the default line.

The QPhoneLine class keeps a list of all "active" calls: those that are dialing, incoming, or connected. Idle and dropped calls are not reported in this list, and the underlying object will disappear when the last QPhoneCall reference is dropped.

[Aside: identifier instances are used to represent calls because of race conditions. e.g. a pending call arrives, the user accepts, but before the request can be fully processed, the other party hangs up and the real call object disappears. The identifier system avoids dangling references to deallocated objects. Requests to inactive calls will always "fail safe".]

Because of race conditions, callers should not assume that a request (hangup, accept, etc) succeeded without error. Callers should use the state() function to query the actual state after the request.

See also QPhoneCall and QPhoneUtils.


Member Type Documentation

enum QPhoneLine::CallerIdRestrictionOption

enum QPhoneLine::ClassX

This enum lists values that may appear in QPhoneLine::ForwardRec::classx.

ConstantValueDescription
QPhoneLine::Voice1The forwarding rule applies to voice calls
QPhoneLine::Data2The forwarding rule applies to data calls, of all bearer types (specific bearer types can be enabled or disabled using DataCircuitSync, DataCircuitAsync, DedicatedPacketAccess, and DedicatedPADAccess)
QPhoneLine::Fax4The forwarding rule applies to fax calls
QPhoneLine::Sms8The forwarding rule applies to SMS messages
QPhoneLine::DataCircuitSync16The forwarding rule applies to synchronous data circuit bearers
QPhoneLine::DataCircuitAsync32The forwarding rule applies to asynchronous data circuit bearers
QPhoneLine::DedicatedPacketAccess64The forwarding rule applies to dedicated packet access bearers
QPhoneLine::DedicatedPADAccess128The forwarding rule applies to dedicated PAD access bearers

enum QPhoneLine::DataState

This enum lists the flags that may be returned from QPhoneLine::parseDataState()

ConstantValueDescription
QPhoneLine::PPPdStarted( 1<<0 )The pppd daemon has been started. Usually combined with DataActive or DataInactive.
QPhoneLine::PPPdStopped( 1<<1 )The pppd daemon stopped in response to an explicit call on QPhoneLine::stopData()
QPhoneLine::PPPdFailed( 1<<2 )The pppd dameon stopped for some other reason.
QPhoneLine::DataActive( 1<<3 )A data session is currently active.
QPhoneLine::DataInactive( 1<<4 )No data session is currently active.
QPhoneLine::Connecting( 1<<5 )The pppd daemon is attempting to connect. Usually combined with PPPdStarted and DataInactive.
QPhoneLine::ConnectFailed( 1<<6 )The pppd daemon failed in its connection attempt.

enum QPhoneLine::QueryType

This enum defines a number of phone features whose values can be queried or modified by applications. Unless otherwise specified, the format of the queried values will follow the GSM 07.07 and GSM 07.05 response specifications for the AT commands listed in parentheses.

ConstantValueDescription
QPhoneLine::Number0The subscriber's telephone number (AT+CNUM).
QPhoneLine::Manufacturer1The modem's manufacturer identification (AT+CGMI).
QPhoneLine::Model2The modem's model identification (AT+CGMM).
QPhoneLine::Revision3The modem's revision identification (AT+CGMR).
QPhoneLine::Serial4The modem's serial number identification (AT+CGSN).
QPhoneLine::BatteryCharge5The battery charge (AT+CBC). If the value ends in '*', it indicates an unsolicited report of the battery charge value. This negates the need to poll for the value.
QPhoneLine::SignalQuality6The current antenna signal quality (AT+CSQ). If the value ends in '*', it indicates an unsolicited report of the signal quality value. This negates the need to poll for the value.
QPhoneLine::CharacterSet7The current character set used for phone/modem communications (AT+CSCS). Modifiable.
QPhoneLine::SupportedCharacterSets8List of supported character sets (AT+CSCS=?).
QPhoneLine::AdviceOfCharge9The call meter advice of charge value (AT+CAOC=0). If the modem supports unsolicitied advice of charge notifications, then a "notification" signal will be issued every time "+CCCM:" is encountered. The result of explicit queries on "AdviceOfCharge" will be reported via the "queryResult" signal.
QPhoneLine::Registration10The current network registration state (AT+CREG?). This may also be sent as an unsolicited notification.
QPhoneLine::Operator11The current network operator (AT+COPS). Modifiable.
QPhoneLine::AvailableOperators12List of available network operators (AT+COPS=?).
QPhoneLine::PricePerUnit13Price per unit of charge (AT+CPUC). When used in a "modify", the value should be the quoted currency name, a comma, the quoted currency value, a command, and then the quoted SIM PIN2 password. The password is not required for a query. Modifiable.
QPhoneLine::SIMIdentity14The IMI number of the SIM (AT+CIMI).
QPhoneLine::VibrateOnRing15The "vibrate on ring" setting for the phone (AT+CVIB). Modifiable.
QPhoneLine::SilentMode16The "silent mode" for the phone (AT*ESIL). Ericsson only. Modifiable.
QPhoneLine::ServiceCenter17SMS service centre address (AT+CSCA). Modifiable.
QPhoneLine::CallerIdRestriction18Caller ID restriction settings (AT+CLIR). Modifiable.
QPhoneLine::LockControlSurface19Adjust the control surface lock setting (AT+CLCK="CS"). Modifiable.
QPhoneLine::LockPhoneToSimCard20Adjust the setting that locks the phone to a particular SIM card (AT+CLCK="PS"). Modifiable.
QPhoneLine::LockSimCard21Adjust the setting that locks the SIM (AT+CLCK="SC"). Modifiable.
QPhoneLine::BarrAllOutgoing22Adjust the "Barr all outgoing calls" setting (AT+CLCK="AO"). Modifiable.
QPhoneLine::BarrAllOutgoingIntl23Adjust the "Barr all outgoing international calls" setting (AT+CLCK="OI"). Modifiable.
QPhoneLine::BarrOutgoingIntlExceptHome24Adjust the "Barr all outgoing international calls except for those to the home country" setting (AT+CLCK="OX"). Modifiable.
QPhoneLine::BarrAllIncoming25Adjust the "Barr all incoming calls" setting (AT+CLCK="AI"). Modifiable.
QPhoneLine::BarrIncomingWhenRoaming26Adjust the "Barr all incoming calls when roaming outside the home country" setting (AT+CLCK="IR"). Modifiable.
QPhoneLine::BarrIncomingNotTA27Adjust the "Barr all incoming calls from numbers not stored in TA memory" setting (AT+CLCK="NT"). Modifiable.
QPhoneLine::BarrIncomingNotME28Adjust the "Barr all incoming calls from numbers not stored in ME memory" setting (AT+CLCK="NM"). Modifiable.
QPhoneLine::BarrIncomingNotSim29Adjust the "Barr all incoming calls from numbers not stored in SIM memory" setting (AT+CLCK="NS"). Modifiable.
QPhoneLine::BarrIncomingNotAny30Adjust the "Barr all incoming calls from numbers not stored in amu memory" setting (AT+CLCK="NA"). Modifiable.
QPhoneLine::AllBarringServices31Adjust the "All barring services" setting (AT+CLCK="AB"). Modifiable.
QPhoneLine::AllOutgoingBarringServices32Adjust the "All outgoing barring services" setting (AT+CLCK="AG"). Modifiable.
QPhoneLine::AllIncomingBarringServices33Adjust the "All incoming barring services" setting (AT+CLCK="AC"). Modifiable.
QPhoneLine::SimFixedDialingMemory34Adjust the "SIM fixed dialing memory feature" setting (AT+CLCK="FD"). Modifiable.
QPhoneLine::ChangeLockControlSurfacePassword35Change the password for the "LockControlSurface" setting (AT+CPWD="CS"). Modifiable.
QPhoneLine::ChangeLockPhoneToSimCardPassword36Change the password for the "LockPhoneToSimCard" setting (AT+CPWD="PS"). Modifiable.
QPhoneLine::ChangeLockSimCardPassword37Change the password for the "LockSimCard" setting (AT+CPWD="SC"). Modifiable.
QPhoneLine::ChangeBarrAllOutgoingPassword38Change the password for the "BarAllOutgoing" setting (AT+CPWD="AO"). Modifiable.
QPhoneLine::ChangeBarrAllOutgoingIntlPassword39Change the password for the "BarAllOutgoingIntl" setting (AT+CPWD="OI"). Modifiable.
QPhoneLine::ChangeBarrOutgoingIntlExceptHomePassword40Change the password for the "BarOutgoingIntlExceptHome" setting (AT+CPWD="OX"). Modifiable.
QPhoneLine::ChangeBarrAllIncomingPassword41Change the password for the "BarrAllIncoming" setting (AT+CPWD="AI"). Modifiable.
QPhoneLine::ChangeBarrIncomingWhenRoamingPassword42Change the password for the "BarrIncomingWhenRoaming" setting (AT+CPWD="IR"). Modifiable.
QPhoneLine::ChangeBarrIncomingNotTAPassword43Change the password for the "BarrIncomingNotTA" setting (AT+CPWD="NT"). Modifiable.
QPhoneLine::ChangeBarrIncomingNotMEPassword44Change the password for the "BarrIncomingNotME" setting (AT+CPWD="NM"). Modifiable.
QPhoneLine::ChangeBarrIncomingNotSimPassword45Change the password for the "BarrIncomingNotSim" setting (AT+CPWD="NS"). Modifiable.
QPhoneLine::ChangeBarrIncomingNotAnyPassword46Change the password for the "BarrIncomingNotAny" setting (AT+CPWD="NA"). Modifiable.
QPhoneLine::ChangeAllBarringServicesPassword47Change the password for the "AllBarringServices" setting (AT+CPWD="AB"). Modifiable.
QPhoneLine::ChangeAllOutgoingBarringServicesPassword48Change the password for the "AllOutgoingBarringServices" setting (AT+CPWD="AG"). Modifiable.
QPhoneLine::ChangeAllIncomingBarringServicesPassword49Change the password for the "AllIncomingBarringServices" setting (AT+CPWD="AC"). Modifiable.
QPhoneLine::ChangeSimFixedDialingMemoryPassword50Change the password for the "SimFixedDialingMemory" setting (AT+CPWD="FD"). Modifiable.
QPhoneLine::ClosedUserGroup51Control the closed user group supplementary service (AT+CCUG). Modifiable.
QPhoneLine::ForwardingUnconditional52Adjust the unconditional forwarding number and conditions (AT+CCFC=0). Modifiable.
QPhoneLine::ForwardingMobileBusy53Adjust the "mobile busy" forwarding number and conditions (AT+CCFC=1). Modifiable.
QPhoneLine::ForwardingNoReply54Adjust the "no reply" forwarding number and conditions (AT+CCFC=2). Modifiable.
QPhoneLine::ForwardingNotReachable55Adjust the "not reachable" forwarding number and conditions (AT+CCFC=3). Modifiable.
QPhoneLine::ForwardingAll56Adjust the "all calls" forwarding number and conditions (AT+CCFC=4). Modifiable.
QPhoneLine::ForwardingAllConditional57Adjust the "all conditional calls" forwarding number and conditions (AT+CCFC=5). Modifiable.
QPhoneLine::CallWaiting58Adjust the call waiting settings (AT+CCWA). Modifiable.
QPhoneLine::Channels59List of cell broadcast channels to listen on (AT+CSCB). Modifiable.
QPhoneLine::SimFieldLimits60Query the field limits for name and number when storing numbers in the SIM phone book (AT+CPBR=?).
QPhoneLine::Functionality61The current functionality level of the phone (AT+CFUN). Modifiable.
QPhoneLine::RequiredPin62Query for the current PIN that is required (AT+CPIN?).
QPhoneLine::SendPin63Send the current PIN in a modify request (AT+CPIN).
QPhoneLine::ChangePin64Change the current PIN (AT+CPIN).
QPhoneLine::SimInserted65Unsolicited notification that a new SIM was inserted.
QPhoneLine::SimRemoved66Unsolicited notification that the SIM was removed.
QPhoneLine::VibrateNow67Set the current vibration mode to "on" or "off". Modifiable.
QPhoneLine::InitializationDone68Unsolicited notification that the initialization phase has completed. Can also be queried. Returns either "yes" or "no" depending upon the initialization state.
QPhoneLine::AccessoryStatus69Query the current accessory status. Ericsson only (AT*EACS?). This type is obsolete. Use HandsFree instead.
QPhoneLine::KeypadLight70Turn the keypad "on" or "off". Modifiable.
QPhoneLine::PowerOff71Power off the GSM modem to save power. Modifiable.
QPhoneLine::ChargerStatus72Notification that is sent to indicate if the battery charger is "connected" or "disconnected". Notification.
QPhoneLine::FunctionalityOff73Performs a AT+CFUN=0 to turn off modem functionality during power save shutdown. Modifiable.
QPhoneLine::FunctionalityOn74Performs a AT+CFUN=1 to turn on modem functionality after power save shutdown. Modifiable.
QPhoneLine::SupplementaryServiceData75Supplementary service (SS) data that was received from the network. Notification. The returned value begins with either "+CSSI:" for a mobile-originated call setup, or "+CSSU:" for a mobile-terminated call setup (AT+CSSN).
QPhoneLine::UnstructuredSupplementaryServiceData76Unstructured service (USSD) data that was received from the network. Notification. The value will begin with either '0' or '1', indicating "no further action required" or "further action required" respectively. The rest of the value is the unquoted USSD data (AT+CUSD).
QPhoneLine::SendUnstructuredSupplementaryServiceData77Send unstructured service (USSD) data to the network. Modifiable. The value is the unquoted USSD data (AT+CUSD).
QPhoneLine::VoiceMailNumber78The voice mail number stored in the SIM. Modifiable. The value is the actual phone number, starting with '+' if it is an international number. Set to the empty string to disable the voice mail number (AT+CSVM).
QPhoneLine::SMSFull79Notification that is set to 1 if the incoming SMS message box is full, or 0 when space becomes available again (AT+CMER, smsfull).
QPhoneLine::LockPhoneToFirstSIM80Adjust the lock setting that locks the phone to the first SIM inserted (AT+CLCK="PF"). Modifiable.
QPhoneLine::LockNetworkPersonalization81Adjust the lock setting for network personalization (AT+CLCK="PN"). Modifiable.
QPhoneLine::LockNetworkSubsetPersonalization82Adjust the lock setting for network subset personalization (AT+CLCK="PU"). Modifiable.
QPhoneLine::LockServiceProviderPersonalization83Adjust the lock setting for service provider personalization (AT+CLCK="PP"). Modifiable.
QPhoneLine::LockCorporatePersonalization84Adjust the lock setting for corporate personalization (AT+CLCK="PC"). Modifiable.
QPhoneLine::ChangeLockPhoneToFirstSIMPassword85Change the password for the "LockPhoneToFirstSIM" setting (AT+CPWD="PF"). Modifiable.
QPhoneLine::ChangeLockNetworkPersonalizationPassword86Change the password for the "LockNetworkPersonalization" setting (AT+CPWD="PN"). Modifiable.
QPhoneLine::ChangeLockNetworkSubsetPersonalizationPassword87Change the password for the "LockNetworkSubsetPersonalization" setting (AT+CPWD="PU"). Modifiable.
QPhoneLine::ChangeLockServiceProviderPersonalizationPassword88Change the password for the "LockServiceProviderPersonalization" setting (AT+CPWD="PP"). Modifiable.
QPhoneLine::ChangeLockCorporatePersonalizationPassword89Change the password for the "LockCorporatePersonalization" setting (AT+CPWD="PC"). Modifiable.
QPhoneLine::AccumulatedCallMeter90Query the accumulated call meter value (AT+CACM). The returned value is in hexadecimal. When used in a "modify", the value should be the unquoted SIM PIN2 password, and it causes the accumulated call meter to be reset. The password is not required for a query. Modifiable.
QPhoneLine::AccumulatedCallMeterMaximum91Query the accumulated call meter maximum value (AT+CAMM). The returned value is in hexadecimal. When used in a "modify", the value should be the quoted maximum value, followed by a comma, and then the quoted SIM PIN2 password. The password is not required for a query. Modifiable.
QPhoneLine::CallMeterMaximumEvent92Provide notification of when the call meter maximum value is nearing being reached (+CCWV notification). The value is the contents of the +CCWV notification line. Notification.
QPhoneLine::PreferredOperatorList93When queried, the list of preferred operators stored on the SIM (AT+CPOL?). Use "parsePreferredOperatorList" to parse this list. The modify operation should consist of the arguments to the AT+CPOL command, which allows one entry to be modified at a time. Use "formatPreferredOperatorModify" to format the modification request. Modifiable.
QPhoneLine::PreferredOperatorSelection94The method to use to select a preferred operator (AT+CPLS). Usually a number such as 0, 1, or 4 (see the description of AT+CPLS in the GSM standard for more details). Modifiable.
QPhoneLine::OperatorNames95The list of operator identifiers and names that are stored in the SIM (AT+COPN).
QPhoneLine::SimIndexLimits96Query the index limits for name and number when storing numbers in the SIM phone book (AT+CPBR=?). The value returned has the format "N-M". For example, if "1-200" is returned, then there are 200 possible entries, with the first starting at index 1.
QPhoneLine::NumUnreadMessages97Notification that is sent just after the QSMSRequest::messageCount() signal to indicate the number of messages that are unread. The count is reset by changing this value to zero with QPhoneLine::modify(). Notification and Modifiable.
QPhoneLine::DataStateUpdate98Notification that is sent when the GPRS data state changes. Use QPhoneLine::parseDataState() to decode this value. Notification.
QPhoneLine::VoIPLineRegState99Notification that indicates the line registration state for voice-over-IP. The values are 0 for unregistered, 1 for registered, 2 for searching, and 3 for authentication failed. Query and notification.
QPhoneLine::VoIPStartMonitoring100Start monitoring the user specified in the value to determine if they are available on the network or not. Modifiable.
QPhoneLine::VoIPStopMonitoring101Stop monitoring the user specified in the value. Modifiable.
QPhoneLine::VoIPSetRegistration102Register to or deregister from the VoIP network. The value is either "yes" or "no". Modifiable.
QPhoneLine::VoIPPresence103Get or set the presence state of the user. The value will be either "available" or "unavailable". Modifiable.
QPhoneLine::VoIPOperatorName104Notification that is sent to indicate the name of the VoIP operator. Notification.
QPhoneLine::VoIPMonitoredPresence105Notification that is sent to indicate a change in presence information for a user who was being monitored via VoIPStartMonitoring. The value has the form "status,identity" where "status" is either "available" or "unavailable", and "identity" is the identity of the user being monitored. Notification.
QPhoneLine::VoIPHandlerInitialized106Notification that is sent once the VoIP handler has been initialized. The value will be "yes". Notification.
QPhoneLine::VoIPUpdateConfiguration107Set this to any value to force the VoIP handler to update its configuration. The value is passed to the handler, in case it might indicate which configuration to update, but the handler can ignore it. Modifiable.
QPhoneLine::VoIPFirstVoIPLineRegStateFor internal use only.
QPhoneLine::VoIPLastVoIPUpdateConfigurationFor internal use only.
QPhoneLine::HandsFree Value that indicates if the handset is being used in a hands-free mode. Currently defined values are none, vehicle, and portable. Query and notification.


Member Function Documentation

QPhoneLine::QPhoneLine ( const QString & name = QString(), QObject * parent = 0, bool mergedHandlers = false )

Create a new phone line object attached to parent. Normally name will be QString() in application programs.

The mergedHandlers parameter is temporary, and will be removed in future versions of the phone library. It creates a merged client handler that manages requests for both GSM and VoIP.

QPhoneLine::~QPhoneLine ()

Destruct a QPhoneLine object.

QPhoneCall QPhoneLine::active () const

Returns the currently active call. That is, the call that is connected and not on hold. QPhoneCall::null if there is no active call.

QList<QPhoneCall> QPhoneLine::calls () const

Returns a list of all active calls on this line. Active calls are those that are dialing, incoming, or connected. Idle and dropped calls are not included in this list.

QPhoneCall QPhoneLine::createCall ()

Create a new call in the "idle" state, ready to dial. This will not appear in the "calls()" list until it is actually dialed. The call type will be QPhoneCall::Voice.

QPhoneCall QPhoneLine::createCall ( QPhoneCall::CallType type )

This is an overloaded member function, provided for convenience.

Create a new call in the "idle" state, ready to dial. This will not appear in the "calls()" list until it is actually dialed. The call will be created with the specific type.

QString QPhoneLine::formatBarring ( bool enable, const QString & password = QString() )   [static]

Format a request for a modify operation on one of the barr settings (BarrAllOutgoing, BarrIncomingWhenRoaming, etc). The enable flag indicates if barring should be eanbled or disabled. The password parameter is the call barring password, for security purposes.

QString QPhoneLine::formatCallWaiting ( bool enable, int classx )   [static]

Format the value to use in a QPhoneLine::CallWaiting modify to enable or disable a call waiting feature. The classx parameter should be one of QPhoneLine::Voice, QPhoneLine::Data, or QPhoneLine::Fax. The enable flag indicates whether call waiting should be enabled or not.

QString QPhoneLine::formatCallerIdRestriction ( CallerIdRestrictionOption option )   [static]

QString QPhoneLine::formatChangePassword ( const QString & oldPassword, const QString & newPassword )   [static]

Format the value to use in a password modification request. The password is changed from oldPassword to newPassword.

QString QPhoneLine::formatChannels ( QList<int> channels )   [static]

Format a list of cell broadcast channels for a QPhoneLine::Channels modify.

QString QPhoneLine::formatForwarding ( bool enable, int classx, const QString & number )   [static]

Format the value for a modify on a forwarding setting (ForwardingUnconditional, ForwardingMobileBusy, etc). The enable flag indicates if forwarding should be enabled or disabled. The classx parameter indicates the class of calls the forwarding rule should apply to (voice, data, fax, etc). The number parameter indicates the phone number to forward calls to.

QString QPhoneLine::formatOperator ( bool automatic, const QString & opid = QString() )   [static]

Format the value to use in a QPhoneLine::Operator modify. The opid is the identifier for the operator to select, which usually comes from the id field of a QPhoneLine::OperatorInfo object. If automatic is true, then the operator will be selected automatically. Otherwise the operator will be selected manually.

QString QPhoneLine::formatPreferredOperatorModify ( const PreferredOperatorInfo & oper )   [static]

Format a modification request for the preferred operator list, to update the details associated with oper.

QString QPhoneLine::formatServiceCenter ( const QString & number )   [static]

Format a phone number for a QPhoneLine::ServiceCenter modify.

void QPhoneLine::modify ( QPhoneLine::QueryType type, const QString & value )

Modify a particular piece of information for this line. The information identified by type is set to value.

QString QPhoneLine::name () const

Return the name of this line.

void QPhoneLine::newCall ( const QPhoneCall & call )   [signal]

Notification of a new call being added to the "calls()" list.

void QPhoneLine::notification ( QPhoneLine::QueryType type, const QString & value )   [signal]

Asynchronous notification of an interesting value that wasn't explicitly requested by a query call. The type parameter indicates the type of notification and its new value is value.

QList<OperatorInfo> QPhoneLine::parseAvailableOperators ( const QString & v )   [static]

Parse the value v returned from a QPhoneLine::AvailableOperators query into a list of QPhoneLine::OperatorInfo objects.

int QPhoneLine::parseCallWaiting ( const QString & v )   [static]

Parse the value v returned by a QPhoneLine::CallWaiting query. The return value contains the flags QPhoneLine::Voice, QPhoneLine::Data, and QPhoneLine::Fax, indicating which classes of calls have call waiting enabled.

QPhoneLine::CallerIdRestrictionOption QPhoneLine::parseCallerIdRestriction ( const QString & v, bool * modifiable = 0 )   [static]

Parse the value v returned by a QPhoneLine::CallerIdRestriction query. Returns the current status and the modifiable parameter is set to true if the caller ID restriction can be modified.

QPhoneLine::DataState QPhoneLine::parseDataState ( const QString & value )   [static]

Parse the value from a DataStateUpdate notification into a set of QPhoneLine::DataState flags.

QList<ForwardRec> QPhoneLine::parseForwarding ( const QString & v )   [static]

Parse the value v returned by a query on a forwarding setting (ForwardingUnconditional, ForwardingMobileBusy, etc).

OperatorInfo QPhoneLine::parseOperator ( const QString & v, bool * automatic )   [static]

Parse the value v returned by a QPhoneLine::Operator query. The automatic parameter will be set to true if the phone will register automatically to the network operator.

QList<OperatorInfo> QPhoneLine::parseOperatorNames ( const QString & v )   [static]

Parse the list v of operator names that resulted from an "OperatorNames" query. The "status" field in the returned structures is unused.

QList<PreferredOperatorInfo> QPhoneLine::parsePreferredOperatorList ( const QString & v )   [static]

Parse the preferred operator list v that resulted from a "PreferredOperatorList" query.

QString QPhoneLine::parseServiceCenter ( const QString & v )   [static]

Parse the value v returned by a QPhoneLine::ServiceCenter query.

QPhoneBook * QPhoneLine::phoneBook ()

Returns the phone book manager for the phone line.

void QPhoneLine::query ( QPhoneLine::QueryType type ) const

Sends a query for a particular piece of information as specified by type about this line. The requested information is returned by the signal queryResult.

See also QueryType.

void QPhoneLine::queryResult ( QPhoneLine::QueryType type, const QString & value )   [signal]

Notification of a value that was being queried for. The type parameter indicates the type that was supplied to QPhoneLine::query(), and its new value is value.

QRawModem * QPhoneLine::rawModem ()

Returns the raw modem handler for the phone line.

QList<PreferredOperatorInfo> QPhoneLine::resolveOperatorNames ( QList<PreferredOperatorInfo> & opers, QList<OperatorInfo> & names )   [static]

Resolve numeric operator identifiers within the opers list using the name associations in names. The names list is typically the result of the "OperatorNames" query.

void QPhoneLine::shutdown ()

Perform a power saving shutdown on the modem.

QSimToolkit * QPhoneLine::simToolkit ()

Returns the SIM toolkit handler for the phone line.

QSMSRequest * QPhoneLine::sms ()

Returns the SMS request handler for the phone line.

void QPhoneLine::startData ( const QPPPdOptions & options )

Start a new data call with the specified options.

void QPhoneLine::startup ()

Perform a startup on the modem after a power save.

void QPhoneLine::stopData ()

Stop an active data call, killing the protocol module (e.g. pppd) that is handling it.


Copyright © 2006 Trolltech Trademarks
Qtopia 4.1.7