creator/engine/inc/creator_contactsetcache.h
changeset 35 98924d2efce9
parent 19 4b22a598b890
equal deleted inserted replaced
34:e0ec97ec3cc4 35:98924d2efce9
    20 
    20 
    21 #ifndef CREATORCONTACTSETCACHE_H_
    21 #ifndef CREATORCONTACTSETCACHE_H_
    22 #define CREATORCONTACTSETCACHE_H_
    22 #define CREATORCONTACTSETCACHE_H_
    23 
    23 
    24 #include <e32base.h>
    24 #include <e32base.h>
    25 #include <qtcontacts.h>
       
    26 
    25 
    27 // Forward declarations
    26 // Forward declarations
    28 class CContactLinkCacheImp;
    27 class CContactLinkCacheImp;
    29 
    28 
    30 QTM_USE_NAMESPACE
       
    31 class CCreatorContactSet : public CBase
    29 class CCreatorContactSet : public CBase
    32 {
    30 {
    33 public:
    31 public:
    34     static CCreatorContactSet* NewL(TInt aLinkId, TInt aNumOfExistingContacts);
    32     static CCreatorContactSet* NewL(TInt aLinkId, TInt aNumOfExistingContacts);
    35     virtual ~CCreatorContactSet();
    33     virtual ~CCreatorContactSet();
    36     void AppendL(QContactLocalId);
    34     void AppendL(TUint32);
    37     TInt NumberOfExistingContacts() const;
    35     TInt NumberOfExistingContacts() const;
    38     RArray<QContactLocalId> ContactLinks();
    36     RArray<TUint32> ContactLinks();
    39     const RArray<QContactLocalId> ContactLinks() const;
    37     const RArray<TUint32> ContactLinks() const;
    40 
    38 
    41     TInt LinkId() const;
    39     TInt LinkId() const;
    42 
    40 
    43 private:
    41 private:
    44     CCreatorContactSet(TInt aLinkId, TInt aNumOfExistingContacts);    
    42     CCreatorContactSet(TInt aLinkId, TInt aNumOfExistingContacts);    
    45     //void ConstructL();
    43     //void ConstructL();
    46     TInt iLinkId;
    44     TInt iLinkId;
    47     TInt iNumOfExistingContacts;
    45     TInt iNumOfExistingContacts;
    48     RArray<QContactLocalId> iContactLinks;
    46     RArray<TUint32> iContactLinks;
    49 };
    47 };
    50 
    48 
    51 class MContactLinkCache
    49 class MContactLinkCache
    52 {
    50 {
    53 public:
    51 public:
    54     virtual void AppendL(CCreatorContactSet* aContactSet) = 0;
    52     virtual void AppendL(CCreatorContactSet* aContactSet) = 0;
    55     virtual RArray<QContactLocalId> ContactLinks(TInt aLinkId) = 0;
    53     virtual RArray<TUint32> ContactLinks(TInt aLinkId) = 0;
    56     virtual const RArray<QContactLocalId> ContactLinks(TInt aLinkId) const = 0;    
    54     virtual const RArray<TUint32> ContactLinks(TInt aLinkId) const = 0;    
    57     virtual RPointerArray<CCreatorContactSet>& ContactSets() = 0;
    55     virtual RPointerArray<CCreatorContactSet>& ContactSets() = 0;
    58     virtual const RPointerArray<CCreatorContactSet>& ContactSets() const = 0;
    56     virtual const RPointerArray<CCreatorContactSet>& ContactSets() const = 0;
    59     virtual const CCreatorContactSet& ContactSet(TInt aLinkId) const = 0;
    57     virtual const CCreatorContactSet& ContactSet(TInt aLinkId) const = 0;
    60     virtual CCreatorContactSet& ContactSet(TInt aLinkId) = 0;
    58     virtual CCreatorContactSet& ContactSet(TInt aLinkId) = 0;
    61 };
    59 };