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  · 

QContactChangeSet Class

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

 #include <QContactChangeSet>

Public Functions

QContactChangeSet()
QContactChangeSet(const QContactChangeSet & other)
~QContactChangeSet()
QSet<QContactId> addedContacts() const
QSet<QContactId> addedRelationshipsContacts() const
QSet<QContactId> changedContacts() const
void clearAddedContacts()
void clearAddedRelationshipsContacts()
void clearAll()
void clearChangedContacts()
void clearRemovedContacts()
void clearRemovedRelationshipsContacts()
bool dataChanged()
void emitSignals(QContactManagerEngine * engine)
void insertAddedContact(QContactId addedContactId)
void insertAddedContacts(const QList<QContactId> & addedContactIds)
void insertAddedRelationshipsContact(QContactId affectedContactId)
void insertAddedRelationshipsContacts(const QList<QContactId> & affectedContactIds)
void insertChangedContact(QContactId changedContactId)
void insertChangedContacts(const QList<QContactId> & changedContactIds)
void insertRemovedContact(QContactId removedContactId)
void insertRemovedContacts(const QList<QContactId> & removedContactIds)
void insertRemovedRelationshipsContact(QContactId affectedContactId)
void insertRemovedRelationshipsContacts(const QList<QContactId> & affectedContactIds)
QPair<QContactId, QContactId> oldAndNewSelfContactId() const
QSet<QContactId> removedContacts() const
QSet<QContactId> removedRelationshipsContacts() const
void setDataChanged(bool dataChanged)
void setOldAndNewSelfContactId(const QPair<QContactId, QContactId> & oldAndNewContactId)
QContactChangeSet & operator=(const QContactChangeSet & other)

Detailed Description

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.

Member Function Documentation

QContactChangeSet::QContactChangeSet()

Constructs a new change set

QContactChangeSet::QContactChangeSet(const QContactChangeSet & other)

Constructs a copy of the other change set

QContactChangeSet::~QContactChangeSet()

Frees the memory used by this change set

QSet<QContactId> QContactChangeSet::addedContacts() const

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

QSet<QContactId> QContactChangeSet::addedRelationshipsContacts() const

Returns the set of ids of contacts which have been affected by the addition of relationships to the database.

QSet<QContactId> QContactChangeSet::changedContacts() const

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

void QContactChangeSet::clearAddedContacts()

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

void QContactChangeSet::clearAddedRelationshipsContacts()

Clears the set of ids of contacts which have been affected by the addition of a relationship to the database.

void QContactChangeSet::clearAll()

Clears all flags and sets of ids in this change set

void QContactChangeSet::clearChangedContacts()

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

void QContactChangeSet::clearRemovedContacts()

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

void QContactChangeSet::clearRemovedRelationshipsContacts()

Clears the set of ids of contacts which have been affected by the removal of a relationship to the database.

bool QContactChangeSet::dataChanged()

Returns the value of the data changed flag

See also setDataChanged().

void QContactChangeSet::emitSignals(QContactManagerEngine * engine)

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

void QContactChangeSet::insertAddedContact(QContactId addedContactId)

Inserts the given contact id addedContactId into the set of ids of contacts which have been added to the database.

void QContactChangeSet::insertAddedContacts(const QList<QContactId> & addedContactIds)

Inserts each of the given contact ids addedContactIds into the set of ids of contacts which have been added to the database.

void QContactChangeSet::insertAddedRelationshipsContact(QContactId affectedContactId)

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.

void QContactChangeSet::insertAddedRelationshipsContacts(const QList<QContactId> & affectedContactIds)

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.

void QContactChangeSet::insertChangedContact(QContactId changedContactId)

Inserts the given contact id changedContactId into the set of ids of contacts which have been changed to the database.

void QContactChangeSet::insertChangedContacts(const QList<QContactId> & changedContactIds)

Inserts each of the given contact ids changedContactIds into the set of ids of contacts which have been changed to the database.

void QContactChangeSet::insertRemovedContact(QContactId removedContactId)

Inserts the given contact id removedContactId into the set of ids of contacts which have been removed to the database.

void QContactChangeSet::insertRemovedContacts(const QList<QContactId> & removedContactIds)

Inserts each of the given contact ids removedContactIds into the set of ids of contacts which have been removed to the database.

void QContactChangeSet::insertRemovedRelationshipsContact(QContactId affectedContactId)

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.

void QContactChangeSet::insertRemovedRelationshipsContacts(const QList<QContactId> & affectedContactIds)

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.

QPair<QContactId, QContactId> QContactChangeSet::oldAndNewSelfContactId() const

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.

See also setOldAndNewSelfContactId().

QSet<QContactId> QContactChangeSet::removedContacts() const

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

QSet<QContactId> QContactChangeSet::removedRelationshipsContacts() const

Returns the set of ids of contacts which have been affected by the removal of relationships from the database.

void QContactChangeSet::setDataChanged(bool dataChanged)

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.

See also dataChanged().

void QContactChangeSet::setOldAndNewSelfContactId(const QPair<QContactId, QContactId> & oldAndNewContactId)

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.

See also oldAndNewSelfContactId().

QContactChangeSet & QContactChangeSet::operator=(const QContactChangeSet & 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