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 related to Call Barrings operations. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPSUIBARRINGOBS_H |
|
20 #define CPSUIBARRINGOBS_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <mpsetbarringobs.h> |
|
24 #include "psuiconstants.h" |
|
25 |
|
26 // FORWARD DECLARATION |
|
27 class MPsetCallBarring; |
|
28 class CPsuiResourceLoader; |
|
29 class CPsuiContainer; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * CPsuiBarringObs class implements MPsetBarringObserver. |
|
35 * @lib psui.lib |
|
36 * @since 1.0 |
|
37 */ |
|
38 class CPsuiBarringObs : public CBase, |
|
39 public MPsetBarringObserver |
|
40 { |
|
41 public: // Constructor |
|
42 |
|
43 /** |
|
44 * Symbian OS two phased constructor. |
|
45 * |
|
46 * @param aContainer Reference to container object |
|
47 * @return Returns CPsuiBarringObs-pointer |
|
48 */ |
|
49 IMPORT_C static CPsuiBarringObs* NewL( CPsuiContainer& aContainer ); |
|
50 |
|
51 public: // Functions from base classes |
|
52 |
|
53 /** |
|
54 * From MPsetBarringObserver, handles barring mode changed notes. |
|
55 * |
|
56 * @param aType Type of barring program |
|
57 * @param aStatus Status of the barring program |
|
58 * @param aPlural Several barrings affected or not |
|
59 */ |
|
60 void HandleBarringModeChangedL( |
|
61 TBarringProgram aType, |
|
62 TBarringStatus aStatus, |
|
63 TBool aPlural ); |
|
64 |
|
65 /** |
|
66 * From MPsetBarringObserver, handles barring mode status notes. |
|
67 * |
|
68 * @param aBsc List of basic service groups |
|
69 * @param aStatus Status of the barring program |
|
70 */ |
|
71 void HandleBarringModeStatusL( TUint8 aBsc[KPSUIMaxBscNumber], |
|
72 TBarringStatus aStatus ); |
|
73 |
|
74 /** |
|
75 * From MPsetBarringObserver, handles errors for call barring requests. |
|
76 * |
|
77 * @param aReason Reason for error |
|
78 */ |
|
79 void HandleBarringErrorL( TInt aReason ); |
|
80 |
|
81 /** |
|
82 * From MPsetBarringObserver, handles requesting notes. |
|
83 * |
|
84 * @param aOngoing If ETrue, there is an active request |
|
85 * @param aInterrupted If ETrue, means that notemaster should be |
|
86 * immediately deleted. |
|
87 */ |
|
88 void HandleCBRequestingL( TBool aOngoing, |
|
89 TBool aInterrupted = EFalse ); |
|
90 |
|
91 /** |
|
92 * From MPsetBarringObserver, defines reference to requesting object. |
|
93 * |
|
94 * @param aBarringEngine Reference to the Phone Settings |
|
95 */ |
|
96 void SetEngineContact( MPsetCallBarring* aBarringEngine ); |
|
97 |
|
98 /** |
|
99 * From MPsetBarringObserver, handles notes relating to call barring |
|
100 * password change requests. |
|
101 * |
|
102 * @param aSuccess If ETrue, password change request was successful |
|
103 */ |
|
104 void CbPasswordChangedL( TBool aSuccess ); |
|
105 |
|
106 private: // new |
|
107 |
|
108 void SetContainer( CPsuiContainer& aContainer ); |
|
109 |
|
110 private: // member variables |
|
111 |
|
112 // Container object |
|
113 CPsuiContainer* iContainer; |
|
114 }; |
|
115 #endif //CPSUIBARRINGOBS_H |
|