predictivesearch/adapters/contacts/inc/cpcscontactstore.h
branchRCL_3
changeset 18 d4f567ce2e7c
parent 12 4ae315f230bc
--- a/predictivesearch/adapters/contacts/inc/cpcscontactstore.h	Thu Jul 15 18:22:55 2010 +0300
+++ b/predictivesearch/adapters/contacts/inc/cpcscontactstore.h	Thu Aug 19 09:41:07 2010 +0300
@@ -50,6 +50,7 @@
 enum
 {
     ECreateView,
+    EFetchAllLinks,
     EFetchContactBlock,
     EComplete
 };
@@ -216,6 +217,11 @@
         void ConstructL(CVPbkContactManager& aContactManager, MDataStoreObserver& aObserver,const TDesC& aUri);
 
         /**
+         * Check next state of state machine for contacts retrieval and perform transition 
+         */
+        void CheckNextState();
+
+        /**
          * Handles the operations for a single contact after it is fetched
          * @param aContact - The contact from database
          */
@@ -239,7 +245,8 @@
         /**
          * Fetches the  data from contact links from the view
          */
-        void FetchlinksL();
+        void FetchAllInitialContactLinksL();
+        void FetchContactsBlockL();
 
         /**
          * Reads the fields to cache from the central repository
@@ -260,7 +267,7 @@
         /**
          * Issues request to active object to call RunL method
          */
-        void IssueRequest();
+        void IssueRequest( TInt aTimeDelay );
 
         /**
          * Creates a sort order depending on the fields specified in the cenrep
@@ -275,12 +282,15 @@
 
     private:
 
+        RPointerArray<MVPbkContactLink> iInitialContactLinks;
 
         /**
          * Flags for store operations
          */
-        TInt  iAllContactLinksCount;
-        TInt  iFetchedContactCount;
+        TInt iInitialContactCount; // Initial contact count in a view
+        TInt iFetchBlockLowerNumber;
+        TInt iFetchBlockUpperNumber;
+        TInt iVPbkCallbackCount;
         TBool iContactViewReady;
         TCachingStatus iOngoingCacheUpdate;