Release 4.0.0-preview1-00051
[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     public class ChangeNotificationEventArgs : EventArgs
24     {
25         internal ChangeNotificationEventArgs(Notification noti, object data)
26         {
27             NotificationType = noti;
28             NotificationData = data;
29         }
30
31         /// <summary>
32         /// Enumeration for Telephony notification.
33         /// </summary>
34         public enum Notification
35         {
36             /// <summary>
37             /// Notification to be invoked when the SIM card state changes.
38             /// SIM.State will be delivered in notification data.
39             /// </summary>
40             /// <since_tizen> 3 </since_tizen>
41             /// <privilege>
42             /// http://tizen.org/privilege/telephony
43             /// </privilege>
44             SimStatus = 0x10,
45             /// <summary>
46             /// Notification to be invoked when the SIM call forwarding indicator state changes.
47             /// 'state(bool)' will be delivered in notification data.
48             /// </summary>
49             /// <since_tizen> 3 </since_tizen>
50             /// <privilege>
51             /// http://tizen.org/privilege/telephony
52             /// </privilege>
53             SimCallForwardingIndicatorState,
54             /// <summary>
55             /// Notification to be invoked when the network service state changes.
56             /// Network.ServiceState will be delivered in notification data.
57             /// </summary>
58             /// <since_tizen> 3 </since_tizen>
59             /// <privilege>
60             /// http://tizen.org/privilege/telephony
61             /// </privilege>
62             NetworkServiceState = 0x20,
63             /// <summary>
64             /// Notification to be invoked when the cell ID changes.
65             /// 'cell_id(int)' will be delivered in notification data.
66             /// </summary>
67             /// <since_tizen> 3 </since_tizen>
68             /// <privilege>
69             /// http://tizen.org/privilege/location.coarse
70             /// </privilege>
71             NetworkCellid,
72             /// <summary>
73             /// Notification to be invoked when the roaming status changes.
74             /// 'roaming_status(bool)' will be delivered in notification data.
75             /// </summary>
76             /// <since_tizen> 3 </since_tizen>
77             /// <privilege>
78             /// http://tizen.org/privilege/telephony
79             /// </privilege>
80             NetworkRoamingStatus,
81             /// <summary>
82             /// Notification to be invoked when the signal strength changes.
83             /// Network.Rssi will be delivered in notification data.
84             /// </summary>
85             /// <since_tizen> 3 </since_tizen>
86             /// <privilege>
87             /// http://tizen.org/privilege/telephony
88             /// </privilege>
89             NetworkSignalstrengthLevel,
90             /// <summary>
91             /// Notification to be invoked when the network name changes.
92             /// 'network_name(string)' will be delivered in notification data.
93             /// </summary>
94             /// <since_tizen> 3 </since_tizen>
95             /// <privilege>
96             /// http://tizen.org/privilege/telephony
97             /// </privilege>
98             NetworkNetworkName,
99             /// <summary>
100             /// Notification to be invoked when the ps type changes.
101             /// Network.PSType will be delivered in notification data.
102             /// </summary>
103             /// <since_tizen> 3 </since_tizen>
104             /// <privilege>
105             /// http://tizen.org/privilege/telephony
106             /// </privilege>
107             NetworkPsType,
108             /// <summary>
109             /// Notification to be invoked when the default data subscription changes.
110             /// Network.DefaultDataSubscription will be delivered in notification data.
111             /// </summary>
112             /// <since_tizen> 3 </since_tizen>
113             /// <privilege>
114             /// http://tizen.org/privilege/telephony
115             /// </privilege>
116             NetworkDefaultDataSubscription,
117             /// <summary>
118             /// Notification to be invoked when the default subscription changes.
119             /// Network.DefaultSubscription will be delivered in notification data.
120             /// </summary>
121             /// <since_tizen> 3 </since_tizen>
122             /// <privilege>
123             /// http://tizen.org/privilege/telephony
124             /// </privilege>
125             NetworkDefaultSubscription,
126             /// <summary>
127             /// Notification to be invoked when the LAC (Location Area Code) changes.
128             /// 'lac(int)' will be delivered in notification data.
129             /// </summary>
130             /// <since_tizen> 3 </since_tizen>
131             /// <privilege>
132             /// http://tizen.org/privilege/location.coarse
133             /// </privilege>
134             NetworkLac,
135             /// <summary>
136             /// Notification to be invoked when the TAC (Tracking Area Code) changes.
137             /// 'tac(int)' will be delivered in notification data.
138             /// </summary>
139             /// <since_tizen> 3 </since_tizen>
140             /// <privilege>
141             /// http://tizen.org/privilege/location.coarse
142             /// </privilege>
143             NetworkTac,
144             /// <summary>
145             /// Notification to be invoked when the system ID changes.
146             /// 'sid(int)' will be delivered in notification data.
147             /// </summary>
148             /// <since_tizen> 3 </since_tizen>
149             /// <privilege>
150             /// http://tizen.org/privilege/location.coarse
151             /// </privilege>
152             NetworkSystemId,
153             /// <summary>
154             /// Notification to be invoked when the network ID changes.
155             /// 'nid(int)' will be delivered in notification data.
156             /// </summary>
157             /// <since_tizen> 3 </since_tizen>
158             /// <privilege>
159             /// http://tizen.org/privilege/location.coarse
160             /// </privilege>
161             NetworkId,
162             /// <summary>
163             /// Notification to be invoked when the base station ID changes.
164             /// 'id(int)' will be delivered in notification data.
165             /// </summary>
166             /// <since_tizen> 3 </since_tizen>
167             /// <privilege>
168             /// http://tizen.org/privilege/location.coarse
169             /// </privilege>
170             NetworkBsId,
171             /// <summary>
172             /// Notification to be invoked when the base station latitude changes.
173             /// 'latitude(int)' will be delivered in notification data.
174             /// </summary>
175             /// <since_tizen> 3 </since_tizen>
176             /// <privilege>
177             /// http://tizen.org/privilege/location.coarse
178             /// </privilege>
179             NetworkBsLatitude,
180             /// <summary>
181             /// Notification to be invoked when the base station longitude changes.
182             /// 'longitue(int)' will be delivered in notification data.
183             /// </summary>
184             /// <since_tizen> 3 </since_tizen>
185             /// <privilege>
186             /// http://tizen.org/privilege/location.coarse
187             /// </privilege>
188             NetworkBsLongitude,
189             /// <summary>
190             /// Notification to be invoked when a voice call is in idle status.
191             /// 'handle id(uint)' will be delivered in notification data.
192             /// </summary>
193             /// <since_tizen> 3 </since_tizen>
194             /// <privilege>
195             /// http://tizen.org/privilege/telephony
196             /// </privilege>
197             VoiceCallStatusIdle,
198             /// <summary>
199             /// Notification to be invoked when a voice call is in active status.
200             /// 'handle id(uint)' will be delivered in notification data.
201             /// </summary>
202             /// <since_tizen> 3 </since_tizen>
203             /// <privilege>
204             /// http://tizen.org/privilege/telephony
205             /// </privilege>
206             VoiceCallStatusActive,
207             /// <summary>
208             /// Notification to be invoked when a voice call is in held status.
209             /// 'handle id(uint)' will be delivered in notification data.
210             /// </summary>
211             /// <since_tizen> 3 </since_tizen>
212             /// <privilege>
213             /// http://tizen.org/privilege/telephony
214             /// </privilege>
215             VoiceCallStatusHeld,
216             /// <summary>
217             /// Notification to be invoked when a voice call is in dialing status.
218             /// 'handle id(uint)' will be delivered in notification data.
219             /// </summary>
220             /// <since_tizen> 3 </since_tizen>
221             /// <privilege>
222             /// http://tizen.org/privilege/telephony
223             /// </privilege>
224             VoiceCallStatusDialing,
225             /// <summary>
226             /// Notification to be invoked when a voice call is in alertingstatus.
227             /// 'handle id(uint)' will be delivered in notification data.
228             /// </summary>
229             /// <since_tizen> 3 </since_tizen>
230             /// <privilege>
231             /// http://tizen.org/privilege/telephony
232             /// </privilege>
233             VoiceCallStatusAlerting,
234             /// <summary>
235             /// Notification to be invoked when a voice call is in incoming status.
236             /// 'handle id(uint)' will be delivered in notification data.
237             /// </summary>
238             /// <since_tizen> 3 </since_tizen>
239             /// <privilege>
240             /// http://tizen.org/privilege/telephony
241             /// </privilege>
242             VoiceCallStatusIncoming,
243             /// <summary>
244             /// Notification to be invoked when a video call is in idle status.
245             /// 'handle id(uint)' will be delivered in notification data.
246             /// </summary>
247             /// <since_tizen> 3 </since_tizen>
248             /// <privilege>
249             /// http://tizen.org/privilege/telephony
250             /// </privilege>
251             VideoCallStatusIdle,
252             /// <summary>
253             /// Notification to be invoked when a video call is in active status.
254             /// 'handle id(uint)' will be delivered in notification data.
255             /// </summary>
256             /// <since_tizen> 3 </since_tizen>
257             /// <privilege>
258             /// http://tizen.org/privilege/telephony
259             /// </privilege>
260             VideoCallStatusActive,
261             /// <summary>
262             /// Notification to be invoked when a video call is in dialing status.
263             /// 'handle id(uint)' will be delivered in notification data.
264             /// </summary>
265             /// <since_tizen> 3 </since_tizen>
266             /// <privilege>
267             /// http://tizen.org/privilege/telephony
268             /// </privilege>
269             VideoCallStatusDialing,
270             /// <summary>
271             /// Notification to be invoked when a video call is in alerting status.
272             /// 'handle id(uint)' will be delivered in notification data
273             /// </summary>
274             /// <since_tizen> 3 </since_tizen>
275             /// <privilege>
276             /// http://tizen.org/privilege/telephony
277             /// </privilege>
278             VideoCallStatusAlerting,
279             /// <summary>
280             /// Notification to be invoked when a video call is in incoming status.
281             /// 'handle id(uint)' will be delivered in notification data
282             /// </summary>
283             /// <since_tizen> 3 </since_tizen>
284             /// <privilege>
285             /// http://tizen.org/privilege/telephony
286             /// </privilege>
287             VideoCallStatusIncoming,
288             /// <summary>
289             /// Notification to be invoked when the preferred voice subscription changes.
290             /// CallPreferredVoiceSubscription will be delivered in notification data
291             /// </summary>
292             /// <since_tizen> 3 </since_tizen>
293             /// <privilege>
294             /// http://tizen.org/privilege/telephony
295             /// </privilege>
296             CallPreferredVoiceSubscription
297         };
298
299         /// <summary>
300         /// Telephony notification type
301         /// </summary>
302         /// <since_tizen> 3 </since_tizen>
303         public Notification NotificationType
304         {
305             get;
306             internal set;
307         }
308
309         /// <summary>
310         /// Data as per the Notification type
311         /// </summary>
312         /// <since_tizen> 3 </since_tizen>
313         public object NotificationData
314         {
315             get;
316             internal set;
317         }
318     }
319 }