📄 pimrecord.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/src/libraries/qtopiapim/pimrecord.cpp:48 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>PimRecord 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>PimRecord Class Reference<br><small>[<a href="qpepim.html">qpepim module</a>]</small></h1><p>The PimRecord class is the base class for PIM data recorded in theQtopia database.<a href="#details">More...</a><p><tt>#include <<a href="pimrecord-h.html">pimrecord.h</a>></tt><p>Inherited by <a href="pimcontact.html">PimContact</a>, <a href="pimevent.html">PimEvent</a> and <a href="pimtask.html">PimTask</a>.<p><a href="pimrecord-members.html">List of all member functions.</a><h2>Public Members</h2><ul><li><div class=fn><a href="#PimRecord"><b>PimRecord</b></a> ()</div></li><li><div class=fn><a href="#PimRecord-2"><b>PimRecord</b></a> ( const PimRecord & other )</div></li><li><div class=fn>virtual <a href="#~PimRecord"><b>~PimRecord</b></a> ()</div></li><li><div class=fn>virtual PimRecord & <a href="#operator-eq"><b>operator=</b></a> ( const PimRecord & other )</div></li><li><div class=fn>bool <a href="#operator-eq-eq"><b>operator==</b></a> ( const PimRecord & other ) const</div></li><li><div class=fn>bool <a href="#operator!-eq"><b>operator!=</b></a> ( const PimRecord & other ) const</div></li><li><div class=fn>void <a href="#setCategories"><b>setCategories</b></a> ( const QArray<int> & categories )</div></li><li><div class=fn>void <a href="#setCategories-2"><b>setCategories</b></a> ( int id )</div></li><li><div class=fn>QArray<int> <a href="#categories"><b>categories</b></a> () const</div></li><li><div class=fn>virtual QString <a href="#customField"><b>customField</b></a> ( const QString & key ) const</div></li><li><div class=fn>virtual void <a href="#setCustomField"><b>setCustomField</b></a> ( const QString & key, const QString & value )</div></li><li><div class=fn>virtual void <a href="#removeCustomField"><b>removeCustomField</b></a> ( const QString & key )</div></li><li><div class=fn>QUuid <a href="#uid"><b>uid</b></a> () const</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2>The PimRecord class is the base class for PIM data recorded in theQtopia database.<p> The Pim record class contains data that is common to all data usedby the PIM applications, in particular a unique ID and a set ofcategories.<p> A PimRecord's ID is returned by <a href="#uid">uid</a>() and is set with setUid(). Eachcategory is represented by an integer. A PimRecord's categories arereturned by <a href="#categories">categories</a>() and are set with <a href="#setCategories">setCategories</a>().<p> PimRecord comparisons are provided by <a href="#operator-eq-eq">operator==</a>() and <a href="#operator!-eq">operator!=</a>().<p>See also <a href="qpepim.html">Qtopia PIM Library</a>.<hr><h2>Member Function Documentation</h2><h3 class=fn><a name="PimRecord"></a>PimRecord::PimRecord ()</h3>Creates an empty record.<h3 class=fn><a name="PimRecord-2"></a>PimRecord::PimRecord ( const <a href="pimrecord.html">PimRecord</a> & other )</h3>Creates a clone of the record <em>other</em>.<h3 class=fn><a name="~PimRecord"></a>PimRecord::~PimRecord ()<tt> [virtual]</tt></h3>Destroys the record.<h3 class=fn>QArray<int> <a name="categories"></a>PimRecord::categories () const</h3><p> Returns the set of categories the record belongs to.<p> <p>See also <a href="#setCategories">setCategories</a>().<h3 class=fn>QString <a name="customField"></a>PimRecord::customField ( const QString & key ) const<tt> [virtual]</tt></h3>Returns the string stored for the custom field <em>key</em>.Returns a null string if the field does not exist.<h3 class=fn>bool <a name="operator!-eq"></a>PimRecord::operator!= ( const <a href="pimrecord.html">PimRecord</a> & other ) const</h3>Returns TRUE if the record does not have the same Uid as <em>other</em>; otherwise returns FALSE.<p> <p>See also <a href="#operator-eq-eq">operator==</a>().<h3 class=fn><a href="pimrecord.html">PimRecord</a> & <a name="operator-eq"></a>PimRecord::operator= ( const <a href="pimrecord.html">PimRecord</a> & other )<tt> [virtual]</tt></h3>Sets the record to be a clone of <em>other</em>.<h3 class=fn>bool <a name="operator-eq-eq"></a>PimRecord::operator== ( const <a href="pimrecord.html">PimRecord</a> & other ) const</h3>Returns TRUE if the record has the same Uid as <em>other</em>;otherwise returns FALSE.<p> <p>See also <a href="#operator!-eq">operator!=</a>().<h3 class=fn>void <a name="removeCustomField"></a>PimRecord::removeCustomField ( const QString & key )<tt> [virtual]</tt></h3>Removes the custom field <em>key</em>.<h3 class=fn>void <a name="setCategories"></a>PimRecord::setCategories ( const QArray<int> & categories )</h3><p> Sets the record to belong to the set of categories specificedby <em>categories</em>.<p> <p>See also <a href="#categories">categories</a>().<h3 class=fn>void <a name="setCategories-2"></a>PimRecord::setCategories ( int id )</h3>This is an overloaded member function, provided for convenience. It behaves essentially like the above function.<p> Sets the record to belong only to the category specified by <em>id</em>.<p> <p>See also <a href="#categories">categories</a>().<h3 class=fn>void <a name="setCustomField"></a>PimRecord::setCustomField ( const QString & key, const QString & value )<tt> [virtual]</tt></h3>Sets the string stored for the custom field <em>key</em> to <em>value</em>.<h3 class=fn><a href="quuid.html">QUuid</a> <a name="uid"></a>PimRecord::uid () const</h3><p> Returns the unique ID for this record.<!-- 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 + -