equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 #ifndef __CPSDFAX_H |
18 #ifndef __CPSDFAX_H |
19 #define __CPSDFAX_H |
19 #define __CPSDFAX_H |
20 |
20 |
|
21 #include <e32base.h> |
21 #include <etel.h> |
22 #include <etel.h> |
22 #include <etelmm.h> |
23 #include <etelmm.h> |
23 #include <etelpckt.h> |
24 #include <etelpckt.h> |
24 #include <pcktcs.h> |
25 #include <pcktcs.h> |
25 #include <rconnmon.h> |
26 #include <rconnmon.h> |
33 |
34 |
34 _LIT( KExternalName, "external" ); |
35 _LIT( KExternalName, "external" ); |
35 |
36 |
36 // max PSD connection number |
37 // max PSD connection number |
37 const TInt KMaxPsdConnectionCount = 2; |
38 const TInt KMaxPsdConnectionCount = 2; |
|
39 |
|
40 // Restore attach mode interval (3 sec) |
|
41 const TInt KRestoreAttachModeInterval = 3000000; |
38 |
42 |
39 |
43 |
40 /** |
44 /** |
41 * CPsdFax |
45 * CPsdFax |
42 * @lib CONMONN.LIB |
46 * @lib CONMONN.LIB |
176 * @since |
180 * @since |
177 * @return void |
181 * @return void |
178 */ |
182 */ |
179 void DeleteConnections(); |
183 void DeleteConnections(); |
180 |
184 |
|
185 /** |
|
186 * Timer callback of iRestoreAttachModeTimer |
|
187 * |
|
188 * @param aObject Object that triggered timer |
|
189 * @since 5.2 |
|
190 */ |
|
191 static TInt RestoreAttachModeCb( TAny* aObject ); |
|
192 |
|
193 /** |
|
194 * Restores attach mode |
|
195 * |
|
196 * @since 5.2 |
|
197 */ |
|
198 void RestoreAttachMode(); |
|
199 |
181 private: |
200 private: |
182 |
201 |
183 private: // Data |
202 private: // Data |
184 // Pointer to ConnMon server |
203 // Pointer to ConnMon server |
185 CConnMonServer* iServer; |
204 CConnMonServer* iServer; |
196 // Connection up event watcher |
215 // Connection up event watcher |
197 CPsdFaxUpNotifier* iConnUpNotifier; |
216 CPsdFaxUpNotifier* iConnUpNotifier; |
198 |
217 |
199 // Data table for each connection |
218 // Data table for each connection |
200 CPsdFaxConnectionData* iConnectionData[KMaxPsdConnectionCount]; |
219 CPsdFaxConnectionData* iConnectionData[KMaxPsdConnectionCount]; |
|
220 |
|
221 // Timer to restore attach mode in case at+cgatt=0 given |
|
222 CPeriodic* iRestoreAttachModeTimer; |
201 }; |
223 }; |
202 |
224 |
203 |
225 |
204 /** |
226 /** |
205 * CPsdFaxUpNotifier |
227 * CPsdFaxUpNotifier |