1 /* |
|
2 * Copyright (c) 2002,2003 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: Shows notes and lists for Divert supplementary service |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPSUIDIVERTOBS_H |
|
20 #define CPSUIDIVERTOBS_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <mpsetdivertobs.h> |
|
24 #include "psuiconstants.h" |
|
25 |
|
26 // FORWARD DECLARATION |
|
27 class MPsetCallDiverting; |
|
28 class CPsuiResourceLoader; |
|
29 class CPsuiContainer; |
|
30 class CMobilePhoneCFList; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CPsuiDivertObs class implements the MPsetDivertObserver observer. |
|
36 * @lib psui.lib |
|
37 * @since 1.0 |
|
38 */ |
|
39 class CPsuiDivertObs : public CBase, |
|
40 public MPsetDivertObserver |
|
41 { |
|
42 public: // Constructor |
|
43 |
|
44 /** |
|
45 * Symbian OS two-phased constructor. |
|
46 * |
|
47 * @param aContainer Reference to container |
|
48 * @return Returns pointer to this-object. |
|
49 */ |
|
50 IMPORT_C static CPsuiDivertObs* NewL( CPsuiContainer& aContainer ); |
|
51 |
|
52 public: // Functions from base classes |
|
53 |
|
54 /** |
|
55 * From MPsetDivertObserver, handles diverting changed. |
|
56 * |
|
57 * @param aSetting Call forwarding settings |
|
58 * @param aPlural Indicates that operation affected several basic |
|
59 * service groups |
|
60 */ |
|
61 void HandleDivertingChangedL( |
|
62 const TCallDivertSetting& aSetting, TBool aPlural ); |
|
63 |
|
64 /** |
|
65 * From MPsetDivertObserver, handles diverting status. |
|
66 * |
|
67 * @param aSetting Call forwarding settings |
|
68 * @param aPlural - DEPRECATED |
|
69 */ |
|
70 /***************************************************** |
|
71 * Series 60 Customer / ETel |
|
72 * Series 60 ETel API |
|
73 *****************************************************/ |
|
74 void HandleDivertingStatusL( |
|
75 CMobilePhoneCFList& aSetting, |
|
76 TBool aPlural ); |
|
77 |
|
78 /** |
|
79 * From MPsetDivertObserver, handles diverting error. |
|
80 * |
|
81 * @param aReason Reason for error |
|
82 */ |
|
83 void HandleDivertingErrorL( TInt aReason ); |
|
84 |
|
85 /** |
|
86 * From MPsetDivertObserver, handles requesting notes. |
|
87 * |
|
88 * @param aTrue If ETrue, there is an active request |
|
89 * @param aInterrupted If ETrue, means that notemaster should be |
|
90 * immediately deleted |
|
91 */ |
|
92 void HandleCFRequestingL( TBool aTrue, TBool aInterrupted = EFalse ); |
|
93 |
|
94 /** |
|
95 * From MPsetDivertObserver, defines reference to requesting object. |
|
96 * |
|
97 * @param aDivertEngine Reference to the Phone Settings |
|
98 */ |
|
99 void SetEngineContact( MPsetCallDiverting* aDivertEngine ); |
|
100 |
|
101 private: // new |
|
102 |
|
103 void SetContainer( CPsuiContainer& aContainer ); |
|
104 |
|
105 |
|
106 private: // member variables |
|
107 |
|
108 // Container object |
|
109 CPsuiContainer* iContainer; |
|
110 }; |
|
111 #endif //CPSUIDIVERTOBS_H |
|