|
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 CPhoneSettingsTestNetworkModeObserver class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef PHONESETTINGSTESTNETWORKMODEOBSERVER_H |
|
21 #define PHONESETTINGSTESTNETWORKMODEOBSERVER_H |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <MPsetNetworkModeObs.h> |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 NONSHARABLE_CLASS(CPhoneSettingsTestNetworkModeObserver) : |
|
29 public MPsetNetworkModeObserver, |
|
30 public CBase |
|
31 { |
|
32 public: // Constructors and destructor |
|
33 |
|
34 /** |
|
35 * Two-phased constructor. |
|
36 */ |
|
37 static CPhoneSettingsTestNetworkModeObserver* NewL(); |
|
38 |
|
39 /** |
|
40 * Destructor. |
|
41 */ |
|
42 virtual ~CPhoneSettingsTestNetworkModeObserver(); |
|
43 |
|
44 private: |
|
45 |
|
46 /** |
|
47 * C++ default constructor. |
|
48 */ |
|
49 CPhoneSettingsTestNetworkModeObserver(); |
|
50 |
|
51 /** |
|
52 * By default Symbian 2nd phase constructor is private. |
|
53 */ |
|
54 void ConstructL(); |
|
55 |
|
56 public: // Derived from MPsetNetworkModeObserver |
|
57 |
|
58 /** |
|
59 * Handles Network system mode list fetching from CustomAPI. |
|
60 * Handles Network system mode setting to CustomAPI. |
|
61 * Handles current network system mode fetching from CustomAPI. |
|
62 * |
|
63 * @param aRequest one of the TServiceRequest values |
|
64 * @param aNetworkModeCaps current/list of supported network mode(s). |
|
65 * @since 2.6 |
|
66 */ |
|
67 virtual void HandleNetworkSystemModeEventsL( |
|
68 const MPsetNetworkModeObserver::TServiceRequest aRequest, |
|
69 const TUint32 aNetworkModeCaps ); |
|
70 |
|
71 /** |
|
72 * Handles errors. |
|
73 * |
|
74 * @param aRequest current request. |
|
75 * @param aError error code. |
|
76 */ |
|
77 virtual void HandleNetworkErrorL( |
|
78 const MPsetNetworkModeObserver::TServiceRequest aRequest, |
|
79 const TInt aError ); |
|
80 }; |
|
81 |
|
82 #endif // PHONESETTINGSTESTNETWORKMODEOBSERVER_H |
|
83 |
|
84 // End of File |