|
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: Declaration of CPhoneSettingsTestNetworkInfoObserver class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef PHONESETTINGSTESTNETWORKINFOOBSERVER_H |
|
21 #define PHONESETTINGSTESTNETWORKINFOOBSERVER_H |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <MPsetNetworkInfoObs.h> |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 NONSHARABLE_CLASS(CPhoneSettingsTestNetworkInfoObserver) : |
|
29 public MPsetNetworkInfoObserver, |
|
30 public CBase |
|
31 { |
|
32 public: // Constructors and destructor |
|
33 |
|
34 /** |
|
35 * Two-phased constructor. |
|
36 */ |
|
37 static CPhoneSettingsTestNetworkInfoObserver* NewL(); |
|
38 |
|
39 /** |
|
40 * Destructor. |
|
41 */ |
|
42 virtual ~CPhoneSettingsTestNetworkInfoObserver(); |
|
43 |
|
44 private: |
|
45 |
|
46 /** |
|
47 * C++ default constructor. |
|
48 */ |
|
49 CPhoneSettingsTestNetworkInfoObserver(); |
|
50 |
|
51 /** |
|
52 * By default Symbian 2nd phase constructor is private. |
|
53 */ |
|
54 void ConstructL(); |
|
55 |
|
56 public: // Derived from MPsetNetworkInfoObserver |
|
57 |
|
58 /** |
|
59 * Shows notes when network information received. |
|
60 * |
|
61 * @param aInfoArray Network information. Receiver owns the array. |
|
62 * @param aResult Result of action. |
|
63 */ |
|
64 virtual void HandleNetworkInfoReceivedL( |
|
65 const CNetworkInfoArray* aInfoArray, const TInt aResult ); |
|
66 |
|
67 /** |
|
68 * Shows notes when requested for current network information. |
|
69 * |
|
70 * @param aCurrentInfo Current network information. |
|
71 * @param aResult Result of action. |
|
72 */ |
|
73 virtual void HandleCurrentNetworkInfoL( |
|
74 const MPsetNetworkSelect::TCurrentNetworkInfo& aCurrentInfo, |
|
75 const TInt aResult ); |
|
76 |
|
77 /** |
|
78 * DEPRECATED. |
|
79 */ |
|
80 virtual void HandleNetworkChangedL( |
|
81 const MPsetNetworkSelect::TNetworkInfo& aCurrentInfo, |
|
82 const MPsetNetworkSelect::TCurrentNetworkStatus aStatus, |
|
83 const TInt aResult ); |
|
84 |
|
85 /** |
|
86 * Shows notes when network change has been approved. |
|
87 * |
|
88 * @param aCurrentInfo Current network information. |
|
89 * @param aStatus Current network status. |
|
90 * @param aResult Result of action. |
|
91 */ |
|
92 virtual void HandleNetworkChangedL( |
|
93 const MPsetNetworkSelect::TNetworkInfo& aCurrentInfo, |
|
94 const RMobilePhone::TMobilePhoneRegistrationStatus& aStatus, |
|
95 const TInt aResult ); |
|
96 |
|
97 /** |
|
98 * Searches for networks that have coverage. |
|
99 * |
|
100 * @param aRequest Type of request that is being handled. |
|
101 */ |
|
102 virtual void HandleSearchingNetworksL( TServiceRequest aRequest ); |
|
103 |
|
104 /** |
|
105 * Handles user request to register to specific network. |
|
106 * |
|
107 * @param aOngoing Is there an ongoing request. |
|
108 */ |
|
109 virtual void HandleRequestingSelectedNetworkL( TBool aOngoing ); |
|
110 |
|
111 /** |
|
112 * Handles notes when call is active. |
|
113 */ |
|
114 virtual void HandleCallActivatedL(); |
|
115 |
|
116 /** |
|
117 * Handles errors. |
|
118 * |
|
119 * @param aRequest current request. |
|
120 * @param aError error code. |
|
121 */ |
|
122 virtual void HandleNetworkErrorL( const MPsetNetworkInfoObserver::TServiceRequest aRequest, |
|
123 const TInt aError ); |
|
124 }; |
|
125 |
|
126 #endif // PHONESETTINGSTESTNETWORKINFOOBSERVER_H |
|
127 |
|
128 // End of File |