The QContactId class provides information that uniquely identifies a contact in a particular manager. More...
#include <QContactId>
This class was introduced in Qt Mobility 1.0.
QContactId () | |
QContactId ( const QContactId & other ) | |
~QContactId () | |
QContactLocalId | localId () const |
QString | managerUri () const |
void | setLocalId ( const QContactLocalId & id ) |
void | setManagerUri ( const QString & uri ) |
bool | operator!= ( const QContactId & other ) const |
bool | operator< ( const QContactId & other ) const |
QContactId & | operator= ( const QContactId & other ) |
bool | operator== ( const QContactId & other ) const |
typedef | QContactLocalId |
The QContactId class provides information that uniquely identifies a contact in a particular manager.
It consists of a manager URI which identifies the manager which contains the contact, and the local id of the contact in that manager.
A "null" QContactId has an empty manager URI, and an invalid QContactLocalId (0).
See also QContactLocalId.
Constructs a new contact id
Constructs a new contact id as a copy of other
Cleans up the memory in use by the contact id
Returns the manager-local id of the contact identified by this contact id
This function was introduced in Qt Mobility 1.0.
See also setLocalId().
Returns the URI of the manager which contains the contact identified by this id
This function was introduced in Qt Mobility 1.0.
See also setManagerUri().
Sets the manager-local id of the contact identified by this contact id to id
This function was introduced in Qt Mobility 1.0.
See also localId().
Sets the URI of the manager which contains the contact identified by this id to uri
This function was introduced in Qt Mobility 1.0.
See also managerUri().
Returns true if either the manager URI or local id of the contact id is different to that of other
This function was introduced in Qt Mobility 1.0.
Returns true if this id is less than the other id. This id will be considered less than the other id if the manager URI of this id is alphabetically less than the manager URI of the other id. If both ids have the same manager URI, this id will be considered less than the other id if the local id of this id is less than the local id of the other id.
The invalid, empty id consists of an empty manager URI and the invalid, zero local id, and hence will be less than any non-invalid id.
This operator is provided primarily to allow use of a QContactId as a key in a QMap.
This function was introduced in Qt Mobility 1.0.
Assigns the contact id to be equal to other
This function was introduced in Qt Mobility 1.0.
Returns true if the contact id has the same manager URI and local id as other
This function was introduced in Qt Mobility 1.0.
The QContactLocalId type represents the unique id of a contact within its manager.
Most operations within a QContactManager accept a QContactLocalId. Some operations (involving links to contacts outside a particular manager) also accept a manager URI - this combination is stored in a QContactId.
An invalid QContactLocalId is represented by a zero (0) value.
See also QContactId.
© 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.