[Telephony] Fix call notification numbering (#91)
[platform/core/csapi/tizenfx.git] / src / Tizen.Telephony / Tizen.Telephony / ChangeNotificationEventArgs.cs
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 using System;
18 namespace Tizen.Telephony
19 {
20     /// <summary>
21     /// This class contains the data related to the Notification event.
22     /// </summary>
23     /// <since_tizen> 3 </since_tizen>
24     public class ChangeNotificationEventArgs : EventArgs
25     {
26         internal ChangeNotificationEventArgs(Notification noti, object data)
27         {
28             NotificationType = noti;
29             NotificationData = data;
30         }
31
32         /// <summary>
33         /// Enumeration for the Telephony Notification.
34         /// </summary>
35         /// <since_tizen> 3 </since_tizen>
36         public enum Notification
37         {
38             /// <summary>
39             /// The notification to be invoked when the SIM card state changes.
40             /// SIM.State will be delivered in the notification data.
41             /// </summary>
42             /// <since_tizen> 3 </since_tizen>
43             /// <privilege>
44             /// http://tizen.org/privilege/telephony
45             /// </privilege>
46             SimStatus = 0x10,
47             /// <summary>
48             /// The notification to be invoked when the SIM call forwarding indicator state changes.
49             /// 'state(bool)' will be delivered in the notification data.
50             /// </summary>
51             /// <since_tizen> 3 </since_tizen>
52             /// <privilege>
53             /// http://tizen.org/privilege/telephony
54             /// </privilege>
55             SimCallForwardingIndicatorState,
56             /// <summary>
57             /// The notification to be invoked when the network service state changes.
58             /// Network.ServiceState will be delivered in the notification data.
59             /// </summary>
60             /// <since_tizen> 3 </since_tizen>
61             /// <privilege>
62             /// http://tizen.org/privilege/telephony
63             /// </privilege>
64             NetworkServiceState = 0x20,
65             /// <summary>
66             /// The notification to be invoked when the cell ID changes.
67             /// 'cell_id(int)' will be delivered in the notification data.
68             /// </summary>
69             /// <since_tizen> 3 </since_tizen>
70             /// <privilege>
71             /// http://tizen.org/privilege/location.coarse
72             /// </privilege>
73             NetworkCellid,
74             /// <summary>
75             /// The notification to be invoked when the roaming status changes.
76             /// 'roaming_status(bool)' will be delivered in the notification data.
77             /// </summary>
78             /// <since_tizen> 3 </since_tizen>
79             /// <privilege>
80             /// http://tizen.org/privilege/telephony
81             /// </privilege>
82             NetworkRoamingStatus,
83             /// <summary>
84             /// The notification to be invoked when the signal strength changes.
85             /// Network.Rssi will be delivered in the notification data.
86             /// </summary>
87             /// <since_tizen> 3 </since_tizen>
88             /// <privilege>
89             /// http://tizen.org/privilege/telephony
90             /// </privilege>
91             NetworkSignalstrengthLevel,
92             /// <summary>
93             /// The notification to be invoked when the network name changes.
94             /// 'network_name(string)' will be delivered in the notification data.
95             /// </summary>
96             /// <since_tizen> 3 </since_tizen>
97             /// <privilege>
98             /// http://tizen.org/privilege/telephony
99             /// </privilege>
100             NetworkNetworkName,
101             /// <summary>
102             /// The notification to be invoked when the PS type changes.
103             /// Network.PSType will be delivered in the notification data.
104             /// </summary>
105             /// <since_tizen> 3 </since_tizen>
106             /// <privilege>
107             /// http://tizen.org/privilege/telephony
108             /// </privilege>
109             NetworkPsType,
110             /// <summary>
111             /// The notification to be invoked when the default data subscription changes.
112             /// Network.DefaultDataSubscription will be delivered in the notification data.
113             /// </summary>
114             /// <since_tizen> 3 </since_tizen>
115             /// <privilege>
116             /// http://tizen.org/privilege/telephony
117             /// </privilege>
118             NetworkDefaultDataSubscription,
119             /// <summary>
120             /// The notification to be invoked when the default subscription changes.
121             /// Network.DefaultSubscription will be delivered in the notification data.
122             /// </summary>
123             /// <since_tizen> 3 </since_tizen>
124             /// <privilege>
125             /// http://tizen.org/privilege/telephony
126             /// </privilege>
127             NetworkDefaultSubscription,
128             /// <summary>
129             /// The notification to be invoked when the LAC (Location Area Code) changes.
130             /// 'lac(int)' will be delivered in the notification data.
131             /// </summary>
132             /// <since_tizen> 3 </since_tizen>
133             /// <privilege>
134             /// http://tizen.org/privilege/location.coarse
135             /// </privilege>
136             NetworkLac,
137             /// <summary>
138             /// The notification to be invoked when the TAC (Tracking Area Code) changes.
139             /// 'tac(int)' will be delivered in the notification data.
140             /// </summary>
141             /// <since_tizen> 3 </since_tizen>
142             /// <privilege>
143             /// http://tizen.org/privilege/location.coarse
144             /// </privilege>
145             NetworkTac,
146             /// <summary>
147             /// The notification to be invoked when the system ID changes.
148             /// 'sid(int)' will be delivered in the notification data.
149             /// </summary>
150             /// <since_tizen> 3 </since_tizen>
151             /// <privilege>
152             /// http://tizen.org/privilege/location.coarse
153             /// </privilege>
154             NetworkSystemId,
155             /// <summary>
156             /// The notification to be invoked when the network ID changes.
157             /// 'nid(int)' will be delivered in the notification data.
158             /// </summary>
159             /// <since_tizen> 3 </since_tizen>
160             /// <privilege>
161             /// http://tizen.org/privilege/location.coarse
162             /// </privilege>
163             NetworkId,
164             /// <summary>
165             /// The notification to be invoked when the base station ID changes.
166             /// 'id(int)' will be delivered in the notification data.
167             /// </summary>
168             /// <since_tizen> 3 </since_tizen>
169             /// <privilege>
170             /// http://tizen.org/privilege/location.coarse
171             /// </privilege>
172             NetworkBsId,
173             /// <summary>
174             /// The notification to be invoked when the base station latitude changes.
175             /// 'latitude(int)' will be delivered in the notification data.
176             /// </summary>
177             /// <since_tizen> 3 </since_tizen>
178             /// <privilege>
179             /// http://tizen.org/privilege/location.coarse
180             /// </privilege>
181             NetworkBsLatitude,
182             /// <summary>
183             /// The notification to be invoked when the base station longitude changes.
184             /// 'longitue(int)' will be delivered in the notification data.
185             /// </summary>
186             /// <since_tizen> 3 </since_tizen>
187             /// <privilege>
188             /// http://tizen.org/privilege/location.coarse
189             /// </privilege>
190             NetworkBsLongitude,
191             /// <summary>
192             /// The notification to be invoked when a voice call is in the idle status.
193             /// 'handle id(uint)' will be delivered in the notification data.
194             /// </summary>
195             /// <since_tizen> 3 </since_tizen>
196             /// <privilege>
197             /// http://tizen.org/privilege/telephony
198             /// </privilege>
199             VoiceCallStatusIdle = 0x32,
200             /// <summary>
201             /// The notification to be invoked when a voice call is in the active status.
202             /// 'handle id(uint)' will be delivered in the notification data.
203             /// </summary>
204             /// <since_tizen> 3 </since_tizen>
205             /// <privilege>
206             /// http://tizen.org/privilege/telephony
207             /// </privilege>
208             VoiceCallStatusActive,
209             /// <summary>
210             /// The notification to be invoked when a voice call is in the held status.
211             /// 'handle id(uint)' will be delivered in the notification data.
212             /// </summary>
213             /// <since_tizen> 3 </since_tizen>
214             /// <privilege>
215             /// http://tizen.org/privilege/telephony
216             /// </privilege>
217             VoiceCallStatusHeld,
218             /// <summary>
219             /// The notification to be invoked when a voice call is in the dialing status.
220             /// 'handle id(uint)' will be delivered in the notification data.
221             /// </summary>
222             /// <since_tizen> 3 </since_tizen>
223             /// <privilege>
224             /// http://tizen.org/privilege/telephony
225             /// </privilege>
226             VoiceCallStatusDialing,
227             /// <summary>
228             /// The notification to be invoked when a voice call is in the alerting status.
229             /// 'handle id(uint)' will be delivered in the notification data.
230             /// </summary>
231             /// <since_tizen> 3 </since_tizen>
232             /// <privilege>
233             /// http://tizen.org/privilege/telephony
234             /// </privilege>
235             VoiceCallStatusAlerting,
236             /// <summary>
237             /// The notification to be invoked when a voice call is in the incoming status.
238             /// 'handle id(uint)' will be delivered in the notification data.
239             /// </summary>
240             /// <since_tizen> 3 </since_tizen>
241             /// <privilege>
242             /// http://tizen.org/privilege/telephony
243             /// </privilege>
244             VoiceCallStatusIncoming,
245             /// <summary>
246             /// The notification to be invoked when a video call is in the idle status.
247             /// 'handle id(uint)' will be delivered in the notification data.
248             /// </summary>
249             /// <since_tizen> 3 </since_tizen>
250             /// <privilege>
251             /// http://tizen.org/privilege/telephony
252             /// </privilege>
253             VideoCallStatusIdle,
254             /// <summary>
255             /// The notification to be invoked when a video call is in the active status.
256             /// 'handle id(uint)' will be delivered in the notification data.
257             /// </summary>
258             /// <since_tizen> 3 </since_tizen>
259             /// <privilege>
260             /// http://tizen.org/privilege/telephony
261             /// </privilege>
262             VideoCallStatusActive,
263             /// <summary>
264             /// The notification to be invoked when a video call is in the dialing status.
265             /// 'handle id(uint)' will be delivered in the notification data.
266             /// </summary>
267             /// <since_tizen> 3 </since_tizen>
268             /// <privilege>
269             /// http://tizen.org/privilege/telephony
270             /// </privilege>
271             VideoCallStatusDialing,
272             /// <summary>
273             /// The notification to be invoked when a video call is in the alerting status.
274             /// 'handle id(uint)' will be delivered in the notification data.
275             /// </summary>
276             /// <since_tizen> 3 </since_tizen>
277             /// <privilege>
278             /// http://tizen.org/privilege/telephony
279             /// </privilege>
280             VideoCallStatusAlerting,
281             /// <summary>
282             /// The notification to be invoked when a video call is in the incoming status.
283             /// 'handle id(uint)' will be delivered in the notification data.
284             /// </summary>
285             /// <since_tizen> 3 </since_tizen>
286             /// <privilege>
287             /// http://tizen.org/privilege/telephony
288             /// </privilege>
289             VideoCallStatusIncoming,
290             /// <summary>
291             /// The notification to be invoked when the preferred voice subscription changes.
292             /// CallPreferredVoiceSubscription will be delivered in the notification data.
293             /// </summary>
294             /// <since_tizen> 3 </since_tizen>
295             /// <privilege>
296             /// http://tizen.org/privilege/telephony
297             /// </privilege>
298             CallPreferredVoiceSubscription
299         };
300
301         /// <summary>
302         /// The Telephony Notification type.
303         /// </summary>
304         /// <since_tizen> 3 </since_tizen>
305         public Notification NotificationType
306         {
307             get;
308             internal set;
309         }
310
311         /// <summary>
312         /// The data as per the Notification type.
313         /// </summary>
314         /// <since_tizen> 3 </since_tizen>
315         public object NotificationData
316         {
317             get;
318             internal set;
319         }
320     }
321 }