|
1 /* |
|
2 * Copyright (c) 2006 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: CCP supplementary services (ss) observer. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MCCPSSOBSERVER_H |
|
20 #define MCCPSSOBSERVER_H |
|
21 |
|
22 #include <e32std.h> |
|
23 |
|
24 |
|
25 /** |
|
26 * TODO list: |
|
27 * Call waiting service status, should be available via phone settings UI. |
|
28 * DnD status |
|
29 */ |
|
30 |
|
31 /** |
|
32 * Supplementary services observer. |
|
33 * |
|
34 * @since S60 v3.2 |
|
35 */ |
|
36 |
|
37 class MCCPSsObserver |
|
38 { |
|
39 public: |
|
40 |
|
41 /** Barring related event.*/ |
|
42 enum TCCPSsBarringEvent |
|
43 { |
|
44 /** Incoming call is barred. (DoCoMo) */ |
|
45 ECCPSsIncomingCallBarred, |
|
46 /** Anonymous call barring. */ |
|
47 ECCPSsAnonymousCallBarred, |
|
48 /** Outgoing call barring */ |
|
49 ECCPSsOutgoingCallBarred, |
|
50 /** Barring active notification. */ |
|
51 ECCPSsActiveBarrings |
|
52 }; |
|
53 |
|
54 /** CLI (Call Line Information) related event. */ |
|
55 enum TCCPSsCLIEvent |
|
56 { |
|
57 /** Temporary CLIR suppression was unsuccessful */ |
|
58 ECCPSsTempClirSuppressUnsuccessful, |
|
59 /** Temporary CLIR activation was unsuccessful*/ |
|
60 ECCPSsTempClirActivationUnsuccessful |
|
61 }; |
|
62 |
|
63 /** Call forward related events that are not call related to an existing call. */ |
|
64 enum TCCPSsCallForwardEvent |
|
65 { |
|
66 /** Incoming call is forwarded */ |
|
67 ECCPSsIncCallIsForw, |
|
68 /** Incoming call was forwarded because of user own settings. */ |
|
69 ECCPSsIncCallForwToC, |
|
70 /** Outgoing call was forwarded because of user own settings. */ |
|
71 ECCPSsOutCallForwToC, |
|
72 /** Forward unconditional mode active */ |
|
73 ECCPSsForwardUnconditionalModeActive, |
|
74 /** Forward unconditional mode deactive */ |
|
75 ECCPSsForwardUnconditionalModeNotActive, |
|
76 /** Forward conditional mode active */ |
|
77 ECCPSsForwardConditionallyModeActive, |
|
78 /** Forward conditional mode deactive */ |
|
79 ECCPSsForwardConditionallyModeNotActive, |
|
80 /** Remote call waiting. TODO rename TCCPSsCallForwardEvent to TCCPSsCallEvent*/ |
|
81 ESsCallWaiting |
|
82 }; |
|
83 |
|
84 |
|
85 /** Closed user group (Cug) 08052007 added */ |
|
86 enum TCCPSsCugEvent |
|
87 { |
|
88 ECCPSsShowIncCallGroupIndex, |
|
89 ECCPSsRejectedCause |
|
90 }; |
|
91 |
|
92 public: |
|
93 |
|
94 /** |
|
95 * Supplementary service call barring event occurred. |
|
96 * @param aBarringEvent Event that occurred. |
|
97 * @return none |
|
98 * @since S60 v3.2 |
|
99 */ |
|
100 virtual void BarringEventOccurred( const MCCPSsObserver::TCCPSsBarringEvent aBarringEvent ) = 0; |
|
101 |
|
102 /** |
|
103 * Supplementary service call line identification event occurred. |
|
104 * @param aCallLineEvent Event that occurred. |
|
105 * @return none |
|
106 * @since S60 v3.2 |
|
107 */ |
|
108 virtual void CLIEventOccurred( const MCCPSsObserver::TCCPSsCLIEvent aCallLineEvent ) = 0; |
|
109 |
|
110 /** |
|
111 * Supplementary service related call forward event occurred. |
|
112 * @param aCallForwardEvent Event that occurred. |
|
113 * @param aRemoteAddress Remote address. |
|
114 * @return none |
|
115 * @since S60 v3.2 |
|
116 */ |
|
117 virtual void CallForwardEventOccurred( |
|
118 const MCCPSsObserver::TCCPSsCallForwardEvent aCallForwardEvent, |
|
119 const TDesC& aRemoteAddress ) = 0; |
|
120 |
|
121 /** |
|
122 * Supplementary service related active closed user group indications. |
|
123 * @param aCugEvent Event that occurred. |
|
124 * @return none |
|
125 * @since S60 v3.2 |
|
126 */ |
|
127 virtual void CallCugEventOccurred( const MCCPSsObserver::TCCPSsCugEvent aCugEvent ) = 0; |
|
128 |
|
129 /** |
|
130 * Notifies active ALS line. CS plugin must notify this every time line changes |
|
131 * and at startup. |
|
132 * @param aLine Used ALS line. |
|
133 * @return none |
|
134 * @since S60 v3.2 |
|
135 */ |
|
136 virtual void NotifyCurrentActiveALSLine( TInt aLine ) = 0; |
|
137 }; |
|
138 |
|
139 |
|
140 #endif // MCCPSSOBSERVER_H |