--- a/bearermanagement/mpm/inc/mpmdatausagewatcher.h Wed Mar 31 22:15:10 2010 +0300
+++ b/bearermanagement/mpm/inc/mpmdatausagewatcher.h Wed Apr 14 16:22:04 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