1 /* |
|
2 * Copyright (c) 2009-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: class declaration for monitoring current network info change |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef IRQNWKINFOOBSERVERIMPL_H_ |
|
20 #define IRQNWKINFOOBSERVERIMPL_H_ |
|
21 |
|
22 |
|
23 #include <e32base.h> // CActive |
|
24 #include <etel3rdparty.h> // CTelephony |
|
25 #include <QString> |
|
26 |
|
27 class MIRQNwkInfoUpdate; |
|
28 |
|
29 class IRQNwkInfoObserverImpl : public CActive |
|
30 { |
|
31 public: |
|
32 static IRQNwkInfoObserverImpl* NewL(MIRQNwkInfoUpdate *aObserver); |
|
33 |
|
34 /*! |
|
35 * Destructor. |
|
36 */ |
|
37 ~IRQNwkInfoObserverImpl(); |
|
38 |
|
39 /*! |
|
40 * starts network info monitoring |
|
41 */ |
|
42 void startNwkInfoMonitor(); |
|
43 |
|
44 private: |
|
45 /*! |
|
46 * Constructor |
|
47 */ |
|
48 explicit IRQNwkInfoObserverImpl(MIRQNwkInfoUpdate *aObserver); |
|
49 |
|
50 /** |
|
51 * Second-phase constructor. |
|
52 */ |
|
53 void ConstructL(); |
|
54 |
|
55 private: |
|
56 |
|
57 /*! |
|
58 * Issue Subsequent network monitoring request |
|
59 */ |
|
60 void issueRequest(); |
|
61 |
|
62 /*! |
|
63 * From CActive. |
|
64 */ |
|
65 void DoCancel(); |
|
66 void RunL(); |
|
67 |
|
68 private: |
|
69 |
|
70 CTelephony* iTelephony; |
|
71 |
|
72 //Current Network |
|
73 CTelephony::TNetworkInfoV1 iCurrentNetworkInfo; |
|
74 CTelephony::TNetworkInfoV1Pckg iCurrentNetworkInfoV1Pckg; |
|
75 |
|
76 //Home Operator |
|
77 CTelephony::TNetworkRegistrationV1 iHomeOperatorInfo; |
|
78 CTelephony::TNetworkRegistrationV1Pckg iHomeOperatorInfoPckg; |
|
79 |
|
80 QString iCurrentNwkMCC; |
|
81 QString iCurrentNwkMNC; |
|
82 |
|
83 QString iHomeNetworkMCC; |
|
84 QString iHomeNetworkMNC; |
|
85 |
|
86 bool iFirstTime; |
|
87 bool iCurrentNetworkType; |
|
88 bool iHomeNetworkType; |
|
89 |
|
90 MIRQNwkInfoUpdate *iObserver; |
|
91 }; |
|
92 |
|
93 #endif // IRQNWKINFOOBSERVERIMPL_H_ |
|