This file is indexed.

/usr/share/qt5/doc/qtcontacts/qml-qtcontacts-contactmodel.html is in qtpim5-doc-html 5.0~git20140515~29475884-0ubuntu24~7.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qdeclarativecontactmodel.cpp -->
  <title>ContactModel QML Type | Qt 5.0</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.0</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.0.0 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#methods">Methods</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">ContactModel QML Type</h1>
<span class="subtitle"></span>
<!-- $$$ContactModel-brief -->
<p>The <a href="qml-qtcontacts-contactmodel.html">ContactModel</a> element provides access to contacts from the contacts store. <a href="#details">More...</a></p>
<!-- @@@ContactModel -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import QtContacts 5.0</td></tr></table></div><ul>
<li><a href="qml-qtcontacts-contactmodel-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtcontacts-contactmodel.html#ImportError-prop">ImportError</a></b></b> : enumeration</li>
<li class="fn"><b><b><a href="qml-qtcontacts-contactmodel.html#StorageLocation-prop">StorageLocation</a></b></b> : enumeration</li>
<li class="fn"><b><b><a href="qml-qtcontacts-contactmodel.html#autoUpdate-prop">autoUpdate</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qtcontacts-contactmodel.html#availableManagers-prop">availableManagers</a></b></b> : list&lt;string&gt;</li>
<li class="fn"><b><b><a href="qml-qtcontacts-contactmodel.html#contacts-prop">contacts</a></b></b> : list&lt;Contact&gt;</li>
<li class="fn"><b><b><a href="qml-qtcontacts-contactmodel.html#error-prop">error</a></b></b> : string</li>
<li class="fn"><b><b><a href="qml-qtcontacts-contactmodel.html#fetchHint-prop">fetchHint</a></b></b> : FetchHint</li>
<li class="fn"><b><b><a href="qml-qtcontacts-contactmodel.html#filter-prop">filter</a></b></b> : Filter</li>
<li class="fn"><b><b><a href="qml-qtcontacts-contactmodel.html#manager-prop">manager</a></b></b> : string</li>
<li class="fn"><b><b><a href="qml-qtcontacts-contactmodel.html#sortOrders-prop">sortOrders</a></b></b> : list&lt;SortOrder&gt;</li>
<li class="fn"><b><b><a href="qml-qtcontacts-contactmodel.html#storageLocations-prop">storageLocations</a></b></b> : int</li>
</ul>
<a name="signals"></a>
<h2 id="signals">Signals</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtcontacts-contactmodel.html#contactsFetched-signal">contactsFetched</a></b></b>(int <i>requestId</i>, list&lt;Contact&gt; <i>fetchedContacts</i>)</li>
<li class="fn"><b><b><a href="qml-qtcontacts-contactmodel.html#onImportCompleted-signal">onImportCompleted</a></b></b>(ImportError <i>error</i>, URL <i>url</i>, list&lt;string&gt; <i>ids</i>)</li>
<li class="fn"><b><b><a href="qml-qtcontacts-contactmodel.html#storageLocationsChanged-signal">storageLocationsChanged</a></b></b>()</li>
</ul>
<a name="methods"></a>
<h2 id="methods">Methods</h2>
<ul>
<li class="fn">void <b><b><a href="qml-qtcontacts-contactmodel.html#exportContacts-method">exportContacts</a></b></b>(url <i>url</i>, list&lt;string&gt; <i>profiles</i>, list&lt;variant&gt; <i>declarativeContacts</i>)</li>
<li class="fn">int <b><b><a href="qml-qtcontacts-contactmodel.html#fetchContacts-method">fetchContacts</a></b></b>(list&lt;string&gt; <i>contactIds</i>)</li>
<li class="fn">void <b><b><a href="qml-qtcontacts-contactmodel.html#importContacts-method">importContacts</a></b></b>(url <i>url</i>, list&lt;string&gt; <i>profiles</i>)</li>
<li class="fn"><b><b><a href="qml-qtcontacts-contactmodel.html#removeContact-method">removeContact</a></b></b>(string <i>contactId</i>)</li>
<li class="fn"><b><b><a href="qml-qtcontacts-contactmodel.html#removeContacts-method">removeContacts</a></b></b>(list&lt;string&gt; <i>contactIds</i>)</li>
<li class="fn"><b><b><a href="qml-qtcontacts-contactmodel.html#saveContact-method">saveContact</a></b></b>(Contact <i>contact</i>, StorageLocation <i>storageLocation</i>)</li>
</ul>
<!-- $$$ContactModel-description -->
<a name="details"></a>
<h2 id="details">Detailed Description</h2>
<p>This element is part of the <b><a href="qtcontacts-qmlmodule.html">QtContacts</a></b> module.</p>
<p><a href="qml-qtcontacts-contactmodel.html">ContactModel</a> provides a model of contacts from the contacts store. The contents of the model can be specified with <a href="qml-qtcontacts-contactmodel.html#filter-prop">filter</a>, <a href="qml-qtcontacts-contactmodel.html#sortOrders-prop">sortOrders</a> and <a href="qml-qtcontacts-contactmodel.html#fetchHint-prop">fetchHint</a> properties. Whether the model is automatically updated when the store or <a href="qml-qtcontacts-contactmodel.html#contacts-prop">contacts</a> changes, can be controlled with <a href="qml-qtcontacts-contactmodel.html#autoUpdate-prop">ContactModel::autoUpdate</a> property.</p>
<p>There are two ways of accessing the contact data: via model by using views and delegates, or alternatively via <a href="qml-qtcontacts-contactmodel.html#contacts-prop">contacts</a> list property. Of the two, the model access is preferred. Direct list access (i.e&#x2e; non-model) is not guaranteed to be in order set by sortOrder.</p>
<p>At the moment the model roles provided by <a href="qml-qtcontacts-contactmodel.html">ContactModel</a> are display, decoration and <code>contact</code>. Through the <code>contact</code> role can access any data provided by the Contact element.</p>
<p><b>See also </b><a href="qml-qtcontacts-relationshipmodel.html">RelationshipModel</a>, <a href="qtcontacts-overview.html#contact">Contact</a>, and <a href="qcontactmanager.html">QContactManager</a>.</p>
<!-- @@@ContactModel -->
<h2>Property Documentation</h2>
<!-- $$$ImportError -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="ImportError-prop">
<td class="tblQmlPropNode"><p>
<a name="ImportError-prop"></a><span class="name">ImportError</span> : <span class="type">enumeration</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Defines the errors cases for <a href="qml-qtcontacts-contactmodel.html#importContacts-method">ContactModel::importContacts()</a> -function.</p>
<ul>
<li>ContactModel::ImportNoError Completed successfully, no error.</li>
<li>ContactModel::ImportUnspecifiedError Unspecified error.</li>
<li>ContactModel::ImportIOError Input/output error.</li>
<li>ContactModel::ImportOutOfMemoryError Out of memory error.</li>
<li>ContactModel::ImportNotReadyError Not ready for importing. Only one import operation can be active at a time.</li>
<li>ContactModel::ImportParseError Error during parsing.</li>
</ul>
</div></div><!-- @@@ImportError -->
<br/>
<!-- $$$StorageLocation -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="StorageLocation-prop">
<td class="tblQmlPropNode"><p>
<a name="StorageLocation-prop"></a><span class="name">StorageLocation</span> : <span class="type">enumeration</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Defines the different storage locations for saving contacts and model population purposes.</p>
<ul>
<li>ContactModel::UserDataStorage A storage location where user data is stored.</li>
<li>ContactModel::SystemStorage A storage location where system files are stored.</li>
</ul>
<p>Depending on the backend implementation, the access rights for different storage locations might vary.</p>
<p><b>See also </b><a href="qml-qtcontacts-contactmodel.html#storageLocations-prop">ContactModel::storageLocations</a> and <a href="qml-qtcontacts-contactmodel.html#saveContact-method">ContactModel::saveContact</a>.</p>
</div></div><!-- @@@StorageLocation -->
<br/>
<!-- $$$autoUpdate -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="autoUpdate-prop">
<td class="tblQmlPropNode"><p>
<a name="autoUpdate-prop"></a><span class="name">autoUpdate</span> : <span class="type">bool</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property indicates whether or not the contact model should be updated automatically, default value is true.</p>
</div></div><!-- @@@autoUpdate -->
<br/>
<!-- $$$availableManagers -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="availableManagers-prop">
<td class="tblQmlPropNode"><p>
<a name="availableManagers-prop"></a><span class="name">availableManagers</span> : <span class="type">list</span>&lt;<span class="type">string</span>&gt;</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the list of available manager names. This property is read only.</p>
</div></div><!-- @@@availableManagers -->
<br/>
<!-- $$$contacts -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="contacts-prop">
<td class="tblQmlPropNode"><p>
<a name="contacts-prop"></a><span class="name">contacts</span> : <span class="type">list</span>&lt;<span class="type"><a href="qml-qtcontacts-contact.html">Contact</a></span>&gt;</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the list of contacts.</p>
<p><b>See also </b><a href="qtcontacts-overview.html#contact">Contact</a>.</p>
</div></div><!-- @@@contacts -->
<br/>
<!-- $$$error -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="error-prop">
<td class="tblQmlPropNode"><p>
<a name="error-prop"></a><span class="name">error</span> : <span class="type">string</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the latest error code returned by the contact manager.</p>
<p>This property is read only.</p>
</div></div><!-- @@@error -->
<br/>
<!-- $$$fetchHint -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="fetchHint-prop">
<td class="tblQmlPropNode"><p>
<a name="fetchHint-prop"></a><span class="name">fetchHint</span> : <span class="type"><a href="qml-qtcontacts-fetchhint.html">FetchHint</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the fetch hint instance used by the contact model.</p>
<p><b>See also </b><a href="qml-qtcontacts-fetchhint.html">FetchHint</a>.</p>
</div></div><!-- @@@fetchHint -->
<br/>
<!-- $$$filter -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="filter-prop">
<td class="tblQmlPropNode"><p>
<a name="filter-prop"></a><span class="name">filter</span> : <span class="type"><a href="qml-qtcontacts-filter.html">Filter</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the filter instance used by the contact model.</p>
<p><b>See also </b><a href="qml-qtcontacts-filter.html">Filter</a>.</p>
</div></div><!-- @@@filter -->
<br/>
<!-- $$$manager -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="manager-prop">
<td class="tblQmlPropNode"><p>
<a name="manager-prop"></a><span class="name">manager</span> : <span class="type">string</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the manager uri of the contact backend engine.</p>
</div></div><!-- @@@manager -->
<br/>
<!-- $$$sortOrders -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="sortOrders-prop">
<td class="tblQmlPropNode"><p>
<a name="sortOrders-prop"></a><span class="name">sortOrders</span> : <span class="type">list</span>&lt;<span class="type"><a href="qml-qtcontacts-sortorder.html">SortOrder</a></span>&gt;</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds a list of sort orders used by the contacts model.</p>
<p><b>See also </b><a href="qml-qtcontacts-sortorder.html">SortOrder</a>.</p>
</div></div><!-- @@@sortOrders -->
<br/>
<!-- $$$storageLocations -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="storageLocations-prop">
<td class="tblQmlPropNode"><p>
<a name="storageLocations-prop"></a><span class="name">storageLocations</span> : <span class="type">int</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property indicates which storage location is used to populate the model.</p>
<p>Only one storage location can be used for each model.</p>
<p>Storage location is a backend specific feature. Some backends support it and some might just ignore it. If backend is having some specific requirements and they're not met, backend returns StorageLocationsNotExistingError.</p>
<p><b>See also </b><a href="qml-qtcontacts-contactmodel.html#StorageLocation-prop">ContactModel::StorageLocation</a> and <a href="qml-qtcontacts-contactmodel.html#saveContact-method">ContactModel::saveContact</a>.</p>
</div></div><!-- @@@storageLocations -->
<br/>
<h2>Signal Documentation</h2>
<!-- $$$contactsFetched -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="contactsFetched-signal">
<td class="tblQmlFuncNode"><p>
<a name="contactsFetched-signal"></a><span class="name">contactsFetched</span>(<span class="type">int</span> <i>requestId</i>, <span class="type">list</span>&lt;<span class="type"><a href="qml-qtcontacts-contact.html">Contact</a></span>&gt; <i>fetchedContacts</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted, when a contact fetch request is finished.</p>
<p><b>See also </b><a href="qml-qtcontacts-contactmodel.html#fetchContacts-method">ContactModel::fetchContacts</a>.</p>
</div></div><!-- @@@contactsFetched -->
<br/>
<!-- $$$onImportCompleted -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="onImportCompleted-signal">
<td class="tblQmlFuncNode"><p>
<a name="onImportCompleted-signal"></a><span class="name">onImportCompleted</span>(<span class="type"><a href="qml-qtcontacts-contactmodel.html#ImportError-prop">ImportError</a></span> <i>error</i>, <span class="type">URL</span> <i>url</i>, <span class="type">list</span>&lt;<span class="type">string</span>&gt; <i>ids</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted, when <a href="qml-qtcontacts-contactmodel.html#importContacts-method">ContactModel::importContacts()</a> completes. The success of operation can be seen on <i>error</i> which is defined in <a href="qml-qtcontacts-contactmodel.html#ImportError-prop">ContactModel::ImportError</a>. <i>url</i> indicates the file, which was imported. <i>ids</i> contains the imported contacts ids.</p>
<p>If the operation was successful, contacts are now imported to backend. If <a href="qml-qtcontacts-contactmodel.html#autoUpdate-prop">ContactModel::autoUpdate</a> is enabled, ContactModel::modelChanged will be emitted when imported contacts are also visible on <a href="qml-qtcontacts-contactmodel.html">ContactModel</a>'s data model.</p>
<p><b>See also </b><a href="qml-qtcontacts-contactmodel.html#importContacts-method">ContactModel::importContacts</a>.</p>
</div></div><!-- @@@onImportCompleted -->
<br/>
<!-- $$$storageLocationsChanged -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="storageLocationsChanged-signal">
<td class="tblQmlFuncNode"><p>
<a name="storageLocationsChanged-signal"></a><span class="name">storageLocationsChanged</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted, when <a href="qml-qtcontacts-contactmodel.html#storageLocations-prop">ContactModel::storageLocations</a> property changes.</p>
<p><b>See also </b><a href="qml-qtcontacts-contactmodel.html#storageLocations-prop">ContactModel::storageLocations</a>.</p>
</div></div><!-- @@@storageLocationsChanged -->
<br/>
<h2>Method Documentation</h2>
<!-- $$$exportContacts -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="exportContacts-method">
<td class="tblQmlFuncNode"><p>
<a name="exportContacts-method"></a><span class="type">void</span> <span class="name">exportContacts</span>(<span class="type">url</span> <i>url</i>, <span class="type">list</span>&lt;<span class="type">string</span>&gt; <i>profiles</i>, <span class="type">list</span>&lt;<span class="type">variant</span>&gt; <i>declarativeContacts</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Export all contacts of this model into a vcard file to the given <i>url</i> by optional <i>profiles</i>. The optional <i>declarativeContacts</i> list can be used to export an arbitrary list of QDeclarativeContact objects not necessarily belonging to the data set of this model. At the moment only the local file url is supported in export method. Also, only one export operation can be active at a time. Supported profiles are:</p>
<ul>
<li>&quot;Sync&quot; exports contacts in sync mode, currently, this is the same as passing in an empty list, and is generally what you want.</li>
<li>&quot;Backup&quot; exports contacts in backup mode, this will add non-standard properties to the generated vCard to try to save every detail of the contacts. Only use this if the vCard is going to be imported using the backup profile. #include &quot;moc_qdeclarativecontactmodel_p.cpp&quot;</li>
</ul>
<p><b>See also </b>QVersitContactHandlerFactory, QVersitContactHandlerFactory::ProfileSync(), and QVersitContactHandlerFactory::ProfileBackup().</p>
</div></div><!-- @@@exportContacts -->
<br/>
<!-- $$$fetchContacts -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="fetchContacts-method">
<td class="tblQmlFuncNode"><p>
<a name="fetchContacts-method"></a><span class="type">int</span> <span class="name">fetchContacts</span>(<span class="type">list</span>&lt;<span class="type">string</span>&gt; <i>contactIds</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Starts a request to fetch contacts by the given <i>contactIds</i>, and returns the unique ID of this request. -1 is returned if the request can't be started.</p>
<p>Note that the contacts fetched won't be added to the model, but can be accessed through the <a href="qml-qtcontacts-contactmodel.html#contactsFetched-signal">contactsFetched</a> signal handler.</p>
<p><b>See also </b><a href="qml-qtcontacts-contactmodel.html#contactsFetched-signal">ContactModel::contactsFetched</a>.</p>
</div></div><!-- @@@fetchContacts -->
<br/>
<!-- $$$importContacts -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="importContacts-method">
<td class="tblQmlFuncNode"><p>
<a name="importContacts-method"></a><span class="type">void</span> <span class="name">importContacts</span>(<span class="type">url</span> <i>url</i>, <span class="type">list</span>&lt;<span class="type">string</span>&gt; <i>profiles</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Import contacts from a vcard by the given <i>url</i> and optional <i>profiles</i>. Only one import operation can be active at a time. Supported profiles are:</p>
<ul>
<li>&quot;Sync&quot; Imports contacts in sync mode, currently, this is the same as passing in an empty list, and is generally what you want.</li>
<li>&quot;Backup&quot; imports contacts in backup mode, use this mode if the vCard was generated by exporting in backup mode.</li>
</ul>
<p><b>See also </b>QVersitContactHandlerFactory, QVersitContactHandlerFactory::ProfileSync(), and QVersitContactHandlerFactory::ProfileBackup().</p>
</div></div><!-- @@@importContacts -->
<br/>
<!-- $$$removeContact -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="removeContact-method">
<td class="tblQmlFuncNode"><p>
<a name="removeContact-method"></a><span class="name">removeContact</span>(<span class="type">string</span> <i>contactId</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Remove the contact from the contacts store by given <i>contactId</i>. After removing a contact it is not possible to save it again.</p>
<p><b>See also </b><a href="qml-qtcontacts-contact.html#contactId-prop">Contact::contactId</a>.</p>
</div></div><!-- @@@removeContact -->
<br/>
<!-- $$$removeContacts -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="removeContacts-method">
<td class="tblQmlFuncNode"><p>
<a name="removeContacts-method"></a><span class="name">removeContacts</span>(<span class="type">list</span>&lt;<span class="type">string</span>&gt; <i>contactIds</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Remove the list of contacts from the contacts store by given <i>contactIds</i>.</p>
<p><b>See also </b><a href="qml-qtcontacts-contact.html#contactId-prop">Contact::contactId</a>.</p>
</div></div><!-- @@@removeContacts -->
<br/>
<!-- $$$saveContact -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="saveContact-method">
<td class="tblQmlFuncNode"><p>
<a name="saveContact-method"></a><span class="name">saveContact</span>(<span class="type"><a href="qml-qtcontacts-contact.html">Contact</a></span> <i>contact</i>, <span class="type"><a href="qml-qtcontacts-contactmodel.html#StorageLocation-prop">StorageLocation</a></span> <i>storageLocation</i> = UserDataStorage)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Save the given <i>contact</i> into the contacts backend.</p>
<p>The location for storing the contact can be defined with <i>storageLocation</i> for new contacts. When the contact is updated, ie saved again, <i>storageLocation</i> is ignored and the contact is saved to the same location as it were before.</p>
<p>Once saved successfully, the dirty flags of this contact will be reset.</p>
<p><b>See also </b><a href="qml-qtcontacts-contact.html#modified-prop">Contact::modified</a>.</p>
</div></div><!-- @@@saveContact -->
<br/>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br>    The documentation provided herein is licensed 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.<br>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>