Qt Mobility Reference Documentation

QOrganizerCollectionId Class Reference

The QOrganizerCollectionId class provides information that uniquely identifies a collection in a particular manager. More...

 #include <QOrganizerCollectionId>

Public Functions

QOrganizerCollectionId ()
QOrganizerCollectionId ( const QOrganizerCollectionId & other )
~QOrganizerCollectionId ()
QOrganizerCollectionLocalId localId () const
QString managerUri () const
void setLocalId ( const QOrganizerCollectionLocalId & id )
void setManagerUri ( const QString & uri )
bool operator!= ( const QOrganizerCollectionId & other ) const
bool operator< ( const QOrganizerCollectionId & other ) const
QOrganizerCollectionId & operator= ( const QOrganizerCollectionId & other )
bool operator== ( const QOrganizerCollectionId & other ) const

Related Non-Members

typedef QOrganizerCollectionLocalId

Detailed Description

The QOrganizerCollectionId class provides information that uniquely identifies a collection in a particular manager.

It consists of a manager URI which identifies the manager which manages the collection, and the local id of the collection in that manager.

A "null" QOrganizerCollectionId has an empty manager URI, and an invalid QOrganizerCollectionLocalId (0).

See also QOrganizerCollectionLocalId.


Member Function Documentation

QOrganizerCollectionId::QOrganizerCollectionId ()

Constructs a new organizeritem id

QOrganizerCollectionId::QOrganizerCollectionId ( const QOrganizerCollectionId & other )

Constructs a new organizeritem id as a copy of other

QOrganizerCollectionId::~QOrganizerCollectionId ()

Cleans up the memory in use by the organizeritem id

QOrganizerCollectionLocalId QOrganizerCollectionId::localId () const

Returns the manager-local id of the organizeritem identified by this organizeritem id

See also setLocalId().

QString QOrganizerCollectionId::managerUri () const

Returns the URI of the manager which contains the organizeritem identified by this id

See also setManagerUri().

void QOrganizerCollectionId::setLocalId ( const QOrganizerCollectionLocalId & id )

Sets the manager-local id of the organizeritem identified by this organizeritem id to id

See also localId().

void QOrganizerCollectionId::setManagerUri ( const QString & uri )

Sets the URI of the manager which contains the organizeritem identified by this id to uri

See also managerUri().

bool QOrganizerCollectionId::operator!= ( const QOrganizerCollectionId & other ) const

Returns true if either the manager URI or local id of the organizeritem id is different to that of other

bool QOrganizerCollectionId::operator< ( const QOrganizerCollectionId & 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 QOrganizerCollectionId as a key in a QMap.

QOrganizerCollectionId & QOrganizerCollectionId::operator= ( const QOrganizerCollectionId & other )

Assigns the organizeritem id to be equal to other

bool QOrganizerCollectionId::operator== ( const QOrganizerCollectionId & other ) const

Returns true if the organizeritem id has the same manager URI and local id as other


Related Non-Members

typedef QOrganizerCollectionLocalId

The QOrganizerCollectionLocalId type represents the unique id of a collection within its manager.

Most collection-related operations within a QOrganizerItemManager accept a QOrganizerCollectionLocalId. Some operations (involving links to collections outside a particular manager) also accept a manager URI - this combination is stored in a QOrganizerCollectionId.

An invalid QOrganizerCollectionLocalId is represented by a zero (0) value.

See also QOrganizerCollectionId.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.