Release 4.0.0-preview1-00332
[platform/core/csapi/tizenfx.git] / src / Tizen.Content.MediaContent / Tizen.Content.MediaContent / EventArgs.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.Content.MediaContent
20 {
21
22     /// <summary>
23     /// Provides data for the <see cref="MediaDatabase.MediaInfoUpdated"/> event.
24     /// </summary>
25     public class MediaInfoUpdatedEventArgs : EventArgs
26     {
27         internal MediaInfoUpdatedEventArgs(int pid,
28             OperationType operationType, MediaType mediaType, string id, string path, string mimeType)
29         {
30             ProcessId = pid;
31             OperationType = operationType;
32             Id = id;
33             Path = path;
34
35             MediaType = mediaType;
36             MimeType = mimeType;
37         }
38
39         /// <summary>
40         /// Gets the process ID which triggers the event.
41         /// </summary>
42         /// <value>The process ID which triggers the event.</value>
43         public int ProcessId
44         {
45             get;
46         }
47
48         /// <summary>
49         /// Gets the operation type.
50         /// </summary>
51         /// <value>The operation type which triggers the event.</value>
52         public OperationType OperationType
53         {
54             get;
55         }
56
57         /// <summary>
58         /// Gets the ID of the media updated.
59         /// </summary>
60         /// <value>The ID of the media updated.</value>
61         public string Id
62         {
63             get;
64         }
65
66         /// <summary>
67         /// Gets the path of the media updated.
68         /// </summary>
69         /// <value>The path of the media updated.</value>
70         public string Path
71         {
72             get;
73         }
74
75         /// <summary>
76         /// Gets the type of the media updated.
77         /// </summary>
78         /// <value>The <see cref="MediaContent.MediaType"/> of the media updated.</value>
79         public MediaType MediaType
80         {
81             get;
82         }
83
84         /// <summary>
85         /// The MIME type of the media updated.
86         /// </summary>
87         /// <value>The MIME type of the media updated.</value>
88         public string MimeType
89         {
90             get;
91         }
92     }
93
94
95     /// <summary>
96     /// Provides data for the <see cref="MediaDatabase.FolderUpdated"/> event.
97     /// </summary>
98     public class FolderUpdatedEventArgs : EventArgs
99     {
100         internal FolderUpdatedEventArgs(OperationType operationType, string id, string path)
101         {
102             OperationType = operationType;
103             Id = id;
104             Path = path;
105         }
106
107         /// <summary>
108         /// Gets the operation type.
109         /// </summary>
110         /// <value>The operation type which triggers the event.</value>
111         public OperationType OperationType
112         {
113             get;
114         }
115
116         /// <summary>
117         /// Gets the ID of the folder updated.
118         /// </summary>
119         /// <value>The ID of the folder updated.</value>
120         public string Id
121         {
122             get;
123         }
124
125         /// <summary>
126         /// Gets the path of the folder updated.
127         /// </summary>
128         /// <value>The path of the folder updated.</value>
129         public string Path
130         {
131             get;
132         }
133     }
134
135 }