qtmobility/src/contacts/qcontactchangeset.h
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 11 06b8e2af4411
--- a/qtmobility/src/contacts/qcontactchangeset.h	Fri Apr 16 15:51:22 2010 +0300
+++ b/qtmobility/src/contacts/qcontactchangeset.h	Mon May 03 13:18:40 2010 +0300
@@ -44,6 +44,7 @@
 #define QCONTACTCHANGESET_H
 
 #include "qtcontactsglobal.h"
+#include "qcontactid.h"
 
 #include <QSet>
 #include <QPair>
@@ -65,14 +66,35 @@
     void setDataChanged(bool dataChanged);
     bool dataChanged();
 
-    QSet<QContactLocalId>& addedContacts();
-    QSet<QContactLocalId>& changedContacts();
-    QSet<QContactLocalId>& removedContacts();
-    QSet<QContactLocalId>& addedRelationshipsContacts();
-    QSet<QContactLocalId>& removedRelationshipsContacts();
-    QPair<QContactLocalId, QContactLocalId>& oldAndNewSelfContactId();
+    QSet<QContactLocalId> addedContacts() const;
+    void insertAddedContact(QContactLocalId addedContactId);
+    void insertAddedContacts(const QList<QContactLocalId>& addedContactIds);
+    void clearAddedContacts();
+
+    QSet<QContactLocalId> changedContacts() const;
+    void insertChangedContact(QContactLocalId addedContactId);
+    void insertChangedContacts(const QList<QContactLocalId>& addedContactIds);
+    void clearChangedContacts();
+
+    QSet<QContactLocalId> removedContacts() const;
+    void insertRemovedContact(QContactLocalId addedContactId);
+    void insertRemovedContacts(const QList<QContactLocalId>& addedContactIds);
+    void clearRemovedContacts();
 
-    void clear();
+    QSet<QContactLocalId> addedRelationshipsContacts() const;
+    void insertAddedRelationshipsContact(QContactLocalId affectedContactId);
+    void insertAddedRelationshipsContacts(const QList<QContactLocalId>& affectedContactIds);
+    void clearAddedRelationshipsContacts();
+
+    QSet<QContactLocalId> removedRelationshipsContacts() const;
+    void insertRemovedRelationshipsContact(QContactLocalId affectedContactId);
+    void insertRemovedRelationshipsContacts(const QList<QContactLocalId>& affectedContactIds);
+    void clearRemovedRelationshipsContacts();
+
+    void setOldAndNewSelfContactId(const QPair<QContactLocalId, QContactLocalId>& oldAndNewContactId);
+    QPair<QContactLocalId, QContactLocalId> oldAndNewSelfContactId() const;
+
+    void clearAll();
 
     void emitSignals(QContactManagerEngine *engine);