|
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 CPhoneSettingsTestCliObserver class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef PHONESETTINGSTESTCLIOBSERVER_H |
|
21 #define PHONESETTINGSTESTCLIOBSERVER_H |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <MPsetCliObserver.h> |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 NONSHARABLE_CLASS(CPhoneSettingsTestCliObserver) : |
|
29 public MPsetCliObserver, |
|
30 public CBase |
|
31 { |
|
32 public: // Constructors and destructor |
|
33 |
|
34 /** |
|
35 * Two-phased constructor. |
|
36 */ |
|
37 static CPhoneSettingsTestCliObserver* NewL(); |
|
38 |
|
39 /** |
|
40 * Destructor. |
|
41 */ |
|
42 virtual ~CPhoneSettingsTestCliObserver(); |
|
43 |
|
44 private: |
|
45 |
|
46 /** |
|
47 * C++ default constructor. |
|
48 */ |
|
49 CPhoneSettingsTestCliObserver(); |
|
50 |
|
51 /** |
|
52 * By default Symbian 2nd phase constructor is private. |
|
53 */ |
|
54 void ConstructL(); |
|
55 |
|
56 public: // Derived from MPsetCliObserver |
|
57 |
|
58 /** |
|
59 * Sets pointer so that message is passed succesfully |
|
60 * from requester to observer. |
|
61 * |
|
62 * @param aEngine Source of events to observer. |
|
63 */ |
|
64 virtual void SetEngineContact( MPsetCli* aEngine ); |
|
65 |
|
66 /** |
|
67 * Handles requesting notes. |
|
68 * |
|
69 * @param aOngoing Is request already going on. |
|
70 * @param aInterrupted Request needs to be immediately cancelled. |
|
71 */ |
|
72 virtual void HandleCliRequestingL( TBool aOngoing, |
|
73 TBool aInterrupted ); |
|
74 |
|
75 /** |
|
76 * Handles notes for changing any of CLI features. |
|
77 * |
|
78 * @param aType Type of the CLI affected. |
|
79 */ |
|
80 virtual void CliInformationL( TPsuiCli aType ); |
|
81 |
|
82 /** |
|
83 * Checks the CLI status from network. |
|
84 * |
|
85 * @param aBsc List of basic service groups. |
|
86 * @param aMode Which CLI feature was inquiried for. |
|
87 */ |
|
88 virtual void HandleCliStatusL( TUint8 aBsc[KPSetNumberOfBsc], TPsuiCli aMode ); |
|
89 |
|
90 /** |
|
91 * Checks the CNAP status from network. |
|
92 * @since 1.2 |
|
93 * |
|
94 * @param aStatus CNAP status. |
|
95 */ |
|
96 virtual void HandleCnapStatusL( TInt aStatus ); |
|
97 |
|
98 /** |
|
99 * Handles errors. |
|
100 * @since 2.0 |
|
101 * |
|
102 * @param aError error code. |
|
103 */ |
|
104 virtual void HandleCliErrorL( TInt aError ); |
|
105 |
|
106 private: // Data |
|
107 |
|
108 // Cli Engine contact |
|
109 MPsetCli* iEngine; |
|
110 }; |
|
111 |
|
112 #endif // PHONESETTINGSTESTCLIOBSERVER_H |
|
113 |
|
114 // End of File |