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

📄 networkinterface.html

📁 qtopiaphone英文帮助,用于初学者和开发人员,初学者可以用来学习,开发人员可以用来资料查询.
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/src/libraries/qtopia/networkinterface.cpp:26 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>NetworkInterface 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>NetworkInterface Class Reference</h1><p>The NetworkInterface class allows plugin network services.<a href="#details">More...</a><p><tt>#include &lt;<a href="networkinterface-h.html">networkinterface.h</a>&gt;</tt><p><a href="networkinterface-members.html">List of all member functions.</a><h2>Public Members</h2><ul><li><div class=fn>virtual bool <a href="#doProperties"><b>doProperties</b></a> ( QWidget&nbsp;*&nbsp;parent, Config&nbsp;&amp;&nbsp;cfg ) = 0</div></li><li><div class=fn>virtual bool <a href="#create"><b>create</b></a> ( Config&nbsp;&amp;&nbsp;cfg ) = 0</div></li><li><div class=fn>virtual bool <a href="#remove"><b>remove</b></a> ( Config &amp; ) = 0</div></li><li><div class=fn>virtual QString <a href="#device"><b>device</b></a> ( Config&nbsp;&amp;&nbsp;cfg ) const</div></li><li><div class=fn>virtual QString <a href="#cardType"><b>cardType</b></a> ( Config&nbsp;&amp;&nbsp;cfg ) const</div></li><li><div class=fn>virtual bool <a href="#isActive"><b>isActive</b></a> ( Config&nbsp;&amp;&nbsp;cfg ) const</div></li><li><div class=fn>virtual bool <a href="#isAvailable"><b>isAvailable</b></a> ( Config&nbsp;&amp;&nbsp;cfg ) const</div></li><li><div class=fn>virtual bool <a href="#start"><b>start</b></a> ( Config&nbsp;&amp;&nbsp;cfg ) = 0</div></li><li><div class=fn>virtual bool <a href="#start-2"><b>start</b></a> ( Config&nbsp;&amp;&nbsp;cfg, const&nbsp;QString&nbsp;&amp;&nbsp;password )</div></li><li><div class=fn>virtual bool <a href="#stop"><b>stop</b></a> ( Config&nbsp;&amp;&nbsp;cfg ) = 0</div></li><li><div class=fn>virtual bool <a href="#needPassword"><b>needPassword</b></a> ( Config&nbsp;&amp;&nbsp;cfg ) const</div></li><li><div class=fn>virtual QWidget * <a href="#addStateWidget"><b>addStateWidget</b></a> ( QWidget&nbsp;*&nbsp;parent, Config&nbsp;&amp;&nbsp;cfg ) const</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2>The NetworkInterface class allows plugin network services.<p> The Qtopia Network facilities are defined by the configurationsin the Qtopia etc/network/ directory. For example, the genericDialUp.conf configuration looks like this (the actual file isencoded in UTF-8):<p> <pre>[Info]Name = Dial-up - PPPType = dialupLayer = TCP/IP[Help]Help = For dial-up connections through a modem and plain telephone line.Help[de] = F黵 W鋒lverbindungen mit Modem und Telefon.[Properties]Auto = 0Device = pppCardType = serial</pre><p> To add a network service that is merely a specific dialup service,you need only provide another configuration files, for example:<p> <pre>[Info]Name = SuperNet ISPType = dialupLayer = TCP/IP[Help]Help = Connect to your local SuperNet(tm) point-of-presence.[Properties]Auto = 0Device = pppCardType = serialpassword = secretphone = 555555555speed = 115200username = customer</pre><p> However, to add a service beyond the scope of the existingservices, you can define your own network service Type,by creating a NetworkInterface plugin.<hr><h2>Member Function Documentation</h2><h3 class=fn>QWidget * <a name="addStateWidget"></a>NetworkInterface::addStateWidget ( QWidget&nbsp;*&nbsp;parent, <a href="config.html">Config</a>&nbsp;&amp;&nbsp;cfg ) const<tt> [virtual]</tt></h3>Returns a widget, with <em>parent</em> as its parent, that showsthe state of the network service defined by <em>cfg</em>.<p> By default, 0 is returned (no state widget).<h3 class=fn>QString <a name="cardType"></a>NetworkInterface::cardType ( <a href="config.html">Config</a>&nbsp;&amp;&nbsp;cfg ) const<tt> [virtual]</tt></h3>Returns the pcmcia card type associated with this service.<p> By default, the Properties.CardType value in <em>cfg</em> is returned.<h3 class=fn>bool <a name="create"></a>NetworkInterface::create ( <a href="config.html">Config</a>&nbsp;&amp;&nbsp;cfg )<tt> [pure virtual]</tt></h3><p> Performs any system state changes required forthe network service defined by <em>cfg</em>. This iscalled only when the service is first added bythe user.<h3 class=fn>QString <a name="device"></a>NetworkInterface::device ( <a href="config.html">Config</a>&nbsp;&amp;&nbsp;cfg ) const<tt> [virtual]</tt></h3>Returns the network device which is used for the connection.<p> By default, the Properties.Device value in <em>cfg</em> is returned.<h3 class=fn>bool <a name="doProperties"></a>NetworkInterface::doProperties ( QWidget&nbsp;*&nbsp;parent, <a href="config.html">Config</a>&nbsp;&amp;&nbsp;cfg )<tt> [pure virtual]</tt></h3><p> Prompts the user to manipulate the properties of thenetwork service defined by <em>cfg</em>, using a modal dialogwhich has the given <em>parent</em>. Returns TRUE on success,of FALSE if the user cancels the interaction.<h3 class=fn>bool <a name="isActive"></a>NetworkInterface::isActive ( <a href="config.html">Config</a>&nbsp;&amp;&nbsp;cfg ) const<tt> [virtual]</tt></h3>Returns TRUE if the service defined by <em>cfg</em> is active.<p> By default, the <a href="#device">device</a>() is searched for in /proc/net/dev.<h3 class=fn>bool <a name="isAvailable"></a>NetworkInterface::isAvailable ( <a href="config.html">Config</a>&nbsp;&amp;&nbsp;cfg ) const<tt> [virtual]</tt></h3>Returns TRUE is the network service defined by <em>cfg</em>is available to be started.<p> By default, the <a href="#cardType">cardType</a>() is searched for in thesystem pcmcia tables.<h3 class=fn>bool <a name="needPassword"></a>NetworkInterface::needPassword ( <a href="config.html">Config</a>&nbsp;&amp;&nbsp;cfg ) const<tt> [virtual]</tt></h3>Returns TRUE if the network service defined by <em>cfg</em> requiresa password.<h3 class=fn>bool <a name="remove"></a>NetworkInterface::remove ( <a href="config.html">Config</a>&nbsp;&amp; )<tt> [pure virtual]</tt></h3><p> Reverts any system state changes made in <a href="#create">create</a>().<h3 class=fn>bool <a name="start"></a>NetworkInterface::start ( <a href="config.html">Config</a>&nbsp;&amp;&nbsp;cfg )<tt> [pure virtual]</tt></h3><p> Starts the network service defined by <em>cfg</em>,returning TRUE on success.<p> There is no default implementation.<h3 class=fn>bool <a name="start-2"></a>NetworkInterface::start ( <a href="config.html">Config</a>&nbsp;&amp;&nbsp;cfg, const&nbsp;QString&nbsp;&amp;&nbsp;password )<tt> [virtual]</tt></h3><p> Starts the network service defined by <em>cfg</em>, using the given<em>password</em>, returning TRUE on success.<p> By default, the <a href="#start">start</a>() method without a password is called.<h3 class=fn>bool <a name="stop"></a>NetworkInterface::stop ( <a href="config.html">Config</a>&nbsp;&amp;&nbsp;cfg )<tt> [pure virtual]</tt></h3><p> Stops the network service defined by <em>cfg</em>,returning TRUE on success.<p> There is no default implementation.<!-- 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 + -