Detailed Description
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).
Member Function Documentation
QContactId::QContactId ()
Constructs a new contact id
QContactId::QContactId ( const QContactId & other )
Constructs a new contact id as a copy of other
QContactId::~QContactId ()
Cleans up the memory in use by the contact id
Returns the manager-local id of the contact identified by this contact id
See also setLocalId().
QString QContactId::managerUri () const
Returns the URI of the manager which contains the contact identified by this id
See also setManagerUri().
void QContactId::setLocalId ( const QContactLocalId & id )
Sets the manager-local id of the contact identified by this contact id to id
See also localId().
void QContactId::setManagerUri ( const QString & uri )
Sets the URI of the manager which contains the contact identified by this id to uri
See also managerUri().
bool QContactId::operator!= ( const QContactId & other ) const
Returns true if either the manager URI or local id of the contact id is different to that of other
bool QContactId::operator< ( const QContactId & other ) const
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.
QContactId & QContactId::operator= ( const QContactId & other )
Assigns the contact id to be equal to other
bool QContactId::operator== ( const QContactId & other ) const
Returns true if the contact id has the same manager URI and local id as other
Related Non-Members
typedef QContactLocalId
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.