QOrganizerItemId Class Reference
The QOrganizerItemId class provides information that uniquely identifies a organizeritem in a particular manager. More...
#include <QOrganizerItemId>
Public Functions
Related Non-Members
Detailed Description
The QOrganizerItemId class provides information that uniquely identifies a organizeritem in a particular manager.
It consists of a manager URI which identifies the manager which contains the organizeritem, and the local id of the organizeritem in that manager.
A "null" QOrganizerItemId has an empty manager URI, and an invalid QOrganizerItemLocalId (0).
See also QOrganizerItemLocalId.
Member Function Documentation
QOrganizerItemId::QOrganizerItemId ()
Constructs a new organizeritem id
QOrganizerItemId::QOrganizerItemId ( const QOrganizerItemId & other )
Constructs a new organizeritem id as a copy of other
QOrganizerItemId::~QOrganizerItemId ()
Cleans up the memory in use by the organizeritem id
Returns the manager-local id of the organizeritem identified by this organizeritem id
See also setLocalId().
QString QOrganizerItemId::managerUri () const
Returns the URI of the manager which contains the organizeritem identified by this id
See also setManagerUri().
void QOrganizerItemId::setLocalId ( const QOrganizerItemLocalId & id )
Sets the manager-local id of the organizeritem identified by this organizeritem id to id
See also localId().
void QOrganizerItemId::setManagerUri ( const QString & uri )
Sets the URI of the manager which contains the organizeritem identified by this id to uri
See also managerUri().
bool QOrganizerItemId::operator!= ( const QOrganizerItemId & other ) const
Returns true if either the manager URI or local id of the organizeritem id is different to that of other
bool QOrganizerItemId::operator< ( const QOrganizerItemId & 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 QOrganizerItemId as a key in a QMap.
QOrganizerItemId & QOrganizerItemId::operator= ( const QOrganizerItemId & other )
Assigns the organizeritem id to be equal to other
bool QOrganizerItemId::operator== ( const QOrganizerItemId & other ) const
Returns true if the organizeritem id has the same manager URI and local id as other
The QOrganizerItemLocalId type represents the unique id of a organizeritem within its manager.
An invalid QOrganizerItemLocalId is represented by a zero (0) value.