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  · 

QOrganizerItemId Class

The QOrganizerItemId class provides information that uniquely identifies an organizer item in a particular manager. More...

 #include <QOrganizerItemId>

Public Functions

QOrganizerItemId()
QOrganizerItemId(const QOrganizerItemId & other)
QOrganizerItemId(QOrganizerItemEngineId * engineItemId)
~QOrganizerItemId()
bool isNull() const
QString managerUri() const
QString toString() const
bool operator!=(const QOrganizerItemId & other) const
bool operator<(const QOrganizerItemId & other) const
QOrganizerItemId & operator=(const QOrganizerItemId & other)
bool operator==(const QOrganizerItemId & other) const

Static Public Members

QOrganizerItemId fromString(const QString & idString)

Related Non-Members

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

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.

Related Non-Members

Q_ORGANIZER_EXPORT operator<<(QDebug dbg, const QOrganizerItemId & 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