📄 qdllink.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/src/libraries/qtopia2/qdl.cpp:542 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>QDLLink 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>QDLLink Class Reference</h1><p>The QDLLink class encapsulates the data of a link.<a href="#details">More...</a><p><tt>#include <<a href="qdl-h.html">qdl.h</a>></tt><p><a href="qdllink-members.html">List of all member functions.</a><h2>Public Members</h2><ul><li><div class=fn><a href="#QDLLink"><b>QDLLink</b></a> ()</div></li><li><div class=fn><a href="#QDLLink-2"><b>QDLLink</b></a> ( const QCString & appRef, const QByteArray & dataRef, const QString & desc, const QCString & icon )</div></li><li><div class=fn><a href="#QDLLink-3"><b>QDLLink</b></a> ( const QDLLink & other )</div></li><li><div class=fn>bool <a href="#isNull"><b>isNull</b></a> () const</div></li><li><div class=fn>void <a href="#setAppRef"><b>setAppRef</b></a> ( const QCString & ref )</div></li><li><div class=fn>QCString <a href="#appRef"><b>appRef</b></a> () const</div></li><li><div class=fn>void <a href="#setDataRef"><b>setDataRef</b></a> ( const QByteArray & ref )</div></li><li><div class=fn>QByteArray <a href="#dataRef"><b>dataRef</b></a> () const</div></li><li><div class=fn>void <a href="#setDescription"><b>setDescription</b></a> ( const QString & desc )</div></li><li><div class=fn>QString <a href="#description"><b>description</b></a> () const</div></li><li><div class=fn>void <a href="#setIcon"><b>setIcon</b></a> ( const QCString & icon )</div></li><li><div class=fn>QCString <a href="#icon"><b>icon</b></a> () const</div></li><li><div class=fn>QDLLink & <a href="#operator-eq"><b>operator=</b></a> ( const QDLLink & other )</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2><p> The QDLLink class encapsulates the data of a link.<p> The QDLLink class encapsulates the data of a link.<p> A link is made up of four elements. They are:<ol><li>Application Reference (QCString)- A reference to the application which contains the data to be linked.This is the application's filename (eg. addressbook)<li>Data Reference (QByteArray)- Binary data that the source uses which uniquely identifies the data to be linked.<li>Description (QString)- A description of the link to display to the user.<li>Icon (QCString) The name of an icon which qualifies the link in some way(eg. as a link to a contact, an event etc). Passed to <a href="resource.html#loadPixmap">Resource::loadPixmap</a>()</ol><p> <p>See also <a href="qtopiaemb.html">Qtopia Classes</a>.<hr><h2>Member Function Documentation</h2><h3 class=fn><a name="QDLLink"></a>QDLLink::QDLLink ()</h3>Constructs a null link.<h3 class=fn><a name="QDLLink-2"></a>QDLLink::QDLLink ( const QCString & appRef, const QByteArray & dataRef, const QString & desc, const QCString & icon )</h3>Constructs a link fromthe application reference <em>appRef</em>, the data reference <em>dataRef</em>,the description <em>desc</em> and the icon <em>icon</em>.<h3 class=fn><a name="QDLLink-3"></a>QDLLink::QDLLink ( const <a href="qdllink.html">QDLLink</a> & other )</h3>Copy constructor. Performs a deep copy of the link specified by <em>other</em>.<h3 class=fn>QCString <a name="appRef"></a>QDLLink::appRef () const</h3>Returns the application reference of the link.<h3 class=fn>QByteArray <a name="dataRef"></a>QDLLink::dataRef () const</h3>Returns the data reference of the link.<h3 class=fn>QString <a name="description"></a>QDLLink::description () const</h3>Returns the description of the link.<h3 class=fn>QCString <a name="icon"></a>QDLLink::icon () const</h3>Returns the icon of the link.<h3 class=fn>bool <a name="isNull"></a>QDLLink::isNull () const</h3>Returns TRUE if the link is null, otherwise returns FALSE.A null link has no application or data reference.<h3 class=fn><a href="qdllink.html">QDLLink</a> & <a name="operator-eq"></a>QDLLink::operator= ( const <a href="qdllink.html">QDLLink</a> & other )</h3>Deep copies the link specified by <em>other</em>.<h3 class=fn>void <a name="setAppRef"></a>QDLLink::setAppRef ( const QCString & ref )</h3>Sets the application reference of the link to <em>ref</em>.<h3 class=fn>void <a name="setDataRef"></a>QDLLink::setDataRef ( const QByteArray & ref )</h3>Sets the data reference of the link to <em>ref</em>.<h3 class=fn>void <a name="setDescription"></a>QDLLink::setDescription ( const QString & desc )</h3>Sets the description of the link to <em>desc</em>.<h3 class=fn>void <a name="setIcon"></a>QDLLink::setIcon ( const QCString & icon )</h3>Sets the icon of the link to <em>icon</em>.<!-- 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 + -