Release 4.0.0-preview1-00120
[platform/core/csapi/tizenfx.git] / src / Tizen.Content.Download / Tizen.Content.Download / DownloadEnumerator.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 namespace Tizen.Content.Download
18 {
19     /// <summary>
20     /// Enumeration for the download states.
21     /// </summary>
22     /// <since_tizen> 3 </since_tizen>
23     public enum DownloadState
24     {
25         /// <summary>
26         /// Unhandled exception.
27         /// </summary>
28         /// <since_tizen> 3 </since_tizen>
29         None = 0,
30         /// <summary>
31         /// Ready to download.
32         /// </summary>
33         /// <since_tizen> 3 </since_tizen>
34         Ready,
35         /// <summary>
36         /// Queued to start downloading.
37         /// </summary>
38         /// <since_tizen> 3 </since_tizen>
39         Queued,
40         /// <summary>
41         /// Currently downloading.
42         /// </summary>
43         /// <since_tizen> 3 </since_tizen>
44         Downloading,
45         /// <summary>
46         /// The download is paused and can be resumed.
47         /// </summary>
48         /// <since_tizen> 3 </since_tizen>
49         Paused,
50         /// <summary>
51         /// The download is completed.
52         /// </summary>
53         /// <since_tizen> 3 </since_tizen>
54         Completed,
55         /// <summary>
56         /// The download failed.
57         /// </summary>
58         /// <since_tizen> 3 </since_tizen>
59         Failed,
60         /// <summary>
61         /// A user canceled the download request.
62         /// </summary>
63         /// <since_tizen> 3 </since_tizen>
64         Canceled
65     }
66
67     /// <summary>
68     /// Enumeration for the network types.
69     /// </summary>
70     /// <since_tizen> 3 </since_tizen>
71     public enum NetworkType
72     {
73         /// <summary>
74         /// The download is available through data network.
75         /// </summary>
76         /// <since_tizen> 3 </since_tizen>
77         DataNetwork = 0,
78         /// <summary>
79         /// The download is available through Wi-Fi.
80         /// </summary>
81         /// <since_tizen> 3 </since_tizen>
82         Wifi,
83         /// <summary>
84         /// The download is available through Wi-Fi Direct.
85         /// </summary>
86         /// <since_tizen> 3 </since_tizen>
87         WifiDirect,
88         /// <summary>
89         /// The download is available either through data network or Wi-Fi.
90         /// </summary>
91         /// <since_tizen> 3 </since_tizen>
92         All
93     }
94
95     /// <summary>
96     /// Enumeration for the notification types.
97     /// </summary>
98     /// <since_tizen> 3 </since_tizen>
99     public enum NotificationType
100     {
101         /// <summary>
102         /// Do not register notification.
103         /// </summary>
104         /// <since_tizen> 3 </since_tizen>
105         None = 0,
106         /// <summary>
107         /// Completion notification for success state and failed state.
108         /// </summary>
109         /// <since_tizen> 3 </since_tizen>
110         CompleteOnly,
111         /// <summary>
112         /// All download notifications for ongoing state, success state, and failed state.
113         /// </summary>
114         /// <since_tizen> 3 </since_tizen>
115         All
116     }
117
118     internal enum NotificationAppControlType
119     {
120         Downloading = 0,
121         Completed,
122         Failed
123     }
124
125     internal static class Globals
126     {
127         internal const string LogTag = "Tizen.Content.Download";
128     }
129 }