creator/engine/inc/creator_contactsetcache.h
changeset 27 271e901a9423
parent 17 4f2773374eff
child 31 e7a04a6385be
--- a/creator/engine/inc/creator_contactsetcache.h	Fri May 14 15:15:12 2010 +0300
+++ b/creator/engine/inc/creator_contactsetcache.h	Fri May 14 16:10:39 2010 +0300
@@ -22,15 +22,22 @@
 #define CREATORCONTACTSETCACHE_H_
 
 #include <e32base.h>
+#include <qtcontacts.h>
 
 // Forward declarations
 class CContactLinkCacheImp;
 
+QTM_USE_NAMESPACE
 class CCreatorContactSet : public CBase
 {
 public:
     static CCreatorContactSet* NewL(TInt aLinkId, TInt aNumOfExistingContacts);
     virtual ~CCreatorContactSet();
+    void AppendL(QContactLocalId);
+    TInt NumberOfExistingContacts() const;
+    RArray<QContactLocalId> ContactLinks();
+    const RArray<QContactLocalId> ContactLinks() const;
+
     TInt LinkId() const;
 
 private:
@@ -38,12 +45,15 @@
     //void ConstructL();
     TInt iLinkId;
     TInt iNumOfExistingContacts;
+    RArray<QContactLocalId> iContactLinks;
 };
 
 class MContactLinkCache
 {
 public:
     virtual void AppendL(CCreatorContactSet* aContactSet) = 0;
+    virtual RArray<QContactLocalId> ContactLinks(TInt aLinkId) = 0;
+    virtual const RArray<QContactLocalId> ContactLinks(TInt aLinkId) const = 0;    
     virtual RPointerArray<CCreatorContactSet>& ContactSets() = 0;
     virtual const RPointerArray<CCreatorContactSet>& ContactSets() const = 0;
     virtual const CCreatorContactSet& ContactSet(TInt aLinkId) const = 0;