The QContactFetchByIdRequest class allows a client to asynchronously request contacts from a contacts store manager, given a list of contact IDs. More...
#include <QContactFetchByIdRequest>
Inherits: QContactAbstractRequest.
QContactFetchByIdRequest ( QObject * parent = 0 ) | |
~QContactFetchByIdRequest () | |
QList<QContact> | contacts () const |
QMap<int, QContactManager::Error> | errorMap () const |
QContactFetchHint | fetchHint () const |
QList<QContactLocalId> | localIds () const |
void | setFetchHint ( const QContactFetchHint & fetchHint ) |
void | setLocalIds ( const QList<QContactLocalId> & localIds ) |
The QContactFetchByIdRequest class allows a client to asynchronously request contacts from a contacts store manager, given a list of contact IDs.
The contacts fetched by the backend should have a one-to-one correspondence to the IDs passed into this class. That is, the nth contact in the returned list should have an ID which is equal to the nth ID in the list of IDs. Any invalid ID should correspond to an empty QContact.
For a QContactFetchByIdRequest, the resultsAvailable() signal will be emitted when the resultant contacts (which may be retrieved by calling contacts()), are updated, as well as if the overall operation error (which may be retrieved by calling error()) is updated.
Please see the class documentation of QContactAbstractRequest for more information about the usage of request classes and ownership semantics.
Constructs a new contact fetch request whose parent is the specified parent
Frees any memory used by this request
Returns the list of contacts retrieved by this request
Returns the map of input definition list indices to errors which occurred
Returns the fetch hint which may be used by the backend to optimize contact retrieval. A client should not make changes to a contact which has been retrieved using a fetch hint other than the default fetch hint. Doing so will result in information loss when saving the contact back to the manager (as the "new" restricted contact will replace the previously saved contact in the backend).
See also setFetchHint() and QContactFetchHint.
Returns the list of ids of the contacts that the backend should retrieve.
See also setLocalIds().
Sets the fetch hint which may be used by the backend to optimize contact retrieval to fetchHint. A client should not make changes to a contact which has been retrieved using a fetch hint other than the default fetch hint. Doing so will result in information loss when saving the contact back to the manager (as the "new" restricted contact will replace the previously saved contact in the backend).
See also fetchHint() and QContactFetchHint.
Sets the list of ids of the contacts that the backend should retrieve to localIds.
See also localIds().
© 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.
All other trademarks are property of their respective owners. Privacy Policy
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.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.