|
1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * CMsgErrorRoamingObserver declaration file |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef MSGERRORROAMINGOBSERVER_H |
|
22 #define MSGERRORROAMINGOBSERVER_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include <etel.h> //RTelServer |
|
27 #include <etelmm.h> |
|
28 |
|
29 //#include <etelbgsm.h> //RBasicGsmPhone |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class CMsgErrorWatcher; |
|
33 |
|
34 // CLASS DECLARATION |
|
35 |
|
36 /** |
|
37 * CMsgErrorRoamingObserver |
|
38 * |
|
39 * @lib msgerrorwatcher.dll |
|
40 * @since 2.0 |
|
41 */ |
|
42 class CMsgErrorRoamingObserver : public CActive |
|
43 { |
|
44 public: // Constructors and destructor |
|
45 |
|
46 /** |
|
47 * Two-phased constructor. |
|
48 * |
|
49 * @param aWatcher A pointer to CMsgErrorWatcher |
|
50 */ |
|
51 static CMsgErrorRoamingObserver* NewL( CMsgErrorWatcher* aWatcher ); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 virtual ~CMsgErrorRoamingObserver(); |
|
57 |
|
58 private: |
|
59 |
|
60 /** |
|
61 * Checks whether roaming status has changed |
|
62 * from home network to roaming or vice versa. |
|
63 * If so, calls CMsgErrorWatcher::HandleRoamingEventL |
|
64 */ |
|
65 void UpdateRoamingStatusL(); |
|
66 |
|
67 /** |
|
68 * By default Symbian OS constructor is private. |
|
69 */ |
|
70 void ConstructL(); |
|
71 |
|
72 /** |
|
73 * Private C++ constructor. |
|
74 * |
|
75 * @param aWatcher A pointer to CMsgErrorWatcher |
|
76 */ |
|
77 CMsgErrorRoamingObserver( CMsgErrorWatcher* aWatcher ); |
|
78 |
|
79 private: |
|
80 |
|
81 /** |
|
82 * For starting the active object. |
|
83 */ |
|
84 void Start(); |
|
85 |
|
86 /** |
|
87 * From CActive |
|
88 */ |
|
89 void DoCancel(); |
|
90 |
|
91 /** |
|
92 * From CActive |
|
93 */ |
|
94 void RunL(); |
|
95 |
|
96 private: // Data |
|
97 |
|
98 CMsgErrorWatcher* iWatcher; |
|
99 TBool iRoaming; |
|
100 |
|
101 /***************************************************** |
|
102 * Series 60 Customer / ETel |
|
103 * Series 60 ETel API |
|
104 *****************************************************/ |
|
105 |
|
106 RMobilePhone iMobilePhone; |
|
107 RTelServer iETelServer; |
|
108 RMobilePhone::TMobilePhoneRegistrationStatus iRegStatus; |
|
109 TInt iRequestId; |
|
110 |
|
111 }; |
|
112 |
|
113 #endif // MSGERRORROAMINGOBSERVER_H |
|
114 |
|
115 // End of File |