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

📄 addressbookaccess.html

📁 qtopiaphone英文帮助,用于初学者和开发人员,初学者可以用来学习,开发人员可以用来资料查询.
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/src/libraries/qtopiapim/addressbookaccess.cpp:39 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>AddressBookAccess 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>AddressBookAccess Class Reference<br><small>[<a href="qpepim.html">qpepim module</a>]</small></h1><p>The AddressBookAccess class provides a safe API for accessing address book data.<a href="#details">More...</a><p><tt>#include &lt;<a href="addressbookaccess-h.html">addressbookaccess.h</a>&gt;</tt><p><a href="addressbookaccess-members.html">List of all member functions.</a><h2>Public Members</h2><ul><li><div class=fn><a href="#AddressBookAccess"><b>AddressBookAccess</b></a> ()</div></li><li><div class=fn><a href="#~AddressBookAccess"><b>~AddressBookAccess</b></a> ()</div></li><li><div class=fn>bool <a href="#editSupported"><b>editSupported</b></a> () const</div></li><li><div class=fn>void <a href="#updateContact"><b>updateContact</b></a> ( const&nbsp;PimContact&nbsp;&amp;&nbsp;contact )</div></li><li><div class=fn>void <a href="#removeContact"><b>removeContact</b></a> ( const&nbsp;PimContact&nbsp;&amp;&nbsp;contact )</div></li><li><div class=fn>void <a href="#addContact"><b>addContact</b></a> ( const&nbsp;PimContact&nbsp;&amp;&nbsp;contact )</div></li><li><div class=fn>PimContact <a href="#personalDetails"><b>personalDetails</b></a> () const</div></li><li><div class=fn>PimContact <a href="#contactForId"><b>contactForId</b></a> ( const&nbsp;QUuid&nbsp;&amp;&nbsp;u, bool&nbsp;*&nbsp;ok = 0 ) const</div></li></ul><h2>Signals</h2><ul><li><div class=fn>void <a href="#addressBookUpdated"><b>addressBookUpdated</b></a> ()</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2> The AddressBookAccess class provides a safe API for accessing address book data.<p> AddressBookAccess provides a safe API for accessing PimContacts stored byQtopia's contacts application.  AddressBookAccess tries to keep in sync withmodifications, and alerts the user of the library when modifications have been madeto the data.<p>See also <a href="qpepim.html">Qtopia PIM Library</a>.<hr><h2>Member Function Documentation</h2><h3 class=fn><a name="AddressBookAccess"></a>AddressBookAccess::AddressBookAccess ()</h3>Constructs a new AddressBookAccess.<h3 class=fn><a name="~AddressBookAccess"></a>AddressBookAccess::~AddressBookAccess ()</h3>Cleans up the the Addressbook access.<h3 class=fn>void <a name="addContact"></a>AddressBookAccess::addContact ( const&nbsp;<a href="pimcontact.html">PimContact</a>&nbsp;&amp;&nbsp;contact )</h3>If supported will assign a new unique ID to <em>contact</em> and add the contactto the pim data.<p> Adding contacts requires the Contacts service to be available.<p> If the contact is added correctly, an addedContact(int,PimContact) message will be sent to the QPE/PIM channel.  The contact in this message can be used to determinethe assigned ID.<h3 class=fn>void <a name="addressBookUpdated"></a>AddressBookAccess::addressBookUpdated ()<tt> [signal]</tt></h3> <p> This signal is emitted when a contact in the address book is added, removed or modified.<h3 class=fn><a href="pimcontact.html">PimContact</a> <a name="contactForId"></a>AddressBookAccess::contactForId ( const&nbsp;<a href="quuid.html">QUuid</a>&nbsp;&amp;&nbsp;u, bool&nbsp;*&nbsp;ok = 0 ) const</h3>If there exists an contact with the uid <em>u</em>, return that contact.  Returns a null contact if otherwise.<p> If <em>ok</em> is non-null, *ok is set to TRUE if the contact isfound, and FALSE if the contact is not found.<h3 class=fn>bool <a name="editSupported"></a>AddressBookAccess::editSupported () const</h3>Returns TRUE if it is possible to add, remove and update contacts inthe pim data.  Otherwise returns FALSE.<p> Adding, removing and updating contacts requires the Contacts service to beavailable<h3 class=fn><a href="pimcontact.html">PimContact</a> <a name="personalDetails"></a>AddressBookAccess::personalDetails () const</h3>Returns the <a href="pimcontact.html">PimContact</a> marked as Personal Details.<h3 class=fn>void <a name="removeContact"></a>AddressBookAccess::removeContact ( const&nbsp;<a href="pimcontact.html">PimContact</a>&nbsp;&amp;&nbsp;contact )</h3>If supported will remove <em>contact</em> from pim data.<p> Removing contacts requires the Contacts service to be available.<h3 class=fn>void <a name="updateContact"></a>AddressBookAccess::updateContact ( const&nbsp;<a href="pimcontact.html">PimContact</a>&nbsp;&amp;&nbsp;contact )</h3>If supported will update <em>contact</em> in pim data.<p> Updating contacts requires the Contacts service to be available.<!-- 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 + -