Detailed Description
The QOrganizerItemId class provides information that uniquely identifies an organizer item in a particular manager.
It consists of a manager URI which identifies the manager which contains the organizer item, and the engine specific ID of the organizer item in that manager.
A "null" QOrganizerItemId has an empty manager URI.
Member Function Documentation
QOrganizerItemId::QOrganizerItemId()
Constructs a new organizer item ID.
QOrganizerItemId::QOrganizerItemId(const QOrganizerItemId & other)
Constructs a new organizer item ID as a copy of other.
QOrganizerItemId::QOrganizerItemId(QOrganizerItemEngineId * engineItemId)
Constructs a manager-unique ID which wraps the given engine-unique item ID engineItemId. This item ID takes ownership of the engine ID and will delete it when the item ID goes out of scope. Engine implementors must not delete the engineItemId or undefined behaviour will occur.
QOrganizerItemId::~QOrganizerItemId()
Cleans up the memory in use by the organizer item ID.
QOrganizerItemId QOrganizerItemId::fromString(const QString & idString) [static]
Deserializes the given idString. Returns a default-constructed (null) item ID if the given idString is not a valid, serialized item ID, or if the manager engine from which the ID came could not be found.
bool QOrganizerItemId::isNull() const
Returns true if the engine ID part is a null (default constructed) engine ID; otherwise, returns false.
QString QOrganizerItemId::managerUri() const
Returns the URI of the manager which contains the organizer item identified by this ID.
QString QOrganizerItemId::toString() const
Serializes the ID to a string. The format of the string will be: "qtorganizer:managerName:constructionParams:serializedEngineLocalItemId"
bool QOrganizerItemId::operator!=(const QOrganizerItemId & other) const
Returns true if either the manager URI or 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 iID 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 engine ID of this ID is less than the engine ID of the other ID.
The invalid, empty ID consists of an empty manager URI and a null engine 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 organizer item ID to be equal to other.
bool QOrganizerItemId::operator==(const QOrganizerItemId & other) const
Returns true if the organizer item ID has the same manager URI and ID as other.