⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 phoneline.html

📁 qtopiaphone英文帮助,用于初学者和开发人员,初学者可以用来学习,开发人员可以用来资料查询.
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/src/libraries/qtopiaphone/phone.cpp:409 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>PhoneLine Class</title><style type="text/css"><!--h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }a:link { color: #004faf; text-decoration: none }a:visited { color: #672967; text-decoration: none }body { background: #ffffff; color: black; }--></style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="200" align="left" valign="top"><a href="index.html"><img height="27" width="472" src="dochead.png" border="0"></a><br><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" align="center" size=32>Qtopia</font>   <a href="index.html">Home</a> - <a href="qtopiaclasses.html">Classes</a> - <a href="qtopiaannotated.html">Annotated</a> - <a href="qtopiafunctions.html">Functions</a> - <a href="qtindex.html">Qt Embedded</a></td><td align="right" valign="top">  <table border="0" cellpadding="0" cellspacing="0" width="137">  <tr>  <td><a href="http://www.trolltech.com/company/about/trolls.html"><img height="100" width="100" src="face.png" border="0"></a></td>  <td><img height="100" width="100" src="qtlogo.png" align="top" border="0"></td>  </tr>  </table></td></tr></table><h1 align=center>PhoneLine Class Reference</h1><p>Implementation of a single "phone line".<a href="#details">More...</a><p><tt>#include &lt;<a href="phone-h.html">phone.h</a>&gt;</tt><p><a href="phoneline-members.html">List of all member functions.</a><h2>Public Members</h2><ul><li><div class=fn><b>PhoneLine</b> ( const&nbsp;QString&nbsp;&amp;&nbsp;name = QString::null, QObject&nbsp;*&nbsp;parent = 0 )</div></li><li><div class=fn><b>~PhoneLine</b> ()</div></li><li><div class=fn>QString <a href="#name"><b>name</b></a> () const</div></li><li><div class=fn>QValueList&lt;PhoneCall&gt; <a href="#calls"><b>calls</b></a> () const</div></li><li><div class=fn>PhoneCall <a href="#createCall"><b>createCall</b></a> ()</div></li><li><div class=fn>PhoneCall <a href="#active"><b>active</b></a> () const</div></li><li><div class=fn>enum <b>QueryType</b> { 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 }</div></li><li><div class=fn>void <b>query</b> ( QueryType&nbsp;type ) const</div></li><li><div class=fn>void <a href="#modify"><b>modify</b></a> ( QueryType&nbsp;type, const&nbsp;QString&nbsp;&amp;&nbsp;value )</div></li><li><div class=fn>class <b>OperatorInfo</b> { }</div></li><li><div class=fn>enum <b>ClassX</b> { Voice = 1, Data = 2, Fax = 4, Sms = 8 }</div></li><li><div class=fn>class <b>ForwardRec</b> { }</div></li><li><div class=fn>SMSRequest * <a href="#sms"><b>sms</b></a> ()</div></li><li><div class=fn>PhoneBook * <a href="#phoneBook"><b>phoneBook</b></a> ()</div></li><li><div class=fn>SimToolkit * <a href="#simToolkit"><b>simToolkit</b></a> ()</div></li><li><div class=fn>void <a href="#startData"><b>startData</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;number, const&nbsp;QStringList&nbsp;&amp;&nbsp;initCmds, const&nbsp;QStringList&nbsp;&amp;&nbsp;moduleArgs, bool&nbsp;persist )</div></li><li><div class=fn>void <a href="#stopData"><b>stopData</b></a> ()</div></li></ul><h2>Signals</h2><ul><li><div class=fn>void <b>newCall</b> ( const&nbsp;PhoneCall&nbsp;&amp;&nbsp;call )</div></li><li><div class=fn>void <b>queryResult</b> ( PhoneLine::QueryType&nbsp;type, const&nbsp;QString&nbsp;&amp;&nbsp;value )</div></li><li><div class=fn>void <b>notification</b> ( PhoneLine::QueryType&nbsp;type, const&nbsp;QString&nbsp;&amp;&nbsp;value )</div></li></ul><h2>Static Public Members</h2><ul><li><div class=fn>OperatorInfo <b>parseOperator</b> ( const QString &amp;, bool&nbsp;*&nbsp;automatic )</div></li><li><div class=fn>QString <b>formatOperator</b> ( bool&nbsp;automatic, const&nbsp;QString&nbsp;&amp;&nbsp;opid = QString::null )</div></li><li><div class=fn>QValueList&lt;OperatorInfo&gt; <b>parseAvailableOperators</b> ( const QString &amp; )</div></li><li><div class=fn>QString <b>parseServiceCenter</b> ( const QString &amp; )</div></li><li><div class=fn>bool <b>parseCallerIdRestriction</b> ( const QString &amp;, bool&nbsp;*&nbsp;modifiable = 0 )</div></li><li><div class=fn>QString <b>formatCallerIdRestriction</b> ( bool&nbsp;on )</div></li><li><div class=fn>QString <b>formatChannels</b> ( QValueList&lt;int&gt;&nbsp;channels )</div></li><li><div class=fn>QString <b>formatBarring</b> ( bool&nbsp;enable, const&nbsp;QString&nbsp;&amp;&nbsp;password = QString::null )</div></li><li><div class=fn>QValueList&lt;ForwardRec&gt; <b>parseForwarding</b> ( const QString &amp; )</div></li><li><div class=fn>QString <b>formatForwarding</b> ( bool&nbsp;enable, int&nbsp;classx, const&nbsp;QString&nbsp;&amp;&nbsp;number )</div></li><li><div class=fn>int <b>parseCallWaiting</b> ( const QString &amp; )</div></li><li><div class=fn>QString <b>formatCallWaiting</b> ( bool&nbsp;enable, int&nbsp;classx )</div></li><li><div class=fn>QString <b>formatChangePassword</b> ( const&nbsp;QString&nbsp;&amp;&nbsp;op, const&nbsp;QString&nbsp;&amp;&nbsp;np )</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2>Implementation of a single "phone line".<p> The PhoneLine class abstracts the idea of a single "line" on thelocal device.  Phones will normally only have one line, but it istheoretically possible to have multiple lines, each with its ownlist of calls.  QString::null is used in the constructor to referto the default line.<p> The PhoneLine class keeps a list of all "active" calls: those thatare dialing, incoming, or connected.  Idle and dropped calls are notreported in this list, and the underlying object will disappear when thelast <a href="phonecall.html">PhoneCall</a> reference is dropped.<p> [Aside: identifier instances are used to represent calls because of raceconditions.  e.g. a pending call arrives, the user accepts, but before therequest can be fully processed, the other party hangs up and the realcall object disappears.  The identifier system avoids dangling referencesto deallocated objects.  Requests to inactive calls will always "fail safe".]<p> Because of race conditions, callers should not assume that a request(hangup, accept, etc) succeeded without error.  Callers should use thestate() function to query the actual state after the request.<p> <p>See also <a href="phonecall.html">PhoneCall</a>, <a href="phoneutils.html">PhoneUtils</a> and <a href="qtopiaphone.html">Qtopia Phone Classes</a>.<hr><h2>Member Function Documentation</h2><h3 class=fn><a href="phonecall.html">PhoneCall</a> <a name="active"></a>PhoneLine::active () const</h3>Returns the currently active call.  That is, the call that is connectedand not on hold.  PhoneCall::null if there is no active call.<h3 class=fn>QValueList&lt;PhoneCall&gt; <a name="calls"></a>PhoneLine::calls () const</h3>Returns a list of all active calls on this line.  Active calls arethose that are dialing, incoming, or connected.  Idle and droppedcalls are not included in this list.<h3 class=fn><a href="phonecall.html">PhoneCall</a> <a name="createCall"></a>PhoneLine::createCall ()</h3>Create a new call in the "idle" state, ready to dial.  This willnot appear in the "calls()" list until it is actually dialed.<h3 class=fn>void <a name="modify"></a>PhoneLine::modify ( QueryType&nbsp;type, const&nbsp;QString&nbsp;&amp;&nbsp;value )</h3>Modify a particular piece of information for this line.<h3 class=fn>QString <a name="name"></a>PhoneLine::name () const</h3>Return the name of this line.<h3 class=fn><a href="phonebook.html">PhoneBook</a>&nbsp;* <a name="phoneBook"></a>PhoneLine::phoneBook ()</h3>Returns the phone book manager for the phone line.<h3 class=fn>SimToolkit * <a name="simToolkit"></a>PhoneLine::simToolkit ()</h3>Returns the SIM toolkit handler for the phone line.<h3 class=fn><a href="smsrequest.html">SMSRequest</a>&nbsp;* <a name="sms"></a>PhoneLine::sms ()</h3>Returns the SMS request handler for the phone line.<h3 class=fn>void <a name="startData"></a>PhoneLine::startData ( const&nbsp;QString&nbsp;&amp;&nbsp;number, const&nbsp;QStringList&nbsp;&amp;&nbsp;initCmds, const&nbsp;QStringList&nbsp;&amp;&nbsp;moduleArgs, bool&nbsp;persist )</h3>Start a new data call.<p> The <em>initCmds</em> argument is a list of AT commands to send before dialingto initialize the data call.<p> The <em>moduleArgs</em> argument is the full list of command-line options tolaunch the data protocol module (e.g. pppd).<p> If <em>persist</em> is set to TRUE, then it indicates that pppd should bestarted, but the dial process should not happen yet.  The dial willhappen only when pppd detects TCP/IP network activity.<h3 class=fn>void <a name="stopData"></a>PhoneLine::stopData ()</h3>Stop an active data call, killing the protocol module(e.g. pppd) that is handling it.<!-- eof --><hr><p>This file is part of the <a href="../index.html">Qtopia</a> platform,copyright &copy; 1995-2004<a href="http://www.trolltech.com/">Trolltech</a>, all rights reserved.<p><address><hr><div align="center"><table width="100%" cellspacing="0" border="0"><tr><td>Copyright &copy; 2001-2004 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a><td align="right"><div align="right">Qtopia version 2.0.0</div></table></div></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -