QtMobility Reference Documentation

QOrganizerCollectionChangeSet Class Reference

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

 #include <QOrganizerCollectionChangeSet>

This class was introduced in Qt Mobility 1.1.

Public Functions

QOrganizerCollectionChangeSet ()
QOrganizerCollectionChangeSet ( const QOrganizerCollectionChangeSet & other )
~QOrganizerCollectionChangeSet ()
QSet<QOrganizerCollectionId> addedCollections () const
QSet<QOrganizerCollectionId> changedCollections () const
void clearAddedCollections ()
void clearAll ()
void clearChangedCollections ()
void clearRemovedCollections ()
bool dataChanged ()
void emitSignals ( QOrganizerManagerEngine * engine )
void insertAddedCollection ( const QOrganizerCollectionId & addedOrganizerCollectionId )
void insertAddedCollections ( const QList<QOrganizerCollectionId> & addedOrganizerCollectionIds )
void insertChangedCollection ( const QOrganizerCollectionId & changedOrganizerCollectionId )
void insertChangedCollections ( const QList<QOrganizerCollectionId> & changedOrganizerCollectionIds )
void insertRemovedCollection ( const QOrganizerCollectionId & removedOrganizerCollectionId )
void insertRemovedCollections ( const QList<QOrganizerCollectionId> & removedOrganizerCollectionIds )
QSet<QOrganizerCollectionId> removedCollections () const
void setDataChanged ( bool dataChanged )
QOrganizerCollectionChangeSet & operator= ( const QOrganizerCollectionChangeSet & other )

Detailed Description

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

This class can be utilized by backend implementations to ensure correct emission of the QOrganizerManagerEngine::dataChanged(), QOrganizerManagerEngine::itemsAdded(), QOrganizerManagerEngine::itemsChanged() and QOrganizerManagerEngine::itemsRemoved().

See also QOrganizerManagerEngine.

Member Function Documentation

QOrganizerCollectionChangeSet::QOrganizerCollectionChangeSet ()

Constructs a new change set

QOrganizerCollectionChangeSet::QOrganizerCollectionChangeSet ( const QOrganizerCollectionChangeSet & other )

Constructs a copy of the other change set

This function was introduced in Qt Mobility 1.1.

QOrganizerCollectionChangeSet::~QOrganizerCollectionChangeSet ()

Frees the memory used by this change set

QSet<QOrganizerCollectionId> QOrganizerCollectionChangeSet::addedCollections () const

Returns the set of ids of collections which have been added to the database.

This function was introduced in Qt Mobility 1.1.

QSet<QOrganizerCollectionId> QOrganizerCollectionChangeSet::changedCollections () const

Returns the set of ids of collections which have been changed in the database.

This function was introduced in Qt Mobility 1.1.

void QOrganizerCollectionChangeSet::clearAddedCollections ()

Clears the set of ids of collections which have been added to the database

This function was introduced in Qt Mobility 1.1.

void QOrganizerCollectionChangeSet::clearAll ()

Clears all flags and sets of ids in this change set

This function was introduced in Qt Mobility 1.1.

void QOrganizerCollectionChangeSet::clearChangedCollections ()

Clears the set of ids of collections which have been changed to the database

This function was introduced in Qt Mobility 1.1.

void QOrganizerCollectionChangeSet::clearRemovedCollections ()

Clears the set of ids of collections which have been removed to the database

This function was introduced in Qt Mobility 1.1.

bool QOrganizerCollectionChangeSet::dataChanged ()

Returns the value of the data changed flag

This function was introduced in Qt Mobility 1.1.

See also setDataChanged().

void QOrganizerCollectionChangeSet::emitSignals ( QOrganizerManagerEngine * engine )

Emits the appropriate signals from the given engine given the state of the change set

This function was introduced in Qt Mobility 1.1.

void QOrganizerCollectionChangeSet::insertAddedCollection ( const QOrganizerCollectionId & addedOrganizerCollectionId )

Inserts the given collection id addedOrganizerCollectionId into the set of ids of collections which have been added to the database.

This function was introduced in Qt Mobility 1.1.

void QOrganizerCollectionChangeSet::insertAddedCollections ( const QList<QOrganizerCollectionId> & addedOrganizerCollectionIds )

Inserts each of the given collection ids addedOrganizerCollectionIds into the set of ids of collections which have been added to the database.

This function was introduced in Qt Mobility 1.1.

void QOrganizerCollectionChangeSet::insertChangedCollection ( const QOrganizerCollectionId & changedOrganizerCollectionId )

Inserts the given collection id changedOrganizerCollectionId into the set of ids of collections which have been changed to the database.

This function was introduced in Qt Mobility 1.1.

void QOrganizerCollectionChangeSet::insertChangedCollections ( const QList<QOrganizerCollectionId> & changedOrganizerCollectionIds )

Inserts each of the given collection ids changedOrganizerCollectionIds into the set of ids of collections which have been changed to the database.

This function was introduced in Qt Mobility 1.1.

void QOrganizerCollectionChangeSet::insertRemovedCollection ( const QOrganizerCollectionId & removedOrganizerCollectionId )

Inserts the given collection id removedOrganizerCollectionId into the set of ids of collections which have been removed to the database.

This function was introduced in Qt Mobility 1.1.

void QOrganizerCollectionChangeSet::insertRemovedCollections ( const QList<QOrganizerCollectionId> & removedOrganizerCollectionIds )

Inserts each of the given collection ids removedOrganizerCollectionIds into the set of ids of collections which have been removed to the database.

This function was introduced in Qt Mobility 1.1.

QSet<QOrganizerCollectionId> QOrganizerCollectionChangeSet::removedCollections () const

Returns the set of ids of collections which have been removed from the database.

This function was introduced in Qt Mobility 1.1.

void QOrganizerCollectionChangeSet::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.

This function was introduced in Qt Mobility 1.1.

See also dataChanged().

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

Assigns this change set to be equal to other

This function was introduced in Qt Mobility 1.1.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.