The QContactChangeSet class provides a simple API to simplify the emission of state-change signals from QContactManagerEngine implementations. More...
#include <QContactChangeSet>
This class was introduced in Qt Mobility 1.0.
QContactChangeSet () | |
QContactChangeSet ( const QContactChangeSet & other ) | |
~QContactChangeSet () | |
QSet<QContactLocalId> | addedContacts () const |
QSet<QContactLocalId> | addedRelationshipsContacts () const |
QSet<QContactLocalId> | changedContacts () const |
void | clearAddedContacts () |
void | clearAddedRelationshipsContacts () |
void | clearAll () |
void | clearChangedContacts () |
void | clearRemovedContacts () |
void | clearRemovedRelationshipsContacts () |
bool | dataChanged () |
void | emitSignals ( QContactManagerEngine * engine ) |
void | insertAddedContact ( QContactLocalId addedContactId ) |
void | insertAddedContacts ( const QList<QContactLocalId> & addedContactIds ) |
void | insertAddedRelationshipsContact ( QContactLocalId affectedContactId ) |
void | insertAddedRelationshipsContacts ( const QList<QContactLocalId> & affectedContactIds ) |
void | insertChangedContact ( QContactLocalId changedContactId ) |
void | insertChangedContacts ( const QList<QContactLocalId> & changedContactIds ) |
void | insertRemovedContact ( QContactLocalId removedContactId ) |
void | insertRemovedContacts ( const QList<QContactLocalId> & removedContactIds ) |
void | insertRemovedRelationshipsContact ( QContactLocalId affectedContactId ) |
void | insertRemovedRelationshipsContacts ( const QList<QContactLocalId> & affectedContactIds ) |
QPair<QContactLocalId, QContactLocalId> | oldAndNewSelfContactId () const |
QSet<QContactLocalId> | removedContacts () const |
QSet<QContactLocalId> | removedRelationshipsContacts () const |
void | setDataChanged ( bool dataChanged ) |
void | setOldAndNewSelfContactId ( const QPair<QContactLocalId, QContactLocalId> & oldAndNewContactId ) |
QContactChangeSet & | operator= ( const QContactChangeSet & other ) |
The QContactChangeSet class provides a simple API to simplify the emission of state-change signals from QContactManagerEngine implementations.
This class can be utilised by backend implementations to ensure correct emission of the QContactManagerEngine::dataChanged(), QContactManagerEngine::contactsAdded(), QContactManagerEngine::contactsChanged() and QContactManagerEngine::contactsRemoved().
See also QContactManagerEngine.
Constructs a new change set
Constructs a copy of the other change set
This function was introduced in Qt Mobility 1.0.
Frees the memory used by this change set
Returns the set of ids of contacts which have been added to the database.
This function was introduced in Qt Mobility 1.0.
Returns the set of ids of contacts which have been affected by the addition of relationships to the database.
This function was introduced in Qt Mobility 1.0.
Returns the set of ids of contacts which have been changed in the database.
This function was introduced in Qt Mobility 1.0.
Clears the set of ids of contacts which have been added to the database
This function was introduced in Qt Mobility 1.0.
Clears the set of ids of contacts which have been affected by the addition of a relationship to the database.
This function was introduced in Qt Mobility 1.0.
Clears all flags and sets of ids in this change set
This function was introduced in Qt Mobility 1.0.
Clears the set of ids of contacts which have been changed to the database
This function was introduced in Qt Mobility 1.0.
Clears the set of ids of contacts which have been removed to the database
This function was introduced in Qt Mobility 1.0.
Clears the set of ids of contacts which have been affected by the removal of a relationship to the database.
This function was introduced in Qt Mobility 1.0.
Returns the value of the data changed flag
This function was introduced in Qt Mobility 1.0.
See also setDataChanged().
Emits the appropriate signals from the given engine given the state of the change set
This function was introduced in Qt Mobility 1.0.
Inserts the given contact id addedContactId into the set of ids of contacts which have been added to the database.
This function was introduced in Qt Mobility 1.0.
Inserts each of the given contact ids addedContactIds into the set of ids of contacts which have been added to the database.
This function was introduced in Qt Mobility 1.0.
Inserts the given contact id affectedContactId into the set of ids of contacts which have been affected by the addition of a relationship to the database.
This function was introduced in Qt Mobility 1.0.
Inserts each of the given contact ids affectedContactIds into the set of ids of contacts which have been affected by the addition of a relationship to the database.
This function was introduced in Qt Mobility 1.0.
Inserts the given contact id changedContactId into the set of ids of contacts which have been changed to the database.
This function was introduced in Qt Mobility 1.0.
Inserts each of the given contact ids changedContactIds into the set of ids of contacts which have been changed to the database.
This function was introduced in Qt Mobility 1.0.
Inserts the given contact id removedContactId into the set of ids of contacts which have been removed to the database.
This function was introduced in Qt Mobility 1.0.
Inserts each of the given contact ids removedContactIds into the set of ids of contacts which have been removed to the database.
This function was introduced in Qt Mobility 1.0.
Inserts the given contact id affectedContactId into the set of ids of contacts which have been affected by the removal of a relationship to the database.
This function was introduced in Qt Mobility 1.0.
Inserts each of the given contact ids affectedContactIds into the set of ids of contacts which have been affected by the removal of a relationship to the database.
This function was introduced in Qt Mobility 1.0.
Returns the pair of ids which represents the old and new self contact ids. The first id in the pair is the old self contact id, while the second id in the pair is the new self contact id. If the new id is different to the old id at the point in time when emitSignals() is called, the QContactManagerEngine::selfContactIdChanged() signal will be emitted.
This function was introduced in Qt Mobility 1.0.
See also setOldAndNewSelfContactId().
Returns the set of ids of contacts which have been removed from the database.
This function was introduced in Qt Mobility 1.0.
Returns the set of ids of contacts which have been affected by the removal of relationships from the database.
This function was introduced in Qt Mobility 1.0.
Sets the data changed flag to dataChanged. If this is set to true prior to calling emitSignals(), only the QContactManagerEngine::dataChanged() signal will be emitted; otherwise, the appropriate finer-grained signals will be emitted.
This function was introduced in Qt Mobility 1.0.
See also dataChanged().
Sets the pair of ids which represent the old and new self contact ids to the given pair of ids oldAndNewContactId. The first id in the pair is the old self contact id, while the second id in the pair is the new self contact id. If the new id is different to the old id at the point in time when emitSignals() is called, the QContactManagerEngine::selfContactIdChanged signal will be emitted.
This function was introduced in Qt Mobility 1.0.
See also oldAndNewSelfContactId().
Assigns this change set to be equal to other
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.