Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 50facae208d4a6f280e44a513b104320 > files > 750

qt-mobility-doc-1.2.0-13.mga5.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qcontactmanager.cpp -->
  <title>Qt Mobility 1.2: QContactManager Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>QtMobility Reference Documentation</span></a>
  </div>
  <div class="breadcrumb toolblock">
    <ul>
      <li class="first"><a href="index.html">Home</a></li>
      <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtcontacts.html">QtContacts</a></li>
<li>QContactManager</li>
    </ul>
  </div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QContactManager Class Reference</h1>
<!-- $$$QContactManager-brief -->
<p>The QContactManager class provides an interface which allows clients with access to contact information stored in a particular backend. <a href="#details">More...</a></p>
<!-- @@@QContactManager -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QContactManager&gt;</span></pre><p><b>Inherits: </b><a href="http://qt.nokia.com/doc/4.7/qobject.html">QObject</a>.</p>
<p>This class was introduced in Qt Mobility 1.0.</p>
<ul>
<li><a href="qcontactmanager-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#Error-enum">Error</a></b> { NoError, DoesNotExistError, AlreadyExistsError, InvalidDetailError, ..., UnspecifiedError }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#ManagerFeature-enum">ManagerFeature</a></b> { Groups, ActionPreferences, DetailOrdering, Relationships, ..., Anonymous }</td></tr>
</table>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#QContactManager">QContactManager</a></b> ( const QString &amp; <i>managerName</i> = QString(), const QMap&lt;QString, QString&gt; &amp; <i>parameters</i> = 0, QObject * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#QContactManager-2">QContactManager</a></b> ( const QString &amp; <i>managerName</i>, int <i>implementationVersion</i>, const QMap&lt;QString, QString&gt; &amp; <i>parameters</i> = 0, QObject * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#QContactManager-3">QContactManager</a></b> ( QObject * <i>parent</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#dtor.QContactManager">~QContactManager</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QContact </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#compatibleContact">compatibleContact</a></b> ( const QContact &amp; <i>original</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QContact </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#contact">contact</a></b> ( const QContactLocalId &amp; <i>contactId</i>, const QContactFetchHint &amp; <i>fetchHint</i> = QContactFetchHint() ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QContactLocalId&gt; </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#contactIds">contactIds</a></b> ( const QList&lt;QContactSortOrder&gt; &amp; <i>sortOrders</i> = QList&lt;QContactSortOrder&gt; () ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QContactLocalId&gt; </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#contactIds-2">contactIds</a></b> ( const QContactFilter &amp; <i>filter</i>, const QList&lt;QContactSortOrder&gt; &amp; <i>sortOrders</i> = QList&lt;QContactSortOrder&gt; () ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QContact&gt; </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#contacts">contacts</a></b> ( const QList&lt;QContactSortOrder&gt; &amp; <i>sortOrders</i> = QList&lt;QContactSortOrder&gt; (), const QContactFetchHint &amp; <i>fetchHint</i> = QContactFetchHint() ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QContact&gt; </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#contacts-2">contacts</a></b> ( const QContactFilter &amp; <i>filter</i>, const QList&lt;QContactSortOrder&gt; &amp; <i>sortOrders</i> = QList&lt;QContactSortOrder&gt; (), const QContactFetchHint &amp; <i>fetchHint</i> = QContactFetchHint() ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QContact&gt; </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#contacts-3">contacts</a></b> ( const QList&lt;QContactLocalId&gt; &amp; <i>localIds</i>, const QContactFetchHint &amp; <i>fetchHint</i> = QContactFetchHint(), QMap&lt;int, QContactManager::Error&gt; * <i>errorMap</i> = 0 ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QContactDetailDefinition </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#detailDefinition">detailDefinition</a></b> ( const QString &amp; <i>definitionName</i>, const QString &amp; <i>contactType</i> = QContactType::TypeContact ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMap&lt;QString, QContactDetailDefinition&gt; </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#detailDefinitions">detailDefinitions</a></b> ( const QString &amp; <i>contactType</i> = QContactType::TypeContact ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QContactManager::Error </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#error">error</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMap&lt;int, QContactManager::Error&gt; </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#errorMap">errorMap</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#hasFeature">hasFeature</a></b> ( QContactManager::ManagerFeature <i>feature</i>, const QString &amp; <i>contactType</i> = QContactType::TypeContact ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#isFilterSupported">isFilterSupported</a></b> ( const QContactFilter &amp; <i>filter</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#isRelationshipTypeSupported">isRelationshipTypeSupported</a></b> ( const QString &amp; <i>relationshipType</i>, const QString &amp; <i>contactType</i> = QContactType::TypeContact ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#managerName">managerName</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMap&lt;QString, QString&gt; </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#managerParameters">managerParameters</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#managerUri">managerUri</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#managerVersion">managerVersion</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QContactRelationship&gt; </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#relationships">relationships</a></b> ( const QContactId &amp; <i>participantId</i>, QContactRelationship::Role <i>role</i> = QContactRelationship::Either ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QContactRelationship&gt; </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#relationships-2">relationships</a></b> ( const QString &amp; <i>relationshipType</i> = QString(), const QContactId &amp; <i>participantId</i> = QContactId(), QContactRelationship::Role <i>role</i> = QContactRelationship::Either ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#removeContact">removeContact</a></b> ( const QContactLocalId &amp; <i>contactId</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#removeContacts">removeContacts</a></b> ( const QList&lt;QContactLocalId&gt; &amp; <i>contactIds</i>, QMap&lt;int, QContactManager::Error&gt; * <i>errorMap</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#removeDetailDefinition">removeDetailDefinition</a></b> ( const QString &amp; <i>definitionName</i>, const QString &amp; <i>contactType</i> = QContactType::TypeContact )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#removeRelationship">removeRelationship</a></b> ( const QContactRelationship &amp; <i>relationship</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#removeRelationships">removeRelationships</a></b> ( const QList&lt;QContactRelationship&gt; &amp; <i>relationships</i>, QMap&lt;int, QContactManager::Error&gt; * <i>errorMap</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#saveContact">saveContact</a></b> ( QContact * <i>contact</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#saveContacts">saveContacts</a></b> ( QList&lt;QContact&gt; * <i>contacts</i>, QMap&lt;int, QContactManager::Error&gt; * <i>errorMap</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#saveContacts-2">saveContacts</a></b> ( QList&lt;QContact&gt; * <i>contacts</i>, const QStringList &amp; <i>definitionMask</i>, QMap&lt;int, QContactManager::Error&gt; * <i>errorMap</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#saveDetailDefinition">saveDetailDefinition</a></b> ( const QContactDetailDefinition &amp; <i>def</i>, const QString &amp; <i>contactType</i> = QContactType::TypeContact )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#saveRelationship">saveRelationship</a></b> ( QContactRelationship * <i>relationship</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#saveRelationships">saveRelationships</a></b> ( QList&lt;QContactRelationship&gt; * <i>relationships</i>, QMap&lt;int, QContactManager::Error&gt; * <i>errorMap</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QContactLocalId </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#selfContactId">selfContactId</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#setSelfContactId">setSelfContactId</a></b> ( const QContactLocalId &amp; <i>contactId</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#supportedContactTypes">supportedContactTypes</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QVariant::Type&gt; </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#supportedDataTypes">supportedDataTypes</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#synthesizeContactDisplayLabel">synthesizeContactDisplayLabel</a></b> ( QContact * <i>contact</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#synthesizedContactDisplayLabel">synthesizedContactDisplayLabel</a></b> ( const QContact &amp; <i>contact</i> ) const</td></tr>
</table>
<ul>
<li class="fn">29 public functions inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-functions">QObject</a></li>
</ul>
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#contactsAdded">contactsAdded</a></b> ( const QList&lt;QContactLocalId&gt; &amp; <i>contactIds</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#contactsChanged">contactsChanged</a></b> ( const QList&lt;QContactLocalId&gt; &amp; <i>contactIds</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#contactsRemoved">contactsRemoved</a></b> ( const QList&lt;QContactLocalId&gt; &amp; <i>contactIds</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#dataChanged">dataChanged</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#relationshipsAdded">relationshipsAdded</a></b> ( const QList&lt;QContactLocalId&gt; &amp; <i>affectedContactIds</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#relationshipsRemoved">relationshipsRemoved</a></b> ( const QList&lt;QContactLocalId&gt; &amp; <i>affectedContactIds</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#selfContactIdChanged">selfContactIdChanged</a></b> ( const QContactLocalId &amp; <i>oldId</i>, const QContactLocalId &amp; <i>newId</i> )</td></tr>
</table>
<ul>
<li class="fn">1 signal inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#signals">QObject</a></li>
</ul>
<a name="static-public-members"></a>
<h2>Static Public Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> const QLatin1Constant </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#ParameterSignalDefinitions-var">ParameterSignalDefinitions</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QLatin1Constant </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#ParameterSignalSources-var">ParameterSignalSources</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QLatin1Constant </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#ParameterValueOnlyOtherManagers-var">ParameterValueOnlyOtherManagers</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QLatin1Constant </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#ParameterValueOnlyOtherProcesses-var">ParameterValueOnlyOtherProcesses</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#availableManagers">availableManagers</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#buildUri">buildUri</a></b> ( const QString &amp; <i>managerName</i>, const QMap&lt;QString, QString&gt; &amp; <i>params</i>, int <i>implementationVersion</i> = -1 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QContactManager * </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#fromUri">fromUri</a></b> ( const QString &amp; <i>managerUri</i>, QObject * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanager.html#parseUri">parseUri</a></b> ( const QString &amp; <i>uri</i>, QString * <i>pManagerId</i>, QMap&lt;QString, QString&gt; * <i>pParams</i> )</td></tr>
</table>
<ul>
<li class="fn">4 static public members inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#static-public-members">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 property inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#properties">QObject</a></li>
<li class="fn">1 public slot inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-slots">QObject</a></li>
<li class="fn">1 public variable inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-variables">QObject</a></li>
<li class="fn">7 protected functions inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#protected-functions">QObject</a></li>
<li class="fn">2 protected variables inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#protected-variables">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QContactManager-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QContactManager class provides an interface which allows clients with access to contact information stored in a particular backend.</p>
<p>This class provides an abstraction of a datastore or aggregation of datastores which contains contact information. It provides methods to retrieve and manipulate contact information, contact relationship information, and supported schema definitions. It also provides metadata and error information reporting.</p>
<p>The functions provided by QContactManager are purely synchronous; to access the same functionality in an asynchronous manner, clients should use the use-case-specific classes derived from <a href="qcontactabstractrequest.html">QContactAbstractRequest</a>.</p>
<p>Some functionality provided by QContactManager directly is not accessible using the asynchronous API; see the <a href="contactssync.html">synchronous</a> and <a href="contactsasync.html">asynchronous</a> API information from the <a href="contacts.html">contacts module</a> API documentation.</p>
</div>
<!-- @@@QContactManager -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$Error$$$NoError$$$DoesNotExistError$$$AlreadyExistsError$$$InvalidDetailError$$$InvalidRelationshipError$$$LockedError$$$DetailAccessError$$$PermissionsError$$$OutOfMemoryError$$$NotSupportedError$$$BadArgumentError$$$UnspecifiedError$$$VersionMismatchError$$$LimitReachedError$$$InvalidContactTypeError$$$TimeoutError -->
<h3 class="fn"><a name="Error-enum"></a>enum QContactManager::<span class="name">Error</span></h3>
<p>This enum specifies an error that occurred during the most recent operation:</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QContactManager::NoError</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The most recent operation was successful</td></tr>
<tr><td class="topAlign"><tt>QContactManager::DoesNotExistError</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The most recent operation failed because the requested contact or detail definition does not exist</td></tr>
<tr><td class="topAlign"><tt>QContactManager::AlreadyExistsError</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The most recent operation failed because the specified contact or detail definition already exists</td></tr>
<tr><td class="topAlign"><tt>QContactManager::InvalidDetailError</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">The most recent operation failed because the specified contact contains details which do not conform to their definition</td></tr>
<tr><td class="topAlign"><tt>QContactManager::InvalidRelationshipError</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">The most recent operation failed because the specified relationship is circular or references an invalid local contact</td></tr>
<tr><td class="topAlign"><tt>QContactManager::InvalidContactTypeError</tt></td><td class="topAlign"><tt>14</tt></td><td class="topAlign">The most recent operation failed because the contact type specified was not valid for the operation</td></tr>
<tr><td class="topAlign"><tt>QContactManager::LockedError</tt></td><td class="topAlign"><tt>5</tt></td><td class="topAlign">The most recent operation failed because the datastore specified is currently locked</td></tr>
<tr><td class="topAlign"><tt>QContactManager::DetailAccessError</tt></td><td class="topAlign"><tt>6</tt></td><td class="topAlign">The most recent operation failed because a detail was modified or removed and its access method does not allow that</td></tr>
<tr><td class="topAlign"><tt>QContactManager::PermissionsError</tt></td><td class="topAlign"><tt>7</tt></td><td class="topAlign">The most recent operation failed because the caller does not have permission to perform the operation</td></tr>
<tr><td class="topAlign"><tt>QContactManager::OutOfMemoryError</tt></td><td class="topAlign"><tt>8</tt></td><td class="topAlign">The most recent operation failed due to running out of memory</td></tr>
<tr><td class="topAlign"><tt>QContactManager::VersionMismatchError</tt></td><td class="topAlign"><tt>12</tt></td><td class="topAlign">The most recent operation failed because the backend of the manager is not of the required version</td></tr>
<tr><td class="topAlign"><tt>QContactManager::LimitReachedError</tt></td><td class="topAlign"><tt>13</tt></td><td class="topAlign">The most recent operation failed because the limit for that type of object has been reached</td></tr>
<tr><td class="topAlign"><tt>QContactManager::NotSupportedError</tt></td><td class="topAlign"><tt>9</tt></td><td class="topAlign">The most recent operation failed because the requested operation is not supported in the specified store</td></tr>
<tr><td class="topAlign"><tt>QContactManager::BadArgumentError</tt></td><td class="topAlign"><tt>10</tt></td><td class="topAlign">The most recent operation failed because one or more of the parameters to the operation were invalid</td></tr>
<tr><td class="topAlign"><tt>QContactManager::TimeoutError</tt></td><td class="topAlign"><tt>15</tt></td><td class="topAlign">The most recent operation failed because it took longer than expected. It may be possible to try again.</td></tr>
<tr><td class="topAlign"><tt>QContactManager::UnspecifiedError</tt></td><td class="topAlign"><tt>11</tt></td><td class="topAlign">The most recent operation failed for an undocumented reason</td></tr>
</table>
<!-- @@@Error -->
<!-- $$$ManagerFeature$$$Groups$$$ActionPreferences$$$MutableDefinitions$$$Relationships$$$ArbitraryRelationshipTypes$$$DetailOrdering$$$SelfContact$$$Anonymous$$$ChangeLogs -->
<h3 class="fn"><a name="ManagerFeature-enum"></a>enum QContactManager::<span class="name">ManagerFeature</span></h3>
<p>This enum describes the possible features that a particular manager may support</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QContactManager::Groups</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The manager supports saving contacts of the <tt>QContactType::TypeGroup</tt> type</td></tr>
<tr><td class="topAlign"><tt>QContactManager::ActionPreferences</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The manager supports saving preferred details per action per contact</td></tr>
<tr><td class="topAlign"><tt>QContactManager::DetailOrdering</tt></td><td class="topAlign"><tt>5</tt></td><td class="topAlign">When a contact is retrieved, the manager will return the details in the same order in which they were saved</td></tr>
<tr><td class="topAlign"><tt>QContactManager::Relationships</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">The manager supports at least some types of relationships between contacts</td></tr>
<tr><td class="topAlign"><tt>QContactManager::ArbitraryRelationshipTypes</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">The manager supports relationships of arbitrary types between contacts</td></tr>
<tr><td class="topAlign"><tt>QContactManager::MutableDefinitions</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The manager supports saving, updating or removing detail definitions. Some built-in definitions may still be immutable</td></tr>
<tr><td class="topAlign"><tt>QContactManager::SelfContact</tt></td><td class="topAlign"><tt>6</tt></td><td class="topAlign">The manager supports the concept of saving a contact which represents the current user</td></tr>
<tr><td class="topAlign"><tt>QContactManager::ChangeLogs</tt></td><td class="topAlign"><tt>8</tt></td><td class="topAlign">The manager supports reporting of timestamps of changes, and filtering and sorting by those timestamps</td></tr>
<tr><td class="topAlign"><tt>QContactManager::Anonymous</tt></td><td class="topAlign"><tt>7</tt></td><td class="topAlign">The manager is isolated from other managers</td></tr>
</table>
<!-- @@@ManagerFeature -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QContactManager[overload1]$$$QContactManagerconstQString&constQMap<QString,QString>&QObject* -->
<h3 class="fn"><a name="QContactManager"></a>QContactManager::<span class="name">QContactManager</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>managerName</i> = QString(), const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qmap.html">QMap</a></span>&lt;<span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span>, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span>&gt; &amp; <i>parameters</i> = 0, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qobject.html">QObject</a></span> * <i>parent</i> = 0 )</h3>
<p>Constructs a <a href="qcontactmanager.html">QContactManager</a> whose implementation is identified by <i>managerName</i> with the given <i>parameters</i>.</p>
<p>The <i>parent</i> <a href="http://qt.nokia.com/doc/4.7/qobject.html">QObject</a> will be used as the parent of this <a href="qcontactmanager.html">QContactManager</a>.</p>
<p>If an empty <i>managerName</i> is specified, the default implementation for the platform will be used.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@QContactManager -->
<!-- $$$QContactManager$$$QContactManagerconstQString&intconstQMap<QString,QString>&QObject* -->
<h3 class="fn"><a name="QContactManager-2"></a>QContactManager::<span class="name">QContactManager</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>managerName</i>, <span class="type">int</span> <i>implementationVersion</i>, const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qmap.html">QMap</a></span>&lt;<span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span>, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span>&gt; &amp; <i>parameters</i> = 0, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qobject.html">QObject</a></span> * <i>parent</i> = 0 )</h3>
<p>Constructs a <a href="qcontactmanager.html">QContactManager</a> whose backend has the name <i>managerName</i> and version <i>implementationVersion</i>, where the manager is constructed with the provided <i>parameters</i>.</p>
<p>The <i>parent</i> <a href="http://qt.nokia.com/doc/4.7/qobject.html">QObject</a> will be used as the parent of this <a href="qcontactmanager.html">QContactManager</a>.</p>
<p>If an empty <i>managerName</i> is specified, the default implementation for the platform will be instantiated. If the specified implementation version is not available, the manager with the name <i>managerName</i> with the default implementation version is instantiated.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@QContactManager -->
<!-- $$$QContactManager$$$QContactManagerQObject* -->
<h3 class="fn"><a name="QContactManager-3"></a>QContactManager::<span class="name">QContactManager</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qobject.html">QObject</a></span> * <i>parent</i> )</h3>
<p>Constructs a <a href="qcontactmanager.html">QContactManager</a> whose parent <a href="http://qt.nokia.com/doc/4.7/qobject.html">QObject</a> is <i>parent</i>. The default implementation for the platform will be created.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@QContactManager -->
<!-- $$$~QContactManager[overload1]$$$~QContactManager -->
<h3 class="fn"><a name="dtor.QContactManager"></a>QContactManager::<span class="name">~QContactManager</span> ()</h3>
<p>Frees the memory used by the <a href="qcontactmanager.html">QContactManager</a></p>
<!-- @@@~QContactManager -->
<!-- $$$availableManagers[overload1]$$$availableManagers -->
<h3 class="fn"><a name="availableManagers"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qstringlist.html">QStringList</a></span> QContactManager::<span class="name">availableManagers</span> ()<tt> [static]</tt></h3>
<p>Returns a list of available manager ids that can be used when constructing a <a href="qcontactmanager.html">QContactManager</a>. If an empty id is specified to the constructor, the first value in this list will be used instead.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@availableManagers -->
<!-- $$$buildUri[overload1]$$$buildUriconstQString&constQMap<QString,QString>&int -->
<h3 class="fn"><a name="buildUri"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> QContactManager::<span class="name">buildUri</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>managerName</i>, const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qmap.html">QMap</a></span>&lt;<span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span>, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span>&gt; &amp; <i>params</i>, <span class="type">int</span> <i>implementationVersion</i> = -1 )<tt> [static]</tt></h3>
<p>Returns a URI that completely describes a manager implementation, datastore, and the parameters with which to instantiate the manager, from the given <i>managerName</i>, <i>params</i> and an optional <i>implementationVersion</i>. This function is generally useful only if you intend to construct a manager with the <a href="qcontactmanager.html#fromUri">fromUri</a>() function, or wish to set the manager URI field in a <a href="qcontactid.html">QContactId</a> manually (for synchronization or other purposes). Most clients will not need to use this function.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@buildUri -->
<!-- $$$compatibleContact[overload1]$$$compatibleContactconstQContact& -->
<h3 class="fn"><a name="compatibleContact"></a><span class="type"><a href="qcontact.html">QContact</a></span> QContactManager::<span class="name">compatibleContact</span> ( const <span class="type"><a href="qcontact.html">QContact</a></span> &amp; <i>original</i> )</h3>
<p>Returns a pruned or modified version of the <i>original</i> contact which is valid and can be saved in the manager. The returned contact might have entire details removed or arbitrarily changed. The cache of relationships in the contact are ignored entirely when considering compatibility with the backend, as they are saved and validated separately.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@compatibleContact -->
<!-- $$$contact[overload1]$$$contactconstQContactLocalId&constQContactFetchHint& -->
<h3 class="fn"><a name="contact"></a><span class="type"><a href="qcontact.html">QContact</a></span> QContactManager::<span class="name">contact</span> ( const <span class="type"><a href="qcontactid.html#QContactLocalId-typedef">QContactLocalId</a></span> &amp; <i>contactId</i>, const <span class="type"><a href="qcontactfetchhint.html">QContactFetchHint</a></span> &amp; <i>fetchHint</i> = QContactFetchHint() ) const</h3>
<p>Returns the contact in the database identified by <i>contactId</i>.</p>
<p>If the contact does not exist, an empty, default constructed <a href="qcontact.html">QContact</a> will be returned, and the error returned by <a href="qcontactmanager.html#error">error</a>() will be <tt>QContactManager::DoesNotExistError</tt>.</p>
<p>The <i>fetchHint</i> parameter describes the optimization hints that a manager may take. If the <i>fetchHint</i> is the default constructed hint, all existing details, relationships and action preferences in the matching contact will be returned. If a client makes changes to an contact which has been retrieved with a fetch hint, they should save it back using a partial save, masked by the same set of detail names in order to avoid information loss.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qcontactfetchhint.html">QContactFetchHint</a>.</p>
<!-- @@@contact -->
<!-- $$$contactIds[overload1]$$$contactIdsconstQList<QContactSortOrder>& -->
<h3 class="fn"><a name="contactIds"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qcontactid.html#QContactLocalId-typedef">QContactLocalId</a></span>&gt; QContactManager::<span class="name">contactIds</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qcontactsortorder.html">QContactSortOrder</a></span>&gt; &amp; <i>sortOrders</i> = QList&lt;QContactSortOrder&gt; () ) const</h3>
<p>Return the list of contact ids, sorted according to the given list of <i>sortOrders</i></p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@contactIds -->
<!-- $$$contactIds$$$contactIdsconstQContactFilter&constQList<QContactSortOrder>& -->
<h3 class="fn"><a name="contactIds-2"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qcontactid.html#QContactLocalId-typedef">QContactLocalId</a></span>&gt; QContactManager::<span class="name">contactIds</span> ( const <span class="type"><a href="qcontactfilter.html">QContactFilter</a></span> &amp; <i>filter</i>, const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qcontactsortorder.html">QContactSortOrder</a></span>&gt; &amp; <i>sortOrders</i> = QList&lt;QContactSortOrder&gt; () ) const</h3>
<p>Returns a list of contact ids that match the given <i>filter</i>, sorted according to the given list of <i>sortOrders</i>. Depending on the backend, this filtering operation may involve retrieving all the contacts.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@contactIds -->
<!-- $$$contacts[overload1]$$$contactsconstQList<QContactSortOrder>&constQContactFetchHint& -->
<h3 class="fn"><a name="contacts"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qcontact.html">QContact</a></span>&gt; QContactManager::<span class="name">contacts</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qcontactsortorder.html">QContactSortOrder</a></span>&gt; &amp; <i>sortOrders</i> = QList&lt;QContactSortOrder&gt; (), const <span class="type"><a href="qcontactfetchhint.html">QContactFetchHint</a></span> &amp; <i>fetchHint</i> = QContactFetchHint() ) const</h3>
<p>Returns the list of contacts stored in the manager sorted according to the given list of <i>sortOrders</i>.</p>
<p>The <i>fetchHint</i> parameter describes the optimization hints that a manager may take. If the <i>fetchHint</i> is the default constructed hint, all existing details, relationships and action preferences in the matching contact will be returned. If a client makes changes to an contact which has been retrieved with a fetch hint, they should save it back using a partial save, masked by the same set of detail names in order to avoid information loss.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qcontactfetchhint.html">QContactFetchHint</a>.</p>
<!-- @@@contacts -->
<!-- $$$contacts$$$contactsconstQContactFilter&constQList<QContactSortOrder>&constQContactFetchHint& -->
<h3 class="fn"><a name="contacts-2"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qcontact.html">QContact</a></span>&gt; QContactManager::<span class="name">contacts</span> ( const <span class="type"><a href="qcontactfilter.html">QContactFilter</a></span> &amp; <i>filter</i>, const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qcontactsortorder.html">QContactSortOrder</a></span>&gt; &amp; <i>sortOrders</i> = QList&lt;QContactSortOrder&gt; (), const <span class="type"><a href="qcontactfetchhint.html">QContactFetchHint</a></span> &amp; <i>fetchHint</i> = QContactFetchHint() ) const</h3>
<p>Returns a list of contacts that match the given <i>filter</i>, sorted according to the given list of <i>sortOrders</i>.</p>
<p>Depending on the manager implementation, this filtering operation might be slow and involve retrieving all the contacts and testing them against the supplied filter - see the <a href="qcontactmanager.html#isFilterSupported">isFilterSupported</a>() function.</p>
<p>The <i>fetchHint</i> parameter describes the optimization hints that a manager may take. If the <i>fetchHint</i> is the default constructed hint, all existing details, relationships and action preferences in the matching contact will be returned. If a client makes changes to an contact which has been retrieved with a fetch hint, they should save it back using a partial save, masked by the same set of detail names in order to avoid information loss.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qcontactfetchhint.html">QContactFetchHint</a>.</p>
<!-- @@@contacts -->
<!-- $$$contacts$$$contactsconstQList<QContactLocalId>&constQContactFetchHint&QMap<int,QContactManager::Error>* -->
<h3 class="fn"><a name="contacts-3"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qcontact.html">QContact</a></span>&gt; QContactManager::<span class="name">contacts</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qcontactid.html#QContactLocalId-typedef">QContactLocalId</a></span>&gt; &amp; <i>localIds</i>, const <span class="type"><a href="qcontactfetchhint.html">QContactFetchHint</a></span> &amp; <i>fetchHint</i> = QContactFetchHint(), <span class="type"><a href="http://qt.nokia.com/doc/4.7/qmap.html">QMap</a></span>&lt;<span class="type">int</span>, <span class="type"><a href="qcontactmanager.html#Error-enum">QContactManager::Error</a></span>&gt; * <i>errorMap</i> = 0 ) const</h3>
<p>Returns a list of contacts given a list of local ids (<i>localIds</i>).</p>
<p>Returns the list of contacts with the ids given by <i>localIds</i>. There is a one-to-one correspondence between the returned contacts and the supplied <i>localIds</i>.</p>
<p>If there is an invalid id in <i>localIds</i>, then an empty <a href="qcontact.html">QContact</a> will take its place in the returned list. The deprecated <i>errorMap</i> parameter can be supplied to store per-input errors in. In all cases, calling <a href="qcontactmanager.html#errorMap">errorMap</a>() will return the per-input errors for the latest batch function.</p>
<p>The <i>fetchHint</i> parameter describes the optimization hints that a manager may take. If the <i>fetchHint</i> is the default constructed hint, all existing details, relationships and action preferences in the matching contact will be returned. If a client makes changes to an contact which has been retrieved with a fetch hint, they should save it back using a partial save, masked by the same set of detail names in order to avoid information loss.</p>
<p><b>See also </b><a href="qcontactfetchhint.html">QContactFetchHint</a>.</p>
<!-- @@@contacts -->
<!-- $$$contactsAdded[overload1]$$$contactsAddedconstQList<QContactLocalId>& -->
<h3 class="fn"><a name="contactsAdded"></a><span class="type">void</span> QContactManager::<span class="name">contactsAdded</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qcontactid.html#QContactLocalId-typedef">QContactLocalId</a></span>&gt; &amp; <i>contactIds</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted at some point once the contacts identified by <i>contactIds</i> have been added to a datastore managed by this manager. This signal must not be emitted if the <a href="qcontactmanager.html#dataChanged">dataChanged</a>() signal was previously emitted for these changes.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@contactsAdded -->
<!-- $$$contactsChanged[overload1]$$$contactsChangedconstQList<QContactLocalId>& -->
<h3 class="fn"><a name="contactsChanged"></a><span class="type">void</span> QContactManager::<span class="name">contactsChanged</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qcontactid.html#QContactLocalId-typedef">QContactLocalId</a></span>&gt; &amp; <i>contactIds</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted at some point once the contacts identified by <i>contactIds</i> have been modified in a datastore managed by this manager. This signal must not be emitted if the <a href="qcontactmanager.html#dataChanged">dataChanged</a>() signal was previously emitted for these changes.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@contactsChanged -->
<!-- $$$contactsRemoved[overload1]$$$contactsRemovedconstQList<QContactLocalId>& -->
<h3 class="fn"><a name="contactsRemoved"></a><span class="type">void</span> QContactManager::<span class="name">contactsRemoved</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qcontactid.html#QContactLocalId-typedef">QContactLocalId</a></span>&gt; &amp; <i>contactIds</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted at some point once the contacts identified by <i>contactIds</i> have been removed from a datastore managed by this manager. This signal must not be emitted if the <a href="qcontactmanager.html#dataChanged">dataChanged</a>() signal was previously emitted for these changes.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@contactsRemoved -->
<!-- $$$dataChanged[overload1]$$$dataChanged -->
<h3 class="fn"><a name="dataChanged"></a><span class="type">void</span> QContactManager::<span class="name">dataChanged</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted by the manager if its internal state changes, and it is unable to determine the changes which occurred, or if the manager considers the changes to be radical enough to require clients to reload all data. If this signal is emitted, no other signals will be emitted for the associated changes.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@dataChanged -->
<!-- $$$detailDefinition[overload1]$$$detailDefinitionconstQString&constQString& -->
<h3 class="fn"><a name="detailDefinition"></a><span class="type"><a href="qcontactdetaildefinition.html">QContactDetailDefinition</a></span> QContactManager::<span class="name">detailDefinition</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>definitionName</i>, const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>contactType</i> = QContactType::TypeContact ) const</h3>
<p>Returns the definition identified by the given <i>definitionName</i> that is valid for the contacts whose type is the given <i>contactType</i> in this store, or a default-constructed <a href="qcontactdetaildefinition.html">QContactDetailDefinition</a> if no such definition exists</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@detailDefinition -->
<!-- $$$detailDefinitions[overload1]$$$detailDefinitionsconstQString& -->
<h3 class="fn"><a name="detailDefinitions"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qmap.html">QMap</a></span>&lt;<span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span>, <span class="type"><a href="qcontactdetaildefinition.html">QContactDetailDefinition</a></span>&gt; QContactManager::<span class="name">detailDefinitions</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>contactType</i> = QContactType::TypeContact ) const</h3>
<p>Returns a map of identifier to detail definition for the registered detail definitions which are valid for contacts whose type is the given <i>contactType</i> which are valid for the contacts in this store</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@detailDefinitions -->
<!-- $$$error[overload1]$$$error -->
<h3 class="fn"><a name="error"></a><span class="type"><a href="qcontactmanager.html#Error-enum">QContactManager::Error</a></span> QContactManager::<span class="name">error</span> () const</h3>
<p>Return the error code of the most recent operation. For batch operations, if the error code is not equal to <tt>QContactManager::NoError</tt>, detailed per-input errors may be retrieved by calling <a href="qcontactmanager.html#errorMap">errorMap</a>().</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qcontactmanager.html#errorMap">errorMap</a>().</p>
<!-- @@@error -->
<!-- $$$errorMap[overload1]$$$errorMap -->
<h3 class="fn"><a name="errorMap"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qmap.html">QMap</a></span>&lt;<span class="type">int</span>, <span class="type"><a href="qcontactmanager.html#Error-enum">QContactManager::Error</a></span>&gt; QContactManager::<span class="name">errorMap</span> () const</h3>
<p>Returns per-input error codes for the most recent operation. This function only returns meaningful information if the most recent operation was a batch operation. Each key in the map is the index of the element in the input list for which the error (whose error code is stored in the value for that key in the map) occurred during the batch operation.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qcontactmanager.html#error">error</a>(), <a href="qcontactmanager.html#contacts">contacts</a>(), <a href="qcontactmanager.html#saveContacts">saveContacts</a>(), <a href="qcontactmanager.html#removeContacts">removeContacts</a>(), <a href="qcontactmanager.html#saveRelationships">saveRelationships</a>(), and <a href="qcontactmanager.html#removeRelationships">removeRelationships</a>().</p>
<!-- @@@errorMap -->
<!-- $$$fromUri[overload1]$$$fromUriconstQString&QObject* -->
<h3 class="fn"><a name="fromUri"></a><span class="type">QContactManager</span> * QContactManager::<span class="name">fromUri</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>managerUri</i>, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qobject.html">QObject</a></span> * <i>parent</i> = 0 )<tt> [static]</tt></h3>
<p>Constructs a <a href="qcontactmanager.html">QContactManager</a> whose implementation version, manager name and specific parameters are specified in the given <i>managerUri</i>, and whose parent object is <i>parent</i>.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@fromUri -->
<!-- $$$hasFeature[overload1]$$$hasFeatureQContactManager::ManagerFeatureconstQString& -->
<h3 class="fn"><a name="hasFeature"></a><span class="type">bool</span> QContactManager::<span class="name">hasFeature</span> ( <span class="type"><a href="qcontactmanager.html#ManagerFeature-enum">QContactManager::ManagerFeature</a></span> <i>feature</i>, const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>contactType</i> = QContactType::TypeContact ) const</h3>
<p>Returns true if the given feature <i>feature</i> is supported by the manager, for the specified type of contact <i>contactType</i></p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@hasFeature -->
<!-- $$$isFilterSupported[overload1]$$$isFilterSupportedconstQContactFilter& -->
<h3 class="fn"><a name="isFilterSupported"></a><span class="type">bool</span> QContactManager::<span class="name">isFilterSupported</span> ( const <span class="type"><a href="qcontactfilter.html">QContactFilter</a></span> &amp; <i>filter</i> ) const</h3>
<p>Returns true if the given <i>filter</i> is supported natively by the manager, and false if the filter behaviour would be emulated.</p>
<p>Note: In some cases, the behaviour of an unsupported filter cannot be emulated. For example, a filter that requests contacts that have changed since a given time depends on having that information available. In these cases, the filter will fail.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@isFilterSupported -->
<!-- $$$isRelationshipTypeSupported[overload1]$$$isRelationshipTypeSupportedconstQString&constQString& -->
<h3 class="fn"><a name="isRelationshipTypeSupported"></a><span class="type">bool</span> QContactManager::<span class="name">isRelationshipTypeSupported</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>relationshipType</i>, const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>contactType</i> = QContactType::TypeContact ) const</h3>
<p>Returns true if the manager supports the relationship type specified in <i>relationshipType</i> for contacts whose type is the given <i>contactType</i>.</p>
<p>Note that some managers may support the relationship type for a contact in a limited manner (for example, only as the first contact in the relationship, or only as the second contact in the relationship). In this case, it will still return true. It will only return false if the relationship is entirely unsupported for the given type of contact.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@isRelationshipTypeSupported -->
<!-- $$$managerName[overload1]$$$managerName -->
<h3 class="fn"><a name="managerName"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> QContactManager::<span class="name">managerName</span> () const</h3>
<p>Returns the manager name for this <a href="qcontactmanager.html">QContactManager</a></p>
<!-- @@@managerName -->
<!-- $$$managerParameters[overload1]$$$managerParameters -->
<h3 class="fn"><a name="managerParameters"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qmap.html">QMap</a></span>&lt;<span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span>, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span>&gt; QContactManager::<span class="name">managerParameters</span> () const</h3>
<p>Return the parameters relevant to the creation of this <a href="qcontactmanager.html">QContactManager</a></p>
<!-- @@@managerParameters -->
<!-- $$$managerUri[overload1]$$$managerUri -->
<h3 class="fn"><a name="managerUri"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> QContactManager::<span class="name">managerUri</span> () const</h3>
<p>Return the uri describing this <a href="qcontactmanager.html">QContactManager</a>, consisting of the manager name and any parameters.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@managerUri -->
<!-- $$$managerVersion[overload1]$$$managerVersion -->
<h3 class="fn"><a name="managerVersion"></a><span class="type">int</span> QContactManager::<span class="name">managerVersion</span> () const</h3>
<p>Returns the engine backend implementation version number</p>
<!-- @@@managerVersion -->
<!-- $$$parseUri[overload1]$$$parseUriconstQString&QString*QMap<QString,QString>* -->
<h3 class="fn"><a name="parseUri"></a><span class="type">bool</span> QContactManager::<span class="name">parseUri</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>uri</i>, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> * <i>pManagerId</i>, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qmap.html">QMap</a></span>&lt;<span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span>, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span>&gt; * <i>pParams</i> )<tt> [static]</tt></h3>
<p>Splits the given <i>uri</i> into the manager, store, and parameters that it describes, and places the information into the memory addressed by <i>pManagerId</i> and <i>pParams</i> respectively. Returns true if <i>uri</i> could be split successfully, otherwise returns false</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@parseUri -->
<!-- $$$relationships[overload1]$$$relationshipsconstQContactId&QContactRelationship::Role -->
<h3 class="fn"><a name="relationships"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qcontactrelationship.html">QContactRelationship</a></span>&gt; QContactManager::<span class="name">relationships</span> ( const <span class="type"><a href="qcontactid.html">QContactId</a></span> &amp; <i>participantId</i>, <span class="type"><a href="qcontactrelationship.html#Role-enum">QContactRelationship::Role</a></span> <i>role</i> = QContactRelationship::Either ) const</h3>
<p>Returns a list of relationships in which the contact identified by the given <i>participantId</i> participates in the given <i>role</i>. If <i>participantId</i> is the default-constructed id, <i>role</i> is ignored and all relationships are returned.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@relationships -->
<!-- $$$relationships$$$relationshipsconstQString&constQContactId&QContactRelationship::Role -->
<h3 class="fn"><a name="relationships-2"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qcontactrelationship.html">QContactRelationship</a></span>&gt; QContactManager::<span class="name">relationships</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>relationshipType</i> = QString(), const <span class="type"><a href="qcontactid.html">QContactId</a></span> &amp; <i>participantId</i> = QContactId(), <span class="type"><a href="qcontactrelationship.html#Role-enum">QContactRelationship::Role</a></span> <i>role</i> = QContactRelationship::Either ) const</h3>
<p>Returns a list of relationships of the given <i>relationshipType</i> in which the contact identified by the given <i>participantId</i> participates in the given <i>role</i>. If <i>participantId</i> is the default-constructed id, <i>role</i> is ignored and all relationships of the given <i>relationshipType</i> are returned. If <i>relationshipType</i> is empty, relationships of any type are returned.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@relationships -->
<!-- $$$relationshipsAdded[overload1]$$$relationshipsAddedconstQList<QContactLocalId>& -->
<h3 class="fn"><a name="relationshipsAdded"></a><span class="type">void</span> QContactManager::<span class="name">relationshipsAdded</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qcontactid.html#QContactLocalId-typedef">QContactLocalId</a></span>&gt; &amp; <i>affectedContactIds</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted at some point after relationships have been added to the manager which involve the contacts identified by <i>affectedContactIds</i>. This signal must not be emitted if the <a href="qcontactmanager.html#dataChanged">dataChanged</a>() signal was previously emitted for these changes.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@relationshipsAdded -->
<!-- $$$relationshipsRemoved[overload1]$$$relationshipsRemovedconstQList<QContactLocalId>& -->
<h3 class="fn"><a name="relationshipsRemoved"></a><span class="type">void</span> QContactManager::<span class="name">relationshipsRemoved</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qcontactid.html#QContactLocalId-typedef">QContactLocalId</a></span>&gt; &amp; <i>affectedContactIds</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted at some point after relationships have eben removed from the manager which involve the contacts identified by <i>affectedContactIds</i>. This signal must not be emitted if the <a href="qcontactmanager.html#dataChanged">dataChanged</a>() signal was previously emitted for these changes.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@relationshipsRemoved -->
<!-- $$$removeContact[overload1]$$$removeContactconstQContactLocalId& -->
<h3 class="fn"><a name="removeContact"></a><span class="type">bool</span> QContactManager::<span class="name">removeContact</span> ( const <span class="type"><a href="qcontactid.html#QContactLocalId-typedef">QContactLocalId</a></span> &amp; <i>contactId</i> )</h3>
<p>Remove the contact identified by <i>contactId</i> from the database, and also removes any relationships in which the contact was involved. Returns true if the contact was removed successfully, otherwise returns false.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@removeContact -->
<!-- $$$removeContacts[overload1]$$$removeContactsconstQList<QContactLocalId>&QMap<int,QContactManager::Error>* -->
<h3 class="fn"><a name="removeContacts"></a><span class="type">bool</span> QContactManager::<span class="name">removeContacts</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qcontactid.html#QContactLocalId-typedef">QContactLocalId</a></span>&gt; &amp; <i>contactIds</i>, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qmap.html">QMap</a></span>&lt;<span class="type">int</span>, <span class="type"><a href="qcontactmanager.html#Error-enum">QContactManager::Error</a></span>&gt; * <i>errorMap</i> = 0 )</h3>
<p>Remove every contact whose id is contained in the list of contacts ids <i>contactIds</i>. Returns true if all contacts were removed successfully, otherwise false.</p>
<p>Any contact that was removed successfully will have the relationships in which it was involved removed also.</p>
<p>The deprecated <i>errorMap</i> parameter can be supplied to store per-input errors in. In all cases, calling <a href="qcontactmanager.html#errorMap">errorMap</a>() will return the per-input errors for the latest batch function. The <a href="qcontactmanager.html#error">QContactManager::error</a>() function will only return <tt>QContactManager::NoError</tt> if all contacts were removed successfully.</p>
<p>If the given list of contact ids <i>contactIds</i> is empty, the function will return false and calling <a href="qcontactmanager.html#error">error</a>() will return <tt>QContactManager::BadArgumentError</tt>. If the list is non-empty and contains ids which do not identify a valid contact in the manager, the function will remove any contacts which are identified by ids in the <i>contactIds</i> list, insert <tt>QContactManager::DoesNotExist</tt> entries into the <i>errorMap</i> for the indices of invalid ids in the <i>contactIds</i> list, return false, and set the overall operation error to <tt>QContactManager::DoesNotExistError</tt>.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qcontactmanager.html#removeContact">QContactManager::removeContact</a>().</p>
<!-- @@@removeContacts -->
<!-- $$$removeDetailDefinition[overload1]$$$removeDetailDefinitionconstQString&constQString& -->
<h3 class="fn"><a name="removeDetailDefinition"></a><span class="type">bool</span> QContactManager::<span class="name">removeDetailDefinition</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>definitionName</i>, const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>contactType</i> = QContactType::TypeContact )</h3>
<p>Removes the detail definition identified by <i>definitionName</i> from the database, which is valid for contacts whose type is the given <i>contactType</i>. Returns true if the definition was removed successfully, otherwise returns false</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@removeDetailDefinition -->
<!-- $$$removeRelationship[overload1]$$$removeRelationshipconstQContactRelationship& -->
<h3 class="fn"><a name="removeRelationship"></a><span class="type">bool</span> QContactManager::<span class="name">removeRelationship</span> ( const <span class="type"><a href="qcontactrelationship.html">QContactRelationship</a></span> &amp; <i>relationship</i> )</h3>
<p>Removes the given <i>relationship</i> from the manager. If the relationship exists in the manager, the relationship will be removed, the error will be set to <tt>QContactManager::NoError</tt> and this function will return true. If no such relationship exists in the manager, the error will be set to <tt>QContactManager::DoesNotExistError</tt> and this function will return false.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@removeRelationship -->
<!-- $$$removeRelationships[overload1]$$$removeRelationshipsconstQList<QContactRelationship>&QMap<int,QContactManager::Error>* -->
<h3 class="fn"><a name="removeRelationships"></a><span class="type">bool</span> QContactManager::<span class="name">removeRelationships</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qcontactrelationship.html">QContactRelationship</a></span>&gt; &amp; <i>relationships</i>, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qmap.html">QMap</a></span>&lt;<span class="type">int</span>, <span class="type"><a href="qcontactmanager.html#Error-enum">QContactManager::Error</a></span>&gt; * <i>errorMap</i> = 0 )</h3>
<p>Removes the given <i>relationships</i> from the database and returns true if the operation was successful. The deprecated <i>errorMap</i> parameter can be supplied to store per-input errors in. In all cases, calling <a href="qcontactmanager.html#errorMap">errorMap</a>() will return the per-input errors for the latest batch function.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@removeRelationships -->
<!-- $$$saveContact[overload1]$$$saveContactQContact* -->
<h3 class="fn"><a name="saveContact"></a><span class="type">bool</span> QContactManager::<span class="name">saveContact</span> ( <span class="type"><a href="qcontact.html">QContact</a></span> * <i>contact</i> )</h3>
<p>Adds the given <i>contact</i> to the database if <i>contact</i> has a default-constructed id, or an id with the manager URI set to the URI of this manager and a local id of zero.</p>
<p>Alternatively, the function will update the existing contact in the database if <i>contact</i> has a manager URI set to the URI of this manager and a non-zero local id and currently exists in the database.</p>
<p>If the id of <i>contact</i> does not match any of these two descriptions, the operation will fail and calling <a href="qcontactmanager.html#error">error</a>() will return <tt>QContactManager::DoesNotExistError</tt>.</p>
<p>If the <i>contact</i> contains one or more details whose definitions have not yet been saved with the manager, the operation will fail and calling <a href="qcontactmanager.html#error">error</a>() will return <tt>QContactManager::UnsupportedError</tt>.</p>
<p>If the <i>contact</i> has had its relationships reordered, the manager will check to make sure that every relationship that the contact is currently involved in is included in the reordered list, and that no relationships which either do not involve the contact, or have not been saved in the manager are included in the list. If these conditions are not met, the function will return <tt>false</tt> and calling <a href="qcontactmanager.html#error">error</a>() will return <tt>QContactManager::InvalidRelationshipError</tt>.</p>
<p>Returns false on failure, or true on success. On successful save of a contact with a local id of zero, its id will be set to a new, valid id with the manager URI set to the URI of this manager, and the local id set to a new, valid local id. The manager will automatically synthesize the display label of the contact when it is saved. The manager is not required to fetch updated details of the contact on save, and as such, clients should fetch a contact if they want the most up-to-date information by calling <a href="qcontactmanager.html#contact">QContactManager::contact</a>().</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qcontactmanager.html#managerUri">managerUri</a>().</p>
<!-- @@@saveContact -->
<!-- $$$saveContacts[overload1]$$$saveContactsQList<QContact>*QMap<int,QContactManager::Error>* -->
<h3 class="fn"><a name="saveContacts"></a><span class="type">bool</span> QContactManager::<span class="name">saveContacts</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qcontact.html">QContact</a></span>&gt; * <i>contacts</i>, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qmap.html">QMap</a></span>&lt;<span class="type">int</span>, <span class="type"><a href="qcontactmanager.html#Error-enum">QContactManager::Error</a></span>&gt; * <i>errorMap</i> = 0 )</h3>
<p>Adds the list of contacts given by <i>contacts</i> list to the database. Returns true if the contacts were saved successfully, otherwise false.</p>
<p>The deprecated <i>errorMap</i> parameter can be supplied to store per-input errors in. In all cases, calling <a href="qcontactmanager.html#errorMap">errorMap</a>() will return the per-input errors for the latest batch function. The <a href="qcontactmanager.html#error">QContactManager::error</a>() function will only return <tt>QContactManager::NoError</tt> if all contacts were saved successfully.</p>
<p>For each newly saved contact that was successful, the id of the contact in the <i>contacts</i> list will be updated with the new value.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qcontactmanager.html#saveContact">QContactManager::saveContact</a>().</p>
<!-- @@@saveContacts -->
<!-- $$$saveContacts$$$saveContactsQList<QContact>*constQStringList&QMap<int,QContactManager::Error>* -->
<h3 class="fn"><a name="saveContacts-2"></a><span class="type">bool</span> QContactManager::<span class="name">saveContacts</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qcontact.html">QContact</a></span>&gt; * <i>contacts</i>, const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstringlist.html">QStringList</a></span> &amp; <i>definitionMask</i>, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qmap.html">QMap</a></span>&lt;<span class="type">int</span>, <span class="type"><a href="qcontactmanager.html#Error-enum">QContactManager::Error</a></span>&gt; * <i>errorMap</i> = 0 )</h3>
<p>Adds the list of contacts given by <i>contacts</i> list to the database. Returns true if the contacts were saved successfully, otherwise false.</p>
<p>This function accepts a <i>definitionMask</i>, which specifies which details of the contacts should be updated. Details with definition names not included in the definitionMask will not be updated or added.</p>
<p>The deprecated <i>errorMap</i> parameter can be supplied to store per-input errors in. In all cases, calling <a href="qcontactmanager.html#errorMap">errorMap</a>() will return the per-input errors for the latest batch function. The <a href="qcontactmanager.html#error">QContactManager::error</a>() function will only return <tt>QContactManager::NoError</tt> if all contacts were saved successfully.</p>
<p>For each newly saved contact that was successful, the id of the contact in the <i>contacts</i> list will be updated with the new value.</p>
<p><b>See also </b><a href="qcontactmanager.html#saveContact">QContactManager::saveContact</a>().</p>
<!-- @@@saveContacts -->
<!-- $$$saveDetailDefinition[overload1]$$$saveDetailDefinitionconstQContactDetailDefinition&constQString& -->
<h3 class="fn"><a name="saveDetailDefinition"></a><span class="type">bool</span> QContactManager::<span class="name">saveDetailDefinition</span> ( const <span class="type"><a href="qcontactdetaildefinition.html">QContactDetailDefinition</a></span> &amp; <i>def</i>, const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>contactType</i> = QContactType::TypeContact )</h3>
<p>Persists the given definition <i>def</i> in the database, which is valid for contacts whose type is the given <i>contactType</i>. Returns true if the definition was saved successfully, otherwise returns false</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@saveDetailDefinition -->
<!-- $$$saveRelationship[overload1]$$$saveRelationshipQContactRelationship* -->
<h3 class="fn"><a name="saveRelationship"></a><span class="type">bool</span> QContactManager::<span class="name">saveRelationship</span> ( <span class="type"><a href="qcontactrelationship.html">QContactRelationship</a></span> * <i>relationship</i> )</h3>
<p>Saves the given <i>relationship</i> in the database. If the relationship already exists in the database, this function will return <tt>false</tt> and the error will be set to <tt>QContactManager::AlreadyExistsError</tt>. If the relationship is saved successfully, this function will return <tt>true</tt> and error will be set to <tt>QContactManager::NoError</tt>. Note that relationships cannot be updated directly using this function; in order to update a relationship, you must remove the old relationship, make the required modifications, and then save it.</p>
<p>The given relationship is invalid if it is circular (the first contact is the second contact), or if it references a non-existent local contact (either the first or second contact). If the given <i>relationship</i> is invalid, the function will return <tt>false</tt> and the error will be set to <tt>QContactManager::InvalidRelationshipError</tt>. If the given <i>relationship</i> could not be saved in the database (due to backend limitations) the function will return <tt>false</tt> and error will be set to <tt>QContactManager::NotSupportedError</tt>.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@saveRelationship -->
<!-- $$$saveRelationships[overload1]$$$saveRelationshipsQList<QContactRelationship>*QMap<int,QContactManager::Error>* -->
<h3 class="fn"><a name="saveRelationships"></a><span class="type">bool</span> QContactManager::<span class="name">saveRelationships</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qcontactrelationship.html">QContactRelationship</a></span>&gt; * <i>relationships</i>, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qmap.html">QMap</a></span>&lt;<span class="type">int</span>, <span class="type"><a href="qcontactmanager.html#Error-enum">QContactManager::Error</a></span>&gt; * <i>errorMap</i> = 0 )</h3>
<p>Saves the given <i>relationships</i> in the database and returns true if the operation was successful. The deprecated <i>errorMap</i> parameter can be supplied to store per-input errors in. In all cases, calling <a href="qcontactmanager.html#errorMap">errorMap</a>() will return the per-input errors for the latest batch function.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@saveRelationships -->
<!-- $$$selfContactId[overload1]$$$selfContactId -->
<h3 class="fn"><a name="selfContactId"></a><span class="type"><a href="qcontactid.html#QContactLocalId-typedef">QContactLocalId</a></span> QContactManager::<span class="name">selfContactId</span> () const</h3>
<p>Returns the id of the &quot;self&quot; contact which has previously been set. If no &quot;self&quot; contact has been set, or if the self contact was removed from the manager after being set, or if the backend does not support the concept of a &quot;self&quot; contact, an invalid id will be returned and the error will be set to <tt>QContactManager::DoesNotExistError</tt>.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qcontactmanager.html#setSelfContactId">setSelfContactId</a>().</p>
<!-- @@@selfContactId -->
<!-- $$$selfContactIdChanged[overload1]$$$selfContactIdChangedconstQContactLocalId&constQContactLocalId& -->
<h3 class="fn"><a name="selfContactIdChanged"></a><span class="type">void</span> QContactManager::<span class="name">selfContactIdChanged</span> ( const <span class="type"><a href="qcontactid.html#QContactLocalId-typedef">QContactLocalId</a></span> &amp; <i>oldId</i>, const <span class="type"><a href="qcontactid.html#QContactLocalId-typedef">QContactLocalId</a></span> &amp; <i>newId</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted at some point after the id of the self-contact is changed from <i>oldId</i> to <i>newId</i> in the manager. If the <i>newId</i> is the invalid, zero id, then the self contact was deleted or no self contact exists. This signal must not be emitted if the <a href="qcontactmanager.html#dataChanged">dataChanged</a>() signal was previously emitted for this change.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@selfContactIdChanged -->
<!-- $$$setSelfContactId[overload1]$$$setSelfContactIdconstQContactLocalId& -->
<h3 class="fn"><a name="setSelfContactId"></a><span class="type">bool</span> QContactManager::<span class="name">setSelfContactId</span> ( const <span class="type"><a href="qcontactid.html#QContactLocalId-typedef">QContactLocalId</a></span> &amp; <i>contactId</i> )</h3>
<p>Sets the id of the &quot;self&quot; contact to the given <i>contactId</i>. Returns true if the &quot;self&quot; contact id was set successfully. If the given <i>contactId</i> does not identify a contact stored in this manager, the error will be set to <tt>QContactManager::DoesNotExistError</tt> and the function will return false; if the backend does not support the concept of a &quot;self&quot; contact then the error will be set to <tt>QContactManager::NotSupportedError</tt> and the function will return false.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qcontactmanager.html#selfContactId">selfContactId</a>().</p>
<!-- @@@setSelfContactId -->
<!-- $$$supportedContactTypes[overload1]$$$supportedContactTypes -->
<h3 class="fn"><a name="supportedContactTypes"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qstringlist.html">QStringList</a></span> QContactManager::<span class="name">supportedContactTypes</span> () const</h3>
<p>Returns the list of contact types which are supported by this manager. This is a convenience function, equivalent to retrieving the allowable values for the <tt>QContactType::FieldType</tt> field of the <a href="qcontacttype.html">QContactType</a> definition which is valid in this manager.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@supportedContactTypes -->
<!-- $$$supportedDataTypes[overload1]$$$supportedDataTypes -->
<h3 class="fn"><a name="supportedDataTypes"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="http://qt.nokia.com/doc/4.7/qvariant.html#Type-enum">QVariant::Type</a></span>&gt; QContactManager::<span class="name">supportedDataTypes</span> () const</h3>
<p>Returns the list of data types supported by the manager</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@supportedDataTypes -->
<!-- $$$synthesizeContactDisplayLabel[overload1]$$$synthesizeContactDisplayLabelQContact* -->
<h3 class="fn"><a name="synthesizeContactDisplayLabel"></a><span class="type">void</span> QContactManager::<span class="name">synthesizeContactDisplayLabel</span> ( <span class="type"><a href="qcontact.html">QContact</a></span> * <i>contact</i> ) const</h3>
<p>Updates the display label of the supplied <i>contact</i>, according to the formatting rules of this manager.</p>
<p>Different managers can format the display label of a contact in different ways - some managers may only consider first or last name, or might put them in different orders. Others might consider an organization, a nickname, or a freeform label.</p>
<p>This function will update the <a href="qcontactdisplaylabel.html">QContactDisplayLabel</a> of this contact, and the string returned by <a href="qcontact.html#displayLabel">QContact::displayLabel</a>().</p>
<p>If <i>contact</i> is null, nothing will happen.</p>
<p>See the following example for more information:</p>
<pre class="cpp">     <span class="comment">/* Retrieve a contact */</span>
     <span class="type"><a href="qcontact.html">QContact</a></span> c <span class="operator">=</span> manager<span class="operator">-</span><span class="operator">&gt;</span>contact(myId);
     <a href="http://qt.nokia.com/doc/4.7/qtglobal.html#qDebug">qDebug</a>() <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;Current display label&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> c<span class="operator">.</span>displayLabel();

     <span class="comment">/* Update some fields that might influence the display label */</span>
     <span class="type"><a href="qcontactname.html">QContactName</a></span> name <span class="operator">=</span> c<span class="operator">.</span>detail<span class="operator">&lt;</span><span class="type"><a href="qcontactname.html">QContactName</a></span><span class="operator">&gt;</span>();
     name<span class="operator">.</span>setFirstName(<span class="string">&quot;Abigail&quot;</span>);
     name<span class="operator">.</span>setLastName(<span class="string">&quot;Arkansas&quot;</span>);
     c<span class="operator">.</span>saveDetail(<span class="operator">&amp;</span>name);

     <span class="comment">/* Update the display label */</span>
     manager<span class="operator">-</span><span class="operator">&gt;</span>synthesizeContactDisplayLabel(<span class="operator">&amp;</span>c);
     <a href="http://qt.nokia.com/doc/4.7/qtglobal.html#qDebug">qDebug</a>() <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;Now the label is:&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> c<span class="operator">.</span>displayLabel();</pre>
<p>Note: Depending on the used engine it is possible that the data that is used to synthesize the display label is not up-to-date after a partial save of the contact, i.e after the contact was saved with <a href="qcontactmanager.html#saveContacts">saveContacts</a>() with a <i>definitionMask</i> parameter. It is recommended to fetch the contact from the engine again and use that new contact as a parameter to this function. Right now this is needed for the tracker engine on the Harmattan platform.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qcontactmanager.html#synthesizedContactDisplayLabel">synthesizedContactDisplayLabel</a>(), <a href="qcontact.html#displayLabel">QContact::displayLabel</a>(), and <a href="qcontactmanager.html#saveContacts">saveContacts</a>().</p>
<!-- @@@synthesizeContactDisplayLabel -->
<!-- $$$synthesizedContactDisplayLabel[overload1]$$$synthesizedContactDisplayLabelconstQContact& -->
<h3 class="fn"><a name="synthesizedContactDisplayLabel"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> QContactManager::<span class="name">synthesizedContactDisplayLabel</span> ( const <span class="type"><a href="qcontact.html">QContact</a></span> &amp; <i>contact</i> ) const</h3>
<p>Returns a display label for a <i>contact</i> which is synthesized from its details in a manager specific manner.</p>
<p>If you want to update the display label stored in the contact, use the <a href="qcontactmanager.html#synthesizeContactDisplayLabel">synthesizeContactDisplayLabel</a>() function instead.</p>
<p>Note: Depending on the used engine it is possible that the data that is used to synthesize the display label is not up-to-date after a partial save of the contact, i.e after the contact was saved with <a href="qcontactmanager.html#saveContacts">saveContacts</a>() with a <i>definitionMask</i> parameter. It is recommended to fetch the contact from the engine again and use that new contact as a parameter to this function. Right now this is needed for the tracker engine on the Harmattan platform.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qcontactmanager.html#synthesizeContactDisplayLabel">synthesizeContactDisplayLabel</a>() and <a href="qcontactmanager.html#saveContacts">saveContacts</a>().</p>
<!-- @@@synthesizedContactDisplayLabel -->
</div>
<div class="vars">
<h2>Member Variable Documentation</h2>
<!-- $$$ParameterSignalDefinitions -->
<h3 class="fn"><a name="ParameterSignalDefinitions-var"></a>const <span class="type"><a href="qlatin1constant.html">QLatin1Constant</a></span> QContactManager::<span class="name">ParameterSignalDefinitions</span></h3>
<p>The string constant for the parameter key which holds the names of detail definitions. If a manager supports suppressing change signals depending on the value given for this construction parameter, clients can request that signals be suppressed if the changes which might otherwise cause a signal to be emitted, involve details whose definition name is not contained in the given list.</p>
<p>That is, if a detail in a contact is changed, but that detail's definition name is not listed in the value for this parameter, the manager will not emit a change signal for that change.</p>
<p>If this parameter is not specified at construction time, changes to any detail of a contact will cause a change signal to be emitted.</p>
<p>The value of this parameter should be a comma (,) separated list of definition names. Any commas which might be part of a definition name must be escaped with a single backslash () character prior to concatenation. Any backslash character which might be part of a definition name must also be escaped with a backslash.</p>
<p>If the parameter (or value given for the parameter) is not supported by the manager, the manager may still be constructed, however the parameter will not be reported to the client if the client calls <a href="qcontactmanager.html#managerParameters">managerParameters</a>() subsequent to manager construction.</p>
<!-- @@@ParameterSignalDefinitions -->
<!-- $$$ParameterSignalSources -->
<h3 class="fn"><a name="ParameterSignalSources-var"></a>const <span class="type"><a href="qlatin1constant.html">QLatin1Constant</a></span> QContactManager::<span class="name">ParameterSignalSources</span></h3>
<p>The string constant for the parameter key which holds the value for signal sources. If a manager supports suppressing change signals depending on the value given for this construction parameter, clients can request that signals be suppressed if the changes which might cause a signal to be emitted do not match particular criteria.</p>
<p>If the parameter (or value given for the parameter) is not supported by the manager, the manager may still be constructed, however the parameter will not be reported to the client if the client calls <a href="qcontactmanager.html#managerParameters">managerParameters</a>() subsequent to manager construction.</p>
<p>The default (assumed) value for this parameter, if this parameter is not given, is that the client wants to be notified of all changes to the data, regardless of the source of the change.</p>
<!-- @@@ParameterSignalSources -->
<!-- $$$ParameterValueOnlyOtherManagers -->
<h3 class="fn"><a name="ParameterValueOnlyOtherManagers-var"></a>const <span class="type"><a href="qlatin1constant.html">QLatin1Constant</a></span> QContactManager::<span class="name">ParameterValueOnlyOtherManagers</span></h3>
<p>This value tells the manager to only emit signals for changes which are made in other manager instances. That is, the client wishes to receive change signals when another client (or background service) changes the data as it is stored in the backend, but does not wish to be notified of changes (or side effects) which it has caused itself.</p>
<!-- @@@ParameterValueOnlyOtherManagers -->
<!-- $$$ParameterValueOnlyOtherProcesses -->
<h3 class="fn"><a name="ParameterValueOnlyOtherProcesses-var"></a>const <span class="type"><a href="qlatin1constant.html">QLatin1Constant</a></span> QContactManager::<span class="name">ParameterValueOnlyOtherProcesses</span></h3>
<p>This value tells the manager to only emit signals for changes which are made in other processes. That is, the client wishes to receive change signals when a client (or background service) in another process changes the data as it is stored in the backend, but does not wish to be notified of changes (or side effects) which were caused in the current client's process, even if those changes were made in a different manager instance to this one.</p>
<!-- @@@ParameterValueOnlyOtherProcesses -->
</div>
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
  <p>
     <acronym title="Copyright">&copy;</acronym> 2008-2011 Nokia Corporation and/or its
     subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
     in Finland and/or other countries worldwide.</p>
  <p>
     All other trademarks are property of their respective owners. <a title="Privacy Policy"
     href="http://qt.nokia.com/about/privacy-policy">Privacy Policy</a></p>
  <br />
  <p>
    Licensees holding valid Qt Commercial licenses may use this document in accordance with the    Qt Commercial License Agreement provided with the Software or, alternatively, in accordance    with the terms contained in a written agreement between you and Nokia.</p>
  <p>
    Alternatively, this document may be used under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU
    Free Documentation License version 1.3</a>
    as published by the Free Software Foundation.</p>
</div>
</body>
</html>