phonebookengines/VirtualPhonebook/VPbkCntModel/inc/CContactStore.h
branchRCL_3
changeset 23 5586b4d2ec3e
parent 0 e686773b3f54
child 64 c1e8ba0c2b16
equal deleted inserted replaced
21:b3431bff8c19 23:5586b4d2ec3e
    51 class CFieldFactory;
    51 class CFieldFactory;
    52 class CAsyncContactOperation;
    52 class CAsyncContactOperation;
    53 class CFieldsInfo;
    53 class CFieldsInfo;
    54 class CContactStoreInfo;
    54 class CContactStoreInfo;
    55 class CNamedRemoteViewHandle;
    55 class CNamedRemoteViewHandle;
       
    56 class CContactStoreOpenOperation;
    56 
    57 
    57 #ifdef _DEBUG
    58 #ifdef _DEBUG
    58 enum TContactStorePanic
    59 enum TContactStorePanic
    59 	{
    60 	{
    60 	EPreCond_NativeDatabase,
    61 	EPreCond_NativeDatabase,
    61 	EPreCond_ContactDestroyed,
    62 	EPreCond_ContactDestroyed,
    62 	EPreCond_CreateNewContactGroupLC,
    63 	EPreCond_CreateNewContactGroupLC,
    63 	EPreCond_ContactGroupsLC,
    64 	EPreCond_ContactGroupsLC,
    64 	EPreCond_OwnContactLinkL
    65 	EPreCond_OwnContactLinkL,
       
    66 	EPreCond_OpenOperationState
    65 	};
    67 	};
    66 
    68 
    67 void ContactStorePanic( TContactStorePanic aPanic );
    69 void ContactStorePanic( TContactStorePanic aPanic );
    68 #endif // _DEBUG
    70 #endif // _DEBUG
    69 
    71 
   245          */
   247          */
   246         void SetAsOwnL(
   248         void SetAsOwnL(
   247                 const CContact& aContactItem,
   249                 const CContact& aContactItem,
   248                 MVPbkContactObserver& aObserver );
   250                 MVPbkContactObserver& aObserver );
   249 
   251 
       
   252         /**
       
   253          * Asynchronous store opening is complete. 
       
   254          * 
       
   255          * @see CContactStoreOpenOperation.
       
   256          * @param aDB Opened native contacts store database.
       
   257          */
       
   258         void StoreOpenedL( CContactDatabase* aDB );
       
   259         
       
   260         /**
       
   261          * Asynchronous store opening has failed.
       
   262          * 
       
   263          * @see CContactStoreOpenOperation.
       
   264          * @param aError Generic synbian error code.
       
   265          */
       
   266         void StoreOpenFailed( TInt aError );
       
   267         
       
   268         /**
       
   269          * Request free disk space.
       
   270          * NOTE: Request is put on cleanupstack only if return value is ETrue.
       
   271          * 
       
   272          * @param aSpace Amount of free space requested.
       
   273          * @return ETrue if request was successful. 
       
   274          */
       
   275         TBool RequestFreeDiskSpaceLC( TInt aSpace );
       
   276         
   250     public: // From MVPbkContactStore
   277     public: // From MVPbkContactStore
   251         const MVPbkContactStoreProperties& StoreProperties() const;
   278         const MVPbkContactStoreProperties& StoreProperties() const;
   252         void OpenL(
   279         void OpenL(
   253                 MVPbkContactStoreObserver& aObserver );
   280                 MVPbkContactStoreObserver& aObserver );
   254         void ReplaceL(
   281         void ReplaceL(
   358         CContactItem* iSysTemplate;
   385         CContactItem* iSysTemplate;
   359         /// Own: Disk space checker
   386         /// Own: Disk space checker
   360         VPbkEngUtils::CVPbkDiskSpaceCheck* iDiskSpaceCheck;
   387         VPbkEngUtils::CVPbkDiskSpaceCheck* iDiskSpaceCheck;
   361         /// Own: named remote view container
   388         /// Own: named remote view container
   362         RPointerArray<CNamedRemoteViewHandle> iNamedViewContainer;
   389         RPointerArray<CNamedRemoteViewHandle> iNamedViewContainer;
       
   390         /// Own: Contact store open operation
       
   391         CContactStoreOpenOperation* iOpenOperation;
       
   392         /// Has golden template been updated
       
   393         TBool iGoldenTemplateUpdated;
   363     };
   394     };
   364 
   395 
   365 
   396 
   366 // INLINE FUNCTIONS
   397 // INLINE FUNCTIONS
   367 
   398