2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 namespace Tizen.Content.Download
20 /// Enumeration for the download states.
22 /// <since_tizen> 3 </since_tizen>
23 public enum DownloadState
26 /// Unhandled exception.
28 /// <since_tizen> 3 </since_tizen>
31 /// Ready to download.
33 /// <since_tizen> 3 </since_tizen>
36 /// Queued to start downloading.
38 /// <since_tizen> 3 </since_tizen>
41 /// Currently downloading.
43 /// <since_tizen> 3 </since_tizen>
46 /// The download is paused and can be resumed.
48 /// <since_tizen> 3 </since_tizen>
51 /// The download is completed.
53 /// <since_tizen> 3 </since_tizen>
56 /// The download failed.
58 /// <since_tizen> 3 </since_tizen>
61 /// A user canceled the download request.
63 /// <since_tizen> 3 </since_tizen>
68 /// Enumeration for the network types.
70 /// <since_tizen> 3 </since_tizen>
71 public enum NetworkType
74 /// The download is available through data network.
76 /// <since_tizen> 3 </since_tizen>
79 /// The download is available through Wi-Fi.
81 /// <since_tizen> 3 </since_tizen>
84 /// The download is available through Wi-Fi Direct.
86 /// <since_tizen> 3 </since_tizen>
89 /// The download is available either through data network or Wi-Fi.
91 /// <since_tizen> 3 </since_tizen>
96 /// Enumeration for the notification types.
98 /// <since_tizen> 3 </since_tizen>
99 public enum NotificationType
102 /// Do not register notification.
104 /// <since_tizen> 3 </since_tizen>
107 /// Completion notification for success state and failed state.
109 /// <since_tizen> 3 </since_tizen>
112 /// All download notifications for ongoing state, success state, and failed state.
114 /// <since_tizen> 3 </since_tizen>
118 internal enum NotificationAppControlType
125 internal static class Globals
127 internal const string LogTag = "Tizen.Content.Download";