Add check box for notification (#5342)
[platform/core/csapi/tizenfx.git] / src / Tizen.Applications.NotificationEventListener / Tizen.Applications.NotificationEventListener / NotificationEventArgsEnumerations.cs
1 /*
2  * Copyright (c) 2017 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 namespace Tizen.Applications.NotificationEventListener
18 {
19     using System;
20     using System.ComponentModel;
21
22     /// <summary>
23     /// Enumeration for the progress category.
24     /// </summary>
25     /// <since_tizen> 4 </since_tizen>
26     public enum ProgressCategory
27     {
28         /// <summary>
29         /// Value for the percent type.
30         /// </summary>
31         Percent,
32
33         /// <summary>
34         /// Value for the time type.
35         /// </summary>
36         Time,
37
38         /// <summary>
39         /// Value for the pending type, which is not the updated progress current value.
40         /// </summary>
41         PendingBar
42     }
43
44     /// <summary>
45     /// Enumeration for the accessory option.
46     /// </summary>
47     /// <since_tizen> 4 </since_tizen>
48     public enum AccessoryOption
49     {
50         /// <summary>
51         /// Value for off accessory option.
52         /// </summary>
53         Off = -1,
54
55         /// <summary>
56         /// Value for on accessory option.
57         /// </summary>
58         On,
59
60         /// <summary>
61         /// Value for the custom accessory option.
62         /// </summary>
63         Custom
64     }
65
66     /// <summary>
67     /// Enumeration for the button index.
68     /// </summary>
69     /// <since_tizen> 4 </since_tizen>
70     public enum ButtonIndex
71     {
72         /// <summary>
73         /// Value for the default button index.
74         /// </summary>
75         None = -1,
76
77         /// <summary>
78         /// Value for the first button index.
79         /// </summary>
80         First,
81
82         /// <summary>
83         /// Value for the second button index.
84         /// </summary>
85         Second,
86
87         /// <summary>
88         /// Value for the third button index.
89         /// </summary>
90         Third
91     }
92
93     /// <summary>
94     /// Enumeration for the notification particular property.
95     /// </summary>
96     /// <since_tizen> 4 </since_tizen>
97     [Flags]
98     public enum NotificationProperty
99     {
100         /// <summary>
101         /// Value for the adjust nothing.
102         /// </summary>
103         None = 0x00,
104
105         /// <summary>
106         /// Value for display only when SIM card inserted.
107         /// </summary>
108         DisplayOnlySimMode = 0x01,
109
110         /// <summary>
111         /// Value for disable application launch when it is selected.
112         /// </summary>
113         DisableAppLaunch = 0x02,
114
115         /// <summary>
116         /// Value for disable auto delete when it is selected.
117         /// </summary>
118         DisableAutoDelete = 0x04,
119
120         /// <summary>
121         /// Value for deleted when device is rebooted even though notification is not set OngoingType.
122         /// </summary>
123         VolatileDisplay = 0x100,
124     }
125
126     /// <summary>
127     /// Enumeration for event type on notification.
128     /// </summary>
129     /// <since_tizen> 4 </since_tizen>
130     [EditorBrowsable(EditorBrowsableState.Never)]
131     public enum UserEventType
132     {
133         /// <summary>
134         /// Event type : Click on button 1.
135         /// </summary>
136         ClickOnButton1 = 0,
137
138         /// <summary>
139         /// Event type : Click on button 2.
140         /// </summary>
141         ClickOnButton2,
142
143         /// <summary>
144         /// Event type : Click on button 3.
145         /// </summary>
146         ClickOnButton3,
147
148         /// <summary>
149         /// Event type : Click on text_input button.
150         /// </summary>
151         ClickOnReplyButton = 8,
152
153         /// <summary>
154         /// Event type : Hidden by user.
155         /// </summary>
156         HiddenByUser = 100,
157
158         /// <summary>
159         /// Event type : Deleted by timer.
160         /// </summary>
161         HiddenByTimeout = 101,
162
163         /// <summary>
164         /// Event type : Deleted by timer.
165         /// </summary>
166         HiddenByExternal = 102,
167
168         /// <summary>
169         /// Event type : Clicked by user.
170         /// </summary>
171         ClickOnNotification = 200,
172
173         /// <summary>
174         /// Event type : Deleted by user.
175         /// </summary>
176         DeleteNotification = 201,
177
178         /// <summary>
179         /// Event type : Do not show again checked by user.
180         /// </summary>
181         CheckBox = 300,
182     }
183
184     /// <summary>
185     /// Enumeration for notification type.
186     /// </summary>
187     internal enum NotificationType
188     {
189         /// <summary>
190         /// Type none.
191         /// </summary>
192         None = -1,
193
194         /// <summary>
195         /// Notification type.
196         /// </summary>
197         Notification = 0,
198
199         /// <summary>
200         /// Ongoing type.
201         /// </summary>
202         Ongoing,
203     }
204
205     /// <summary>
206     /// Enumeration for notification text type.
207     /// </summary>
208     internal enum NotificationText
209     {
210         /// <summary>
211         /// Title.
212         /// </summary>
213         Title = 0,
214
215         /// <summary>
216         /// Content.
217         /// </summary>
218         Content,
219
220         /// <summary>
221         /// Text to display the event count.
222         /// </summary>
223         EventCount = 3,
224
225         /// <summary>
226         /// Box contents 1.
227         /// </summary>
228         FirstMainText,
229
230         /// <summary>
231         /// Box contents 1-1.
232         /// </summary>
233         FirstSubText,
234
235         /// <summary>
236         /// Box contents 2.
237         /// </summary>
238         SecondMainText,
239
240         /// <summary>
241         /// Box contents 2-1.
242         /// </summary>
243         SecondSubText,
244
245         /// <summary>
246         /// Text on button 1.
247         /// </summary>
248         FirstButton = 13,
249
250         /// <summary>
251         /// Text on button 2.
252         /// </summary>
253         SecondButton,
254
255         /// <summary>
256         /// Text on button 3.
257         /// </summary>
258         ThirdButton,
259
260         /// <summary>
261         /// Guide text on the message reply box.
262         /// </summary>
263         PlaceHolder = 19,
264
265         /// <summary>
266         /// Text on button on the message reply box.
267         /// </summary>
268         InputButton = 20,
269     }
270
271     /// <summary>
272     /// Enumeration for the image type.
273     /// </summary>
274     internal enum NotificationImage
275     {
276         /// <summary>
277         /// Icon.
278         /// </summary>
279         Icon = 0,
280
281         /// <summary>
282         /// Indicator icon.
283         /// </summary>
284         Indicator,
285
286         /// <summary>
287         ///  Lock screen icon.
288         /// </summary>
289         Lockscreen,
290
291         /// <summary>
292         /// Thumbnail.
293         /// </summary>
294         Thumbnail,
295
296         /// <summary>
297         /// Lock screen thumbnail.
298         /// </summary>
299         ThumbnailLockscreen,
300
301         /// <summary>
302         /// Icon.
303         /// </summary>
304         SubIcon,
305
306         /// <summary>
307         /// Image displayed on background.
308         /// </summary>
309         Background,
310
311         /// <summary>
312         /// Image for button 1.
313         /// </summary>
314         Button_1 = 12,
315
316         /// <summary>
317         /// Image for button 2.
318         /// </summary>
319         Button_2,
320
321         /// <summary>
322         /// Image for button 3.
323         /// </summary>
324         Button_3,
325
326         /// <summary>
327         /// Image for message reply.
328         /// </summary>
329         TextInputButton = 18,
330     }
331
332     /// <summary>
333     /// Enumeration for notification layout type.
334     /// </summary>
335     internal enum NotificationLayout
336     {
337         /// <summary>
338         /// Default.
339         /// </summary>
340         None = 0,
341
342         /// <summary>
343         /// Layout for notification. Used to inform single event.
344         /// </summary>
345         SingleEvent = 1,
346
347         /// <summary>
348         /// Layout for notification. Used to display images.
349         /// </summary>
350         Thumbnail = 3,
351
352         /// <summary>
353         /// Layout for ongoing notification. Used to display text message.
354         /// </summary>
355         OngoingEvent = 4,
356
357         /// <summary>
358         /// Layout for ongoing notification. Used to display progress.
359         /// </summary>
360         OngoingProgress = 5,
361     }
362
363     /// <summary>
364     /// Enumeration for notification launch option type.
365     /// </summary>
366     internal enum LaunchOption
367     {
368         /// <summary>
369         /// Launching with application control.
370         /// </summary>
371         AppControl = 1
372     }
373
374     /// <summary>
375     /// Enumeration for notification operation data code.
376     /// </summary>
377     internal enum NotificationOperationDataType
378     {
379         /// <summary>
380         /// Default.
381         /// </summary>
382         Min = 0,
383
384         /// <summary>
385         /// Operation type.
386         /// </summary>
387         Type,
388
389         /// <summary>
390         /// Private ID.
391         /// </summary>
392         UniqueNumber,
393
394         /// <summary>
395         /// Notification handler.
396         /// </summary>
397         Notification,
398
399         /// <summary>
400         /// Reserved.
401         /// </summary>
402         ExtraInformation1,
403
404         /// <summary>
405         /// Reserved.
406         /// </summary>
407         ExtraInformation2,
408     }
409
410     /// <summary>
411     /// Enumeration for notification operation code.
412     /// </summary>
413     internal enum NotificationOperationType
414     {
415         /// <summary>
416         /// Default.
417         /// </summary>
418         None = 0,
419
420         /// <summary>
421         /// Notification inserted.
422         /// </summary>
423         Insert,
424
425         /// <summary>
426         /// Notification updated.
427         /// </summary>
428         Update,
429
430         /// <summary>
431         /// Notification deleted.
432         /// </summary>
433         Delete,
434     }
435
436     /// <summary>
437     /// Enumeration for event type on notification.
438     /// </summary>
439     internal enum ClickEventType
440     {
441         /// <summary>
442         /// Event type : Click on button 1.
443         /// </summary>
444         FirstButton = 0,
445
446         /// <summary>
447         /// Event type : Click on button 2.
448         /// </summary>
449         SecondButton = 1,
450
451         /// <summary>
452         /// Event type : Click on button 3.
453         /// </summary>
454         ThirdButton = 2,
455
456         /// <summary>
457         /// Event type : Click on icon.
458         /// </summary>
459         Icon = 6,
460
461         /// <summary>
462         /// Event type : Click on thumbnail.
463         /// </summary>
464         Thumbnail = 7,
465
466         /// <summary>
467         /// Event type : Click on text_input button.
468         /// </summary>
469         InputButton = 8,
470     }
471
472     /// <summary>
473     /// Enumeration for display application list.
474     /// </summary>
475     [Flags]
476     internal enum NotificationDisplayApplist
477     {
478         /// <summary>
479         /// Notification Tray(Quickpanel).
480         /// </summary>
481         Tray = 0x00000001,
482
483         /// <summary>
484         /// Ticker notification.
485         /// </summary>
486         Ticker = 0x00000002,
487
488         /// <summary>
489         /// Lock screen.
490         /// </summary>
491         Lock = 0x00000004,
492
493         /// <summary>
494         /// Indicator.
495         /// </summary>
496         Indicator = 0x00000008,
497
498         /// <summary>
499         /// Active notification.
500         /// </summary>
501         Active = 0x00000010,
502
503         /// <summary>
504         /// All display application except active notification.
505         /// </summary>
506         All = 0x0000000f,
507     }
508 }