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  · 

QOrganizerItemChangeSet Class

The QOrganizerItemChangeSet class provides a simple API to simplify the emission of state-change signals for items from QOrganizerManagerEngine implementations. More...

 #include <QOrganizerItemChangeSet>

Public Functions

QOrganizerItemChangeSet()
QOrganizerItemChangeSet(const QOrganizerItemChangeSet & other)
~QOrganizerItemChangeSet()
QSet<QOrganizerItemId> addedItems() const
QSet<QOrganizerItemId> changedItems() const
void clearAddedItems()
void clearAll()
void clearChangedItems()
void clearModifiedItems()
void clearRemovedItems()
bool dataChanged() const
void emitSignals(QOrganizerManagerEngine * engine) const
void insertAddedItem(const QOrganizerItemId & itemId)
void insertAddedItems(const QList<QOrganizerItemId> & itemIds)
void insertChangedItem(const QOrganizerItemId & itemId)
void insertChangedItems(const QList<QOrganizerItemId> & itemIds)
void insertRemovedItem(const QOrganizerItemId & itemId)
void insertRemovedItems(const QList<QOrganizerItemId> & itemIds)
QList<QPair<QOrganizerItemId, QOrganizerManager::Operation> > modifiedItems() const
QSet<QOrganizerItemId> removedItems() const
void setDataChanged(bool dataChanged)
QOrganizerItemChangeSet & operator=(const QOrganizerItemChangeSet & other)

Detailed Description

The QOrganizerItemChangeSet class provides a simple API to simplify the emission of state-change signals for items from QOrganizerManagerEngine implementations.

This class should only be used by backend developers.

Member Function Documentation

QOrganizerItemChangeSet::QOrganizerItemChangeSet()

Constructs a new change set.

QOrganizerItemChangeSet::QOrganizerItemChangeSet(const QOrganizerItemChangeSet & other)

Constructs a copy of the other change set.

QOrganizerItemChangeSet::~QOrganizerItemChangeSet()

Frees the memory used by this change set.

QSet<QOrganizerItemId> QOrganizerItemChangeSet::addedItems() const

Returns the set of IDs of organizer items which have been added to the database.

QSet<QOrganizerItemId> QOrganizerItemChangeSet::changedItems() const

Returns the set of IDs of organizer items which have been changed in the database.

void QOrganizerItemChangeSet::clearAddedItems()

Clears the set of IDs of organizer items which have been added to the database.

void QOrganizerItemChangeSet::clearAll()

Clears all flags and sets of IDs in this change set.

void QOrganizerItemChangeSet::clearChangedItems()

Clears the set of IDs of organizer items which have been changed in the database.

void QOrganizerItemChangeSet::clearModifiedItems()

Clears the list of ids of organizer items which have been added, changed or removed from the database

void QOrganizerItemChangeSet::clearRemovedItems()

Clears the set of IDs of organizer items which have been removed from the database.

bool QOrganizerItemChangeSet::dataChanged() const

Returns the value of the data changed flag.

See also setDataChanged().

void QOrganizerItemChangeSet::emitSignals(QOrganizerManagerEngine * engine) const

Emits the appropriate signals from the given engine given the state of the change set. Note that the flags and sets of IDs are not cleared after signals are emitted.

void QOrganizerItemChangeSet::insertAddedItem(const QOrganizerItemId & itemId)

Inserts the given itemId into the set of ids of organizer items which have been added to the database.

void QOrganizerItemChangeSet::insertAddedItems(const QList<QOrganizerItemId> & itemIds)

Inserts each of the given itemIds into the set of IDs of organizer items which have been added to the database.

void QOrganizerItemChangeSet::insertChangedItem(const QOrganizerItemId & itemId)

Inserts the given itemId into the set of IDs of organizer items which have been changed in the database.

void QOrganizerItemChangeSet::insertChangedItems(const QList<QOrganizerItemId> & itemIds)

Inserts each of the given itemIds into the set of IDs of organizer items which have been changed in the database.

void QOrganizerItemChangeSet::insertRemovedItem(const QOrganizerItemId & itemId)

Inserts the given itemId into the set of IDs of organizer items which have been removed from the database.

void QOrganizerItemChangeSet::insertRemovedItems(const QList<QOrganizerItemId> & itemIds)

Inserts each of the given itemIds into the set of IDs of organizer items which have been removed from the database.

QList<QPair<QOrganizerItemId, QOrganizerManager::Operation> > QOrganizerItemChangeSet::modifiedItems() const

Returns the list of ids of organizer items which have been added, changed or removed from the database. The list includes information about which database operation was done. The ids and operations are ordered so that the first operation is first in the list.

QSet<QOrganizerItemId> QOrganizerItemChangeSet::removedItems() const

Returns the set of IDs of organizer items which have been removed from the database.

void QOrganizerItemChangeSet::setDataChanged(bool dataChanged)

Sets the data changed flag to dataChanged.

If this is set to true prior to calling emitSignals(), only the QOrganizerManagerEngine::dataChanged() signal will be emitted; otherwise, the appropriate finer-grained signals will be emitted.

See also dataChanged().

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

Assigns this change set to be equal to other.

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