45 #include "mpmcsidwatcher.h" |
45 #include "mpmcsidwatcher.h" |
46 #include "mpmdatausagewatcher.h" |
46 #include "mpmdatausagewatcher.h" |
47 #include "mpmpropertydef.h" |
47 #include "mpmpropertydef.h" |
48 #include "mpmofflinewatcher.h" |
48 #include "mpmofflinewatcher.h" |
49 #include "mpmconnpermquerytimer.h" |
49 #include "mpmconnpermquerytimer.h" |
|
50 #include "mpmofflinequerytimer.h" |
|
51 #include "mpmconnselectiondlgtimer.h" |
50 |
52 |
51 // ============================= LOCAL FUNCTIONS =============================== |
53 // ============================= LOCAL FUNCTIONS =============================== |
52 |
54 |
53 // ----------------------------------------------------------------------------- |
55 // ----------------------------------------------------------------------------- |
54 // PanicServer |
56 // PanicServer |
2377 MPMLOGSTRING( "CMPMServer::IsConnPermQueryTimerOn: Yes." ) |
2391 MPMLOGSTRING( "CMPMServer::IsConnPermQueryTimerOn: Yes." ) |
2378 } |
2392 } |
2379 return retval; |
2393 return retval; |
2380 } |
2394 } |
2381 |
2395 |
|
2396 // --------------------------------------------------------------------------- |
|
2397 // CMPMServer::StartOfflineQueryTimer |
|
2398 // Starts the offline query timer. |
|
2399 // --------------------------------------------------------------------------- |
|
2400 // |
|
2401 void CMPMServer::StartOfflineQueryTimer() |
|
2402 { |
|
2403 MPMLOGSTRING( "CMPMServer::StartOfflineQueryTimer" ) |
|
2404 |
|
2405 if ( !iOfflineQueryTimer ) |
|
2406 { |
|
2407 TRAPD( err, iOfflineQueryTimer = CMPMOfflineQueryTimer::NewL( this ) ); |
|
2408 if ( err == KErrNone ) |
|
2409 { |
|
2410 iOfflineQueryTimer->StartTimer(); |
|
2411 MPMLOGSTRING( "CMPMServer::StartOfflineQueryTimer: Ok." ) |
|
2412 } |
|
2413 } |
|
2414 } |
|
2415 |
|
2416 // --------------------------------------------------------------------------- |
|
2417 // CMPMServer::ResetOfflineQueryTimer |
|
2418 // Resets the offline query timer. |
|
2419 // --------------------------------------------------------------------------- |
|
2420 // |
|
2421 void CMPMServer::ResetOfflineQueryTimer() |
|
2422 { |
|
2423 MPMLOGSTRING( "CMPMServer::ResetOfflineQueryTimer" ) |
|
2424 |
|
2425 if ( iOfflineQueryTimer ) |
|
2426 { |
|
2427 delete iOfflineQueryTimer; |
|
2428 iOfflineQueryTimer = NULL; |
|
2429 MPMLOGSTRING( "CMPMServer::ResetOfflineQueryTimer: Ok." ) |
|
2430 } |
|
2431 } |
|
2432 |
|
2433 // --------------------------------------------------------------------------- |
|
2434 // CMPMServer::IsOfflineQueryTimerOn |
|
2435 // Tells if the offline query timer is on. |
|
2436 // --------------------------------------------------------------------------- |
|
2437 // |
|
2438 TBool CMPMServer::IsOfflineQueryTimerOn() |
|
2439 { |
|
2440 MPMLOGSTRING( "CMPMServer::IsOfflineQueryTimerOn" ) |
|
2441 |
|
2442 TBool retval = EFalse; |
|
2443 if ( iOfflineQueryTimer ) |
|
2444 { |
|
2445 retval = ETrue; |
|
2446 MPMLOGSTRING( "CMPMServer::IsOfflineQueryTimerOn: Yes." ) |
|
2447 } |
|
2448 return retval; |
|
2449 } |
|
2450 |
|
2451 // --------------------------------------------------------------------------- |
|
2452 // CMPMServer::StartConnSelectionDlgTimer |
|
2453 // Starts the connection selection dialog timer. |
|
2454 // --------------------------------------------------------------------------- |
|
2455 // |
|
2456 void CMPMServer::StartConnSelectionDlgTimer() |
|
2457 { |
|
2458 MPMLOGSTRING( "CMPMServer::StartConnSelectionDlgTimer" ) |
|
2459 |
|
2460 if ( !iConnSelectionDlgTimer ) |
|
2461 { |
|
2462 TRAPD( err, iConnSelectionDlgTimer = CMPMConnSelectionDlgTimer::NewL( this ) ); |
|
2463 if ( err == KErrNone ) |
|
2464 { |
|
2465 iConnSelectionDlgTimer->StartTimer(); |
|
2466 MPMLOGSTRING( "CMPMServer::StartConnSelectionDlgTimer: Ok." ) |
|
2467 } |
|
2468 } |
|
2469 } |
|
2470 |
|
2471 // --------------------------------------------------------------------------- |
|
2472 // CMPMServer::ResetConnSelectionDlgTimer |
|
2473 // Resets the connection selection dialog timer. |
|
2474 // --------------------------------------------------------------------------- |
|
2475 // |
|
2476 void CMPMServer::ResetConnSelectionDlgTimer() |
|
2477 { |
|
2478 MPMLOGSTRING( "CMPMServer::ResetConnSelectionDlgTimer" ) |
|
2479 |
|
2480 if ( iConnSelectionDlgTimer ) |
|
2481 { |
|
2482 delete iConnSelectionDlgTimer; |
|
2483 iConnSelectionDlgTimer = NULL; |
|
2484 MPMLOGSTRING( "CMPMServer::ResetConnSelectionDlgTimer: Ok." ) |
|
2485 } |
|
2486 } |
|
2487 |
|
2488 // --------------------------------------------------------------------------- |
|
2489 // CMPMServer::IsConnSelectionDlgTimerOn |
|
2490 // Tells if the connection selection dialog timer is on. |
|
2491 // --------------------------------------------------------------------------- |
|
2492 // |
|
2493 TBool CMPMServer::IsConnSelectionDlgTimerOn() |
|
2494 { |
|
2495 MPMLOGSTRING( "CMPMServer::IsConnSelectionDlgTimerOn" ) |
|
2496 |
|
2497 TBool retval = EFalse; |
|
2498 if ( iConnSelectionDlgTimer ) |
|
2499 { |
|
2500 retval = ETrue; |
|
2501 MPMLOGSTRING( "CMPMServer::IsConnSelectionDlgTimerOn: Yes." ) |
|
2502 } |
|
2503 return retval; |
|
2504 } |
|
2505 |
2382 // ----------------------------------------------------------------------------- |
2506 // ----------------------------------------------------------------------------- |
2383 // CMPMServer::CheckIapForDisconnect |
2507 // CMPMServer::CheckIapForDisconnect |
2384 // ----------------------------------------------------------------------------- |
2508 // ----------------------------------------------------------------------------- |
2385 // |
2509 // |
2386 void CMPMServer::CheckIapForDisconnect( TInt aIapId ) |
2510 void CMPMServer::CheckIapForDisconnect( TInt aIapId ) |