creator/inc/creator_contactsetcache.h
changeset 11 4df3a095718c
parent 0 d6fe6244b863
equal deleted inserted replaced
10:e6e3e87d58b4 11:4df3a095718c
    19 
    19 
    20 #ifndef CREATORCONTACTSETCACHE_H_
    20 #ifndef CREATORCONTACTSETCACHE_H_
    21 #define CREATORCONTACTSETCACHE_H_
    21 #define CREATORCONTACTSETCACHE_H_
    22 
    22 
    23 #include <e32base.h>
    23 #include <e32base.h>
    24 #if(!defined __SERIES60_30__ && !defined __SERIES60_31__)
    24 #if(!defined __SERIES60_30__ && !defined __SERIES60_31__ && SYMBIAN_VERSION_SUPPORT < SYMBIAN_4)
    25 #include <MVPbkContactLink.h>
    25 #include <MVPbkContactLink.h>
    26 #endif
    26 #endif
    27 
    27 
    28 // Forward declarations
    28 // Forward declarations
    29 class CContactLinkCacheImp;
    29 class CContactLinkCacheImp;
    31 class CCreatorContactSet : public CBase
    31 class CCreatorContactSet : public CBase
    32 {
    32 {
    33 public:
    33 public:
    34     static CCreatorContactSet* NewL(TInt aLinkId, TInt aNumOfExistingContacts);
    34     static CCreatorContactSet* NewL(TInt aLinkId, TInt aNumOfExistingContacts);
    35     virtual ~CCreatorContactSet();
    35     virtual ~CCreatorContactSet();
    36 #if(!defined __SERIES60_30__ && !defined __SERIES60_31__)    
    36 #if(!defined __SERIES60_30__ && !defined __SERIES60_31__ && SYMBIAN_VERSION_SUPPORT < SYMBIAN_4)    
    37     void AppendL(MVPbkContactLink*);
    37     void AppendL(MVPbkContactLink*);
    38     TInt NumberOfExistingContacts() const;
    38     TInt NumberOfExistingContacts() const;
    39     RPointerArray<MVPbkContactLink>& ContactLinks();
    39     RPointerArray<MVPbkContactLink>& ContactLinks();
    40     const RPointerArray<MVPbkContactLink>& ContactLinks() const;
    40     const RPointerArray<MVPbkContactLink>& ContactLinks() const;
    41 #endif
    41 #endif
    44 private:
    44 private:
    45     CCreatorContactSet(TInt aLinkId, TInt aNumOfExistingContacts);    
    45     CCreatorContactSet(TInt aLinkId, TInt aNumOfExistingContacts);    
    46     //void ConstructL();
    46     //void ConstructL();
    47     TInt iLinkId;
    47     TInt iLinkId;
    48     TInt iNumOfExistingContacts;
    48     TInt iNumOfExistingContacts;
    49 #if(!defined __SERIES60_30__ && !defined __SERIES60_31__)    
    49 #if(!defined __SERIES60_30__ && !defined __SERIES60_31__ && SYMBIAN_VERSION_SUPPORT < SYMBIAN_4)    
    50     RPointerArray<MVPbkContactLink> iContactLinks;
    50     RPointerArray<MVPbkContactLink> iContactLinks;
    51 #endif
    51 #endif
    52 };
    52 };
    53 
    53 
    54 class MContactLinkCache
    54 class MContactLinkCache
    55 {
    55 {
    56 public:
    56 public:
    57     virtual void AppendL(CCreatorContactSet* aContactSet) = 0;
    57     virtual void AppendL(CCreatorContactSet* aContactSet) = 0;
    58 #if(!defined __SERIES60_30__ && !defined __SERIES60_31__)    
    58 #if(!defined __SERIES60_30__ && !defined __SERIES60_31__ && SYMBIAN_VERSION_SUPPORT < SYMBIAN_4)    
    59     virtual RPointerArray<MVPbkContactLink>& ContactLinks(TInt aLinkId) = 0;
    59     virtual RPointerArray<MVPbkContactLink>& ContactLinks(TInt aLinkId) = 0;
    60     virtual const RPointerArray<MVPbkContactLink>& ContactLinks(TInt aLinkId) const = 0;    
    60     virtual const RPointerArray<MVPbkContactLink>& ContactLinks(TInt aLinkId) const = 0;    
    61 #endif    
    61 #endif    
    62     virtual RPointerArray<CCreatorContactSet>& ContactSets() = 0;
    62     virtual RPointerArray<CCreatorContactSet>& ContactSets() = 0;
    63     virtual const RPointerArray<CCreatorContactSet>& ContactSets() const = 0;
    63     virtual const RPointerArray<CCreatorContactSet>& ContactSets() const = 0;