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: This class handles actions for CLI events. |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef MPSETCLIOBSERVER_H |
|
21 #define MPSETCLIOBSERVER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <psuiconstants.h> |
|
26 #include "psetconstants.h" |
|
27 #include "mpsetcli.h" |
|
28 |
|
29 // CLASS DEFINITIONS |
|
30 /** |
|
31 * MPsetCliObserver class is virtual class for CLI observers. |
|
32 * @lib phonesettings.lib |
|
33 * @since 1.0 |
|
34 */ |
|
35 class MPsetCliObserver |
|
36 { |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Sets pointer so that message is passed succesfully |
|
41 * from requester to observer. |
|
42 * |
|
43 * @param aEngine Source of events to observer. |
|
44 */ |
|
45 virtual void SetEngineContact( MPsetCli* aEngine ) = 0; |
|
46 |
|
47 /** |
|
48 * Handles requesting notes. |
|
49 * |
|
50 * @param aOngoing Is request already going on. |
|
51 * @param aInterrupted Request needs to be immediately cancelled. |
|
52 */ |
|
53 virtual void HandleCliRequestingL( TBool aOngoing, |
|
54 TBool aInterrupted ) = 0; |
|
55 |
|
56 /** |
|
57 * Handles notes for changing any of CLI features. |
|
58 * |
|
59 * @param aType Type of the CLI affected. |
|
60 */ |
|
61 virtual void CliInformationL( TPsuiCli aType ) = 0; |
|
62 |
|
63 /** |
|
64 * Checks the CLI status from network. |
|
65 * |
|
66 * @param aBsc List of basic service groups. |
|
67 * @param aMode Which CLI feature was inquiried for. |
|
68 */ |
|
69 virtual void HandleCliStatusL( TUint8 aBsc[KPSetNumberOfBsc], TPsuiCli aMode ) = 0; |
|
70 |
|
71 /** |
|
72 * Checks the CNAP status from network. |
|
73 * @since 1.2 |
|
74 * |
|
75 * @param aStatus CNAP status. |
|
76 */ |
|
77 virtual void HandleCnapStatusL( TInt aStatus ) = 0; |
|
78 |
|
79 /** |
|
80 * Handles errors. |
|
81 * @since 2.0 |
|
82 * |
|
83 * @param aError error code. |
|
84 */ |
|
85 virtual void HandleCliErrorL( TInt aError ) = 0; |
|
86 }; |
|
87 #endif // MPSETCLIOBSERVER_H |
|
88 // end of file |
|