equal
deleted
inserted
replaced
20 |
20 |
21 // INCLUDES |
21 // INCLUDES |
22 #include <e32base.h> |
22 #include <e32base.h> |
23 |
23 |
24 class CRepository; |
24 class CRepository; |
|
25 |
|
26 // Stop after this many consecutive central repository errors. |
|
27 const TInt KMpmCsIdWatcherCenRepErrorThreshold = 80; |
25 |
28 |
26 /** |
29 /** |
27 * Class for accessing central repository |
30 * Class for accessing central repository |
28 * Follows KMpmConnectScreenId key in central repository. |
31 * Follows KMpmConnectScreenId key in central repository. |
29 * @since 5.1 |
32 * @since 5.1 |
55 |
58 |
56 // from base class CActive |
59 // from base class CActive |
57 |
60 |
58 void RunL(); |
61 void RunL(); |
59 |
62 |
60 TInt RunError( TInt aError ); |
|
61 |
|
62 void DoCancel(); |
63 void DoCancel(); |
63 |
64 |
64 private: |
65 private: |
65 |
66 |
66 CMpmCsIdWatcher(); |
67 CMpmCsIdWatcher(); |
67 |
68 |
68 void ConstructL(); |
69 void ConstructL(); |
|
70 |
|
71 /** |
|
72 * Request for notifications. |
|
73 */ |
|
74 TInt RequestNotifications(); |
|
75 |
|
76 /** |
|
77 * Get Connect screen ID from repository. |
|
78 */ |
|
79 TInt GetConnectScreenId(); |
69 |
80 |
70 private: // data |
81 private: // data |
71 |
82 |
72 /** |
83 /** |
73 * Id of the connect screen process |
84 * Id of the connect screen process |
82 |
93 |
83 /** |
94 /** |
84 * Set when user connection is enabled |
95 * Set when user connection is enabled |
85 */ |
96 */ |
86 TBool iUserConnectionSupported; |
97 TBool iUserConnectionSupported; |
|
98 |
|
99 /** |
|
100 * Error counter. |
|
101 */ |
|
102 TUint iErrorCounter; |
87 }; |
103 }; |
88 |
104 |
89 #endif // MPMCSIDWATCHER_H |
105 #endif // MPMCSIDWATCHER_H |