qdl.html
来自「qtopiaphone英文帮助,用于初学者和开发人员,初学者可以用来学习,开发人」· HTML 代码 · 共 163 行
HTML
163 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/src/libraries/qtopia2/qdl.cpp:67 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>QDL 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>QDL Class Reference</h1><p>The QDL class provides general utility functions for usewith Qtopia Data Linking.<a href="#details">More...</a><p><tt>#include <<a href="qdl-h.html">qdl.h</a>></tt><p><a href="qdl-members.html">List of all member functions.</a><h2>Static Public Members</h2><ul><li><div class=fn>QList<QDLClient> <a href="#clients"><b>clients</b></a> ( QObject * parent )</div></li><li><div class=fn>void <a href="#sendHeartBeat"><b>sendHeartBeat</b></a> ( const QString & clientID )</div></li><li><div class=fn>void <a href="#loadLinks-2"><b>loadLinks</b></a> ( const QString & str, QDLClient * client )</div></li><li><div class=fn>void <a href="#loadLinks"><b>loadLinks</b></a> ( const QString & str, QList<QDLClient> clientList )</div></li><li><div class=fn>void <a href="#saveLinks-2"><b>saveLinks</b></a> ( QString & str, QDLClient * client )</div></li><li><div class=fn>void <a href="#saveLinks"><b>saveLinks</b></a> ( QString & str, QList<QDLClient> clientList )</div></li><li><div class=fn>void <a href="#activateLink"><b>activateLink</b></a> ( const QString & ahref, const QList<QDLClient> & clientList )</div></li><li><div class=fn>QString <a href="#encodeAhref"><b>encodeAhref</b></a> ( const QString & ahref )</div></li><li><div class=fn>QString <a href="#decodeAhref"><b>decodeAhref</b></a> ( const QString & ahref )</div></li><li><div class=fn>QString <a href="#lidsToAnchors"><b>lidsToAnchors</b></a> ( const QString & lidText, const QDLClient * client, bool withIcons = TRUE )</div></li><li><div class=fn>QString <a href="#removeLids"><b>removeLids</b></a> ( const QString & lidText )</div></li><li><div class=fn>uint <a href="#lidToUInt"><b>lidToUInt</b></a> ( const QString & lid )</div></li><li><div class=fn>QString <a href="#lidFromUInt"><b>lidFromUInt</b></a> ( uint lid )</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2>The QDL class provides general utility functions for usewith Qtopia Data Linking.<p> Qtopia Data Linking (QDL) enables a client to link to data in a source.A client may be a stand-alone object (<a href="qdlclient.html">QDLClient</a>) or attached to awidget (<a href="qdlwidgetclient.html">QDLWidgetClient</a>).A source can be any application which acts as a container for usefuldata and provides the QDL <a href="service.html">Service</a>. <p> This class provides useful functions for loading and saving linksand dealing with general QDL usage.<p> First availability: Qtopia 2.0<p> <p>See also <a href="qtopiaemb.html">Qtopia Classes</a>.<hr><h2>Member Function Documentation</h2><h3 class=fn>void <a name="activateLink"></a>QDL::activateLink ( const QString & ahref, const QList<QDLClient> & clientList )<tt> [static]</tt></h3>Activates the QDL link specified by <em>ahref</em>. ahref should be in the form <pre> qdl://<clientName>:<lid> </pre> .Rich text links are usually generated by QDL::lidsToAnchors.<p> What 'activate' actually means is dependent on the source application.As an example, if <tt>the</tt> <a href="qdllink.html">QDLLink</a> points to a contact, the Contacts application might display that particular contact.<p> <p>See also QDL::lidsToAnchors.<h3 class=fn>QList<QDLClient> <a name="clients"></a>QDL::clients ( QObject * parent )<tt> [static]</tt></h3>Returns all <a href="qdlclient.html">QDLClient</a> objects that are children of <em>parent</em>.This is useful for automatically loading links into a bunch of clients eg.<p> <pre> QDL::<a href="#loadLinks">loadLinks</a>( rec, QDL::clients( this ) ); </pre> <h3 class=fn>QString <a name="decodeAhref"></a>QDL::decodeAhref ( const QString & ahref )<tt> [static]</tt></h3>Decodes the string <em>ahref</em> that was encoded as part of a QDL link.<h3 class=fn>QString <a name="encodeAhref"></a>QDL::encodeAhref ( const QString & ahref )<tt> [static]</tt></h3>Encodes the string <em>ahref</em> so that it may be included as part of a QDL link.<h3 class=fn>QString <a name="lidFromUInt"></a>QDL::lidFromUInt ( uint lid )<tt> [static]</tt></h3>Converts the unsigned integer link identifier <em>lid</em> into an equivalentunicode superscript link identifier.<h3 class=fn>uint <a name="lidToUInt"></a>QDL::lidToUInt ( const QString & lid )<tt> [static]</tt></h3>Converts the unicode superscript link identifier <em>lid</em> intoan equivalent unsigned integer link identifier.<p> <p>See also <a href="#lidFromUInt">lidFromUInt</a>().<h3 class=fn>QString <a name="lidsToAnchors"></a>QDL::lidsToAnchors ( const QString & lidText, const <a href="qdlclient.html">QDLClient</a> * client, bool withIcons = TRUE )<tt> [static]</tt></h3>Converts the unicode superscript link identifiers in <em>lidText</em> to rich text anchors based on the links in <em>client</em>.<p> If <em>withIcons</em> is TRUE (the default), icons are included as part of the rich text links.<h3 class=fn>void <a name="loadLinks"></a>QDL::loadLinks ( const QString & str, QList<QDLClient> clientList )<tt> [static]</tt></h3>Loads the links stored in <em>str</em> into the clients in <em>clientList</em>.<em>str</em> is the base64 encoded binary data of the links.<h3 class=fn>void <a name="loadLinks-2"></a>QDL::loadLinks ( const QString & str, <a href="qdlclient.html">QDLClient</a> * client )<tt> [static]</tt></h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function.<p> Loads the links stored in <em>str</em> into a single <em>client</em>.<h3 class=fn>QString <a name="removeLids"></a>QDL::removeLids ( const QString & lidText )<tt> [static]</tt></h3>Removes the unicode superscript link identifiers in <em>lidText</em>.<h3 class=fn>void <a name="saveLinks"></a>QDL::saveLinks ( QString & str, QList<QDLClient> clientList )<tt> [static]</tt></h3>Saves the links from <em>clientList</em> into <em>str</em>.<em>str</em> will be the base64 encoded binary link data.<h3 class=fn>void <a name="saveLinks-2"></a>QDL::saveLinks ( QString & str, <a href="qdlclient.html">QDLClient</a> * client )<tt> [static]</tt></h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function.<p> Saves the links from the single <em>client</em> to <em>str</em>.<h3 class=fn>void <a name="sendHeartBeat"></a>QDL::sendHeartBeat ( const QString & clientID )<tt> [static]</tt></h3>Sends a heart beat to the client with the specified <em>clientID</em>.A heart beat is used by a source to let clients know that their request is stillbeing actively processed. A client will stop waiting for a response if their request times outso this function should be called periodically to keep the request alive.<p> Normally you don't want to use this function directly, but the abstraction class <a href="qdlheartbeat.html">QDLHeartBeat</a>.<p> <p>See also <a href="qdlheartbeat.html">QDLHeartBeat</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 + =
减小字号Ctrl + -
显示快捷键?