PhoneLine Class Reference
Class handling the implementation of a single phoneline.
More...
#include <phone.h>
List of all member functions.
Public Members
- PhoneLine ( const QString & name = QString::null, QObject * parent = 0 )
- ~PhoneLine ()
- QString name () const
- QValueList<PhoneCall> calls () const
- PhoneCall createCall ()
- PhoneCall active () const
- enum QueryType { Number, Manufacturer, Model, Revision, Serial, BatteryCharge, SignalQuality, CharacterSet, SupportedCharacterSets, AdviceOfCharge, Registration, Operator, AvailableOperators, PricePerUnit, SIMIdentity, VibrateOnRing, SilentMode, ServiceCenter, CallerIdRestriction, LockControlSurface, LockPhoneToSimCard, LockSimCard, BarrAllOutgoing, BarrAllOutgoingIntl, BarrOutgoingIntlExceptHome, BarrAllIncoming, BarrIncomingWhenRoaming, BarrIncomingNotTA, BarrIncomingNotME, BarrIncomingNotSim, BarrIncomingNotAny, AllBarringServices, AllOutgoingBarringServices, AllIncomingBarringServices, SimFixedDialingMemory, ChangeLockControlSurfacePassword, ChangeLockPhoneToSimCardPassword, ChangeLockSimCardPassword, ChangeBarrAllOutgoingPassword, ChangeBarrAllOutgoingIntlPassword, ChangeBarrOutgoingIntlExceptHomePassword, ChangeBarrAllIncomingPassword, ChangeBarrIncomingWhenRoamingPassword, ChangeBarrIncomingNotTAPassword, ChangeBarrIncomingNotMEPassword, ChangeBarrIncomingNotSimPassword, ChangeBarrIncomingNotAnyPassword, ChangeAllBarringServicesPassword, ChangeAllOutgoingBarringServicesPassword, ChangeAllIncomingBarringServicesPassword, ChangeSimFixedDialingMemoryPassword, ClosedUserGroup, ForwardingUnconditional, ForwardingMobileBusy, ForwardingNoReply, ForwardingNotReachable, ForwardingAll, ForwardingAllConditional, CallWaiting, Channels, SimFieldLimits, Functionality, RequiredPin, SendPin, ChangePin, SimInserted, SimRemoved, VibrateNow, InitializationDone, AccessoryStatus, KeypadLight, PowerOff, ChargerStatus, FunctionalityOff, FunctionalityOn, SupplementaryServiceData, UnstructuredSupplementaryServiceData, SendUnstructuredSupplementaryServiceData, VoiceMailNumber, SMSFull, LockPhoneToFirstSIM, LockNetworkPersonalization, LockNetworkSubsetPersonalization, LockServiceProviderPersonalization, LockCorporatePersonalization, ChangeLockPhoneToFirstSIMPassword, ChangeLockNetworkPersonalizationPassword, ChangeLockNetworkSubsetPersonalizationPassword, ChangeLockServiceProviderPersonalizationPassword, ChangeLockCorporatePersonalizationPassword, AccumulatedCallMeter, AccumulatedCallMeterMaximum, CallMeterMaximumEvent, PreferredOperatorList, PreferredOperatorSelection, OperatorNames, SimIndexLimits, NumUnreadMessages }
- void query ( QueryType type ) const
- void modify ( QueryType type, const QString & value )
- class OperatorInfo { }
- class PreferredOperatorInfo { }
- enum ClassX { Voice = 1, Data = 2, Fax = 4, Sms = 8, DataCircuitSync = 16, DataCircuitAsync = 32, DedicatedPacketAccess = 64, DedicatedPADAccess = 128 }
- class ForwardRec { }
- SMSRequest * sms ()
- PhoneBook * phoneBook ()
- SimToolkit * simToolkit ()
- void startData ( const QString & number, const QStringList & initCmds, const QStringList & moduleArgs, bool persist )
- void stopData ()
- void startVideo ( const QString & number )
- void shutdown ()
- void startup ()
Signals
- void newCall ( const PhoneCall & call )
- void queryResult ( PhoneLine::QueryType type, const QString & value )
- void notification ( PhoneLine::QueryType type, const QString & value )
Static Public Members
Detailed Description
Class handling the implementation of a single phoneline.
The PhoneLine 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::null is used in the constructor to refer
to the default line.
The PhoneLine 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 PhoneCall 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 PhoneCall, PhoneUtils, and Qtopia Phone Classes.
Member Type Documentation
PhoneLine::ClassX
This enum lists values that may appear in PhoneLine::ForwardRec::classx.
- PhoneLine::Voice - The forwarding rule applies to voice calls
- PhoneLine::Data - The forwarding rule applies to data calls, of all bearer
types (specific bearer types can be enabled or disabled using
DataCircuitSync, DataCircuitAsync, DedicatedPacketAccess,
and DedicatedPADAccess)
- PhoneLine::Fax - The forwarding rule applies to fax calls
- PhoneLine::Sms - The forwarding rule applies to SMS messages
- PhoneLine::DataCircuitSync - The forwarding rule applies to synchronous
data circuit bearers
- PhoneLine::DataCircuitAsync - The forwarding rule applies to asynchronous
data circuit bearers
- PhoneLine::DedicatedPacketAccess - The forwarding rule applies to dedicated
packet access bearers
- PhoneLine::DedicatedPADAccess - The forwarding rule applies to dedicated
PAD access bearers
PhoneLine::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.
- PhoneLine::Number - The subscriber's telephone number (AT+CNUM).
- PhoneLine::Manufacturer - The modem's manufacturer identification (AT+CGMI).
- PhoneLine::Model - The modem's model identification (AT+CGMM).
- PhoneLine::Revision - The modem's revision identification (AT+CGMR).
- PhoneLine::Serial - The modem's serial number identification (AT+CGSN).
- PhoneLine::BatteryCharge - The 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.
- PhoneLine::SignalQuality - The 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.
- PhoneLine::CharacterSet - The current character set used for phone/modem
communications (AT+CSCS). Modifiable.
- PhoneLine::SupportedCharacterSets - List of supported character sets (AT+CSCS=?).
- PhoneLine::AdviceOfCharge - The 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.
- PhoneLine::Registration - The current network registration state (AT+CREG?).
This may also be sent as an unsolicited notification.
- PhoneLine::Operator - The current network operator (AT+COPS). Modifiable.
- PhoneLine::AvailableOperators - List of available network operators (AT+COPS=?).
- PhoneLine::PricePerUnit - Price 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.
- PhoneLine::SIMIdentity - The IMI number of the SIM (AT+CIMI).
- PhoneLine::VibrateOnRing - The "vibrate on ring" setting for the phone (AT+CVIB).
Modifiable.
- PhoneLine::SilentMode - The "silent mode" for the phone (AT*ESIL).
Ericsson only. Modifiable.
- PhoneLine::ServiceCenter - SMS service centre address (AT+CSCA). Modifiable.
- PhoneLine::CallerIdRestriction - Caller ID restriction settings (AT+CLIR).
Modifiable.
- PhoneLine::LockControlSurface - Adjust the control surface lock setting
(AT+CLCK="CS"). Modifiable.
- PhoneLine::LockPhoneToSimCard - Adjust the setting that locks the phone
to a particular SIM card (AT+CLCK="PS"). Modifiable.
- PhoneLine::LockSimCard - Adjust the setting that locks the SIM (AT+CLCK="SC").
Modifiable.
- PhoneLine::BarrAllOutgoing - Adjust the "Barr all outgoing calls" setting
(AT+CLCK="AO"). Modifiable.
- PhoneLine::BarrAllOutgoingIntl - Adjust the "Barr all outgoing international
calls" setting (AT+CLCK="OI"). Modifiable.
- PhoneLine::BarrOutgoingIntlExceptHome - Adjust the "Barr all outgoing
international calls except for those to the home country"
setting (AT+CLCK="OX"). Modifiable.
- PhoneLine::BarrAllIncoming - Adjust the "Barr all incoming calls" setting
(AT+CLCK="AI"). Modifiable.
- PhoneLine::BarrIncomingWhenRoaming - Adjust the "Barr all incoming calls
when roaming outside the home country" setting (AT+CLCK="IR").
Modifiable.
- PhoneLine::BarrIncomingNotTA - Adjust the "Barr all incoming calls from
numbers not stored in TA memory" setting (AT+CLCK="NT"). Modifiable.
- PhoneLine::BarrIncomingNotME - Adjust the "Barr all incoming calls from
numbers not stored in ME memory" setting (AT+CLCK="NM"). Modifiable.
- PhoneLine::BarrIncomingNotSim - Adjust the "Barr all incoming calls from
numbers not stored in SIM memory" setting (AT+CLCK="NS").
Modifiable.
- PhoneLine::BarrIncomingNotAny - Adjust the "Barr all incoming calls from
numbers not stored in amu memory" setting (AT+CLCK="NA").
Modifiable.
- PhoneLine::AllBarringServices - Adjust the "All barring services" setting
(AT+CLCK="AB"). Modifiable.
- PhoneLine::AllOutgoingBarringServices - Adjust the "All outgoing barring
services" setting (AT+CLCK="AG"). Modifiable.
- PhoneLine::AllIncomingBarringServices - Adjust the "All incoming barring
services" setting (AT+CLCK="AC"). Modifiable.
- PhoneLine::SimFixedDialingMemory - Adjust the "SIM fixed dialing memory
feature" setting (AT+CLCK="FD"). Modifiable.
- PhoneLine::ChangeLockControlSurfacePassword - Change the password for
the "LockControlSurface" setting (AT+CPWD="CS"). Modifiable.
- PhoneLine::ChangeLockPhoneToSimCardPassword - Change the password for
the "LockPhoneToSimCard" setting (AT+CPWD="PS"). Modifiable.
- PhoneLine::ChangeLockSimCardPassword - Change the password for
the "LockSimCard" setting (AT+CPWD="SC"). Modifiable.
- PhoneLine::ChangeBarrAllOutgoingPassword - Change the password for
the "BarAllOutgoing" setting (AT+CPWD="AO"). Modifiable.
- PhoneLine::ChangeBarrAllOutgoingIntlPassword - Change the password for
the "BarAllOutgoingIntl" setting (AT+CPWD="OI"). Modifiable.
- PhoneLine::ChangeBarrOutgoingIntlExceptHomePassword - Change the password for
the "BarOutgoingIntlExceptHome" setting (AT+CPWD="OX"). Modifiable.
- PhoneLine::ChangeBarrAllIncomingPassword - Change the password for
the "BarrAllIncoming" setting (AT+CPWD="AI"). Modifiable.
- PhoneLine::ChangeBarrIncomingWhenRoamingPassword - Change the password for
the "BarrIncomingWhenRoaming" setting (AT+CPWD="IR"). Modifiable.
- PhoneLine::ChangeBarrIncomingNotTAPassword - Change the password for
the "BarrIncomingNotTA" setting (AT+CPWD="NT"). Modifiable.
- PhoneLine::ChangeBarrIncomingNotMEPassword - Change the password for
the "BarrIncomingNotME" setting (AT+CPWD="NM"). Modifiable.
- PhoneLine::ChangeBarrIncomingNotSimPassword - Change the password for
the "BarrIncomingNotSim" setting (AT+CPWD="NS"). Modifiable.
- PhoneLine::ChangeBarrIncomingNotAnyPassword - Change the password for
the "BarrIncomingNotAny" setting (AT+CPWD="NA"). Modifiable.
- PhoneLine::ChangeAllBarringServicesPassword - Change the password for
the "AllBarringServices" setting (AT+CPWD="AB"). Modifiable.
- PhoneLine::ChangeAllOutgoingBarringServicesPassword - Change the password for
the "AllOutgoingBarringServices" setting (AT+CPWD="AG"). Modifiable.
- PhoneLine::ChangeAllIncomingBarringServicesPassword - Change the password for
the "AllIncomingBarringServices" setting (AT+CPWD="AC"). Modifiable.
- PhoneLine::ChangeSimFixedDialingMemoryPassword - Change the password for
the "SimFixedDialingMemory" setting (AT+CPWD="FD"). Modifiable.
- PhoneLine::ClosedUserGroup - Control the closed user group supplementary
service (AT+CCUG). Modifiable.
- PhoneLine::ForwardingUnconditional - Adjust the unconditional forwarding
number and conditions (AT+CCFC=0). Modifiable.
- PhoneLine::ForwardingMobileBusy - Adjust the "mobile busy" forwarding
number and conditions (AT+CCFC=1). Modifiable.
- PhoneLine::ForwardingNoReply - Adjust the "no reply" forwarding number
and conditions (AT+CCFC=2). Modifiable.
- PhoneLine::ForwardingNotReachable - Adjust the "not reachable" forwarding
number and conditions (AT+CCFC=3). Modifiable.
- PhoneLine::ForwardingAll - Adjust the "all calls" forwarding
number and conditions (AT+CCFC=4). Modifiable.
- PhoneLine::ForwardingAllConditional - Adjust the "all conditional calls"
forwarding number and conditions (AT+CCFC=5). Modifiable.
- PhoneLine::CallWaiting - Adjust the call waiting settings (AT+CCWA). Modifiable.
- PhoneLine::Channels - List of cell broadcast channels to listen on (AT+CSCB).
Modifiable.
- PhoneLine::SimFieldLimits - Query the field limits for name and number when
storing numbers in the SIM phone book (AT+CPBR=?).
- PhoneLine::Functionality - The current functionality level of the phone
(AT+CFUN). Modifiable.
- PhoneLine::RequiredPin - Query for the current PIN that is required (AT+CPIN?).
- PhoneLine::SendPin - Send the current PIN in a modify request (AT+CPIN).
- PhoneLine::ChangePin - Change the current PIN (AT+CPIN).
- PhoneLine::SimInserted - Unsolicited notification that a new SIM was inserted.
- PhoneLine::SimRemoved - Unsolicited notification that the SIM was removed.
- PhoneLine::VibrateNow - Set the current vibration mode to "on" or "off".
Modifiable.
- PhoneLine::InitializationDone - Unsolicited notification that the initialization
phase has completed. Can also be queried. Returns either "yes"
or "no" depending upon the initialization state.
- PhoneLine::AccessoryStatus - Query the current accessory status.
Ericsson only (AT*EACS?).
- PhoneLine::KeypadLight - Turn the keypad "on" or "off". Modifiable.
- PhoneLine::PowerOff - Power off the GSM modem to save power. Modifiable.
- PhoneLine::ChargerStatus - Notification that is sent to indicate if the
battery charger is "connected" or "disconnected". Notification.
- PhoneLine::FunctionalityOff - Performs a AT+CFUN=0 to turn off modem
functionality during power save shutdown. Modifiable.
- PhoneLine::FunctionalityOn - Performs a AT+CFUN=1 to turn on modem
functionality after power save shutdown. Modifiable.
- PhoneLine::SupplementaryServiceData - Supplementary 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).
- PhoneLine::UnstructuredSupplementaryServiceData - Unstructured 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).
- PhoneLine::SendUnstructuredSupplementaryServiceData - Send unstructured
service (USSD) data to the network. Modifiable. The value
is the unquoted USSD data (AT+CUSD).
- PhoneLine::VoiceMailNumber - The 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).
- PhoneLine::SMSFull - Notification that is set to 1 if the incoming SMS
message box is full, or 0 when space becomes available again
(AT+CMER, smsfull).
- PhoneLine::LockPhoneToFirstSIM - Adjust the lock setting that locks the
phone to the first SIM inserted (AT+CLCK="PF"). Modifiable.
- PhoneLine::LockNetworkPersonalization - Adjust the lock setting for
network personalization (AT+CLCK="PN"). Modifiable.
- PhoneLine::LockNetworkSubsetPersonalization - Adjust the lock setting for
network subset personalization (AT+CLCK="PU"). Modifiable.
- PhoneLine::LockServiceProviderPersonalization - Adjust the lock setting
for service provider personalization (AT+CLCK="PP"). Modifiable.
- PhoneLine::LockCorporatePersonalization - Adjust the lock setting for
corporate personalization (AT+CLCK="PC"). Modifiable.
- PhoneLine::ChangeLockPhoneToFirstSIMPassword - Change the password for
the "LockPhoneToFirstSIM" setting (AT+CPWD="PF"). Modifiable.
- PhoneLine::ChangeLockNetworkPersonalizationPassword - Change the password
for the "LockNetworkPersonalization" setting (AT+CPWD="PN").
Modifiable.
- PhoneLine::ChangeLockNetworkSubsetPersonalizationPassword - Change the
password for the "LockNetworkSubsetPersonalization" setting
(AT+CPWD="PU"). Modifiable.
- PhoneLine::ChangeLockServiceProviderPersonalizationPassword - Change the
password for the "LockServiceProviderPersonalization" setting
(AT+CPWD="PP"). Modifiable.
- PhoneLine::ChangeLockCorporatePersonalizationPassword - Change the password
for the "LockCorporatePersonalization" setting (AT+CPWD="PC").
Modifiable.
- PhoneLine::AccumulatedCallMeter - Query 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.
- PhoneLine::AccumulatedCallMeterMaximum - Query 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.
- PhoneLine::CallMeterMaximumEvent - Provide 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.
- PhoneLine::PreferredOperatorList - When 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.
- PhoneLine::PreferredOperatorSelection - The 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.
- PhoneLine::OperatorNames - The list of operator identifiers and names that
are stored in the SIM (AT+COPN).
- PhoneLine::SimIndexLimits - Query 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.
- PhoneLine::NumUnreadMessages - Notification that is sent just after the
SMSRequest::messageCount() signal to indicate the number of
messages that are unread. Notification.
Member Function Documentation
PhoneLine::PhoneLine ( const QString & name = QString::null, QObject * parent = 0 )
Create a new phone line object. Normally name will be
QString::null in application programs.
PhoneLine::~PhoneLine ()
Destruct a PhoneLine object.
PhoneCall PhoneLine::active () const
Returns the currently active call. That is, the call that is connected
and not on hold. PhoneCall::null if there is no active call.
QValueList<PhoneCall> PhoneLine::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.
PhoneCall PhoneLine::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.
QString PhoneLine::formatBarring ( bool enable, const QString & password = QString::null ) [static]
Format a request for a modify operation on one of the barr settings
(BarrAllOutgoing, BarrIncomingWhenRoaming, etc).
QString PhoneLine::formatCallWaiting ( bool enable, int classx ) [static]
Format the value to use in a PhoneLine::CallWaiting modify
to enable or disable a call waiting feature. The classx
parameter should be one of PhoneLine::Voice, PhoneLine::Data,
or PhoneLine::Fax.
QString PhoneLine::formatCallerIdRestriction ( bool on ) [static]
Format the value for a PhoneLine::CallerIdRestriction modify.
The on parameter should be set to true if the caller ID
restriction is suppressed, or false if it is invoked.
QString PhoneLine::formatChangePassword ( const QString & oldPassword, const QString & newPassword ) [static]
Format the value to use in a password modification request.
QString PhoneLine::formatChannels ( QValueList<int> channels ) [static]
Format a list of cell broadcast channels for a PhoneLine::Channels modify.
QString PhoneLine::formatForwarding ( bool enable, int classx, const QString & number ) [static]
Format the value for a modify on a forwarding setting
(ForwardingUnconditional, ForwardingMobileBusy, etc).
QString PhoneLine::formatOperator ( bool automatic, const QString & opid = QString::null ) [static]
Format the value to use in a PhoneLine::Operator modify.
The opid is the identifier for the operator to select,
which usually comes from the id field of a
PhoneLine::OperatorInfo object. If automatic is true,
then the operator will be selected automatically. Otherwise
the operator will be selected manually.
QString PhoneLine::formatPreferredOperatorModify ( const PreferredOperatorInfo & oper ) [static]
Format a modification request for the preferred operator list.
QString PhoneLine::formatServiceCenter ( const QString & number ) [static]
Format a phone number for a PhoneLine::ServiceCenter modify.
void PhoneLine::modify ( QueryType type, const QString & value )
Modify a particular piece of information for this line.
QString PhoneLine::name () const
Return the name of this line.
void PhoneLine::newCall ( const PhoneCall & call ) [signal]
Notification of a new call being added to the "calls()" list.
void PhoneLine::notification ( PhoneLine::QueryType type, const QString & value ) [signal]
Asynchronous notification of an interesting value that wasn't
explicitly requested by a query call.
QValueList<OperatorInfo> PhoneLine::parseAvailableOperators ( const QString & v ) [static]
Parse the value returned from a PhoneLine::AvailableOperators query
into a list of PhoneLine::OperatorInfo objects.
int PhoneLine::parseCallWaiting ( const QString & v ) [static]
Parse the value returned by a PhoneLine::CallWaiting query.
The return value contains the flags PhoneLine::Voice,
PhoneLine::Data, and PhoneLine::Fax, indicating which
classes of calls have call waiting enabled.
bool PhoneLine::parseCallerIdRestriction ( const QString & v, bool * modifiable = 0 ) [static]
Parse the value returned by a PhoneLine::CallerIdRestriction query.
Returns true if the caller ID restriction is invoked, or false if it
is suppressed. The modifiable parameter is set to true if the
caller ID restriction can be modified.
QValueList<ForwardRec> PhoneLine::parseForwarding ( const QString & v ) [static]
Parse the value returned by a query on a forwarding setting
(ForwardingUnconditional, ForwardingMobileBusy, etc).
OperatorInfo PhoneLine::parseOperator ( const QString & v, bool * automatic ) [static]
Parse the value returned by a PhoneLine::Operator query.
The automatic parameter will be set to true if the
phone will register automatically to the network operator.
QValueList<OperatorInfo> PhoneLine::parseOperatorNames ( const QString & v ) [static]
Parse the list of operator names that resulted from an
"OperatorNames" query. The "status" field in the returned
structures is unused.
QValueList<PreferredOperatorInfo> PhoneLine::parsePreferredOperatorList ( const QString & v ) [static]
Parse the preferred operator list that resulted from a
"PreferredOperatorList" query.
QString PhoneLine::parseServiceCenter ( const QString & v ) [static]
Parse the value returned by a PhoneLine::ServiceCenter query.
PhoneBook * PhoneLine::phoneBook ()
Returns the phone book manager for the phone line.
void PhoneLine::queryResult ( PhoneLine::QueryType type, const QString & value ) [signal]
Notification of a value that was being queried for.
QValueList<PreferredOperatorInfo> PhoneLine::resolveOperatorNames ( QValueList<PreferredOperatorInfo> & opers, QValueList<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.
SimToolkit * PhoneLine::simToolkit ()
Returns the SIM toolkit handler for the phone line.
Returns the SMS request handler for the phone line.
void PhoneLine::startData ( const QString & number, const QStringList & initCmds, const QStringList & moduleArgs, bool persist )
Start a new data call.
The initCmds argument is a list of AT commands to send before dialing
to initialize the data call.
The moduleArgs argument is the full list of command-line options to
launch the data protocol module (e.g. pppd).
If persist is set to TRUE, then it indicates that pppd should be
started, but the dial process should not happen yet. The dial will
happen only when pppd detects TCP/IP network activity.
void PhoneLine::startVideo ( const QString & number )
Starts a video phone call to number
void PhoneLine::stopData ()
Stop an active data call, killing the protocol module
(e.g. pppd) that is handling it.
This file is part of the Qtopia platform,
copyright © 1995-2005
Trolltech, all rights reserved.
| Copyright © 2005 Trolltech
| Trademarks
| Qtopia version 2.1.2
|