Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.Tapi / Tizen.Tapi / TapiEventArgs.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
19 namespace Tizen.Tapi
20 {
21     /// <summary>
22     /// An extended EventArgs class which contains changed tapi state.
23     /// </summary>
24     public class StateChangedEventArgs : EventArgs
25     {
26         private int _state;
27
28         internal StateChangedEventArgs(int state)
29         {
30             _state = state;
31         }
32
33         /// <summary>
34         /// Tapi ready state.
35         /// </summary>
36         public int State
37         {
38             get
39             {
40                 return _state;
41             }
42         }
43     }
44
45     /// <summary>
46     /// An extended EventArgs class which contains changed TAPI notification.
47     /// </summary>
48     public class NotificationChangedEventArgs : EventArgs
49     {
50         private Notification _id;
51         private object _data;
52
53         internal NotificationChangedEventArgs(Notification id, object data)
54         {
55             _id = id;
56             _data = data;
57         }
58
59         /// <summary>
60         /// Notification Id.
61         /// </summary>
62         public Notification Id
63         {
64             get
65             {
66                 return _id;
67             }
68         }
69
70         /// <summary>
71         /// Notification data.
72         /// </summary>
73         public object Data
74         {
75             get
76             {
77                 return _data;
78             }
79         }
80     }
81
82     /// <summary>
83     /// An extended EventArgs class which contains changed TAPI property.
84     /// </summary>
85     public class PropertyChangedEventArgs : EventArgs
86     {
87         private Property _property;
88         private object _data;
89
90         internal PropertyChangedEventArgs(Property property, object data)
91         {
92             _property = property;
93             _data = data;
94         }
95
96         /// <summary>
97         /// Property definition type.
98         /// </summary>
99         public Property Property
100         {
101             get
102             {
103                 return _property;
104             }
105         }
106
107         /// <summary>
108         /// Property data.
109         /// </summary>
110         public object Data
111         {
112             get
113             {
114                 return _data;
115             }
116         }
117     }
118 }