From: Seonah Moon Date: Thu, 15 Jun 2017 06:29:48 +0000 (+0900) Subject: Add privilege and feature tags X-Git-Tag: submit/trunk/20170823.075128~111^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4eec4fb726958c8c628b2e3d669f24923fd3daca;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Add privilege and feature tags Change-Id: Ic3f0cd939ef3e5636762d302ce317fcb7afb3376 Signed-off-by: Seonah Moon --- diff --git a/packaging/csapi-download.spec b/packaging/csapi-download.spec index 796d6b7..a27059f 100755 --- a/packaging/csapi-download.spec +++ b/packaging/csapi-download.spec @@ -1,6 +1,6 @@ Name: csapi-download Summary: Tizen Download API for C# -Version: 1.0.5 +Version: 1.0.6 Release: 1 Group: Development/Libraries License: Apache-2.0 diff --git a/src/Tizen.Content.Download/Tizen.Content.Download/Notification.cs b/src/Tizen.Content.Download/Tizen.Content.Download/Notification.cs index 079bfa0..72f5377 100755 --- a/src/Tizen.Content.Download/Tizen.Content.Download/Notification.cs +++ b/src/Tizen.Content.Download/Tizen.Content.Download/Notification.cs @@ -38,6 +38,7 @@ namespace Tizen.Content.Download /// Title of the notification. /// If user tries to get before setting, empty string is returned. /// + /// http://tizen.org/privilege/download public string Title { get @@ -65,6 +66,7 @@ namespace Tizen.Content.Download /// Description of the notification. /// If user tries to get before setting, empty string is returned. /// + /// http://tizen.org/privilege/download public string Description { get @@ -92,6 +94,7 @@ namespace Tizen.Content.Download /// Type of Notification. /// If user tries to get before setting, default NotificationType None is returned. /// + /// http://tizen.org/privilege/download public NotificationType Type { get @@ -119,6 +122,7 @@ namespace Tizen.Content.Download /// AppControl for an ongoing download notification. /// If user tries to get before setting, null is returned. /// + /// http://tizen.org/privilege/download /// /// When the notification message is clicked, the action is decided by the app control. /// @@ -149,6 +153,7 @@ namespace Tizen.Content.Download /// AppControl for a completed download notification. /// If user tries to get before setting, null is returned. /// + /// http://tizen.org/privilege/download /// /// When the notification message is clicked, the action is decided by the app control /// @@ -179,6 +184,7 @@ namespace Tizen.Content.Download /// AppControl for a failed download notification. /// If user tries to get before setting, null is returned. /// + /// http://tizen.org/privilege/download /// /// When the notification message is clicked, the action is decided by the app control /// diff --git a/src/Tizen.Content.Download/Tizen.Content.Download/Request.cs b/src/Tizen.Content.Download/Tizen.Content.Download/Request.cs index 38183e2..0e8e4e7 100755 --- a/src/Tizen.Content.Download/Tizen.Content.Download/Request.cs +++ b/src/Tizen.Content.Download/Tizen.Content.Download/Request.cs @@ -38,6 +38,7 @@ namespace Tizen.Content.Download /// Creates a Request object. /// /// URL to download + /// http://tizen.org/privilege/download public Request(string url) { if (String.IsNullOrEmpty(url)) @@ -65,6 +66,10 @@ namespace Tizen.Content.Download /// Directory path where downloaded file is stored /// Name of the downloaded file /// Network type which the download request must adhere to + /// http://tizen.org/privilege/download + /// http://tizen.org/feature/network.wifi + /// http://tizen.org/feature/network.wifi.direct + /// http://tizen.org/feature/network.telephony public Request(string url, string destinationPath, string fileName, NetworkType type) { if (String.IsNullOrEmpty(url)) @@ -113,6 +118,10 @@ namespace Tizen.Content.Download /// Name of the downloaded file /// Network type which the download request must adhere to /// HTTP header fields for download request + /// http://tizen.org/privilege/download + /// http://tizen.org/feature/network.wifi + /// http://tizen.org/feature/network.wifi.direct + /// http://tizen.org/feature/network.telephony public Request(string url, string destinationPath, string fileName, NetworkType type, IDictionary httpHeaders) { if (String.IsNullOrEmpty(url)) @@ -161,6 +170,7 @@ namespace Tizen.Content.Download /// /// Event that occurs when the download state changes. /// + /// http://tizen.org/privilege/download public event EventHandler StateChanged { add @@ -184,6 +194,7 @@ namespace Tizen.Content.Download /// /// Event that occurs when the download progress changes. /// + /// http://tizen.org/privilege/download public event EventHandler ProgressChanged { add @@ -208,6 +219,7 @@ namespace Tizen.Content.Download /// Absolute path where the file will be downloaded. /// If you try to get this property value before calling Start(), an empty string is returned. /// + /// http://tizen.org/privilege/download /// /// Returns empty string if download is not completed or if state has not yet changed to Completed or if any other error occurs. /// @@ -230,6 +242,7 @@ namespace Tizen.Content.Download /// MIME type of the downloaded content. /// If you try to get this property value before calling Start(), an empty string is returned. /// + /// http://tizen.org/privilege/download public string MimeType { get @@ -248,6 +261,7 @@ namespace Tizen.Content.Download /// /// Current state of the download. /// + /// http://tizen.org/privilege/download public DownloadState State { get @@ -268,6 +282,7 @@ namespace Tizen.Content.Download /// This can be defined with reference of HTTP response header data. The content name can be received when HTTP response header is received. /// If you try to get this property value before calling Start(), an empty string is returned. /// + /// http://tizen.org/privilege/download public string ContentName { get @@ -288,6 +303,7 @@ namespace Tizen.Content.Download /// This information is received from the server. If the server does not send the total size of the content, content_size is set to zero. /// If you try to get this property value before calling Start(), 0 is returned. /// + /// http://tizen.org/privilege/download public ulong ContentSize { get @@ -307,6 +323,7 @@ namespace Tizen.Content.Download /// HTTP status code when a download exception occurs. /// If you try to get this property value before calling Start(), 0 is returned. /// + /// http://tizen.org/privilege/download /// /// State of download request must be DownlodState.Failed. /// @@ -329,6 +346,7 @@ namespace Tizen.Content.Download /// ETag value from the HTTP response header when making a HTTP request for resume. /// If you try to get this property value before calling Start() or if any other error occurs, an empty string is returned. /// + /// http://tizen.org/privilege/download /// /// The etag value is available or not depending on the web server. If not available, then on get of the property null is returned. /// After download is started, it can get the etag value. @@ -369,6 +387,7 @@ namespace Tizen.Content.Download /// /// Full path of the temporary file which stores downloaded content. /// + /// http://tizen.org/privilege/download /// /// The download state must be one of the states after Downloading. /// @@ -390,6 +409,7 @@ namespace Tizen.Content.Download /// /// URL to download. /// + /// http://tizen.org/privilege/download /// /// Should be set before calling Start(). /// If you try to get this property value before setting or if any other error occurs, an empty string is returned. @@ -422,6 +442,10 @@ namespace Tizen.Content.Download /// The file will be downloaded only under the allowed network. /// If you try to get this property value before setting or if any other error occurs, default value NetworkType All is returned. /// + /// http://tizen.org/privilege/download + /// http://tizen.org/feature/network.wifi + /// http://tizen.org/feature/network.wifi.direct + /// http://tizen.org/feature/network.telephony /// /// Should be set before calling Start(). /// @@ -452,6 +476,7 @@ namespace Tizen.Content.Download /// The file will be downloaded to the set destination file path. The downloaded file is saved to an auto-generated file name in the destination. If the destination is not specified, the file will be downloaded to default storage. /// If you try to get this property value before setting or if any other error occurs, an empty string is returned. /// + /// http://tizen.org/privilege/download /// /// Should be set before calling Start(). /// @@ -482,6 +507,7 @@ namespace Tizen.Content.Download /// The file will be saved in the specified destination or default storage with the set file name. If the file name is not specified, the downloaded file will be saved with an auto-generated file name in the destination. /// If you try to get this property value before setting or if any other error occurs, an empty string is returned. /// + /// http://tizen.org/privilege/download /// /// Should be set before calling Start(). /// @@ -513,6 +539,7 @@ namespace Tizen.Content.Download /// If this option is enabled, the previous downloading item is restarted automatically as soon as the download daemon is restarted. The download progress continues after the client process is terminated. /// If you try to get this property value before setting, default value false is returned. /// + /// http://tizen.org/privilege/download /// /// The default value is false. /// @@ -561,6 +588,7 @@ namespace Tizen.Content.Download /// Sets the directory path of a temporary file used in a previous download request. /// This is only useful when resuming download to make HTTP request header at the client side. Otherwise, the path is ignored. /// + /// http://tizen.org/privilege/download /// /// If the etag value is not present in the download database, it is not useful to set the temporary file path. /// When resuming the download request, the data is attached at the end of this temporary file. @@ -578,6 +606,7 @@ namespace Tizen.Content.Download /// Starts or resumes download. /// Starts to download the current URL, or resumes the download if paused. /// + /// http://tizen.org/privilege/download /// /// The URL is the mandatory information to start the download. /// @@ -603,6 +632,7 @@ namespace Tizen.Content.Download /// /// Pauses download request. /// + /// http://tizen.org/privilege/download /// /// The paused download request can be restarted with Start() or canceled with Cancel(). /// @@ -618,6 +648,7 @@ namespace Tizen.Content.Download /// /// Cancels download request. /// + /// http://tizen.org/privilege/download /// /// The canceled download can be restarted with Start(). /// @@ -633,6 +664,7 @@ namespace Tizen.Content.Download /// /// Releases all resources used by the Request class. /// + /// http://tizen.org/privilege/download /// /// After calling this method, download request related data exists in the download database for a certain period of time. Within that time, it is possible to use other APIs with this data. /// @@ -645,6 +677,7 @@ namespace Tizen.Content.Download /// /// Deletes the corresponding download request. /// + /// http://tizen.org/privilege/download protected virtual void Dispose(bool disposing) { if (_disposed)