19 #ifndef __RFSPDPOBSERVER_H |
19 #ifndef __RFSPDPOBSERVER_H |
20 #define __RFSPDPOBSERVER_H |
20 #define __RFSPDPOBSERVER_H |
21 |
21 |
22 #include <hbdeviceprogressdialogsymbian.h> |
22 #include <hbdeviceprogressdialogsymbian.h> |
23 |
23 |
|
24 // P&S KEYS FROM SIP & PDP CONNECTION |
|
25 #include <e32property.h> |
|
26 #include <pdpcontextmanagerpskeys.h> |
|
27 #include <sipsystemstatemonitorpskeys.h> |
|
28 |
|
29 #include "rfscontimer.h" |
|
30 |
|
31 class CRfsConTimer; |
|
32 |
24 enum TRfsConnectionCloseState |
33 enum TRfsConnectionCloseState |
25 { |
34 { |
26 ESipConnectionClose, |
35 ESipConnectionClose, |
27 EPdpConnectionClose // this should be the last enum |
36 EPdpConnectionClose // this should be the last enum |
28 }; |
37 }; |
29 |
38 |
30 NONSHARABLE_CLASS( CRfsConnectionObserver ): CActive,public MHbDeviceProgressDialogObserver |
39 NONSHARABLE_CLASS( CRfsConnectionObserver ): public CActive,public MHbDeviceProgressDialogObserver |
31 { |
40 { |
32 public: |
41 public: |
33 |
42 |
34 /** |
43 /** |
35 * Two-phased constructor |
44 * Two-phased constructor |
66 * @since S60 v3.1 |
75 * @since S60 v3.1 |
67 */ |
76 */ |
68 void ReOpenPDPConnection(); |
77 void ReOpenPDPConnection(); |
69 void ReportRfsFailureToSip(); |
78 void ReportRfsFailureToSip(); |
70 void ReportRfsCompletionToSip(); |
79 void ReportRfsCompletionToSip(); |
|
80 /** |
|
81 * Subscribes PDP property |
|
82 * |
|
83 * @since S60 v3.1 |
|
84 */ |
|
85 void Subscribe(); |
|
86 |
|
87 |
71 |
88 |
72 private: |
89 protected: |
73 |
90 |
74 /** |
91 /** |
75 * From base class CActive |
92 * From base class CActive |
76 */ |
93 */ |
77 |
94 void DoCancel(); |
|
95 |
78 /** |
96 /** |
79 * From CActive |
97 * From CActive |
80 * |
98 * |
81 * @since S60 v3.1 |
99 * @since S60 v3.1 |
82 */ |
100 */ |
83 void RunL(); |
101 void RunL(); |
84 |
102 |
85 /** |
103 |
86 * From CActive |
|
87 * |
|
88 * @since S60 v3.1 |
|
89 */ |
|
90 void DoCancel(); |
|
91 |
|
92 private: |
104 private: |
93 |
105 |
94 /** |
106 /** |
95 * New methods |
107 * New methods |
96 */ |
108 */ |
97 |
109 |
98 /** |
|
99 * Subscribes PDP property |
|
100 * |
|
101 * @since S60 v3.1 |
|
102 */ |
|
103 void Subscribe(); |
|
104 |
110 |
105 /** |
111 /** |
106 * Dismisses closing connections dialog |
112 * Dismisses closing connections dialog |
107 * |
113 * |
108 * @since S60 v3.1 |
114 * @since S60 v3.1 |
164 * 2. Meanwhile display a WAIT FOR dialog to the user which he can CANCEL at any moment |
170 * 2. Meanwhile display a WAIT FOR dialog to the user which he can CANCEL at any moment |
165 * 3. If failure occurs or if user presses the Cancel Key then cancel the RFS operation |
171 * 3. If failure occurs or if user presses the Cancel Key then cancel the RFS operation |
166 */ |
172 */ |
167 TBool iAllConnectionClosed; |
173 TBool iAllConnectionClosed; |
168 TBool iIsWaitForDialogExecuted; |
174 TBool iIsWaitForDialogExecuted; |
169 TInt iIsPDPFeatureEnabled; |
|
170 TBool iIsSIPConnectionsPresent; |
175 TBool iIsSIPConnectionsPresent; |
171 TBool iIsDialogNeedToBeDisplayed; |
176 TBool iIsDialogNeedToBeDisplayed; |
172 TBool iIsSipInformedForClosingAllConnection; |
177 TBool iIsSipInformedForClosingAllConnection; |
173 TBool iIsPDPInformedforClosingAllConnection; |
178 TBool iIsPDPInformedforClosingAllConnection; |
174 TBool iIsClosingConnectionsApplicable; |
179 TBool iIsClosingConnectionsApplicable; |
175 |
|
176 TRfsConnectionCloseState iState; |
|
177 //for synchronous dialog handling |
180 //for synchronous dialog handling |
178 CActiveSchedulerWait *iWait; |
181 CActiveSchedulerWait *iWait; |
|
182 |
|
183 |
|
184 public: |
|
185 TRfsConnectionCloseState iState; |
|
186 TInt iIsPDPFeatureEnabled; |
|
187 CRfsConTimer* iRfsConTimer; |
179 }; |
188 }; |
180 |
189 |
181 #endif //RFSPDPOBSERVER_H |
190 #endif //RFSPDPOBSERVER_H |