bearermanagement/mpm/inc/mpmcsidwatcher.h
branchRCL_3
changeset 17 c14618f9de99
parent 8 2e6c4614c58e
child 71 9f263f780e41
--- a/bearermanagement/mpm/inc/mpmcsidwatcher.h	Wed Mar 31 22:15:10 2010 +0300
+++ b/bearermanagement/mpm/inc/mpmcsidwatcher.h	Wed Apr 14 16:22:04 2010 +0300
@@ -23,6 +23,9 @@
 
 class CRepository;
 
+// Stop after this many consecutive central repository errors.
+const TInt KMpmCsIdWatcherCenRepErrorThreshold = 80;
+
 /**
  *  Class for accessing central repository
  *  Follows KMpmConnectScreenId key in central repository.
@@ -57,8 +60,6 @@
 
     void RunL();
 
-    TInt RunError( TInt aError );
-
     void DoCancel();
 
 private:
@@ -66,6 +67,16 @@
     CMpmCsIdWatcher();
 
     void ConstructL();
+    
+    /**
+     * Request for notifications.
+     */
+    TInt RequestNotifications();
+        
+    /**
+     * Get Connect screen ID from repository.
+     */
+    TInt GetConnectScreenId();
 
 private: // data
 
@@ -84,6 +95,11 @@
      * Set when user connection is enabled
      */
     TBool iUserConnectionSupported;
+
+    /**
+     * Error counter.
+     */
+    TUint iErrorCounter;
     };
 
 #endif // MPMCSIDWATCHER_H