qtmobility/plugins/contacts/symbian/inc/cntsymbiandatabase.h
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 5 453da2cfceef
--- a/qtmobility/plugins/contacts/symbian/inc/cntsymbiandatabase.h	Fri Apr 16 15:51:22 2010 +0300
+++ b/qtmobility/plugins/contacts/symbian/inc/cntsymbiandatabase.h	Mon May 03 13:18:40 2010 +0300
@@ -70,7 +70,7 @@
 Q_OBJECT
 
 public:
-    CntSymbianDatabase(QContactManagerEngine *engine, QContactManager::Error& error);
+    CntSymbianDatabase(QContactManagerEngine *engine, QContactManager::Error* error);
     ~CntSymbianDatabase();
 
 public:
@@ -83,6 +83,12 @@
     void HandleDatabaseEventL(TContactDbObserverEvent aEvent);
 
 private:
+    void initializeL();
+    void updateGroupMembershipsL();
+    void updateGroupMembershipsL(QContactLocalId groupId, QSet<QContactLocalId> &added, QSet<QContactLocalId> &removed);
+    QSet<QContactLocalId> groupMembersL(QContactLocalId groupId);
+
+private:
     CContactDatabase* m_contactDatabase;
 #ifndef SYMBIAN_BACKEND_USE_SQLITE
     CContactChangeNotifier* m_contactChangeNotifier;
@@ -90,6 +96,7 @@
     QContactManagerEngine *m_engine;
     QList<QContactLocalId> m_contactsEmitted;
     QContactLocalId m_currentOwnCardId;
+    QMap<QContactLocalId, QSet<QContactLocalId> > m_groupContents;
 #ifdef CNTSYMBIANDATABASE_UNIT_TEST
     friend class TestCntSymbianDatabase;
 #endif  //CNTSYMBIANDATABASE_UNIT_TEST