equal
deleted
inserted
replaced
21 // INCLUDES |
21 // INCLUDES |
22 #include <e32base.h> |
22 #include <e32base.h> |
23 |
23 |
24 class CRepository; |
24 class CRepository; |
25 class CMPMServer; |
25 class CMPMServer; |
|
26 |
|
27 // Stop after this many consecutive central repository errors. |
|
28 const TInt KMpmDataUsageWatcherCenRepErrorThreshold = 80; |
26 |
29 |
27 /** |
30 /** |
28 * Class for accessing central repository. |
31 * Class for accessing central repository. |
29 * Follows KCurrentCellularDataUsage key in central repository. |
32 * Follows KCurrentCellularDataUsage key in central repository. |
30 * @since 5.2 |
33 * @since 5.2 |
53 * Active object's RunL. |
56 * Active object's RunL. |
54 */ |
57 */ |
55 void RunL(); |
58 void RunL(); |
56 |
59 |
57 /** |
60 /** |
58 * Active object's RunError. |
|
59 */ |
|
60 TInt RunError( TInt aError ); |
|
61 |
|
62 /** |
|
63 * Active object's DoCancel. |
61 * Active object's DoCancel. |
64 */ |
62 */ |
65 void DoCancel(); |
63 void DoCancel(); |
66 |
64 |
67 private: |
65 private: |
73 |
71 |
74 /** |
72 /** |
75 * Symbian 2nd phase constructor. |
73 * Symbian 2nd phase constructor. |
76 */ |
74 */ |
77 void ConstructL(); |
75 void ConstructL(); |
|
76 |
|
77 /** |
|
78 * Request for notifications. |
|
79 */ |
|
80 TInt RequestNotifications(); |
|
81 |
|
82 /** |
|
83 * Get current cellular data usage value. |
|
84 */ |
|
85 TInt GetCurrentDataUsageValue(); |
|
86 |
78 |
87 |
79 private: // data |
88 private: // data |
80 |
89 |
81 /** |
90 /** |
82 * Central repository handle. |
91 * Central repository handle. |
93 * Pointer to the MPM Server object. |
102 * Pointer to the MPM Server object. |
94 * Not own. |
103 * Not own. |
95 */ |
104 */ |
96 CMPMServer* iServer; |
105 CMPMServer* iServer; |
97 |
106 |
|
107 /** |
|
108 * Error counter. |
|
109 */ |
|
110 TUint iErrorCounter; |
|
111 |
98 }; |
112 }; |
99 |
113 |
100 #endif // MPMDATAUSAGEWATCHER_H |
114 #endif // MPMDATAUSAGEWATCHER_H |