bearermanagement/mpm/inc/mpmdatausagewatcher.h
changeset 20 9c97ad6591ae
parent 18 fcbbe021d614
child 44 a0c4ceac30d0
--- a/bearermanagement/mpm/inc/mpmdatausagewatcher.h	Fri Apr 16 15:21:37 2010 +0300
+++ b/bearermanagement/mpm/inc/mpmdatausagewatcher.h	Mon May 03 12:53:07 2010 +0300
@@ -24,6 +24,9 @@
 class CRepository;
 class CMPMServer;
 
+// Stop after this many consecutive central repository errors.
+const TInt KMpmDataUsageWatcherCenRepErrorThreshold = 80;
+
 /**
  *  Class for accessing central repository.
  *  Follows KCurrentCellularDataUsage key in central repository.
@@ -55,11 +58,6 @@
     void RunL();
 
     /**
-    * Active object's RunError.
-    */
-    TInt RunError( TInt aError );
-
-    /**
     * Active object's DoCancel.
     */
     void DoCancel();
@@ -75,6 +73,17 @@
     * Symbian 2nd phase constructor.
     */
     void ConstructL();
+    
+    /**
+    * Request for notifications.
+    */
+    TInt RequestNotifications();
+    
+    /**
+    * Get current cellular data usage value.
+    */
+    TInt GetCurrentDataUsageValue();
+
 
 private: // data
 
@@ -95,6 +104,11 @@
      */
     CMPMServer* iServer;
 
+    /**
+     * Error counter.
+     */
+    TUint iErrorCounter;
+
     };
 
 #endif // MPMDATAUSAGEWATCHER_H