phonebookengines/VirtualPhonebook/VPbkCntModel/inc/CContactStore.h
branchRCL_3
changeset 23 5586b4d2ec3e
parent 0 e686773b3f54
child 64 c1e8ba0c2b16
--- a/phonebookengines/VirtualPhonebook/VPbkCntModel/inc/CContactStore.h	Wed Mar 31 21:13:53 2010 +0300
+++ b/phonebookengines/VirtualPhonebook/VPbkCntModel/inc/CContactStore.h	Wed Apr 14 15:45:35 2010 +0300
@@ -53,6 +53,7 @@
 class CFieldsInfo;
 class CContactStoreInfo;
 class CNamedRemoteViewHandle;
+class CContactStoreOpenOperation;
 
 #ifdef _DEBUG
 enum TContactStorePanic
@@ -61,7 +62,8 @@
 	EPreCond_ContactDestroyed,
 	EPreCond_CreateNewContactGroupLC,
 	EPreCond_ContactGroupsLC,
-	EPreCond_OwnContactLinkL
+	EPreCond_OwnContactLinkL,
+	EPreCond_OpenOperationState
 	};
 
 void ContactStorePanic( TContactStorePanic aPanic );
@@ -247,6 +249,31 @@
                 const CContact& aContactItem,
                 MVPbkContactObserver& aObserver );
 
+        /**
+         * Asynchronous store opening is complete. 
+         * 
+         * @see CContactStoreOpenOperation.
+         * @param aDB Opened native contacts store database.
+         */
+        void StoreOpenedL( CContactDatabase* aDB );
+        
+        /**
+         * Asynchronous store opening has failed.
+         * 
+         * @see CContactStoreOpenOperation.
+         * @param aError Generic synbian error code.
+         */
+        void StoreOpenFailed( TInt aError );
+        
+        /**
+         * Request free disk space.
+         * NOTE: Request is put on cleanupstack only if return value is ETrue.
+         * 
+         * @param aSpace Amount of free space requested.
+         * @return ETrue if request was successful. 
+         */
+        TBool RequestFreeDiskSpaceLC( TInt aSpace );
+        
     public: // From MVPbkContactStore
         const MVPbkContactStoreProperties& StoreProperties() const;
         void OpenL(
@@ -360,6 +387,10 @@
         VPbkEngUtils::CVPbkDiskSpaceCheck* iDiskSpaceCheck;
         /// Own: named remote view container
         RPointerArray<CNamedRemoteViewHandle> iNamedViewContainer;
+        /// Own: Contact store open operation
+        CContactStoreOpenOperation* iOpenOperation;
+        /// Has golden template been updated
+        TBool iGoldenTemplateUpdated;
     };