From df3ec5b743819de8f4164cf9f72743edd38be800 Mon Sep 17 00:00:00 2001 From: Ickhee Woo Date: Fri, 22 Sep 2017 17:07:48 +0900 Subject: [PATCH] added API Level Change-Id: Ie529b4cc460356d71812f5b7ce6bcc083d4da16f Signed-off-by: Ickhee Woo --- src/Tizen.Account.SyncManager/Interop/Interop.Libraries.cs | 1 + .../Tizen.Account.SyncManager/Enumerations.cs | 12 ++++++++++++ .../Tizen.Account.SyncManager/SyncAdapter.cs | 5 +++++ .../Tizen.Account.SyncManager/SyncClient.cs | 7 +++++++ .../Tizen.Account.SyncManager/SyncJobData.cs | 10 ++++++++++ 5 files changed, 35 insertions(+) diff --git a/src/Tizen.Account.SyncManager/Interop/Interop.Libraries.cs b/src/Tizen.Account.SyncManager/Interop/Interop.Libraries.cs index a1d3410..8e62734 100755 --- a/src/Tizen.Account.SyncManager/Interop/Interop.Libraries.cs +++ b/src/Tizen.Account.SyncManager/Interop/Interop.Libraries.cs @@ -19,6 +19,7 @@ internal static partial class Interop /// /// The Wrapper class for maintaining names of dependent native libraries. /// + /// 4 internal static partial class Libraries { public const string SyncManager = "libcore-sync-client.so.1"; diff --git a/src/Tizen.Account.SyncManager/Tizen.Account.SyncManager/Enumerations.cs b/src/Tizen.Account.SyncManager/Tizen.Account.SyncManager/Enumerations.cs index 7bfb265..4ce919d 100755 --- a/src/Tizen.Account.SyncManager/Tizen.Account.SyncManager/Enumerations.cs +++ b/src/Tizen.Account.SyncManager/Tizen.Account.SyncManager/Enumerations.cs @@ -21,63 +21,75 @@ namespace Tizen.Account.SyncManager /// /// Enumeration for the sync option. /// + /// 4 [Flags] public enum SyncOption { /// /// The sync job will be operated normally. /// + /// 4 None = 0, /// /// The sync job will be operated as soon as possible. /// + /// 4 Expedited = 0X01, /// /// The sync job will not be performed again when it fails. /// + /// 4 NoRetry = 0X02, } /// /// Enumeration for the sync period. /// + /// 4 public enum SyncPeriod { /// /// Sync within 30 minutes. /// + /// 4 ThirtyMin = 0, /// /// Sync within 1 hour. /// + /// 4 OneHour, /// /// Sync within 2 hours. /// + /// 4 TwoHours, /// /// Sync within 3 hours. /// + /// 4 ThreeHours, /// /// Sync within 6 hours. /// + /// 4 SixHours, /// /// Sync within 12 hours. /// + /// 4 TwelveHours, /// /// Sync within 1 day. /// + /// 4 OneDay, } } diff --git a/src/Tizen.Account.SyncManager/Tizen.Account.SyncManager/SyncAdapter.cs b/src/Tizen.Account.SyncManager/Tizen.Account.SyncManager/SyncAdapter.cs index 4a25dee..5b95f22 100755 --- a/src/Tizen.Account.SyncManager/Tizen.Account.SyncManager/SyncAdapter.cs +++ b/src/Tizen.Account.SyncManager/Tizen.Account.SyncManager/SyncAdapter.cs @@ -23,6 +23,7 @@ namespace Tizen.Account.SyncManager /// /// This class contains the delegates to be called upon scheduling a sync operation. /// + /// 4 public class SyncAdapter { Interop.Adapter.SyncAdapterStartSyncCallback _startSyncCallback; @@ -31,6 +32,7 @@ namespace Tizen.Account.SyncManager /// /// The callback function for the sync adapter's start sync request. /// + /// 4 /// The sync job parameters corresponding to the sync request. /// true if the sync operation is success, @c false otherwise. public delegate bool StartSyncCallback(SyncJobData syncParameters); @@ -38,12 +40,14 @@ namespace Tizen.Account.SyncManager /// /// The callback function for the sync adapter's cancel sync request. /// + /// 4 /// The sync job parameters corresponding to the sync request. public delegate void CancelSyncCallback(SyncJobData syncParameters); /// /// Sets the client (sync adapter) callback functions. /// + /// 4 /// A callback function to be called by the sync manager for performing the sync operation. /// A callback function to be called by the sync manager for cancelling the sync operation. /// Thrown when any of the arguments are null. @@ -100,6 +104,7 @@ namespace Tizen.Account.SyncManager /// /// Unsets the client (sync adapter) callback functions. /// + /// 4 /// Thrown when sync manager internal error occurs. public void UnsetSyncEventCallbacks() { diff --git a/src/Tizen.Account.SyncManager/Tizen.Account.SyncManager/SyncClient.cs b/src/Tizen.Account.SyncManager/Tizen.Account.SyncManager/SyncClient.cs index f86747b..97c739e 100755 --- a/src/Tizen.Account.SyncManager/Tizen.Account.SyncManager/SyncClient.cs +++ b/src/Tizen.Account.SyncManager/Tizen.Account.SyncManager/SyncClient.cs @@ -25,11 +25,13 @@ namespace Tizen.Account.SyncManager /// The SyncClient APIs for managing the sync operations. Applications will call these APIs to schedule their sync operations. /// The sync service maintains sync requests from all the applications and invokes their respective callback methods to perform account synchronization operations. /// + /// 4 public static class SyncClient { /// /// The constructor. /// + /// 4 static SyncClient() { } @@ -37,6 +39,7 @@ namespace Tizen.Account.SyncManager /// /// Requests the sync manager to perform one time sync operation. /// + /// 4 /// The sync job information of the sync job request. /// Sync options determine a way to operate the sync job and can be used as ORing. /// Thrown when any of the arugments are null. @@ -65,6 +68,7 @@ namespace Tizen.Account.SyncManager /// /// Requests the sync manager to perform periodic sync operations. /// + /// 4 /// The sync job information of the sync job request. /// Determines the time interval of the periodic sync. The periodic sync operation can be triggered in that interval, but it does not guarantee the exact time. The minimum value is 30 minutes. /// Sync options determine a way to operate the sync job and can be used as ORing. @@ -96,6 +100,7 @@ namespace Tizen.Account.SyncManager /// /// Requests the sync manager to perform sync operations whenever the corresponding DB is changed. /// + /// 4 /// The sync job information of the sync job request. /// Sync options determine a way to operate the sync job and can be used as ORing. /// http://tizen.org/privilege/calendar.read @@ -127,6 +132,7 @@ namespace Tizen.Account.SyncManager /// /// Gets all the sync jobs registered with the sync manager. /// + /// 4 /// /// Returns the list of SyncJobData corresponding to sync requests. /// @@ -162,6 +168,7 @@ namespace Tizen.Account.SyncManager /// /// Requests the sync manager to remove the corresponding sync job based on the ID. /// + /// 4 /// A unique value of each sync job, it can be used to search a specific sync job and remove it. /// Thrown if the input arugments is invalid. public static void RemoveSyncJob(int id) diff --git a/src/Tizen.Account.SyncManager/Tizen.Account.SyncManager/SyncJobData.cs b/src/Tizen.Account.SyncManager/Tizen.Account.SyncManager/SyncJobData.cs index e9f88da..08a483d 100755 --- a/src/Tizen.Account.SyncManager/Tizen.Account.SyncManager/SyncJobData.cs +++ b/src/Tizen.Account.SyncManager/Tizen.Account.SyncManager/SyncJobData.cs @@ -22,11 +22,13 @@ namespace Tizen.Account.SyncManager /// /// This class represents information about the sync job request. /// + /// 4 public class SyncJobData { /// /// Represents the calendar capability. /// + /// 4 /// /// If you want to receive notification about the calendar database change, assign it to the SyncJobName property of the SyncJobData object. /// @@ -35,6 +37,7 @@ namespace Tizen.Account.SyncManager /// /// Represents the contact capability. /// + /// 4 /// /// If you want to receive notification about the contact database change, assign it to the SyncJobName property of the SyncJobData object. /// @@ -43,6 +46,7 @@ namespace Tizen.Account.SyncManager /// /// Represents the image capability. /// + /// 4 /// /// If you want to receive notification about the image database change, assign it to the SyncJobName property of the SyncJobData object. /// @@ -51,6 +55,7 @@ namespace Tizen.Account.SyncManager /// /// Represents the video capability. /// + /// 4 /// /// If you want to receive notification about the video database change, assign it to the SyncJobName property of the SyncJobData object. /// @@ -59,6 +64,7 @@ namespace Tizen.Account.SyncManager /// /// Represents the sound capability. /// + /// 4 /// /// If you want to receive notification about the sound database change, assign it to the SyncJobName property of the SyncJobData object. /// @@ -67,6 +73,7 @@ namespace Tizen.Account.SyncManager /// /// Represents the music capability. /// + /// 4 /// /// If you want to receive notification about the music database change, assign it to the SyncJobName property of the SyncJobData object. /// @@ -75,16 +82,19 @@ namespace Tizen.Account.SyncManager /// /// The account instance on which the sync operation was requested or @c null in the case of the accountless sync operation. /// + /// 4 public AccountManager.Account Account { get; set; } /// /// User data which contains an additional information related to the registered sync job. /// + /// 4 public Bundle UserData { get; set; } /// /// A string representing a sync job which has been operated or capability setting to operate the data change sync job. /// + /// 4 public string SyncJobName { get; set; } } } -- 2.7.4