/* * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ namespace Tizen.Content.Download { /// /// Enumeration for the download states. /// /// 3 public enum DownloadState { /// /// Unhandled exception. /// /// 3 None = 0, /// /// Ready to download. /// /// 3 Ready, /// /// Queued to start downloading. /// /// 3 Queued, /// /// Currently downloading. /// /// 3 Downloading, /// /// The download is paused and can be resumed. /// /// 3 Paused, /// /// The download is completed. /// /// 3 Completed, /// /// The download failed. /// /// 3 Failed, /// /// A user canceled the download request. /// /// 3 Canceled } /// /// Enumeration for the network types. /// /// 3 public enum NetworkType { /// /// The download is available through data network. /// /// 3 DataNetwork = 0, /// /// The download is available through Wi-Fi. /// /// 3 Wifi, /// /// The download is available through Wi-Fi Direct. /// /// 3 WifiDirect, /// /// The download is available either through data network or Wi-Fi. /// /// 3 All } /// /// Enumeration for the notification types. /// /// 3 public enum NotificationType { /// /// Do not register notification. /// /// 3 None = 0, /// /// Completion notification for success state and failed state. /// /// 3 CompleteOnly, /// /// All download notifications for ongoing state, success state, and failed state. /// /// 3 All } internal enum NotificationAppControlType { Downloading = 0, Completed, Failed } internal static class Globals { internal const string LogTag = "Tizen.Content.Download"; } }