📄 palmtopconnectionsettings.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/src/qtopiadesktop/common/palmtopconnectionsettings.cpp:31 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>PalmtopConnectionSettings 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>PalmtopConnectionSettings Class Reference</h1><p>The PalmtopConnectionSettings class maintains the connection configuration.<a href="#details">More...</a><p><tt>#include <<a href="palmtopconnectionsettings-h.html">common/palmtopconnectionsettings.h</a>></tt><p><a href="palmtopconnectionsettings-members.html">List of all member functions.</a><h2>Public Members</h2><ul><li><div class=fn>enum <a href="#Type-enum"><b>Type</b></a> { USB, Serial, LAN }</div></li><li><div class=fn><a href="#PalmtopConnectionSettings"><b>PalmtopConnectionSettings</b></a> ()</div></li><li><div class=fn><a href="#~PalmtopConnectionSettings"><b>~PalmtopConnectionSettings</b></a> ()</div></li><li><div class=fn>const QString & <a href="#pdaName"><b>pdaName</b></a> () const</div></li><li><div class=fn>void <a href="#setIpAddress"><b>setIpAddress</b></a> ( const QString & ip )</div></li><li><div class=fn>QString <a href="#ipAddress"><b>ipAddress</b></a> () const</div></li><li><div class=fn>void <a href="#setPassword"><b>setPassword</b></a> ( const QString & loginName, const QString & challenge, const QString & p )</div></li><li><div class=fn>const QString & <a href="#password"><b>password</b></a> ( const QString & loginName, const QString & challenge ) const</div></li><li><div class=fn>void <a href="#setHomeDir"><b>setHomeDir</b></a> ( const QString & h )</div></li><li><div class=fn>const QString & <a href="#homeDir"><b>homeDir</b></a> () const</div></li><li><div class=fn>const QString & <a href="#fullName"><b>fullName</b></a> () const</div></li><li><div class=fn>bool <a href="#isSerialCon"><b>isSerialCon</b></a> () const</div></li><li><div class=fn>bool <a href="#isUsbCon"><b>isUsbCon</b></a> () const</div></li><li><div class=fn>bool <a href="#isLanCon"><b>isLanCon</b></a> () const</div></li><li><div class=fn>bool <a href="#isDirectCon"><b>isDirectCon</b></a> () const</div></li><li><div class=fn>Type <a href="#type"><b>type</b></a> () const</div></li><li><div class=fn>void <a href="#setType"><b>setType</b></a> ( Type t )</div></li><li><div class=fn>bool <a href="#operator-eq-eq"><b>operator==</b></a> ( const PalmtopConnectionSettings & c ) const</div></li><li><div class=fn>bool <a href="#operator!-eq"><b>operator!=</b></a> ( const PalmtopConnectionSettings & c ) const</div></li><li><div class=fn>void <a href="#load"><b>load</b></a> ()</div></li><li><div class=fn>void <a href="#save"><b>save</b></a> () const</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2>The PalmtopConnectionSettings class maintains the connection configuration.<p> The PalmtopConnectionSettings class stores, user, password, IP, homedirectory, name and connection type information for connections toQtopia Desktop devices. The class provides functionality to save/loadaccount information to a configuration file (on Unix systems ) or theregistry (on Windows systems).<p> <p>See also <a href="qtopiadesktop.html">Qtopia Desktop Classes</a>.<hr><h2>Member Type Documentation</h2><h3 class=fn><a name="Type-enum"></a>PalmtopConnectionSettings::Type</h3> <p> This enum defines the connection type.<p> The connection types are:<ul><li><tt>PalmtopConnectionSettings::USB</tt><li><tt>PalmtopConnectionSettings::Serial</tt><li><tt>PalmtopConnectionSettings::LAN</tt></ul><hr><h2>Member Function Documentation</h2><h3 class=fn><a name="PalmtopConnectionSettings"></a>PalmtopConnectionSettings::PalmtopConnectionSettings ()</h3> <p> Constructs an account object.<h3 class=fn><a name="~PalmtopConnectionSettings"></a>PalmtopConnectionSettings::~PalmtopConnectionSettings ()</h3> <p> Destroys the object.<p> <h3 class=fn>const QString & <a name="fullName"></a>PalmtopConnectionSettings::fullName () const</h3> <p> Returns the name.<h3 class=fn>const QString & <a name="homeDir"></a>PalmtopConnectionSettings::homeDir () const</h3> <p> Returns the home directory.<p> <p>See also <a href="#setHomeDir">setHomeDir</a>().<h3 class=fn>QString <a name="ipAddress"></a>PalmtopConnectionSettings::ipAddress () const</h3>Returns the IP address string.<p> <p>See also <a href="#setIpAddress">setIpAddress</a>().<h3 class=fn>bool <a name="isDirectCon"></a>PalmtopConnectionSettings::isDirectCon () const</h3> <p> Returns TRUE if the connection type is set to "LAN" or "USB".<p> <p>See also <a href="#isSerialCon">isSerialCon</a>(), <a href="#isUsbCon">isUsbCon</a>() and <a href="#isLanCon">isLanCon</a>().<h3 class=fn>bool <a name="isLanCon"></a>PalmtopConnectionSettings::isLanCon () const</h3> <p> Returns TRUE if the connection type is set to "LAN".<p> <p>See also <a href="#isSerialCon">isSerialCon</a>(), <a href="#isUsbCon">isUsbCon</a>() and <a href="#isDirectCon">isDirectCon</a>().<h3 class=fn>bool <a name="isSerialCon"></a>PalmtopConnectionSettings::isSerialCon () const</h3> <p> Returns TRUE if the connection type is set to "Serial".<p> <p>See also <a href="#isDirectCon">isDirectCon</a>(), <a href="#isUsbCon">isUsbCon</a>() and <a href="#isLanCon">isLanCon</a>().<h3 class=fn>bool <a name="isUsbCon"></a>PalmtopConnectionSettings::isUsbCon () const</h3> <p> Returns TRUE if the connection type is set to "USB".<p> <p>See also <a href="#isSerialCon">isSerialCon</a>(), <a href="#isDirectCon">isDirectCon</a>() and <a href="#isLanCon">isLanCon</a>().<h3 class=fn>void <a name="load"></a>PalmtopConnectionSettings::load ()</h3>Read account configuration from the Qtopia Desktop configuration file on Unix orfrom the registry on Windows.<p> <p>See also <a href="#save">save</a>().<h3 class=fn>bool <a name="operator!-eq"></a>PalmtopConnectionSettings::operator!= ( const <a href="palmtopconnectionsettings.html">PalmtopConnectionSettings</a> & c ) const</h3> <p> Returns TRUE if this accouts does _not_ equal PalmtopConnectionSettings <em>c</em><h3 class=fn>bool <a name="operator-eq-eq"></a>PalmtopConnectionSettings::operator== ( const <a href="palmtopconnectionsettings.html">PalmtopConnectionSettings</a> & c ) const</h3>Returns TRUE if this accouts equals PalmtopConnectionSettings <em>c</em><h3 class=fn>const QString & <a name="password"></a>PalmtopConnectionSettings::password ( const QString & loginName, const QString & challenge ) const</h3>Returns the password for user <em>loginName</em> and challenge <em>challenge</em>.<p> <p>See also <a href="#setPassword">setPassword</a>().<h3 class=fn>const QString & <a name="pdaName"></a>PalmtopConnectionSettings::pdaName () const</h3> <p> Returns a unique key (identifier) for the PDA based on its SSH (Secure SHell) key.<h3 class=fn>void <a name="save"></a>PalmtopConnectionSettings::save () const</h3>Writes account configuration to the Qtopia Desktop configuration file on Unix orto the registry on Windows.<p> <p>See also <a href="#load">load</a>().<h3 class=fn>void <a name="setHomeDir"></a>PalmtopConnectionSettings::setHomeDir ( const QString & h )</h3> <p> Sets the home directory to <em>h</em>.<p> <p>See also <a href="#homeDir">homeDir</a>().<h3 class=fn>void <a name="setIpAddress"></a>PalmtopConnectionSettings::setIpAddress ( const QString & ip )</h3>Sets the IP address to <em>ip</em>.<p> <p>See also <a href="#ipAddress">ipAddress</a>().<h3 class=fn>void <a name="setPassword"></a>PalmtopConnectionSettings::setPassword ( const QString & loginName, const QString & challenge, const QString & p )</h3>Sets the password information to user <em>loginName</em>, challenge <em>challenge</em> and password <em>p</em>.Removes password information if \p is empty. For Qtopia 1.5 on the Zaurus, this will not be used.<p> <p>See also <a href="#password">password</a>().<h3 class=fn>void <a name="setType"></a>PalmtopConnectionSettings::setType ( <a href="palmtopconnectionsettings.html#Type-enum">Type</a> t )</h3> <p> Sets the connection type to <em>t</em>.<p> <p>See also <a href="#type">type</a>().<h3 class=fn><a href="palmtopconnectionsettings.html#Type-enum">Type</a> <a name="type"></a>PalmtopConnectionSettings::type () const</h3> <p> Returns the connection type.<p> <p>See also <a href="#setType">setType</a>().<!-- eof --><hr><p>This file is part of the <a href="../index.html">Qtopia</a> platform,copyright © 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 © 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 + -