MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QOrganizerItemChangeSet Class Reference

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

 #include <QOrganizerItemChangeSet>

This class was introduced in Qt Mobility 1.1.

Public Functions

QOrganizerItemChangeSet ()
QOrganizerItemChangeSet ( const QOrganizerItemChangeSet & other )
~QOrganizerItemChangeSet ()
QSet<QOrganizerItemId> addedItems () const
QSet<QOrganizerItemId> changedItems () const
void clearAddedItems ()
void clearAll ()
void clearChangedItems ()
void clearRemovedItems ()
bool dataChanged ()
void emitSignals ( QOrganizerManagerEngine * engine )
void insertAddedItem ( const QOrganizerItemId & addedOrganizerItemId )
void insertAddedItems ( const QList<QOrganizerItemId> & addedOrganizerItemIds )
void insertChangedItem ( const QOrganizerItemId & changedOrganizerItemId )
void insertChangedItems ( const QList<QOrganizerItemId> & changedOrganizerItemIds )
void insertRemovedItem ( const QOrganizerItemId & removedOrganizerItemId )
void insertRemovedItems ( const QList<QOrganizerItemId> & removedOrganizerItemIds )
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 from QOrganizerManagerEngine implementations.

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

See also QOrganizerManagerEngine.

Member Function Documentation

QOrganizerItemChangeSet::QOrganizerItemChangeSet ()

Constructs a new change set

QOrganizerItemChangeSet::QOrganizerItemChangeSet ( const QOrganizerItemChangeSet & other )

Constructs a copy of the other change set

This function was introduced in Qt Mobility 1.1.

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.

This function was introduced in Qt Mobility 1.1.

QSet<QOrganizerItemId> QOrganizerItemChangeSet::changedItems () const

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

This function was introduced in Qt Mobility 1.1.

void QOrganizerItemChangeSet::clearAddedItems ()

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

This function was introduced in Qt Mobility 1.1.

void QOrganizerItemChangeSet::clearAll ()

Clears all flags and sets of ids in this change set

This function was introduced in Qt Mobility 1.1.

void QOrganizerItemChangeSet::clearChangedItems ()

Clears the set of ids of organizer items which have been changed to the database

This function was introduced in Qt Mobility 1.1.

void QOrganizerItemChangeSet::clearRemovedItems ()

Clears the set of ids of organizer items which have been removed to the database

This function was introduced in Qt Mobility 1.1.

bool QOrganizerItemChangeSet::dataChanged ()

Returns the value of the data changed flag

This function was introduced in Qt Mobility 1.1.

See also setDataChanged().

void QOrganizerItemChangeSet::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 QOrganizerItemChangeSet::insertAddedItem ( const QOrganizerItemId & addedOrganizerItemId )

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

This function was introduced in Qt Mobility 1.1.

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

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

This function was introduced in Qt Mobility 1.1.

void QOrganizerItemChangeSet::insertChangedItem ( const QOrganizerItemId & changedOrganizerItemId )

Inserts the given organizer item id changedOrganizerItemId into the set of ids of organizer items which have been changed to the database.

This function was introduced in Qt Mobility 1.1.

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

Inserts each of the given organizer item ids changedOrganizerItemIds into the set of ids of organizer items which have been changed to the database.

This function was introduced in Qt Mobility 1.1.

void QOrganizerItemChangeSet::insertRemovedItem ( const QOrganizerItemId & removedOrganizerItemId )

Inserts the given organizer item id removedOrganizerItemId into the set of ids of organizer items which have been removed to the database.

This function was introduced in Qt Mobility 1.1.

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

Inserts each of the given organizer item ids removedOrganizerItemIds into the set of ids of organizer items which have been removed to the database.

This function was introduced in Qt Mobility 1.1.

QSet<QOrganizerItemId> QOrganizerItemChangeSet::removedItems () const

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

This function was introduced in Qt Mobility 1.1.

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.

This function was introduced in Qt Mobility 1.1.

See also dataChanged().

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

Assigns this change set to be equal to other

This function was introduced in Qt Mobility 1.1.