|
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 IRQNWKINFOOBSERVER_P_H_ |
|
20 #define IRQNWKINFOOBSERVER_P_H_ |
|
21 |
|
22 |
|
23 #include <e32base.h> // CActive |
|
24 #include <etel3rdparty.h> // CTelephony |
|
25 #include <QString> |
|
26 |
|
27 class IRQNwkInfoObserver; |
|
28 |
|
29 class IRQNwkInfoObserverPrivate : public CActive |
|
30 { |
|
31 public: |
|
32 |
|
33 /*! |
|
34 * Constructor |
|
35 */ |
|
36 explicit IRQNwkInfoObserverPrivate(IRQNwkInfoObserver *aObserver); |
|
37 |
|
38 /** |
|
39 * Second-phase constructor. |
|
40 */ |
|
41 bool Construct(); |
|
42 |
|
43 /*! |
|
44 * Destructor. |
|
45 */ |
|
46 ~IRQNwkInfoObserverPrivate(); |
|
47 |
|
48 /*! |
|
49 * starts network info monitoring |
|
50 */ |
|
51 void startNwkInfoMonitor(); |
|
52 |
|
53 private: |
|
54 |
|
55 |
|
56 private: |
|
57 |
|
58 /*! |
|
59 * Issue Subsequent network monitoring request |
|
60 */ |
|
61 void issueRequest(); |
|
62 |
|
63 /*! |
|
64 * From CActive. |
|
65 */ |
|
66 void DoCancel(); |
|
67 void RunL(); |
|
68 |
|
69 private: |
|
70 |
|
71 CTelephony* iTelephony; |
|
72 |
|
73 //Current Network |
|
74 CTelephony::TNetworkInfoV1 iCurrentNetworkInfo; |
|
75 CTelephony::TNetworkInfoV1Pckg iCurrentNetworkInfoV1Pckg; |
|
76 |
|
77 //Home Operator |
|
78 CTelephony::TNetworkRegistrationV1 iHomeOperatorInfo; |
|
79 CTelephony::TNetworkRegistrationV1Pckg iHomeOperatorInfoPckg; |
|
80 |
|
81 QString iCurrentNwkMCC; |
|
82 QString iCurrentNwkMNC; |
|
83 |
|
84 QString iHomeNetworkMCC; |
|
85 QString iHomeNetworkMNC; |
|
86 |
|
87 bool iFirstTime; |
|
88 bool iCurrentNetworkType; |
|
89 bool iHomeNetworkType; |
|
90 |
|
91 IRQNwkInfoObserver *q_ptr; |
|
92 }; |
|
93 |
|
94 #endif // IRQNWKINFOOBSERVER_P_H_ |