Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QOrganizerCollectionId Class

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

 #include <QOrganizerCollectionId>

Public Functions

QOrganizerCollectionId()
QOrganizerCollectionId(QOrganizerCollectionEngineId * engineId)
QOrganizerCollectionId(const QOrganizerCollectionId & other)
~QOrganizerCollectionId()
bool isNull() const
QString managerUri() const
QString toString() const
bool operator!=(const QOrganizerCollectionId & other) const
bool operator<(const QOrganizerCollectionId & other) const
QOrganizerCollectionId & operator=(const QOrganizerCollectionId & other)
bool operator==(const QOrganizerCollectionId & other) const

Static Public Members

QOrganizerCollectionId fromString(const QString & idString)

Related Non-Members

Q_ORGANIZER_EXPORT operator<<(QDebug dbg, const QOrganizerCollectionId & id)

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 ID of the collection in that manager.

Member Function Documentation

QOrganizerCollectionId::QOrganizerCollectionId()

Constructs a new, null collection ID.

QOrganizerCollectionId::QOrganizerCollectionId(QOrganizerCollectionEngineId * engineId)

Constructs a manager-unique ID which wraps the given engine-unique engineId.

This ID takes ownership of the engineId and will delete it when this ID is destructed. Engine implementors must not delete the engineId, otherwise undefined behaviour will occur.

QOrganizerCollectionId::QOrganizerCollectionId(const QOrganizerCollectionId & other)

Constructs a new collection ID as a copy of other.

QOrganizerCollectionId::~QOrganizerCollectionId()

Cleans up the memory in use by the collection ID.

QOrganizerCollectionId QOrganizerCollectionId::fromString(const QString & idString) [static]

Deserializes the given idString. Returns a default-constructed (null) collection ID if the given idString is not a valid, serialized collection ID, or if the manager engine from which the ID refers to could not be found.

bool QOrganizerCollectionId::isNull() const

Returns true if the engine ID part of this ID is null (default constructed); otherwise, returns false.

QString QOrganizerCollectionId::managerUri() const

Returns the URI of the manager which contains the collection identified by this ID.

QString QOrganizerCollectionId::toString() const

Serializes the ID to a string. The format of the string will be: "qtorganizer:managerName:constructionParams:serializedEngineLocalItemId".

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

Returns true if either the manager URI or ID of it is different to that of other.

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

Returns true if this ID is less than the other.

This ID will be considered less than the other if the manager URI of this ID is alphabetically less than the manager URI of the other. If both IDs have the same manager URI, this ID will be considered less than the other if the engine ID is less than the engine ID of the other.

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 QOrganizerCollectionId as a key in a QMap.

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

Assigns the collection ID to be equal to other.

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

Returns true if it has the same manager URI and ID as other.

Related Non-Members

Q_ORGANIZER_EXPORT operator<<(QDebug dbg, const QOrganizerCollectionId & id)

Outputs id to the debug stream dbg.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web