Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.Content.MediaContent / Tizen.Content.MediaContent / ContentEventArgs.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
18
19 using System;
20
21 namespace Tizen.Content.MediaContent
22 {
23     /// <summary>
24     /// Event arguments passed when content is updated in the media database
25     /// </summary>
26     public class ContentUpdatedEventArgs : EventArgs
27     {
28         internal ContentUpdatedEventArgs(MediaContentError error, int pid, MediaContentUpdateItemType updateItem,
29             MediaContentDBUpdateType updateType, MediaContentType mediaType, string uuid, string filePath, string mimeType)
30         {
31             Error = error;
32             Pid = pid;
33             UpdateItem = updateItem;
34             UpdateType = updateType;
35             MediaType = mediaType;
36             Uuid = uuid;
37             FilePath = filePath;
38             MimeType = mimeType;
39         }
40         /// <summary>
41         /// The error code
42         /// </summary>
43         /// <since_tizen> 3 </since_tizen>
44         public MediaContentError Error
45         {
46             get;
47             internal set;
48         }
49
50         /// <summary>
51         /// The PID which publishes notification
52         /// </summary>
53         /// <since_tizen> 3 </since_tizen>
54         public int Pid
55         {
56             get; set;
57         }
58
59         /// <summary>
60         /// The update item of notification
61         /// </summary>
62         /// <since_tizen> 3 </since_tizen>
63         public MediaContentUpdateItemType UpdateItem
64         {
65             get; set;
66         }
67
68         /// <summary>
69         /// The update type of notification
70         /// </summary>
71         /// <since_tizen> 3 </since_tizen>
72         public MediaContentDBUpdateType UpdateType
73         {
74             get; set;
75         }
76
77         /// <summary>
78         /// The type of the media content
79         /// </summary>
80         /// <since_tizen> 3 </since_tizen>
81         public MediaContentType MediaType
82         {
83             get; set;
84         }
85
86         /// <summary>
87         /// The UUID of media or directory, which is updated
88         /// </summary>
89         /// <since_tizen> 3 </since_tizen>
90         public string Uuid
91         {
92             get; set;
93         }
94
95         /// <summary>
96         /// The path of the media or directory
97         /// </summary>
98         /// <since_tizen> 3 </since_tizen>
99         public string FilePath
100         {
101             get; set;
102         }
103
104         /// <summary>
105         /// The mime type of the media info
106         /// </summary>
107         /// <since_tizen> 3 </since_tizen>
108         public string MimeType
109         {
110             get; set;
111         }
112     }
113 }