equal
deleted
inserted
replaced
21 #include "maosettings.h" |
21 #include "maosettings.h" |
22 #include "logger.h" |
22 #include "logger.h" |
23 #include "maoconnectionmonitorobserver.h" |
23 #include "maoconnectionmonitorobserver.h" |
24 #include "caoasyncwrapper.h" |
24 #include "caoasyncwrapper.h" |
25 |
25 |
|
26 |
26 // UNNAMED NAMESPACE FOR LOCAL DEFINITIONS |
27 // UNNAMED NAMESPACE FOR LOCAL DEFINITIONS |
27 namespace |
28 namespace |
28 { |
29 { |
29 // CONSTATNS |
30 // CONSTATNS |
30 #ifdef _DEBUG |
31 #ifdef _DEBUG |
47 { |
48 { |
48 User::Panic( KPanicCat, aReason ); |
49 User::Panic( KPanicCat, aReason ); |
49 } |
50 } |
50 #endif |
51 #endif |
51 } |
52 } |
|
53 |
|
54 const TInt KRetryCounter = 10; |
|
55 |
52 |
56 |
53 // METHODS |
57 // METHODS |
54 |
58 |
55 // --------------------------------------------------------------------------- |
59 // --------------------------------------------------------------------------- |
56 // Two-phased constructor. |
60 // Two-phased constructor. |
222 LOG_2( _L("CAOConnectionMonitorImpl::NWRegStatusRunL: aStatus: %d" ), |
226 LOG_2( _L("CAOConnectionMonitorImpl::NWRegStatusRunL: aStatus: %d" ), |
223 aStatus ); |
227 aStatus ); |
224 |
228 |
225 if ( aStatus == KErrNone ) |
229 if ( aStatus == KErrNone ) |
226 { |
230 { |
227 LOG_2( _L("> NW reg. status: %d"), iWNReg.iRegStatus ); |
231 LOG_2( _L("> Current iWNReg.iRegStatus: %d"), iWNReg.iRegStatus ); |
228 iObserver.HandleNWRegistrationStatusChangedL( |
232 |
229 iWNRegPckg().iRegStatus ); |
233 if ( ( iWNReg.iRegStatus < iWNChangeReg.iRegStatus ) && |
230 } |
234 ( iCounter < KRetryCounter ) ) |
|
235 { |
|
236 iCounter++; |
|
237 LOG_2( _L("> Different from events iWNChangeReg.iRegStatusv: %d"), |
|
238 iWNChangeReg.iRegStatus ); |
|
239 iNWRegistrationStatus->IssueRequest(); |
|
240 } |
|
241 else |
|
242 { |
|
243 iCounter = 0; |
|
244 iObserver.HandleNWRegistrationStatusChangedL( |
|
245 iWNRegPckg().iRegStatus ); |
|
246 } |
|
247 } |
231 else |
248 else |
232 { |
249 { |
233 HandleError( aStatus ); |
250 HandleError( aStatus ); |
234 } |
251 } |
235 } |
252 } |