From 29bbe8004646d6d4d6602185845cd1b3d781ccc0 Mon Sep 17 00:00:00 2001 From: Jeesun Kim Date: Wed, 23 Aug 2017 10:16:05 +0900 Subject: [PATCH] [Calendar] fix Validator issues Change-Id: I09064b41dcd8f82a276dfa9869faf5502f8b2dd9 --- ...op.Calendar.Database.cs => Interop.Database.cs} | 55 +- ...nterop.Calendar.Filter.cs => Interop.Filter.cs} | 26 +- ....Calendar.Libraries.cs => Interop.Libraries.cs} | 0 .../{Interop.Calendar.List.cs => Interop.List.cs} | 25 +- ...{Interop.Calendar.Query.cs => Interop.Query.cs} | 17 +- ...nterop.Calendar.Record.cs => Interop.Record.cs} | 70 +- ...op.Calendar.Reminder.cs => Interop.Reminder.cs} | 11 +- ...erop.Calendar.Service.cs => Interop.Service.cs} | 17 +- ....Calendar.Vcalendar.cs => Interop.Vcalendar.cs} | 13 +- .../Tizen.Pims.Calendar/CalendarDatabase.cs | 86 +- .../Tizen.Pims.Calendar/CalendarErrorFactory.cs | 1 - .../Tizen.Pims.Calendar/CalendarFilter.cs | 82 +- .../Tizen.Pims.Calendar/CalendarList.cs | 49 +- .../Tizen.Pims.Calendar/CalendarManager.cs | 18 +- .../Tizen.Pims.Calendar/CalendarQuery.cs | 28 +- .../Tizen.Pims.Calendar/CalendarRecord.cs | 71 +- .../Tizen.Pims.Calendar/CalendarReminder.cs | 15 +- .../Tizen.Pims.Calendar/CalendarStructs.cs | 33 +- .../Tizen.Pims.Calendar/CalendarTypes.cs | 45 +- .../Tizen.Pims.Calendar/CalendarVcalendar.cs | 26 +- .../Tizen.Pims.Calendar/CalendarViews.cs | 1151 ++++++++++---------- 21 files changed, 974 insertions(+), 865 deletions(-) rename src/Tizen.Pims.Calendar/Interop/{Interop.Calendar.Database.cs => Interop.Database.cs} (57%) rename src/Tizen.Pims.Calendar/Interop/{Interop.Calendar.Filter.cs => Interop.Filter.cs} (62%) rename src/Tizen.Pims.Calendar/Interop/{Interop.Calendar.Libraries.cs => Interop.Libraries.cs} (100%) rename src/Tizen.Pims.Calendar/Interop/{Interop.Calendar.List.cs => Interop.List.cs} (61%) rename src/Tizen.Pims.Calendar/Interop/{Interop.Calendar.Query.cs => Interop.Query.cs} (67%) rename src/Tizen.Pims.Calendar/Interop/{Interop.Calendar.Record.cs => Interop.Record.cs} (57%) rename src/Tizen.Pims.Calendar/Interop/{Interop.Calendar.Reminder.cs => Interop.Reminder.cs} (74%) rename src/Tizen.Pims.Calendar/Interop/{Interop.Calendar.Service.cs => Interop.Service.cs} (64%) rename src/Tizen.Pims.Calendar/Interop/{Interop.Calendar.Vcalendar.cs => Interop.Vcalendar.cs} (69%) diff --git a/src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Database.cs b/src/Tizen.Pims.Calendar/Interop/Interop.Database.cs similarity index 57% rename from src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Database.cs rename to src/Tizen.Pims.Calendar/Interop/Interop.Database.cs index 8183fe6..9fa68a1 100644 --- a/src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Database.cs +++ b/src/Tizen.Pims.Calendar/Interop/Interop.Database.cs @@ -19,61 +19,58 @@ using System.Runtime.InteropServices; internal static partial class Interop { - internal static partial class Calendar + internal static partial class Database { - internal static partial class Database - { - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] internal delegate void DBChangedCallback(string uri, IntPtr userData); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_insert_record")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_insert_record")] internal static extern int Insert(IntPtr recordHandle, out int recordId); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_get_record")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_get_record")] internal static extern int Get(string uri, int recordId, out IntPtr recordHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_update_record")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_update_record")] internal static extern int Update(IntPtr recordHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_delete_record")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_delete_record")] internal static extern int Delete(string uri, int recordId); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_get_all_records")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_get_all_records")] internal static extern int GetAllRecords(string uri, int offset, int limit, out IntPtr recordListHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_get_records_with_query")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_get_records_with_query")] internal static extern int GetRecords(IntPtr queryHandle, int offset, int limit, out IntPtr recordListHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_get_count")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_get_count")] internal static extern int GetCount(string uri, out int count); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_get_count_with_query")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_get_count_with_query")] internal static extern int GetCountWithQuery(IntPtr queryHandle, out int count); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_insert_records")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_insert_records")] internal static extern int InsertRecords(IntPtr recordListHandle, out IntPtr recordIds, out int count); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_update_records")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_update_records")] internal static extern int UpdateRecords(IntPtr recordListHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_delete_records")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_delete_records")] internal static extern int DeleteRecords(string uri, int[] ids, int count); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_get_current_version")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_get_current_version")] internal static extern int GetCurrentVersion(out int version); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_add_changed_cb")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_add_changed_cb")] internal static extern int AddChangedCallback(string uri, DBChangedCallback callback, IntPtr userData); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_remove_changed_cb")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_remove_changed_cb")] internal static extern int RemoveChangedCallback(string uri, DBChangedCallback callback, IntPtr userData); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_get_changes_by_version")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_get_changes_by_version")] internal static extern int GetChangesByVersion(string uri, int bookId, int dbVersion, out IntPtr recordListHandle, out int currentDBVersion); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_insert_vcalendars")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_insert_vcalendars")] internal static extern int InsertVcalendars(string stream, out IntPtr recordIds, out int count); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_replace_vcalendars")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_replace_vcalendars")] internal static extern int ReplaceVcalendars(string stream, int[] ids, int count); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_replace_record")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_replace_record")] internal static extern int Replace(IntPtr recordHandle, int recordId); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_replace_records")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_replace_records")] internal static extern int ReplaceRecords(IntPtr recordListHandle, int[] ids, int count); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_get_last_change_version")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_get_last_change_version")] internal static extern int GetLastChangeVersion(out int lastChangeVersion); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_get_changes_exception_by_version")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_get_changes_exception_by_version")] internal static extern int GetChangesException(string uri, int eventId, int dbVersion, out IntPtr recordListHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_clean_after_sync")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_clean_after_sync")] internal static extern int Clean(int bookId, int dbVersion); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_link_record")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_link_record")] internal static extern int LinkRecord(int baseId, int recordId); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_unlink_record")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_unlink_record")] internal static extern int UnlinkRecord(int recordId); - } } } diff --git a/src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Filter.cs b/src/Tizen.Pims.Calendar/Interop/Interop.Filter.cs similarity index 62% rename from src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Filter.cs rename to src/Tizen.Pims.Calendar/Interop/Interop.Filter.cs index 43f9577..daca142 100644 --- a/src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Filter.cs +++ b/src/Tizen.Pims.Calendar/Interop/Interop.Filter.cs @@ -16,33 +16,29 @@ using System; using System.Runtime.InteropServices; -using Tizen.Pims.Calendar; using static Tizen.Pims.Calendar.CalendarFilter; internal static partial class Interop { - internal static partial class Calendar + internal static partial class Filter { - internal static partial class Filter - { - [DllImport(Libraries.Calendar, EntryPoint = "calendar_filter_create")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_filter_create")] internal static extern int Create(string uri, out IntPtr filterHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_filter_destroy")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_filter_destroy")] internal static extern int Destroy(IntPtr filterHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_filter_add_str")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_filter_add_str")] internal static extern int AddString(IntPtr filterHandle, uint propertyId, StringMatchType match, string value); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_filter_add_int")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_filter_add_int")] internal static extern int AddInteger(IntPtr filterHandle, uint propertyId, IntegerMatchType match, int value); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_filter_add_double")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_filter_add_double")] internal static extern int AddDouble(IntPtr filterHandle, uint propertyId, IntegerMatchType match, double value); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_filter_add_lli")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_filter_add_lli")] internal static extern int AddLong(IntPtr filterHandle, uint propertyId, IntegerMatchType match, long value); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_filter_add_caltime")] - internal static extern int AddCalendarTime(IntPtr filterHandle, uint propertyId, IntegerMatchType match, Interop.Calendar.Record.DateTime value); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_filter_add_filter")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_filter_add_caltime")] + internal static extern int AddCalendarTime(IntPtr filterHandle, uint propertyId, IntegerMatchType match, Interop.Record.DateTime value); + [DllImport(Libraries.Calendar, EntryPoint = "calendar_filter_add_filter")] internal static extern int AddFilter(IntPtr parentFilterHandle, IntPtr childFilterHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_filter_add_operator")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_filter_add_operator")] internal static extern int AddOperator(IntPtr filterHandle, LogicalOperator type); - } } } diff --git a/src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Libraries.cs b/src/Tizen.Pims.Calendar/Interop/Interop.Libraries.cs similarity index 100% rename from src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Libraries.cs rename to src/Tizen.Pims.Calendar/Interop/Interop.Libraries.cs diff --git a/src/Tizen.Pims.Calendar/Interop/Interop.Calendar.List.cs b/src/Tizen.Pims.Calendar/Interop/Interop.List.cs similarity index 61% rename from src/Tizen.Pims.Calendar/Interop/Interop.Calendar.List.cs rename to src/Tizen.Pims.Calendar/Interop/Interop.List.cs index 31010c8..39a8eac 100644 --- a/src/Tizen.Pims.Calendar/Interop/Interop.Calendar.List.cs +++ b/src/Tizen.Pims.Calendar/Interop/Interop.List.cs @@ -19,30 +19,27 @@ using System.Runtime.InteropServices; internal static partial class Interop { - internal static partial class Calendar + internal static partial class List { - internal static partial class List - { - [DllImport(Libraries.Calendar, EntryPoint = "calendar_list_create")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_list_create")] internal static extern int Create(out IntPtr listHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_list_destroy")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_list_destroy")] internal static extern int Destroy(IntPtr listHandle, bool delete); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_list_get_count")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_list_get_count")] internal static extern int GetCount(IntPtr listHandle, out int count); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_list_add")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_list_add")] internal static extern int Add(IntPtr listHandle, IntPtr recordHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_list_remove")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_list_remove")] internal static extern int Remove(IntPtr listHandle, IntPtr recordHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_list_get_current_record_p")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_list_get_current_record_p")] internal static extern int GetCurrentRecordP(IntPtr listHandle, out IntPtr recordHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_list_prev")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_list_prev")] internal static extern int Prev(IntPtr listHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_list_next")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_list_next")] internal static extern int Next(IntPtr listHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_list_first")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_list_first")] internal static extern int First(IntPtr listHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_list_last")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_list_last")] internal static extern int Last(IntPtr listHandle); - } } } diff --git a/src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Query.cs b/src/Tizen.Pims.Calendar/Interop/Interop.Query.cs similarity index 67% rename from src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Query.cs rename to src/Tizen.Pims.Calendar/Interop/Interop.Query.cs index c570495..4fdbde7 100644 --- a/src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Query.cs +++ b/src/Tizen.Pims.Calendar/Interop/Interop.Query.cs @@ -19,22 +19,19 @@ using System.Runtime.InteropServices; internal static partial class Interop { - internal static partial class Calendar + internal static partial class Query { - internal static partial class Query - { - [DllImport(Libraries.Calendar, EntryPoint = "calendar_query_create")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_query_create")] internal static extern int Create(string uri, out IntPtr queryHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_query_destroy")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_query_destroy")] internal static extern int Destroy(IntPtr queryHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_query_set_projection")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_query_set_projection")] internal static extern int SetProjection(IntPtr queryHandle, uint[] propertyIdArray, int count); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_query_set_distinct")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_query_set_distinct")] internal static extern int SetDistinct(IntPtr queryHandle, bool set); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_query_set_filter")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_query_set_filter")] internal static extern int SetFilter(IntPtr queryHandle, IntPtr filterHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_query_set_sort")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_query_set_sort")] internal static extern int SetSort(IntPtr queryHandle, uint propertyId, bool isAscending); - } } } diff --git a/src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Record.cs b/src/Tizen.Pims.Calendar/Interop/Interop.Record.cs similarity index 57% rename from src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Record.cs rename to src/Tizen.Pims.Calendar/Interop/Interop.Record.cs index befe4d9..be79a6a 100644 --- a/src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Record.cs +++ b/src/Tizen.Pims.Calendar/Interop/Interop.Record.cs @@ -16,67 +16,63 @@ using System; using System.Runtime.InteropServices; -using Tizen.Pims.Calendar; internal static partial class Interop { - internal static partial class Calendar + internal static partial class Record { - internal static partial class Record - { - [StructLayout(LayoutKind.Sequential)] - internal struct DateTime - { - internal int type; - internal long utime; - internal int year; - internal int month; - internal int mday; - internal int hour; - internal int minute; - internal int second; - }; + [StructLayout(LayoutKind.Sequential)] + internal struct DateTime + { + internal int type; + internal long utime; + internal int year; + internal int month; + internal int mday; + internal int hour; + internal int minute; + internal int second; + }; - [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_create")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_create")] internal static extern int Create(string uri, out IntPtr recordHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_destroy")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_destroy")] internal static extern int Destroy(IntPtr recordHandle, bool isDeleteChild); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_clone")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_clone")] internal static extern int Clone(IntPtr recordHandle, out IntPtr cloneHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_get_uri_p")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_get_uri_p")] internal static extern int GetUriPointer(IntPtr recordHandle, out IntPtr uri); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_get_str")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_get_str")] internal static extern int GetString(IntPtr recordHandle, uint propertyId, out string str); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_get_str_p")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_get_str_p")] internal static extern int GetStringPointer(IntPtr recordHandle, uint propertyId, out string str); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_get_int")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_get_int")] internal static extern int GetInteger(IntPtr recordHandle, uint propertyId, out int value); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_get_double")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_get_double")] internal static extern int GetDouble(IntPtr recordHandle, uint propertyId, out double value); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_get_lli")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_get_lli")] internal static extern int GetLli(IntPtr recordHandle, uint propertyId, out long value); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_get_caltime")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_get_caltime")] internal static extern int GetCalendarTime(IntPtr recordHandle, uint propertyId, out DateTime value); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_set_str")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_set_str")] internal static extern int SetString(IntPtr recordHandle, uint propertyId, string str); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_set_int")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_set_int")] internal static extern int SetInteger(IntPtr recordHandle, uint propertyId, int value); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_set_double")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_set_double")] internal static extern int SetDouble(IntPtr recordHandle, uint propertyId, double value); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_set_lli")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_set_lli")] internal static extern int SetLli(IntPtr recordHandle, uint propertyId, long value); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_set_caltime")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_set_caltime")] internal static extern int SetCalendarTime(IntPtr recordHandle, uint propertyId, DateTime value); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_add_child_record")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_add_child_record")] internal static extern int AddChildRecord(IntPtr recordHandle, uint propertyId, IntPtr childHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_remove_child_record")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_remove_child_record")] internal static extern int RemoveChildRecord(IntPtr recordHandle, uint propertyId, IntPtr childHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_get_child_record_count")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_get_child_record_count")] internal static extern int GetChildRecordCount(IntPtr recordHandle, uint propertyId, out int count); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_get_child_record_at_p")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_get_child_record_at_p")] internal static extern int GetChildRecordPointer(IntPtr recordHandle, uint propertyId, int index, out IntPtr childHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_clone_child_record_list")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_record_clone_child_record_list")] internal static extern int CloneChildRecordList(IntPtr childRecordHandle, uint propertyId, out IntPtr listHandle); - } } } diff --git a/src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Reminder.cs b/src/Tizen.Pims.Calendar/Interop/Interop.Reminder.cs similarity index 74% rename from src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Reminder.cs rename to src/Tizen.Pims.Calendar/Interop/Interop.Reminder.cs index a737208..ca63c4a 100644 --- a/src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Reminder.cs +++ b/src/Tizen.Pims.Calendar/Interop/Interop.Reminder.cs @@ -19,17 +19,14 @@ using System.Runtime.InteropServices; internal static partial class Interop { - internal static partial class Calendar + internal static partial class Reminder { - internal static partial class Reminder - { - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] internal delegate void ReminderAlertedCallback(string param, IntPtr userData); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_reminder_add_cb")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_reminder_add_cb")] internal static extern int Add(ReminderAlertedCallback callback, IntPtr userData); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_remove_changed_cb")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_db_remove_changed_cb")] internal static extern int Remove(ReminderAlertedCallback callback, IntPtr userData); - } } } diff --git a/src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Service.cs b/src/Tizen.Pims.Calendar/Interop/Interop.Service.cs similarity index 64% rename from src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Service.cs rename to src/Tizen.Pims.Calendar/Interop/Interop.Service.cs index adb132b..8092678 100644 --- a/src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Service.cs +++ b/src/Tizen.Pims.Calendar/Interop/Interop.Service.cs @@ -14,26 +14,21 @@ * limitations under the License. */ -using System; using System.Runtime.InteropServices; internal static partial class Interop { - internal static partial class Calendar + internal static partial class Service { - internal static partial class Service - { - [DllImport(Libraries.Calendar, EntryPoint = "calendar_connect")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_connect")] internal static extern int Connect(); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_disconnect")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_disconnect")] internal static extern int Disconnect(); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_connect_on_thread")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_connect_on_thread")] internal static extern int ConnectOnThread(); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_disconnect_on_thread")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_disconnect_on_thread")] internal static extern int DisconnectOnThread(); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_connect_with_flags")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_connect_with_flags")] internal static extern int ConnectWithFlags(uint flags); - } } } - diff --git a/src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Vcalendar.cs b/src/Tizen.Pims.Calendar/Interop/Interop.Vcalendar.cs similarity index 69% rename from src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Vcalendar.cs rename to src/Tizen.Pims.Calendar/Interop/Interop.Vcalendar.cs index 0b0d6a4..3ccd6e6 100644 --- a/src/Tizen.Pims.Calendar/Interop/Interop.Calendar.Vcalendar.cs +++ b/src/Tizen.Pims.Calendar/Interop/Interop.Vcalendar.cs @@ -19,18 +19,15 @@ using System.Runtime.InteropServices; internal static partial class Interop { - internal static partial class Calendar + internal static partial class Vcalendar { - internal static partial class Vcalendar - { - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] internal delegate bool ParseCallback(IntPtr recordHandle, IntPtr userData); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_vcalendar_make_from_records")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_vcalendar_make_from_records")] internal static extern int Compose(IntPtr listHandle, out string stream); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_vcalendar_parse_to_calendar")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_vcalendar_parse_to_calendar")] internal static extern int Parse(string stream, out IntPtr listHandle); - [DllImport(Libraries.Calendar, EntryPoint = "calendar_vcalendar_parse_to_calendar_foreach")] + [DllImport(Libraries.Calendar, EntryPoint = "calendar_vcalendar_parse_to_calendar_foreach")] internal static extern int ParseForEach(string filePath, ParseCallback parseCb, IntPtr userData); - } } } diff --git a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarDatabase.cs b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarDatabase.cs index 2cbb6bf..0b75c81 100644 --- a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarDatabase.cs +++ b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarDatabase.cs @@ -17,6 +17,7 @@ using System; using System.Collections.Generic; using System.Runtime.InteropServices; +using System.Diagnostics.CodeAnalysis; /// /// The Calendar Service API provides functions, enumerations used in the entire Content Service. @@ -33,7 +34,7 @@ namespace Tizen.Pims.Calendar /// CalendarDatabase provides methods to manage calendar information from/to the database. /// /// - /// This class allows usre to access/create/update db operations for calendar information. + /// This class allows user to access/create/update db operations for calendar information. /// public class CalendarDatabase { @@ -45,13 +46,12 @@ namespace Tizen.Pims.Calendar /// The delegate must be registered using AddDBChangedDelegate. /// It's invoked when the designated view changes. /// - /// - public delegate void CalendarDBChangedDelegate(string uri); + public delegate void CalendarDBChanged(string uri); private Object thisLock = new Object(); - private Dictionary _callbackMap = new Dictionary(); - private Dictionary _delegateMap = new Dictionary(); - private Interop.Calendar.Database.DBChangedCallback _dbChangedDelegate; + private Dictionary _callbackMap = new Dictionary(); + private Dictionary _delegateMap = new Dictionary(); + private Interop.Database.DBChangedCallback _dbChangedDelegate; internal CalendarDatabase() { @@ -61,12 +61,14 @@ namespace Tizen.Pims.Calendar /// /// The calendar database version. /// + /// The current calendar database version. + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] public int Version { get { int version = -1; - int error = Interop.Calendar.Database.GetCurrentVersion(out version); + int error = Interop.Database.GetCurrentVersion(out version); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Version Failed with error " + error); @@ -83,12 +85,14 @@ namespace Tizen.Pims.Calendar /// Thrown when method failed due to invalid operation /// Thrown when failed due to out of memory /// Thrown when application does not have proper privileges + /// The last successful changed calendar database version on the current connection. + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] public int LastChangeVersion { get { int version = -1; - int error = Interop.Calendar.Database.GetLastChangeVersion(out version); + int error = Interop.Database.GetLastChangeVersion(out version); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "LastChangeVersion Failed with error " + error); @@ -108,10 +112,11 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory /// Thrown when application does not have proper privileges + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] public int Insert(CalendarRecord record) { int id = -1; - int error = Interop.Calendar.Database.Insert(record._recordHandle, out id); + int error = Interop.Database.Insert(record._recordHandle, out id); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Insert Failed with error " + error); @@ -134,10 +139,12 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory /// Thrown when application does not have proper privileges + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] public CalendarRecord Get(string viewUri, int recordId) { IntPtr handle; - int error = Interop.Calendar.Database.Get(viewUri, recordId, out handle); + int error = Interop.Database.Get(viewUri, recordId, out handle); if (CalendarError.None != (CalendarError)error) { if (CalendarError.DBNotFound == (CalendarError)error) @@ -161,9 +168,10 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory /// Thrown when application does not have proper privileges + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] public void Update(CalendarRecord record) { - int error = Interop.Calendar.Database.Update(record._recordHandle); + int error = Interop.Database.Update(record._recordHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Update Failed with error " + error); @@ -182,9 +190,11 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory /// Thrown when application does not have proper privileges + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] public void Delete(string viewUri, int recordId) { - int error = Interop.Calendar.Database.Delete(viewUri, recordId); + int error = Interop.Database.Delete(viewUri, recordId); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Delete Failed with error " + error); @@ -203,9 +213,10 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory /// Thrown when application does not have proper privileges + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] public void Replace(CalendarRecord record, int id) { - int error = Interop.Calendar.Database.Replace(record._recordHandle, id); + int error = Interop.Database.Replace(record._recordHandle, id); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Replace Failed with error " + error); @@ -228,10 +239,12 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory /// Thrown when application does not have proper privileges + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] public CalendarList GetAll(string viewUri, int offset, int limit) { IntPtr handle; - int error = Interop.Calendar.Database.GetAllRecords(viewUri, offset, limit, out handle); + int error = Interop.Database.GetAllRecords(viewUri, offset, limit, out handle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "GetAll Failed with error " + error); @@ -255,10 +268,11 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory /// Thrown when application does not have proper privileges + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] public CalendarList GetRecordsWithQuery(CalendarQuery query, int offset, int limit) { IntPtr handle; - int error = Interop.Calendar.Database.GetRecords(query._queryHandle, offset, limit, out handle); + int error = Interop.Database.GetRecords(query._queryHandle, offset, limit, out handle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "GetAllWithQuery Failed with error " + error); @@ -280,11 +294,12 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory /// Thrown when application does not have proper privileges + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] public int[] Insert(CalendarList list) { IntPtr ids; int count; - int error = Interop.Calendar.Database.InsertRecords(list._listHandle, out ids, out count); + int error = Interop.Database.InsertRecords(list._listHandle, out ids, out count); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Insert Failed with error " + error); @@ -306,9 +321,10 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory /// Thrown when application does not have proper privileges + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] public void Update(CalendarList list) { - int error = Interop.Calendar.Database.UpdateRecords(list._listHandle); + int error = Interop.Database.UpdateRecords(list._listHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Update Failed with error " + error); @@ -327,9 +343,11 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory /// Thrown when application does not have proper privileges + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] public void Delete(string viewUri, int[] idArray) { - int error = Interop.Calendar.Database.DeleteRecords(viewUri, idArray, idArray.Length); + int error = Interop.Database.DeleteRecords(viewUri, idArray, idArray.Length); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Delete Failed with error " + error); @@ -395,9 +413,10 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory /// Thrown when application does not have proper privileges + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] public void Replace(CalendarList list, int[] idArray) { - int error = Interop.Calendar.Database.ReplaceRecords(list._listHandle, idArray, idArray.Length); + int error = Interop.Database.ReplaceRecords(list._listHandle, idArray, idArray.Length); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Replace Failed with error " + error); @@ -421,10 +440,12 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory /// Thrown when application does not have proper privileges + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] public CalendarList GetChangesByVersion(string viewUri, int BookId, int calendarDBVersion, out int currentDBVersion) { IntPtr recordList; - int error = Interop.Calendar.Database.GetChangesByVersion(viewUri, BookId, calendarDBVersion, out recordList, out currentDBVersion); + int error = Interop.Database.GetChangesByVersion(viewUri, BookId, calendarDBVersion, out recordList, out currentDBVersion); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "GetChangesByVersion Failed with error " + error); @@ -441,10 +462,12 @@ namespace Tizen.Pims.Calendar /// The count of records /// /// http://tizen.org/privilege/calendar.read + [SuppressMessage("Microsoft.Design", "CA1822:MarkMembersAsStatic")] + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] public int GetCount(string viewUri) { int count = -1; - int error = Interop.Calendar.Database.GetCount(viewUri, out count); + int error = Interop.Database.GetCount(viewUri, out count); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "GetCount Failed with error " + error); @@ -461,10 +484,11 @@ namespace Tizen.Pims.Calendar /// The count of records /// /// http://tizen.org/privilege/calendar.read + [SuppressMessage("Microsoft.Design", "CA1822:MarkMembersAsStatic")] public int GetCount(CalendarQuery query) { int count = -1; - int error = Interop.Calendar.Database.GetCountWithQuery(query._queryHandle, out count); + int error = Interop.Database.GetCountWithQuery(query._queryHandle, out count); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "GetCount Failed with error " + error); @@ -479,7 +503,8 @@ namespace Tizen.Pims.Calendar /// The view URI of the record to subscribe for change notifications /// The callback function to register /// http://tizen.org/privilege/calendar.read - public void AddDBChangedDelegate(string viewUri, CalendarDBChangedDelegate callback) + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] + public void AddDBChangedDelegate(string viewUri, CalendarDBChanged callback) { Log.Debug(Globals.LogTag, "AddDBChangedDelegate"); @@ -487,7 +512,7 @@ namespace Tizen.Pims.Calendar { _callbackMap[uri](uri); }; - int error = Interop.Calendar.Database.AddChangedCallback(viewUri, _dbChangedDelegate, IntPtr.Zero); + int error = Interop.Database.AddChangedCallback(viewUri, _dbChangedDelegate, IntPtr.Zero); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "AddDBChangedDelegate Failed with error " + error); @@ -498,16 +523,17 @@ namespace Tizen.Pims.Calendar } /// - /// Unregisters a callback function. + /// Deregisters a callback function. /// /// The view URI of the record to subscribe for change notifications /// The callback function to register /// http://tizen.org/privilege/calendar.read - public void RemoveDBChangedDelegate(string viewUri, CalendarDBChangedDelegate callback) + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] + public void RemoveDBChangedDelegate(string viewUri, CalendarDBChanged callback) { Log.Debug(Globals.LogTag, "RemoveDBChangedDelegate"); - int error = Interop.Calendar.Database.RemoveChangedCallback(viewUri, _delegateMap[viewUri], IntPtr.Zero); + int error = Interop.Database.RemoveChangedCallback(viewUri, _delegateMap[viewUri], IntPtr.Zero); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "RemoveDBChangedDelegate Failed with error " + error); @@ -528,10 +554,11 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory /// Thrown when application does not have proper privileges + [SuppressMessage("Microsoft.Design", "CA1822:MarkMembersAsStatic")] public void LinkRecord(int baseId, int recordId) { Log.Debug(Globals.LogTag, "LinkRecord"); - int error = Interop.Calendar.Database.LinkRecord(baseId, recordId); + int error = Interop.Database.LinkRecord(baseId, recordId); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "LinkRecor Failed with error " + error); @@ -549,10 +576,11 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory /// Thrown when application does not have proper privileges + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] public void UnlinkRecord(int recordId) { Log.Debug(Globals.LogTag, "UnlinkRecord"); - int error = Interop.Calendar.Database.UnlinkRecord(recordId); + int error = Interop.Database.UnlinkRecord(recordId); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "UnlinkRecor Failed with error " + error); diff --git a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarErrorFactory.cs b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarErrorFactory.cs index 6918f88..9e97d31 100644 --- a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarErrorFactory.cs +++ b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarErrorFactory.cs @@ -15,7 +15,6 @@ */ using System; -using Tizen.Internals.Errors; namespace Tizen.Pims.Calendar { diff --git a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarFilter.cs b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarFilter.cs index fd59b0f..431fb1b 100644 --- a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarFilter.cs +++ b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarFilter.cs @@ -15,7 +15,7 @@ */ using System; -using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace Tizen.Pims.Calendar { @@ -36,17 +36,18 @@ namespace Tizen.Pims.Calendar /// Thrown when an invoked method is not supported /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] public CalendarFilter(string viewUri, uint propertyId, StringMatchType matchType, string matchValue) { int error = 0; - error = Interop.Calendar.Filter.Create(viewUri, out _filterHandle); + error = Interop.Filter.Create(viewUri, out _filterHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "CalendarFilter Failed with error " + error); throw CalendarErrorFactory.GetException(error); } - error = Interop.Calendar.Filter.AddString(_filterHandle, propertyId, matchType, matchValue); + error = Interop.Filter.AddString(_filterHandle, propertyId, matchType, matchValue); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "CalendarFilter Failed with error " + error); @@ -64,17 +65,18 @@ namespace Tizen.Pims.Calendar /// Thrown when an invoked method is not supported /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] public CalendarFilter(string viewUri, uint propertyId, IntegerMatchType matchType, int matchValue) { int error = 0; - error = Interop.Calendar.Filter.Create(viewUri, out _filterHandle); + error = Interop.Filter.Create(viewUri, out _filterHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "CalendarFilter Failed with error " + error); throw CalendarErrorFactory.GetException(error); } - error = Interop.Calendar.Filter.AddInteger(_filterHandle, propertyId, matchType, matchValue); + error = Interop.Filter.AddInteger(_filterHandle, propertyId, matchType, matchValue); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "CalendarFilter Failed with error " + error); @@ -92,17 +94,18 @@ namespace Tizen.Pims.Calendar /// Thrown when an invoked method is not supported /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] public CalendarFilter(string viewUri, uint propertyId, IntegerMatchType matchType, long matchValue) { int error = 0; - error = Interop.Calendar.Filter.Create(viewUri, out _filterHandle); + error = Interop.Filter.Create(viewUri, out _filterHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "CalendarFilter Failed with error " + error); throw CalendarErrorFactory.GetException(error); } - error = Interop.Calendar.Filter.AddLong(_filterHandle, propertyId, matchType, matchValue); + error = Interop.Filter.AddLong(_filterHandle, propertyId, matchType, matchValue); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "CalendarFilter Failed with error " + error); @@ -120,17 +123,18 @@ namespace Tizen.Pims.Calendar /// Thrown when an invoked method is not supported /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] public CalendarFilter(string viewUri, uint propertyId, IntegerMatchType matchType, double matchValue) { int error = 0; - error = Interop.Calendar.Filter.Create(viewUri, out _filterHandle); + error = Interop.Filter.Create(viewUri, out _filterHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "CalendarFilter Failed with error " + error); throw CalendarErrorFactory.GetException(error); } - error = Interop.Calendar.Filter.AddDouble(_filterHandle, propertyId, matchType, matchValue); + error = Interop.Filter.AddDouble(_filterHandle, propertyId, matchType, matchValue); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "CalendarFilter Failed with error " + error); @@ -148,18 +152,19 @@ namespace Tizen.Pims.Calendar /// Thrown when an invoked method is not supported /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] public CalendarFilter(string viewUri, uint propertyId, IntegerMatchType matchType, CalendarTime matchValue) { int error = 0; - error = Interop.Calendar.Filter.Create(viewUri, out _filterHandle); + error = Interop.Filter.Create(viewUri, out _filterHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "CalendarFilter Failed with error " + error); throw CalendarErrorFactory.GetException(error); } - Interop.Calendar.Record.DateTime time = CalendarRecord.ConvertCalendarTimeToStruct(matchValue); - error = Interop.Calendar.Filter.AddCalendarTime(_filterHandle, propertyId, matchType, time); + Interop.Record.DateTime time = CalendarRecord.ConvertCalendarTimeToStruct(matchValue); + error = Interop.Filter.AddCalendarTime(_filterHandle, propertyId, matchType, time); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "CalendarFilter Failed with error " + error); @@ -167,6 +172,9 @@ namespace Tizen.Pims.Calendar } } + /// + /// Destroy filter. + /// ~CalendarFilter() { Dispose(false); @@ -184,7 +192,7 @@ namespace Tizen.Pims.Calendar /// /// Full string, case-insensitive /// - Fullstring, + FullString, /// /// Sub string, case-insensitive /// @@ -192,11 +200,11 @@ namespace Tizen.Pims.Calendar /// /// Start with, case-insensitive /// - Startswith, + StartsWith, /// /// End with, case-insensitive /// - Endswith, + EndsWith, /// /// IS NOT NUL /// @@ -256,13 +264,16 @@ namespace Tizen.Pims.Calendar #region IDisposable Support private bool disposedValue = false; // To detect redundant calls + /// + /// Dispose + /// protected virtual void Dispose(bool disposing) { if (!disposedValue) { Log.Debug(Globals.LogTag, "Dispose :" + disposing); - int error = Interop.Calendar.Filter.Destroy(_filterHandle); + int error = Interop.Filter.Destroy(_filterHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Destroy Failed with error " + error); @@ -274,11 +285,12 @@ namespace Tizen.Pims.Calendar /// /// Releases all resources used by the CalendarFilter. - /// It should be called after finished using of the object. + /// It should be called after having finished using of the object. /// public void Dispose() { Dispose(true); + GC.SuppressFinalize(this); } #endregion @@ -288,19 +300,19 @@ namespace Tizen.Pims.Calendar /// The operator type /// The property ID to add a condition /// The match flag - /// The match valu + /// The match value /// Thrown when an invoked method is not supported /// Thrown when one of the arguments provided to a method is not valid public void AddCondition(LogicalOperator logicalOperator, uint propertyId, StringMatchType matchType, string matchValue) { - int error = Interop.Calendar.Filter.AddOperator(_filterHandle, logicalOperator); + int error = Interop.Filter.AddOperator(_filterHandle, logicalOperator); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "AddCondition Failed with error " + error); throw CalendarErrorFactory.GetException(error); } - error = Interop.Calendar.Filter.AddString(_filterHandle, propertyId, matchType, matchValue); + error = Interop.Filter.AddString(_filterHandle, propertyId, matchType, matchValue); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "AddCondition Failed with error " + error); @@ -314,19 +326,19 @@ namespace Tizen.Pims.Calendar /// The operator type /// The property ID to add a condition /// The match flag - /// The match valu + /// The match value /// Thrown when an invoked method is not supported /// Thrown when one of the arguments provided to a method is not valid public void AddCondition(LogicalOperator logicalOperator, uint propertyId, IntegerMatchType matchType, int matchValue) { - int error = Interop.Calendar.Filter.AddOperator(_filterHandle, logicalOperator); + int error = Interop.Filter.AddOperator(_filterHandle, logicalOperator); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "AddCondition Failed with error " + error); throw CalendarErrorFactory.GetException(error); } - error = Interop.Calendar.Filter.AddInteger(_filterHandle, propertyId, matchType, matchValue); + error = Interop.Filter.AddInteger(_filterHandle, propertyId, matchType, matchValue); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "AddCondition Failed with error " + error); @@ -340,19 +352,19 @@ namespace Tizen.Pims.Calendar /// The operator type /// The property ID to add a condition /// The match flag - /// The match valu + /// The match value /// Thrown when an invoked method is not supported /// Thrown when one of the arguments provided to a method is not valid public void AddCondition(LogicalOperator logicalOperator, uint propertyId, IntegerMatchType matchType, long matchValue) { - int error = Interop.Calendar.Filter.AddOperator(_filterHandle, logicalOperator); + int error = Interop.Filter.AddOperator(_filterHandle, logicalOperator); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "AddCondition Failed with error " + error); throw CalendarErrorFactory.GetException(error); } - error = Interop.Calendar.Filter.AddLong(_filterHandle, propertyId, matchType, matchValue); + error = Interop.Filter.AddLong(_filterHandle, propertyId, matchType, matchValue); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "AddCondition Failed with error " + error); @@ -366,19 +378,19 @@ namespace Tizen.Pims.Calendar /// The operator type /// The property ID to add a condition /// The match flag - /// The match valu + /// The match value /// Thrown when an invoked method is not supported /// Thrown when one of the arguments provided to a method is not valid public void AddCondition(LogicalOperator logicalOperator, uint propertyId, IntegerMatchType matchType, double matchValue) { - int error = Interop.Calendar.Filter.AddOperator(_filterHandle, logicalOperator); + int error = Interop.Filter.AddOperator(_filterHandle, logicalOperator); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "AddCondition Failed with error " + error); throw CalendarErrorFactory.GetException(error); } - error = Interop.Calendar.Filter.AddDouble(_filterHandle, propertyId, matchType, matchValue); + error = Interop.Filter.AddDouble(_filterHandle, propertyId, matchType, matchValue); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "AddCondition Failed with error " + error); @@ -392,20 +404,20 @@ namespace Tizen.Pims.Calendar /// The operator type /// The property ID to add a condition /// The match flag - /// The match valu + /// The match value /// Thrown when an invoked method is not supported /// Thrown when one of the arguments provided to a method is not valid public void AddCondition(LogicalOperator logicalOperator, uint propertyId, IntegerMatchType matchType, CalendarTime matchValue) { - int error = Interop.Calendar.Filter.AddOperator(_filterHandle, logicalOperator); + int error = Interop.Filter.AddOperator(_filterHandle, logicalOperator); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "AddCondition Failed with error " + error); throw CalendarErrorFactory.GetException(error); } - Interop.Calendar.Record.DateTime time = CalendarRecord.ConvertCalendarTimeToStruct(matchValue); - error = Interop.Calendar.Filter.AddCalendarTime(_filterHandle, propertyId, matchType, time); + Interop.Record.DateTime time = CalendarRecord.ConvertCalendarTimeToStruct(matchValue); + error = Interop.Filter.AddCalendarTime(_filterHandle, propertyId, matchType, time); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "AddCondition Failed with error " + error); @@ -422,14 +434,14 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid public void AddFilter(LogicalOperator logicalOperator, CalendarFilter filter) { - int error = Interop.Calendar.Filter.AddOperator(_filterHandle, logicalOperator); + int error = Interop.Filter.AddOperator(_filterHandle, logicalOperator); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "AddCondition Failed with error " + error); throw CalendarErrorFactory.GetException(error); } - error = Interop.Calendar.Filter.AddFilter(_filterHandle, filter._filterHandle); + error = Interop.Filter.AddFilter(_filterHandle, filter._filterHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "AddFilter Failed with error " + error); diff --git a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarList.cs b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarList.cs index fdcf2a9..0c5ac4a 100644 --- a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarList.cs +++ b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarList.cs @@ -15,8 +15,6 @@ */ using System; -using System.Collections; -using System.Collections.Generic; namespace Tizen.Pims.Calendar { @@ -33,7 +31,7 @@ namespace Tizen.Pims.Calendar { _listHandle = handle; - _memoryPressure += this.Count * CalendarViews.AverageSizeOfRecord; + _memoryPressure += this.Count * CalendarViews.Record.AverageSize; GC.AddMemoryPressure(_memoryPressure); } @@ -44,7 +42,7 @@ namespace Tizen.Pims.Calendar /// Thrown when failed due to out of memory public CalendarList() { - int error = Interop.Calendar.List.Create(out _listHandle); + int error = Interop.List.Create(out _listHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "CalendarList Failed with error " + error); @@ -53,14 +51,10 @@ namespace Tizen.Pims.Calendar GC.AddMemoryPressure(_memoryPressure); } - ~CalendarList() - { - Dispose(false); - } - /// /// The count of the calendar entity. /// + /// The count of calendar entity. public int Count { get @@ -68,7 +62,7 @@ namespace Tizen.Pims.Calendar if (_count == -1) { int count = -1; - int error = Interop.Calendar.List.GetCount(_listHandle, out count); + int error = Interop.List.GetCount(_listHandle, out count); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "GetCount Failed with error " + error); @@ -79,16 +73,28 @@ namespace Tizen.Pims.Calendar } } + /// + /// Destory CalendarList resource. + /// + ~CalendarList() + { + Dispose(false); + } + #region IDisposable Support private bool disposedValue = false; // To detect redundant calls + /// + /// Disposes of the resources (other than memory) used by the CalendarList. + /// + /// true to release both managed and unmanaged resources; false to release only unmanaged resources. protected virtual void Dispose(bool disposing) { if (!disposedValue) { Log.Debug(Globals.LogTag, "Dispose :" + disposing); - int error = Interop.Calendar.List.Destroy(_listHandle, true); + int error = Interop.List.Destroy(_listHandle, true); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Destroy Failed with error " + error); @@ -101,11 +107,12 @@ namespace Tizen.Pims.Calendar /// /// Releases all resources used by the CalendarList. - /// It should be called after finished using of the object. + /// It should be called after having finished using of the object. /// public void Dispose() { Dispose(true); + GC.SuppressFinalize(this); } #endregion @@ -117,7 +124,7 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid public void AddRecord(CalendarRecord record) { - int error = Interop.Calendar.List.Add(_listHandle, record._recordHandle); + int error = Interop.List.Add(_listHandle, record._recordHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "AddRecord Failed with error " + error); @@ -125,7 +132,7 @@ namespace Tizen.Pims.Calendar } record._disposedValue = true; _count = -1; - _memoryPressure += CalendarViews.AverageSizeOfRecord; + _memoryPressure += CalendarViews.Record.AverageSize; } /// @@ -136,7 +143,7 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid public void RemoveRecord(CalendarRecord record) { - int error = Interop.Calendar.List.Remove(_listHandle, record._recordHandle); + int error = Interop.List.Remove(_listHandle, record._recordHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "RemoveRecord Failed with error " + error); @@ -144,7 +151,7 @@ namespace Tizen.Pims.Calendar } record._disposedValue = false; _count = -1; - _memoryPressure -= CalendarViews.AverageSizeOfRecord; + _memoryPressure -= CalendarViews.Record.AverageSize; } /// @@ -156,7 +163,7 @@ namespace Tizen.Pims.Calendar public CalendarRecord GetCurrentRecord() { IntPtr handle; - int error = Interop.Calendar.List.GetCurrentRecordP(_listHandle, out handle); + int error = Interop.List.GetCurrentRecordP(_listHandle, out handle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "GetCurrentRecord Failed with error " + error); @@ -173,7 +180,7 @@ namespace Tizen.Pims.Calendar /// public bool MovePrevious() { - int error = Interop.Calendar.List.Prev(_listHandle); + int error = Interop.List.Prev(_listHandle); if (CalendarError.None == (CalendarError)error) { return true; @@ -198,7 +205,7 @@ namespace Tizen.Pims.Calendar /// public bool MoveNext() { - int error = Interop.Calendar.List.Next(_listHandle); + int error = Interop.List.Next(_listHandle); if (CalendarError.None == (CalendarError)error) { return true; @@ -220,7 +227,7 @@ namespace Tizen.Pims.Calendar /// public void MoveFirst() { - int error = Interop.Calendar.List.First(_listHandle); + int error = Interop.List.First(_listHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "MoveFirst Failed with error " + error); @@ -233,7 +240,7 @@ namespace Tizen.Pims.Calendar /// public void MoveLast() { - int error = Interop.Calendar.List.Last(_listHandle); + int error = Interop.List.Last(_listHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "MoveLast Failed with error " + error); diff --git a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarManager.cs b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarManager.cs index af6ef04..cce5eb0 100644 --- a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarManager.cs +++ b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarManager.cs @@ -15,8 +15,7 @@ */ using System; -using System.Collections.Generic; -using static Interop.Calendar.Service; +using System.Diagnostics.CodeAnalysis; namespace Tizen.Pims.Calendar { @@ -33,7 +32,7 @@ namespace Tizen.Pims.Calendar /// Thrown when method failed due to invalid operation public CalendarManager() { - int error = Interop.Calendar.Service.Connect(); + int error = Interop.Service.Connect(); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Connect Failed with error " + error); @@ -42,6 +41,9 @@ namespace Tizen.Pims.Calendar _db = new CalendarDatabase(); } + /// + /// Destory CalendarManager resource. + /// ~CalendarManager() { Dispose(false); @@ -51,13 +53,17 @@ namespace Tizen.Pims.Calendar /// To detect redundant calls private bool disposedValue = false; + /// + /// Disposes of the resources (other than memory) used by the CalendarManager. + /// + /// true to release both managed and unmanaged resources; false to release only unmanaged resources. protected virtual void Dispose(bool disposing) { if (!disposedValue) { Log.Debug(Globals.LogTag, "Dispose :" + disposing); - int error = Interop.Calendar.Service.Disconnect(); + int error = Interop.Service.Disconnect(); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Disconnect Failed with error " + error); @@ -69,17 +75,19 @@ namespace Tizen.Pims.Calendar /// /// Releases all resources used by the CalendarManager. - /// It should be called after finished using of the object. + /// It should be called after having finished using of the object. /// public void Dispose() { Dispose(true); + GC.SuppressFinalize(this); } #endregion /// /// Get database. /// + /// The database instance public CalendarDatabase Database { get diff --git a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarQuery.cs b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarQuery.cs index 941699a..5ddf149 100644 --- a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarQuery.cs +++ b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarQuery.cs @@ -15,10 +15,11 @@ */ using System; -using static Interop.Calendar.Query; +using System.Diagnostics.CodeAnalysis; namespace Tizen.Pims.Calendar { + /// /// A query is used to retrieve data which satisfies given criteria. /// /// @@ -27,7 +28,7 @@ namespace Tizen.Pims.Calendar /// or a string property containing a given substring. /// A query needs a filter which can set the conditions for the search. /// - public class CalendarQuery : IDisposable + public class CalendarQuery:IDisposable { internal IntPtr _queryHandle; @@ -38,9 +39,10 @@ namespace Tizen.Pims.Calendar /// Thrown when an invoked method is not supported /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] public CalendarQuery(string viewUri) { - int error = Interop.Calendar.Query.Create(viewUri, out _queryHandle); + int error = Interop.Query.Create(viewUri, out _queryHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "CalendarQuery Failed with error " + error); @@ -53,6 +55,9 @@ namespace Tizen.Pims.Calendar _queryHandle = handle; } + /// + /// Destructor + /// ~CalendarQuery() { Dispose(false); @@ -61,13 +66,17 @@ namespace Tizen.Pims.Calendar #region IDisposable Support private bool disposedValue = false; + /// + /// Disposes of the resources (other than memory) used by the CalendarQuery. + /// + /// true to release both managed and unmanaged resources; false to release only unmanaged resources. protected virtual void Dispose(bool disposing) { if (!disposedValue) { Log.Debug(Globals.LogTag, "Dispose :" + disposing); - int error = Interop.Calendar.Query.Destroy(_queryHandle); + int error = Interop.Query.Destroy(_queryHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "CalendarQueryDestroy Failed with error " + error); @@ -79,11 +88,12 @@ namespace Tizen.Pims.Calendar /// /// Releases all resources used by the CalendarQuery. - /// It should be called after finished using of the object. + /// It should be called after having finished using of the object. /// public void Dispose() { Dispose(true); + GC.SuppressFinalize(this); } #endregion @@ -94,7 +104,7 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid public void SetProjection(uint[] propertyIdArray) { - int error = Interop.Calendar.Query.SetProjection(_queryHandle, propertyIdArray, propertyIdArray.Length); + int error = Interop.Query.SetProjection(_queryHandle, propertyIdArray, propertyIdArray.Length); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "SetProjection Failed with error " + error); @@ -109,7 +119,7 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid public void SetDistinct(bool set) { - int error = Interop.Calendar.Query.SetDistinct(_queryHandle, set); + int error = Interop.Query.SetDistinct(_queryHandle, set); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "SetDistinct Failed with error " + error); @@ -124,7 +134,7 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid public void SetFilter(CalendarFilter filter) { - int error = Interop.Calendar.Query.SetFilter(_queryHandle, filter._filterHandle); + int error = Interop.Query.SetFilter(_queryHandle, filter._filterHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "SetFilter Failed with error " + error); @@ -140,7 +150,7 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid public void SetSort(uint propertyId, bool isAscending) { - int error = Interop.Calendar.Query.SetSort(_queryHandle, propertyId, isAscending); + int error = Interop.Query.SetSort(_queryHandle, propertyId, isAscending); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "SetSort Failed with error " + error); diff --git a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarRecord.cs b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarRecord.cs index 224ff4e..7d458e6 100644 --- a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarRecord.cs +++ b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarRecord.cs @@ -15,8 +15,8 @@ */ using System; -using System.Collections.Generic; using System.Runtime.InteropServices; +using System.Diagnostics.CodeAnalysis; namespace Tizen.Pims.Calendar { @@ -36,7 +36,7 @@ namespace Tizen.Pims.Calendar { internal string _uri; internal uint _id; - private Int64 _memoryPressure = CalendarViews.AverageSizeOfRecord; + private Int64 _memoryPressure = CalendarViews.Record.AverageSize; internal IntPtr _recordHandle; internal CalendarRecord(IntPtr handle) @@ -44,7 +44,7 @@ namespace Tizen.Pims.Calendar _recordHandle = handle; IntPtr viewUri; - int error = Interop.Calendar.Record.GetUriPointer(handle, out viewUri); + int error = Interop.Record.GetUriPointer(handle, out viewUri); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "GetUriPointer Failed with error " + error); @@ -60,7 +60,7 @@ namespace Tizen.Pims.Calendar _disposedValue = disposedValue; IntPtr viewUri; - int error = Interop.Calendar.Record.GetUriPointer(handle, out viewUri); + int error = Interop.Record.GetUriPointer(handle, out viewUri); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "GetUriPointer Failed with error " + error); @@ -77,7 +77,7 @@ namespace Tizen.Pims.Calendar _id = (uint)id; IntPtr viewUri; - int error = Interop.Calendar.Record.GetUriPointer(handle, out viewUri); + int error = Interop.Record.GetUriPointer(handle, out viewUri); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "GetUriPointer Failed with error " + error); @@ -94,10 +94,11 @@ namespace Tizen.Pims.Calendar /// Thrown when an invoked method is not supported /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] public CalendarRecord(string viewUri) { int error = 0; - error = Interop.Calendar.Record.Create(viewUri, out _recordHandle); + error = Interop.Record.Create(viewUri, out _recordHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "CalendarRecord Failed with error " + error); @@ -107,6 +108,9 @@ namespace Tizen.Pims.Calendar GC.AddMemoryPressure(_memoryPressure); } + /// + /// Destructor + /// ~CalendarRecord() { Dispose(false); @@ -116,13 +120,17 @@ namespace Tizen.Pims.Calendar /// To detect redundant calls internal bool _disposedValue = false; + /// + /// Disposes of the resources (other than memory) used by the CalendarRecord. + /// + /// true to release both managed and unmanaged resources; false to release only unmanaged resources. protected virtual void Dispose(bool disposing) { if (!_disposedValue) { Log.Debug(Globals.LogTag, "Dispose :" + disposing); - int error = Interop.Calendar.Record.Destroy(_recordHandle, false); + int error = Interop.Record.Destroy(_recordHandle, false); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Destroy Failed with error " + error); @@ -135,17 +143,18 @@ namespace Tizen.Pims.Calendar /// /// Releases all resources used by the CalendarRecord. - /// It should be called after finished using of the object. + /// It should be called after having finished using of the object. /// public void Dispose() { Dispose(true); + GC.SuppressFinalize(this); } #endregion - internal static Interop.Calendar.Record.DateTime ConvertCalendarTimeToStruct(CalendarTime value) + internal static Interop.Record.DateTime ConvertCalendarTimeToStruct(CalendarTime value) { - Interop.Calendar.Record.DateTime time = new Interop.Calendar.Record.DateTime(); + Interop.Record.DateTime time = new Interop.Record.DateTime(); time.type = value._type; if ((int)CalendarTime.Type.Utc == value._type) @@ -165,7 +174,7 @@ namespace Tizen.Pims.Calendar return time; } - internal static CalendarTime ConvertIntPtrToCalendarTime(Interop.Calendar.Record.DateTime time) + internal static CalendarTime ConvertIntPtrToCalendarTime(Interop.Record.DateTime time) { CalendarTime value; if ((int)CalendarTime.Type.Utc == time.type) @@ -191,7 +200,7 @@ namespace Tizen.Pims.Calendar public CalendarRecord Clone() { IntPtr _clonedRecordHandle; - int error = Interop.Calendar.Record.Clone(_recordHandle, out _clonedRecordHandle); + int error = Interop.Record.Clone(_recordHandle, out _clonedRecordHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Clone Failed with error " + error); @@ -201,8 +210,10 @@ namespace Tizen.Pims.Calendar } /// - /// The URI of the record + /// Get record URI. /// + /// The URI of the record + [SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings")] public string Uri { get @@ -225,7 +236,7 @@ namespace Tizen.Pims.Calendar if (typeof(T) == typeof(string)) { string val; - int error = Interop.Calendar.Record.GetString(_recordHandle, propertyId, out val); + int error = Interop.Record.GetString(_recordHandle, propertyId, out val); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Get String Failed [" + error + "]" + String.Format("{0:X}", propertyId)); @@ -236,7 +247,7 @@ namespace Tizen.Pims.Calendar else if (typeof(T) == typeof(int)) { int val; - int error = Interop.Calendar.Record.GetInteger(_recordHandle, propertyId, out val); + int error = Interop.Record.GetInteger(_recordHandle, propertyId, out val); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Get Intger Failed [" + error + "]" + String.Format("{0:X}", propertyId)); @@ -247,7 +258,7 @@ namespace Tizen.Pims.Calendar else if (typeof(T) == typeof(long)) { long val; - int error = Interop.Calendar.Record.GetLli(_recordHandle, propertyId, out val); + int error = Interop.Record.GetLli(_recordHandle, propertyId, out val); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Get Long Failed [" + error + "]" + String.Format("{0:X}", propertyId)); @@ -258,7 +269,7 @@ namespace Tizen.Pims.Calendar else if (typeof(T) == typeof(double)) { double val; - int error = Interop.Calendar.Record.GetDouble(_recordHandle, propertyId, out val); + int error = Interop.Record.GetDouble(_recordHandle, propertyId, out val); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Get Double Failed [" + error + "]" + String.Format("{0:X}", propertyId)); @@ -268,8 +279,8 @@ namespace Tizen.Pims.Calendar } else if (typeof(T) == typeof(CalendarTime)) { - Interop.Calendar.Record.DateTime time; - int error = Interop.Calendar.Record.GetCalendarTime(_recordHandle, propertyId, out time); + Interop.Record.DateTime time; + int error = Interop.Record.GetCalendarTime(_recordHandle, propertyId, out time); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Get CalendarTime Failed [" + error + "]" + String.Format("{0:X}", propertyId)); @@ -297,7 +308,7 @@ namespace Tizen.Pims.Calendar if (typeof(T) == typeof(string)) { string val = Convert.ToString(value); - int error = Interop.Calendar.Record.SetString(_recordHandle, propertyId, val); + int error = Interop.Record.SetString(_recordHandle, propertyId, val); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Set String Failed [" + error + "]" + String.Format("{0:X}", propertyId)); @@ -307,7 +318,7 @@ namespace Tizen.Pims.Calendar else if (typeof(T) == typeof(int)) { int val = Convert.ToInt32(value); - int error = Interop.Calendar.Record.SetInteger(_recordHandle, propertyId, val); + int error = Interop.Record.SetInteger(_recordHandle, propertyId, val); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Set Integer Failed [" + error + "]" + String.Format("{0:X}", propertyId)); @@ -317,7 +328,7 @@ namespace Tizen.Pims.Calendar else if (typeof(T) == typeof(long)) { long val = Convert.ToInt64(value); - int error = Interop.Calendar.Record.SetLli(_recordHandle, propertyId, val); + int error = Interop.Record.SetLli(_recordHandle, propertyId, val); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Set Long Failed [" + error + "]" + String.Format("{0:X}", propertyId)); @@ -327,7 +338,7 @@ namespace Tizen.Pims.Calendar else if (typeof(T) == typeof(double)) { double val = Convert.ToDouble(value); - int error = Interop.Calendar.Record.SetDouble(_recordHandle, propertyId, val); + int error = Interop.Record.SetDouble(_recordHandle, propertyId, val); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Set Double Failed [" + error + "]" + String.Format("{0:X}", propertyId)); @@ -337,8 +348,8 @@ namespace Tizen.Pims.Calendar else if (typeof(T) == typeof(CalendarTime)) { CalendarTime time = (CalendarTime)Convert.ChangeType(value, typeof(CalendarTime)); - Interop.Calendar.Record.DateTime val = ConvertCalendarTimeToStruct(time); - int error = Interop.Calendar.Record.SetCalendarTime(_recordHandle, propertyId, val); + Interop.Record.DateTime val = ConvertCalendarTimeToStruct(time); + int error = Interop.Record.SetCalendarTime(_recordHandle, propertyId, val); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Set CalendarTime Failed [" + error + "]" + String.Format("{0:X}", propertyId)); @@ -360,7 +371,7 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid public void AddChildRecord(uint propertyId, CalendarRecord childRecord) { - int error = Interop.Calendar.Record.AddChildRecord(_recordHandle, propertyId, childRecord._recordHandle); + int error = Interop.Record.AddChildRecord(_recordHandle, propertyId, childRecord._recordHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "AddChildRecord Failed [" + error + "]" + String.Format("{0:X}", propertyId)); @@ -377,7 +388,7 @@ namespace Tizen.Pims.Calendar /// Thrown when one of the arguments provided to a method is not valid public void RemoveChildRecord(uint propertyId, CalendarRecord childRecord) { - int error = Interop.Calendar.Record.RemoveChildRecord(_recordHandle, propertyId, childRecord._recordHandle); + int error = Interop.Record.RemoveChildRecord(_recordHandle, propertyId, childRecord._recordHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "RemoveChildRecord Failed [" + error + "]" + String.Format("{0:X}", propertyId)); @@ -397,7 +408,7 @@ namespace Tizen.Pims.Calendar public int GetChildRecordCount(uint propertyId) { int count = 0; - int error = Interop.Calendar.Record.GetChildRecordCount(_recordHandle, propertyId, out count); + int error = Interop.Record.GetChildRecordCount(_recordHandle, propertyId, out count); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "GetChildRecordCount Failed [" + error + "]" + String.Format("{0:X}", propertyId)); @@ -419,7 +430,7 @@ namespace Tizen.Pims.Calendar { IntPtr handle; - int error = Interop.Calendar.Record.GetChildRecordPointer(_recordHandle, propertyId, index, out handle); + int error = Interop.Record.GetChildRecordPointer(_recordHandle, propertyId, index, out handle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "GetChildRecord Failed [" + error + "]" + String.Format("{0:X}", propertyId)); @@ -439,7 +450,7 @@ namespace Tizen.Pims.Calendar public CalendarList CloneChildRecordList(uint propertyId) { IntPtr listHandle; - int error = Interop.Calendar.Record.CloneChildRecordList(_recordHandle, propertyId, out listHandle); + int error = Interop.Record.CloneChildRecordList(_recordHandle, propertyId, out listHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "CloneChildRecordList Failed with [" + error + "]" + String.Format("{0:X}", propertyId)); diff --git a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarReminder.cs b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarReminder.cs index f1193ef..4063591 100644 --- a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarReminder.cs +++ b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarReminder.cs @@ -15,7 +15,6 @@ */ using System; -using static Interop.Calendar.Reminder; namespace Tizen.Pims.Calendar { @@ -25,7 +24,7 @@ namespace Tizen.Pims.Calendar /// /// The client who wants to be alerted at specific time should register MIME("application/x-tizen.calendar.reminder") type in manifest.xml file. /// - public class CalendarReminder : IDisposable + public class CalendarReminder:IDisposable { #region IDisposable Support private bool disposedValue = false; @@ -34,6 +33,10 @@ namespace Tizen.Pims.Calendar { } + /// + /// Disposes of the resources (other than memory) used by the CalendarReminder. + /// + /// true to release both managed and unmanaged resources; false to release only unmanaged resources. protected virtual void Dispose(bool disposing) { if (!disposedValue) @@ -44,7 +47,7 @@ namespace Tizen.Pims.Calendar /// /// Releases all resources used by the CalendarReminder. - /// It should be called after finished using of the object. + /// It should be called after having finished using of the object. /// public void Dispose() { @@ -52,7 +55,7 @@ namespace Tizen.Pims.Calendar } #endregion - private static readonly Interop.Calendar.Reminder.ReminderAlertedCallback _reminderAlertedCallback = (string param, IntPtr userData) => + private static readonly Interop.Reminder.ReminderAlertedCallback _reminderAlertedCallback = (string param, IntPtr userData) => { ReminderAlertedEventArgs args = new ReminderAlertedEventArgs(param); s_reminderAlerted?.Invoke(null, args); @@ -71,7 +74,7 @@ namespace Tizen.Pims.Calendar if (s_reminderAlerted == null) { - int error = Interop.Calendar.Reminder.Add(_reminderAlertedCallback, IntPtr.Zero); + int error = Interop.Reminder.Add(_reminderAlertedCallback, IntPtr.Zero); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Add reminder Failed with error " + error); @@ -89,7 +92,7 @@ namespace Tizen.Pims.Calendar if (s_reminderAlerted == null) { /// _reminderAlertedCallback is removed by .Net Core - int error = Interop.Calendar.Reminder.Remove(_reminderAlertedCallback, IntPtr.Zero); + int error = Interop.Reminder.Remove(_reminderAlertedCallback, IntPtr.Zero); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Remove reminder Failed with error " + error); diff --git a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarStructs.cs b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarStructs.cs index 3ac883c..2087cc3 100644 --- a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarStructs.cs +++ b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarStructs.cs @@ -15,14 +15,13 @@ */ using System; -using System.Runtime.InteropServices; namespace Tizen.Pims.Calendar { /// - /// A class for time to set, get or calcurate. + /// A class for time to set, get or calculate. /// - public class CalendarTime : IComparable + public class CalendarTime:IComparable { internal int _type; internal const int milliseconds = 10000000; @@ -71,8 +70,9 @@ namespace Tizen.Pims.Calendar } /// - /// Get utcTime + /// Get UtcTime /// + /// The Utc time public DateTime UtcTime { get; @@ -81,6 +81,7 @@ namespace Tizen.Pims.Calendar /// /// Get localTime /// + /// The localtime public DateTime LocalTime { get; @@ -89,24 +90,38 @@ namespace Tizen.Pims.Calendar /// /// Compare CalendarTime /// - /// The CalendarTime to be compared + /// The CalendarTime to be compared /// /// A 32-bit signed integer that indicates the relative order of the objects being compared. /// /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory - public int CompareTo(CalendarTime t) + public int CompareTo(CalendarTime other) { - if (_type != t._type) + if (_type != other._type) { Log.Error(Globals.LogTag, "Not to compare with different type"); throw CalendarErrorFactory.GetException((int)CalendarError.InvalidParameter); } if (_type == (int)Type.Utc) - return UtcTime.CompareTo(t.UtcTime); + return UtcTime.CompareTo(other.UtcTime); else - return LocalTime.CompareTo(t.LocalTime); + return LocalTime.CompareTo(other.LocalTime); + } + + public bool Equals(CalendarTime other) + { + if (_type != other._type) + { + Log.Error(Globals.LogTag, "Not to compare with different type"); + throw CalendarErrorFactory.GetException((int)CalendarError.InvalidParameter); + } + + if (_type == (int)Type.Utc) + return UtcTime.Equals(other.UtcTime); + else + return LocalTime.Equals(other.LocalTime); } } } diff --git a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarTypes.cs b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarTypes.cs index 560e898..43bcf24 100644 --- a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarTypes.cs +++ b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarTypes.cs @@ -14,18 +14,15 @@ * limitations under the License. */ -using System; -using System.Collections; -using System.Collections.Generic; - -/// -/// -/// -/// namespace Tizen.Pims.Calendar { /// + /// This class provides enumurations about calendar inforamtion. /// + /// + /// Most enumurations are based on vcalendar, icalendar(ver 2.0) specification. + /// https://www.ietf.org/rfc/rfc2445.txt + /// public static class CalendarTypes { /// @@ -99,7 +96,7 @@ namespace Tizen.Pims.Calendar /// Confirmed = 0x04, /// - /// The event is canceled + /// The event is cancelled /// Cancelled = 0x08, } @@ -126,9 +123,9 @@ namespace Tizen.Pims.Calendar /// InProcess = 0x0800, /// - /// Canceled status + /// Cancelled status /// - Canceled = 0x1000, + Cancelled = 0x1000, } /// @@ -181,7 +178,7 @@ namespace Tizen.Pims.Calendar /// /// No meeting /// - Notmeeting, + NoMeeting, /// /// Meeting exists /// @@ -191,9 +188,9 @@ namespace Tizen.Pims.Calendar /// Received, /// - /// Meeting canceled + /// Meeting cancelled /// - Canceled, + Cancelled, } /// @@ -331,7 +328,7 @@ namespace Tizen.Pims.Calendar /// /// Tuesday /// - Thuesday, + Tuesday, /// /// Wednesday /// @@ -339,7 +336,7 @@ namespace Tizen.Pims.Calendar /// /// Thursday /// - Thurday, + Thursday, /// /// Friday /// @@ -347,32 +344,32 @@ namespace Tizen.Pims.Calendar /// /// Saturday /// - Saterday, + Saturday, } /// - /// Enumeration for the attendee cutype. + /// Enumeration to specify the type of calendar user specified by the property. /// public enum Cutype { /// - /// Individual cutype + /// An individual /// Individual, /// - /// Group cutype + /// A group of individuals /// Group, /// - /// Resource cutype + /// A physical resource /// - Recource, + Resource, /// - /// Room cutype + /// A room resource /// Room, /// - /// Unknown cutype + /// Otherwise not known /// Unknown, } diff --git a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarVcalendar.cs b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarVcalendar.cs index 1a7a3a8..c064da4 100644 --- a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarVcalendar.cs +++ b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarVcalendar.cs @@ -15,25 +15,23 @@ */ using System; -using System.Collections.Generic; -using System.Threading.Tasks; namespace Tizen.Pims.Calendar { /// + /// Parsing vcalendar file callback function. + /// + /// The record + public delegate bool ParseCallback(CalendarRecord record); + + /// /// A class for parsing and composing vCalendar. /// /// /// It's based on the vCalendar v2.0 specification /// - public class CalendarVcalendar + public static class CalendarVcalendar { - internal CalendarVcalendar() - { - } - - public delegate bool ParseDelegate(CalendarRecord record); - /// /// Retrieves a vcalendar stream from a calendar list. /// @@ -46,7 +44,7 @@ namespace Tizen.Pims.Calendar public static string Compose(CalendarList list) { string stream; - int error = Interop.Calendar.Vcalendar.Compose(list._listHandle, out stream); + int error = Interop.Vcalendar.Compose(list._listHandle, out stream); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "MakeVcalendar Failed with error " + error); @@ -68,7 +66,7 @@ namespace Tizen.Pims.Calendar { int error = 0; IntPtr _listHandle; - error = Interop.Calendar.Vcalendar.Parse(stream, out _listHandle); + error = Interop.Vcalendar.Parse(stream, out _listHandle); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Parse Vcalendar Failed [" + error + "]"); @@ -85,16 +83,16 @@ namespace Tizen.Pims.Calendar /// Thrown when method failed due to invalid operation /// Thrown when one of the arguments provided to a method is not valid /// Thrown when failed due to out of memory - public static void ParseForEach(string path, ParseDelegate callback) + public static void ParseForEach(string path, ParseCallback callback) { int error = 0; - Interop.Calendar.Vcalendar.ParseCallback cb = (IntPtr handle, IntPtr data) => + Interop.Vcalendar.ParseCallback cb = (IntPtr handle, IntPtr data) => { return callback(new CalendarRecord(handle, true)); }; - error = Interop.Calendar.Vcalendar.ParseForEach(path, cb, IntPtr.Zero); + error = Interop.Vcalendar.ParseForEach(path, cb, IntPtr.Zero); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "Parse foreach Vcalendar Failed [" + error + "]"); diff --git a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarViews.cs b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarViews.cs index b4ddd17..cd649a7 100644 --- a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarViews.cs +++ b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarViews.cs @@ -14,326 +14,335 @@ * limitations under the License. */ -using System; -using System.Collections; -using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace Tizen.Pims.Calendar { /// - /// This class provides information about views with properties. + /// This namespace provides information about views with properties. /// /// - /// A view is a class which describes properties of a record. - /// A record can have basic properties of five types: integer, string, long, double, CalendarTime. + /// s are provided to access and handle entities. A view is a structure, which has property elements. + /// A view is almost the same as a database "VIEW", which limits access and guarantees performance. + /// A "record" represents a single row of the views. + /// A record can have basic properties of five types: integer, string, long, double, CalendarTime. /// - public static class CalendarViews + namespace CalendarViews { - /// data type mask 0x0FF00000 - private const uint ViewMask = 0xFF000000; - private const uint ViewBook = 0x01000000; - private const uint ViewEvent = 0x02000000; - private const uint ViewTodo = 0x03000000; - private const uint ViewTimezone = 0x04000000; - private const uint ViewAttendee = 0x05000000; - private const uint ViewAlarm = 0x06000000; - private const uint ViewInstanceUtimeBook = 0x07000000; - private const uint ViewInstanceLocaltimeBook = 0x08000000; - private const uint ViewUpdateInfo = 0x09000000; - private const uint ViewExtended = 0x0A000000; - private const uint ViewInstanceUtimeBookExtended = 0x0B000000; - private const uint ViewInstanceLocaltimeBookExtended = 0x0C000000; + internal static class Property + { + /// data type mask 0x0FF00000 + private const uint Mask = 0xFF000000; + private const uint Book = 0x01000000; + private const uint Event = 0x02000000; + private const uint Todo = 0x03000000; + private const uint Timezone = 0x04000000; + private const uint Attendee = 0x05000000; + private const uint Alarm = 0x06000000; + private const uint InstanceUtimeBook = 0x07000000; + private const uint InstanceLocaltimeBook = 0x08000000; + private const uint UpdateInfo = 0x09000000; + private const uint Extended = 0x0A000000; + private const uint InstanceUtimeBookExtended = 0x0B000000; + private const uint InstanceLocaltimeBookExtended = 0x0C000000; - private const uint DataTypeMask = 0x000FF000; - private const uint DataTypeInteger = 0x00001000; - private const uint DataTypeString = 0x00002000; - private const uint DataTypeDouble = 0x00003000; - private const uint DataTypeLong = 0x00004000; - private const uint DataTypeCaltime = 0x00005000; - private const uint DataTypeRecord = 0x00006000; + private const uint DataTypeMask = 0x000FF000; + private const uint DataTypeInteger = 0x00001000; + private const uint DataTypeString = 0x00002000; + private const uint DataTypeDouble = 0x00003000; + private const uint DataTypeLong = 0x00004000; + private const uint DataTypeCaltime = 0x00005000; + private const uint DataTypeRecord = 0x00006000; - /// property : mask 0x0000F000 - private const uint PropertyMask = 0x00F00000; - private const uint PropertyFilter = 0x00100000; - private const uint PropertyProjection = 0x00200000; - private const uint PropertyReadOnly = 0x00300000; + /// property : mask 0x0000F000 + private const uint PropertyMask = 0x00F00000; + private const uint PropertyFilter = 0x00100000; + private const uint PropertyProjection = 0x00200000; + private const uint PropertyReadOnly = 0x00300000; - private enum PropertyIds : uint - { - /// book - BookId = (ViewBook|DataTypeInteger|PropertyReadOnly), - BookUid = (ViewBook|DataTypeString) + 1, - BookName = (ViewBook|DataTypeString) + 2, - BookDescription = (ViewBook|DataTypeString) + 3, - BookColor = (ViewBook|DataTypeString) + 4, - BookLocation = (ViewBook|DataTypeString) + 5, - BookVisibility = (ViewBook|DataTypeInteger) + 6, - BookSyncEvent = (ViewBook|DataTypeInteger) + 7, - BookAccountId = (ViewBook|DataTypeInteger) + 8, - BookStoreType = (ViewBook|DataTypeInteger) + 9, - BookSyncData1 = (ViewBook|DataTypeString) + 10, - BookSyncData2 = (ViewBook|DataTypeString) + 11, - BookSyncData3 = (ViewBook|DataTypeString) + 12, - BookSyncData4 = (ViewBook|DataTypeString) + 13, - BookMode = (ViewBook|DataTypeInteger) + 14, + internal enum Id : uint + { + /// book + BookId = (Book|DataTypeInteger|PropertyReadOnly), + BookUid = (Book|DataTypeString) + 1, + BookName = (Book|DataTypeString) + 2, + BookDescription = (Book|DataTypeString) + 3, + BookColor = (Book|DataTypeString) + 4, + BookLocation = (Book|DataTypeString) + 5, + BookVisibility = (Book|DataTypeInteger) + 6, + BookSyncEvent = (Book|DataTypeInteger) + 7, + BookAccountId = (Book|DataTypeInteger) + 8, + BookStoreType = (Book|DataTypeInteger) + 9, + BookSyncData1 = (Book|DataTypeString) + 10, + BookSyncData2 = (Book|DataTypeString) + 11, + BookSyncData3 = (Book|DataTypeString) + 12, + BookSyncData4 = (Book|DataTypeString) + 13, + BookMode = (Book|DataTypeInteger) + 14, - /// Event - EventId = (ViewEvent|DataTypeInteger|PropertyReadOnly), - EventBookId = (ViewEvent|DataTypeInteger) + 1, - EventSummary = (ViewEvent|DataTypeString) + 2, - EventDescription = (ViewEvent|DataTypeString) + 3, - EventLocation = (ViewEvent|DataTypeString) + 4, - EventCategories = (ViewEvent|DataTypeString) + 5, - EventExdate = (ViewEvent|DataTypeString) + 6, - EventEventStatus = (ViewEvent|DataTypeInteger) + 7, - EventPriority = (ViewEvent|DataTypeInteger) + 8, - EventTimezone = (ViewEvent|DataTypeInteger) + 9, - EventContactId = (ViewEvent|DataTypeInteger) + 10, - EventBusyStatus = (ViewEvent|DataTypeInteger) + 11, - EventSensitivity = (ViewEvent|DataTypeInteger) + 12, - EventUid = (ViewEvent|DataTypeString) + 13, - EventOrganizerName = (ViewEvent|DataTypeString) + 14, - EventOrganizerEmail = (ViewEvent|DataTypeString) + 15, - EventMeetingStatus = (ViewEvent|DataTypeInteger) + 16, - EventOriginalEventId = (ViewEvent|DataTypeInteger) + 17, - EventLatitude = (ViewEvent|DataTypeDouble) + 18, - EventLongitude = (ViewEvent|DataTypeDouble) + 19, - EventEmailId = (ViewEvent|DataTypeInteger) + 20, - EventCreatedTime = (ViewEvent|DataTypeLong) + 21, - EventLastModifiedTime = (ViewEvent|DataTypeLong|PropertyReadOnly) + 22, - EventIsDeleted = (ViewEvent|DataTypeInteger|PropertyReadOnly) + 23, - EventFreq = (ViewEvent|DataTypeInteger) + 24, - EventRangeType = (ViewEvent|DataTypeInteger) + 25, - EventUntil = (ViewEvent|DataTypeCaltime) + 26, - EventCount = (ViewEvent|DataTypeInteger) + 27, - EventInterval = (ViewEvent|DataTypeInteger) + 28, - EventBysecond = (ViewEvent|DataTypeString) + 29, - EventByminute = (ViewEvent|DataTypeString) + 30, - EventByhour = (ViewEvent|DataTypeString) + 31, - EventByday = (ViewEvent|DataTypeString) + 32, - EventBymonthday = (ViewEvent|DataTypeString) + 33, - EventByyearday = (ViewEvent|DataTypeString) + 34, - EventByweekno = (ViewEvent|DataTypeString) + 35, - EventBymonth = (ViewEvent|DataTypeString) + 36, - EventBysetpos = (ViewEvent|DataTypeString) + 37, - EventWkst = (ViewEvent|DataTypeInteger) + 38, - EventRecurrenceId = (ViewEvent|DataTypeString) + 39, - EventRdate = (ViewEvent|DataTypeString) + 40, - EventHasAttendee = (ViewEvent|DataTypeInteger|PropertyReadOnly) + 41, - EventHasAlarm = (ViewEvent|DataTypeInteger|PropertyReadOnly) + 42, - EventSyncData1 = (ViewEvent|DataTypeString) + 43, - EventSyncData2 = (ViewEvent|DataTypeString) + 44, - EventSyncData3 = (ViewEvent|DataTypeString) + 45, - EventSyncData4 = (ViewEvent|DataTypeString) + 46, - EventStart = (ViewEvent|DataTypeCaltime) + 47, - EventEnd = (ViewEvent|DataTypeCaltime) + 48, - EventAlarm = (ViewEvent|DataTypeRecord) + 49, - EventAttendee = (ViewEvent|DataTypeRecord) + 50, - EventCalendarSystemType = (ViewEvent|DataTypeInteger) + 51, - EventStartTzid = (ViewEvent|DataTypeString) + 52, - EventEndTzid = (ViewEvent|DataTypeString) + 53, - EventException = (ViewEvent|DataTypeRecord) + 54, - EventExtended = (ViewEvent|DataTypeRecord) + 55, - EventIsAllday = (ViewEvent|DataTypeInteger|PropertyReadOnly) + 56, - EventLinkCount = (ViewEvent|DataTypeInteger|PropertyReadOnly) + 57, - EventLinkBaseId = (ViewEvent|DataTypeInteger|PropertyReadOnly) + 58, + /// Event + EventId = (Event|DataTypeInteger|PropertyReadOnly), + EventBookId = (Event|DataTypeInteger) + 1, + EventSummary = (Event|DataTypeString) + 2, + EventDescription = (Event|DataTypeString) + 3, + EventLocation = (Event|DataTypeString) + 4, + EventCategories = (Event|DataTypeString) + 5, + EventExdate = (Event|DataTypeString) + 6, + EventEventStatus = (Event|DataTypeInteger) + 7, + EventPriority = (Event|DataTypeInteger) + 8, + EventTimezone = (Event|DataTypeInteger) + 9, + EventContactId = (Event|DataTypeInteger) + 10, + EventBusyStatus = (Event|DataTypeInteger) + 11, + EventSensitivity = (Event|DataTypeInteger) + 12, + EventUid = (Event|DataTypeString) + 13, + EventOrganizerName = (Event|DataTypeString) + 14, + EventOrganizerEmail = (Event|DataTypeString) + 15, + EventMeetingStatus = (Event|DataTypeInteger) + 16, + EventOriginalEventId = (Event|DataTypeInteger) + 17, + EventLatitude = (Event|DataTypeDouble) + 18, + EventLongitude = (Event|DataTypeDouble) + 19, + EventEmailId = (Event|DataTypeInteger) + 20, + EventCreatedTime = (Event|DataTypeLong) + 21, + EventLastModifiedTime = (Event|DataTypeLong|PropertyReadOnly) + 22, + EventIsDeleted = (Event|DataTypeInteger|PropertyReadOnly) + 23, + EventFreq = (Event|DataTypeInteger) + 24, + EventRangeType = (Event|DataTypeInteger) + 25, + EventUntil = (Event|DataTypeCaltime) + 26, + EventCount = (Event|DataTypeInteger) + 27, + EventInterval = (Event|DataTypeInteger) + 28, + EventBysecond = (Event|DataTypeString) + 29, + EventByminute = (Event|DataTypeString) + 30, + EventByhour = (Event|DataTypeString) + 31, + EventByday = (Event|DataTypeString) + 32, + EventBymonthday = (Event|DataTypeString) + 33, + EventByyearday = (Event|DataTypeString) + 34, + EventByweekno = (Event|DataTypeString) + 35, + EventBymonth = (Event|DataTypeString) + 36, + EventBysetpos = (Event|DataTypeString) + 37, + EventWkst = (Event|DataTypeInteger) + 38, + EventRecurrenceId = (Event|DataTypeString) + 39, + EventRdate = (Event|DataTypeString) + 40, + EventHasAttendee = (Event|DataTypeInteger|PropertyReadOnly) + 41, + EventHasAlarm = (Event|DataTypeInteger|PropertyReadOnly) + 42, + EventSyncData1 = (Event|DataTypeString) + 43, + EventSyncData2 = (Event|DataTypeString) + 44, + EventSyncData3 = (Event|DataTypeString) + 45, + EventSyncData4 = (Event|DataTypeString) + 46, + EventStart = (Event|DataTypeCaltime) + 47, + EventEnd = (Event|DataTypeCaltime) + 48, + EventAlarm = (Event|DataTypeRecord) + 49, + EventAttendee = (Event|DataTypeRecord) + 50, + EventCalendarSystemType = (Event|DataTypeInteger) + 51, + EventStartTzid = (Event|DataTypeString) + 52, + EventEndTzid = (Event|DataTypeString) + 53, + EventException = (Event|DataTypeRecord) + 54, + EventExtended = (Event|DataTypeRecord) + 55, + EventIsAllday = (Event|DataTypeInteger|PropertyReadOnly) + 56, + EventLinkCount = (Event|DataTypeInteger|PropertyReadOnly) + 57, + EventLinkBaseId = (Event|DataTypeInteger|PropertyReadOnly) + 58, - /// Todo - TodoId = (ViewTodo|DataTypeInteger|PropertyReadOnly), - TodoBookId = (ViewTodo|DataTypeInteger) + 1, - TodoSummary = (ViewTodo|DataTypeString) + 2, - TodoDescription = (ViewTodo|DataTypeString) + 3, - TodoLocation = (ViewTodo|DataTypeString) + 4, - TodoCategories = (ViewTodo|DataTypeString) + 5, - TodoStatus = (ViewTodo|DataTypeInteger) + 6, - TodoPriority = (ViewTodo|DataTypeInteger) + 7, - TodoSensitivity = (ViewTodo|DataTypeInteger) + 8, - TodoUid = (ViewTodo|DataTypeString) + 9, - TodoLatitude = (ViewTodo|DataTypeDouble) + 10, - TodoLongitude = (ViewTodo|DataTypeDouble) + 11, - TodoProgress = (ViewTodo|DataTypeInteger) + 12, - TodoCreatedTime = (ViewTodo|DataTypeLong) + 13, - TodoLastModifiedTime = (ViewTodo|DataTypeLong|PropertyReadOnly) + 14, - TodoCompletedTime = (ViewTodo|DataTypeLong) + 15, - TodoIsDeleted = (ViewTodo|DataTypeInteger|PropertyReadOnly) + 16, - TodoFreq = (ViewTodo|DataTypeInteger) + 17, - TodoRangeType = (ViewTodo|DataTypeInteger) + 18, - TodoUntil = (ViewTodo|DataTypeCaltime) + 19, - TodoCount = (ViewTodo|DataTypeInteger) + 20, - TodoIntegererval = (ViewTodo|DataTypeInteger) + 21, - TodoBysecond = (ViewTodo|DataTypeString) + 22, - TodoByminute = (ViewTodo|DataTypeString) + 23, - TodoByhour = (ViewTodo|DataTypeString) + 24, - TodoByday = (ViewTodo|DataTypeString) + 25, - TodoBymonthday = (ViewTodo|DataTypeString) + 26, - TodoByyearday = (ViewTodo|DataTypeString) + 27, - TodoByweekno = (ViewTodo|DataTypeString) + 28, - TodoBymonth = (ViewTodo|DataTypeString) + 29, - TodoBysetpos = (ViewTodo|DataTypeString) + 30, - TodoWkst = (ViewTodo|DataTypeInteger) + 31, - TodoHasAlarm = (ViewTodo|DataTypeInteger|PropertyReadOnly) + 32, - TodoSyncData1 = (ViewTodo|DataTypeString) + 33, - TodoSyncData2 = (ViewTodo|DataTypeString) + 34, - TodoSyncData3 = (ViewTodo|DataTypeString) + 35, - TodoSyncData4 = (ViewTodo|DataTypeString) + 36, - TodoStart = (ViewTodo|DataTypeCaltime) + 37, - TodoDue = (ViewTodo|DataTypeCaltime) + 38, - TodoAlarm = (ViewTodo|DataTypeRecord) + 39, - TodoStartTzid = (ViewTodo|DataTypeString) + 40, - TodoDueTzid = (ViewTodo|DataTypeString) + 41, - TodoOrganizerName = (ViewTodo|DataTypeString) + 42, - TodoOrganizerEmail = (ViewTodo|DataTypeString) + 43, - TodoHasAttendee = (ViewTodo|DataTypeInteger|PropertyReadOnly) + 44, - TodoAttendee = (ViewTodo|DataTypeRecord) + 45, - TodoExtended = (ViewTodo|DataTypeRecord) + 46, - TodoIsAllday = (ViewTodo|DataTypeInteger|PropertyReadOnly) + 47, + /// Todo + TodoId = (Todo|DataTypeInteger|PropertyReadOnly), + TodoBookId = (Todo|DataTypeInteger) + 1, + TodoSummary = (Todo|DataTypeString) + 2, + TodoDescription = (Todo|DataTypeString) + 3, + TodoLocation = (Todo|DataTypeString) + 4, + TodoCategories = (Todo|DataTypeString) + 5, + TodoStatus = (Todo|DataTypeInteger) + 6, + TodoPriority = (Todo|DataTypeInteger) + 7, + TodoSensitivity = (Todo|DataTypeInteger) + 8, + TodoUid = (Todo|DataTypeString) + 9, + TodoLatitude = (Todo|DataTypeDouble) + 10, + TodoLongitude = (Todo|DataTypeDouble) + 11, + TodoProgress = (Todo|DataTypeInteger) + 12, + TodoCreatedTime = (Todo|DataTypeLong) + 13, + TodoLastModifiedTime = (Todo|DataTypeLong|PropertyReadOnly) + 14, + TodoCompletedTime = (Todo|DataTypeLong) + 15, + TodoIsDeleted = (Todo|DataTypeInteger|PropertyReadOnly) + 16, + TodoFreq = (Todo|DataTypeInteger) + 17, + TodoRangeType = (Todo|DataTypeInteger) + 18, + TodoUntil = (Todo|DataTypeCaltime) + 19, + TodoCount = (Todo|DataTypeInteger) + 20, + TodoInterval = (Todo|DataTypeInteger) + 21, + TodoBysecond = (Todo|DataTypeString) + 22, + TodoByminute = (Todo|DataTypeString) + 23, + TodoByhour = (Todo|DataTypeString) + 24, + TodoByday = (Todo|DataTypeString) + 25, + TodoBymonthday = (Todo|DataTypeString) + 26, + TodoByyearday = (Todo|DataTypeString) + 27, + TodoByweekno = (Todo|DataTypeString) + 28, + TodoBymonth = (Todo|DataTypeString) + 29, + TodoBysetpos = (Todo|DataTypeString) + 30, + TodoWkst = (Todo|DataTypeInteger) + 31, + TodoHasAlarm = (Todo|DataTypeInteger|PropertyReadOnly) + 32, + TodoSyncData1 = (Todo|DataTypeString) + 33, + TodoSyncData2 = (Todo|DataTypeString) + 34, + TodoSyncData3 = (Todo|DataTypeString) + 35, + TodoSyncData4 = (Todo|DataTypeString) + 36, + TodoStart = (Todo|DataTypeCaltime) + 37, + TodoDue = (Todo|DataTypeCaltime) + 38, + TodoAlarm = (Todo|DataTypeRecord) + 39, + TodoStartTzid = (Todo|DataTypeString) + 40, + TodoDueTzid = (Todo|DataTypeString) + 41, + TodoOrganizerName = (Todo|DataTypeString) + 42, + TodoOrganizerEmail = (Todo|DataTypeString) + 43, + TodoHasAttendee = (Todo|DataTypeInteger|PropertyReadOnly) + 44, + TodoAttendee = (Todo|DataTypeRecord) + 45, + TodoExtended = (Todo|DataTypeRecord) + 46, + TodoIsAllday = (Todo|DataTypeInteger|PropertyReadOnly) + 47, - /// Timezone - TimezoneId = (ViewTimezone|DataTypeInteger|PropertyReadOnly), - TimezoneTzOffsetFromGmt = (ViewTimezone|DataTypeInteger) + 1, - TimezoneStandardName = (ViewTimezone|DataTypeString) + 2, - TimezoneStdStartMonth = (ViewTimezone|DataTypeInteger) + 3, - TimezoneStdStartPositionOfWeek = (ViewTimezone|DataTypeInteger) + 4, - TimezoneStdStartDay = (ViewTimezone|DataTypeInteger) + 5, - TimezoneStdStartHour = (ViewTimezone|DataTypeInteger) + 6, - TimezoneStandardBias = (ViewTimezone|DataTypeInteger) + 7, - TimezoneDayLightName = (ViewTimezone|DataTypeString) + 8, - TimezoneDayLightStartMonth = (ViewTimezone|DataTypeInteger) + 9, - TimezoneDayLightStartPositionOfWeek = (ViewTimezone|DataTypeInteger) + 10, - TimezoneDayLightStartDay = (ViewTimezone|DataTypeInteger) + 11, - TimezoneDayLightStartHour = (ViewTimezone|DataTypeInteger) + 12, - TimezoneDayLightBias = (ViewTimezone|DataTypeInteger) + 13, - TimezoneCalendarId = (ViewTimezone|DataTypeInteger) + 14, + /// Timezone + TimezoneId = (Timezone|DataTypeInteger|PropertyReadOnly), + TimezoneTzOffsetFromGmt = (Timezone|DataTypeInteger) + 1, + TimezoneStandardName = (Timezone|DataTypeString) + 2, + TimezoneStdStartMonth = (Timezone|DataTypeInteger) + 3, + TimezoneStdStartPositionOfWeek = (Timezone|DataTypeInteger) + 4, + TimezoneStdStartDay = (Timezone|DataTypeInteger) + 5, + TimezoneStdStartHour = (Timezone|DataTypeInteger) + 6, + TimezoneStandardBias = (Timezone|DataTypeInteger) + 7, + TimezoneDayLightName = (Timezone|DataTypeString) + 8, + TimezoneDayLightStartMonth = (Timezone|DataTypeInteger) + 9, + TimezoneDayLightStartPositionOfWeek = (Timezone|DataTypeInteger) + 10, + TimezoneDayLightStartDay = (Timezone|DataTypeInteger) + 11, + TimezoneDayLightStartHour = (Timezone|DataTypeInteger) + 12, + TimezoneDayLightBias = (Timezone|DataTypeInteger) + 13, + TimezoneCalendarId = (Timezone|DataTypeInteger) + 14, - AttendeeNumber = (ViewAttendee|DataTypeString), - AttendeeCutype = (ViewAttendee|DataTypeInteger) + 1, - AttendeeCtIndex = (ViewAttendee|DataTypeInteger) + 2, - AttendeeUid = (ViewAttendee|DataTypeString) + 3, - AttendeeGroup = (ViewAttendee|DataTypeString) + 4, - AttendeeEmail = (ViewAttendee|DataTypeString) + 5, - AttendeeRole = (ViewAttendee|DataTypeInteger) + 6, - AttendeeStatus = (ViewAttendee|DataTypeInteger) + 7, - AttendeeRsvp = (ViewAttendee|DataTypeInteger) + 8, - AttendeeDelegateeUri = (ViewAttendee|DataTypeString) + 9, - AttendeeDelegatorUri = (ViewAttendee|DataTypeString) + 10, - AttendeeName = (ViewAttendee|DataTypeString) + 11, - AttendeeMember = (ViewAttendee|DataTypeString) + 12, - AttendeeParentId = (ViewAttendee|DataTypeInteger|PropertyReadOnly) + 13, + AttendeeNumber = (Attendee|DataTypeString), + AttendeeCutype = (Attendee|DataTypeInteger) + 1, + AttendeeCtIndex = (Attendee|DataTypeInteger) + 2, + AttendeeUid = (Attendee|DataTypeString) + 3, + AttendeeGroup = (Attendee|DataTypeString) + 4, + AttendeeEmail = (Attendee|DataTypeString) + 5, + AttendeeRole = (Attendee|DataTypeInteger) + 6, + AttendeeStatus = (Attendee|DataTypeInteger) + 7, + AttendeeRsvp = (Attendee|DataTypeInteger) + 8, + AttendeeDelegateeUri = (Attendee|DataTypeString) + 9, + AttendeeDelegatorUri = (Attendee|DataTypeString) + 10, + AttendeeName = (Attendee|DataTypeString) + 11, + AttendeeMember = (Attendee|DataTypeString) + 12, + AttendeeParentId = (Attendee|DataTypeInteger|PropertyReadOnly) + 13, - AlarmTick = (ViewAlarm|DataTypeInteger), - AlarmTickUnit = (ViewAlarm|DataTypeInteger) + 1, - AlarmDescription = (ViewAlarm|DataTypeString) + 2, - AlarmParentId = (ViewAlarm|DataTypeInteger|PropertyReadOnly) + 3, - AlarmSummary = (ViewAlarm|DataTypeString) + 4, - AlarmAction = (ViewAlarm|DataTypeInteger) + 5, - AlarmAttach = (ViewAlarm|DataTypeString) + 6, - AlarmAlarm = (ViewAlarm|DataTypeCaltime) + 7, + AlarmTick = (Alarm|DataTypeInteger), + AlarmTickUnit = (Alarm|DataTypeInteger) + 1, + AlarmDescription = (Alarm|DataTypeString) + 2, + AlarmParentId = (Alarm|DataTypeInteger|PropertyReadOnly) + 3, + AlarmSummary = (Alarm|DataTypeString) + 4, + AlarmAction = (Alarm|DataTypeInteger) + 5, + AlarmAttach = (Alarm|DataTypeString) + 6, + AlarmAlarm = (Alarm|DataTypeCaltime) + 7, - InstanceUtimeBookEventId = (ViewInstanceUtimeBook|DataTypeInteger), - InstanceUtimeBookStart = (ViewInstanceUtimeBook|DataTypeCaltime) + 1, - InstanceUtimeBookEnd = (ViewInstanceUtimeBook|DataTypeCaltime) + 2, - InstanceUtimeBookSummary = (ViewInstanceUtimeBook|DataTypeString) + 3, - InstanceUtimeBookLocation = (ViewInstanceUtimeBook|DataTypeString) + 4, - InstanceUtimeBookBookId = (ViewInstanceUtimeBook|DataTypeInteger) + 5, - InstanceUtimeBookDescription = (ViewInstanceUtimeBook|DataTypeString) + 6, - InstanceUtimeBookBusyStatus = (ViewInstanceUtimeBook|DataTypeInteger) + 7, - InstanceUtimeBookEventStatus = (ViewInstanceUtimeBook|DataTypeInteger) + 8, - InstanceUtimeBookPriority = (ViewInstanceUtimeBook|DataTypeInteger) + 9, - InstanceUtimeBookSensitivity = (ViewInstanceUtimeBook|DataTypeInteger) + 10, - InstanceUtimeBookHasRrule = (ViewInstanceUtimeBook|DataTypeInteger) + 11, - InstanceUtimeBookLatitude = (ViewInstanceUtimeBook|DataTypeDouble) + 12, - InstanceUtimeBookLongitude = (ViewInstanceUtimeBook|DataTypeDouble) + 13, - InstanceUtimeBookHasAlarm = (ViewInstanceUtimeBook|DataTypeInteger) + 14, - InstanceUtimeBookOriginalEventId = (ViewInstanceUtimeBook|DataTypeInteger) + 15, - InstanceUtimeBookLastModifiedtime = (ViewInstanceUtimeBook|DataTypeLong) + 16, - InstanceUtimeBookSyncData1 = (ViewInstanceUtimeBook|DataTypeString) + 17, + InstanceUtimeBookEventId = (InstanceUtimeBook|DataTypeInteger), + InstanceUtimeBookStart = (InstanceUtimeBook|DataTypeCaltime) + 1, + InstanceUtimeBookEnd = (InstanceUtimeBook|DataTypeCaltime) + 2, + InstanceUtimeBookSummary = (InstanceUtimeBook|DataTypeString) + 3, + InstanceUtimeBookLocation = (InstanceUtimeBook|DataTypeString) + 4, + InstanceUtimeBookBookId = (InstanceUtimeBook|DataTypeInteger) + 5, + InstanceUtimeBookDescription = (InstanceUtimeBook|DataTypeString) + 6, + InstanceUtimeBookBusyStatus = (InstanceUtimeBook|DataTypeInteger) + 7, + InstanceUtimeBookEventStatus = (InstanceUtimeBook|DataTypeInteger) + 8, + InstanceUtimeBookPriority = (InstanceUtimeBook|DataTypeInteger) + 9, + InstanceUtimeBookSensitivity = (InstanceUtimeBook|DataTypeInteger) + 10, + InstanceUtimeBookHasRrule = (InstanceUtimeBook|DataTypeInteger) + 11, + InstanceUtimeBookLatitude = (InstanceUtimeBook|DataTypeDouble) + 12, + InstanceUtimeBookLongitude = (InstanceUtimeBook|DataTypeDouble) + 13, + InstanceUtimeBookHasAlarm = (InstanceUtimeBook|DataTypeInteger) + 14, + InstanceUtimeBookOriginalEventId = (InstanceUtimeBook|DataTypeInteger) + 15, + InstanceUtimeBookLastModifiedTime = (InstanceUtimeBook|DataTypeLong) + 16, + InstanceUtimeBookSyncData1 = (InstanceUtimeBook|DataTypeString) + 17, - InstanceLocaltimeBookEventId = (ViewInstanceLocaltimeBook|DataTypeInteger), - InstanceLocaltimeBookStart = (ViewInstanceLocaltimeBook|DataTypeCaltime) + 1, - InstanceLocaltimeBookEnd = (ViewInstanceLocaltimeBook|DataTypeCaltime) + 2, - InstanceLocaltimeBookSummary = (ViewInstanceLocaltimeBook|DataTypeString) + 3, - InstanceLocaltimeBookLocation = (ViewInstanceLocaltimeBook|DataTypeString) + 4, - InstanceLocaltimeBookBookId = (ViewInstanceLocaltimeBook|DataTypeInteger) + 5, - InstanceLocaltimeBookDescription = (ViewInstanceLocaltimeBook|DataTypeString) + 6, - InstanceLocaltimeBookBusyStatus = (ViewInstanceLocaltimeBook|DataTypeInteger) + 7, - InstanceLocaltimeBookEventStatus = (ViewInstanceLocaltimeBook|DataTypeInteger) + 8, - InstanceLocaltimeBookPriority = (ViewInstanceLocaltimeBook|DataTypeInteger) + 9, - InstanceLocaltimeBookSensitivity = (ViewInstanceLocaltimeBook|DataTypeInteger) + 10, - InstanceLocaltimeBookHasRrule = (ViewInstanceLocaltimeBook|DataTypeInteger) + 11, - InstanceLocaltimeBookLatitude = (ViewInstanceLocaltimeBook|DataTypeDouble) + 12, - InstanceLocaltimeBookLongitude = (ViewInstanceLocaltimeBook|DataTypeDouble) + 13, - InstanceLocaltimeBookHasAlarm = (ViewInstanceLocaltimeBook|DataTypeInteger) + 14, - InstanceLocaltimeBookOriginalEventId = (ViewInstanceLocaltimeBook|DataTypeInteger) + 15, - InstanceLocaltimeBookLastModifiedTime = (ViewInstanceLocaltimeBook|DataTypeLong) + 16, - InstanceLocaltimeBookSyncData1 = (ViewInstanceLocaltimeBook|DataTypeString) + 17, - InstanceLocaltimeBookIsAllday = (ViewInstanceLocaltimeBook|DataTypeInteger|PropertyReadOnly) + 18, + InstanceLocaltimeBookEventId = (InstanceLocaltimeBook|DataTypeInteger), + InstanceLocaltimeBookStart = (InstanceLocaltimeBook|DataTypeCaltime) + 1, + InstanceLocaltimeBookEnd = (InstanceLocaltimeBook|DataTypeCaltime) + 2, + InstanceLocaltimeBookSummary = (InstanceLocaltimeBook|DataTypeString) + 3, + InstanceLocaltimeBookLocation = (InstanceLocaltimeBook|DataTypeString) + 4, + InstanceLocaltimeBookBookId = (InstanceLocaltimeBook|DataTypeInteger) + 5, + InstanceLocaltimeBookDescription = (InstanceLocaltimeBook|DataTypeString) + 6, + InstanceLocaltimeBookBusyStatus = (InstanceLocaltimeBook|DataTypeInteger) + 7, + InstanceLocaltimeBookEventStatus = (InstanceLocaltimeBook|DataTypeInteger) + 8, + InstanceLocaltimeBookPriority = (InstanceLocaltimeBook|DataTypeInteger) + 9, + InstanceLocaltimeBookSensitivity = (InstanceLocaltimeBook|DataTypeInteger) + 10, + InstanceLocaltimeBookHasRrule = (InstanceLocaltimeBook|DataTypeInteger) + 11, + InstanceLocaltimeBookLatitude = (InstanceLocaltimeBook|DataTypeDouble) + 12, + InstanceLocaltimeBookLongitude = (InstanceLocaltimeBook|DataTypeDouble) + 13, + InstanceLocaltimeBookHasAlarm = (InstanceLocaltimeBook|DataTypeInteger) + 14, + InstanceLocaltimeBookOriginalEventId = (InstanceLocaltimeBook|DataTypeInteger) + 15, + InstanceLocaltimeBookLastModifiedTime = (InstanceLocaltimeBook|DataTypeLong) + 16, + InstanceLocaltimeBookSyncData1 = (InstanceLocaltimeBook|DataTypeString) + 17, + InstanceLocaltimeBookIsAllday = (InstanceLocaltimeBook|DataTypeInteger|PropertyReadOnly) + 18, - InstanceUtimeBookExtendedEventId = (ViewInstanceUtimeBookExtended|DataTypeInteger), - InstanceUtimeBookExtendedStart = (ViewInstanceUtimeBookExtended|DataTypeCaltime) + 1, - InstanceUtimeBookExtendedEnd = (ViewInstanceUtimeBookExtended|DataTypeCaltime) + 2, - InstanceUtimeBookExtendedSummary = (ViewInstanceUtimeBookExtended|DataTypeString) + 3, - InstanceUtimeBookExtendedLocation = (ViewInstanceUtimeBookExtended|DataTypeString) + 4, - InstanceUtimeBookExtendedBookId = (ViewInstanceUtimeBookExtended|DataTypeInteger) + 5, - InstanceUtimeBookExtendedDescription = (ViewInstanceUtimeBookExtended|DataTypeString) + 6, - InstanceUtimeBookExtendedBusyStatus = (ViewInstanceUtimeBookExtended|DataTypeInteger) + 7, - InstanceUtimeBookExtendedEventStatus = (ViewInstanceUtimeBookExtended|DataTypeInteger) + 8, - InstanceUtimeBookExtendedPriority = (ViewInstanceUtimeBookExtended|DataTypeInteger) + 9, - InstanceUtimeBookExtendedSensitivity = (ViewInstanceUtimeBookExtended|DataTypeInteger) + 10, - InstanceUtimeBookExtendedHasRrule = (ViewInstanceUtimeBookExtended|DataTypeInteger) + 11, - InstanceUtimeBookExtendedLatitude = (ViewInstanceUtimeBookExtended|DataTypeDouble) + 12, - InstanceUtimeBookExtendedLongitude = (ViewInstanceUtimeBookExtended|DataTypeDouble) + 13, - InstanceUtimeBookExtendedHasAlarm = (ViewInstanceUtimeBookExtended|DataTypeInteger) + 14, - InstanceUtimeBookExtendedOriginalEventId = (ViewInstanceUtimeBookExtended|DataTypeInteger) + 15, - InstanceUtimeBookExtendedLastModifiedTime = (ViewInstanceUtimeBookExtended|DataTypeLong) + 16, - InstanceUtimeBookExtendedSyncData1 = (ViewInstanceUtimeBookExtended|DataTypeString) + 17, - InstanceUtimeBookExtendedOrganizerName = (ViewInstanceUtimeBookExtended|DataTypeString) + 18, - InstanceUtimeBookExtendedCategories = (ViewInstanceUtimeBookExtended|DataTypeString) + 19, - InstanceUtimeBookExtendedHasAttendee = (ViewInstanceUtimeBookExtended|DataTypeInteger) + 20, - InstanceUtimeBookExtendedSyncData2 = (ViewInstanceUtimeBookExtended|DataTypeString) + 21, - InstanceUtimeBookExtendedSyncData3 = (ViewInstanceUtimeBookExtended|DataTypeString) + 22, - InstanceUtimeBookExtendedSyncData4 = (ViewInstanceUtimeBookExtended|DataTypeString) + 23, + InstanceUtimeBookExtendedEventId = (InstanceUtimeBookExtended|DataTypeInteger), + InstanceUtimeBookExtendedStart = (InstanceUtimeBookExtended|DataTypeCaltime) + 1, + InstanceUtimeBookExtendedEnd = (InstanceUtimeBookExtended|DataTypeCaltime) + 2, + InstanceUtimeBookExtendedSummary = (InstanceUtimeBookExtended|DataTypeString) + 3, + InstanceUtimeBookExtendedLocation = (InstanceUtimeBookExtended|DataTypeString) + 4, + InstanceUtimeBookExtendedBookId = (InstanceUtimeBookExtended|DataTypeInteger) + 5, + InstanceUtimeBookExtendedDescription = (InstanceUtimeBookExtended|DataTypeString) + 6, + InstanceUtimeBookExtendedBusyStatus = (InstanceUtimeBookExtended|DataTypeInteger) + 7, + InstanceUtimeBookExtendedEventStatus = (InstanceUtimeBookExtended|DataTypeInteger) + 8, + InstanceUtimeBookExtendedPriority = (InstanceUtimeBookExtended|DataTypeInteger) + 9, + InstanceUtimeBookExtendedSensitivity = (InstanceUtimeBookExtended|DataTypeInteger) + 10, + InstanceUtimeBookExtendedHasRrule = (InstanceUtimeBookExtended|DataTypeInteger) + 11, + InstanceUtimeBookExtendedLatitude = (InstanceUtimeBookExtended|DataTypeDouble) + 12, + InstanceUtimeBookExtendedLongitude = (InstanceUtimeBookExtended|DataTypeDouble) + 13, + InstanceUtimeBookExtendedHasAlarm = (InstanceUtimeBookExtended|DataTypeInteger) + 14, + InstanceUtimeBookExtendedOriginalEventId = (InstanceUtimeBookExtended|DataTypeInteger) + 15, + InstanceUtimeBookExtendedLastModifiedTime = (InstanceUtimeBookExtended|DataTypeLong) + 16, + InstanceUtimeBookExtendedSyncData1 = (InstanceUtimeBookExtended|DataTypeString) + 17, + InstanceUtimeBookExtendedOrganizerName = (InstanceUtimeBookExtended|DataTypeString) + 18, + InstanceUtimeBookExtendedCategories = (InstanceUtimeBookExtended|DataTypeString) + 19, + InstanceUtimeBookExtendedHasAttendee = (InstanceUtimeBookExtended|DataTypeInteger) + 20, + InstanceUtimeBookExtendedSyncData2 = (InstanceUtimeBookExtended|DataTypeString) + 21, + InstanceUtimeBookExtendedSyncData3 = (InstanceUtimeBookExtended|DataTypeString) + 22, + InstanceUtimeBookExtendedSyncData4 = (InstanceUtimeBookExtended|DataTypeString) + 23, - InstanceLocaltimeBookExtendedEventId = (ViewInstanceLocaltimeBookExtended|DataTypeInteger), - InstanceLocaltimeBookExtendedStart = (ViewInstanceLocaltimeBookExtended|DataTypeCaltime) + 1, - InstanceLocaltimeBookExtendedEnd = (ViewInstanceLocaltimeBookExtended|DataTypeCaltime) + 2, - InstanceLocaltimeBookExtendedSummary = (ViewInstanceLocaltimeBookExtended|DataTypeString) + 3, - InstanceLocaltimeBookExtendedLocation = (ViewInstanceLocaltimeBookExtended|DataTypeString) + 4, - InstanceLocaltimeBookExtendedBookId = (ViewInstanceLocaltimeBookExtended|DataTypeInteger) + 5, - InstanceLocaltimeBookExtendedDescription = (ViewInstanceLocaltimeBookExtended|DataTypeString) + 6, - InstanceLocaltimeBookExtendedBusyStatus = (ViewInstanceLocaltimeBookExtended|DataTypeInteger) + 7, - InstanceLocaltimeBookExtendedEventStatus = (ViewInstanceLocaltimeBookExtended|DataTypeInteger) + 8, - InstanceLocaltimeBookExtendedPriority = (ViewInstanceLocaltimeBookExtended|DataTypeInteger) + 9, - InstanceLocaltimeBookExtendedSensitivity = (ViewInstanceLocaltimeBookExtended|DataTypeInteger) + 10, - InstanceLocaltimeBookExtendedHasRrule = (ViewInstanceLocaltimeBookExtended|DataTypeInteger) + 11, - InstanceLocaltimeBookExtendedLatitude = (ViewInstanceLocaltimeBookExtended|DataTypeDouble) + 12, - InstanceLocaltimeBookExtendedLongitude = (ViewInstanceLocaltimeBookExtended|DataTypeDouble) + 13, - InstanceLocaltimeBookExtendedHasAlarm = (ViewInstanceLocaltimeBookExtended|DataTypeInteger) + 14, - InstanceLocaltimeBookExtendedOriginalEventId = (ViewInstanceLocaltimeBookExtended|DataTypeInteger) + 15, - InstanceLocaltimeBookExtendedLastModifiedTime = (ViewInstanceLocaltimeBookExtended|DataTypeLong) + 16, - InstanceLocaltimeBookExtendedSyncData1 = (ViewInstanceLocaltimeBookExtended|DataTypeString) + 17, - InstanceLocaltimeBookExtendedOrganizerName = (ViewInstanceLocaltimeBookExtended|DataTypeString) + 18, - InstanceLocaltimeBookExtendedCategories = (ViewInstanceLocaltimeBookExtended|DataTypeString) + 19, - InstanceLocaltimeBookExtendedHasAttendee = (ViewInstanceLocaltimeBookExtended|DataTypeInteger) + 20, - InstanceLocaltimeBookExtendedSyncData2 = (ViewInstanceLocaltimeBookExtended|DataTypeString) + 21, - InstanceLocaltimeBookExtendedSyncData3 = (ViewInstanceLocaltimeBookExtended|DataTypeString) + 22, - InstanceLocaltimeBookExtendedSyncData4 = (ViewInstanceLocaltimeBookExtended|DataTypeString) + 23, - InstanceLocaltimeBookExtendedIsAllday = (ViewInstanceLocaltimeBookExtended|DataTypeInteger|PropertyReadOnly) + 24, + InstanceLocaltimeBookExtendedEventId = (InstanceLocaltimeBookExtended|DataTypeInteger), + InstanceLocaltimeBookExtendedStart = (InstanceLocaltimeBookExtended|DataTypeCaltime) + 1, + InstanceLocaltimeBookExtendedEnd = (InstanceLocaltimeBookExtended|DataTypeCaltime) + 2, + InstanceLocaltimeBookExtendedSummary = (InstanceLocaltimeBookExtended|DataTypeString) + 3, + InstanceLocaltimeBookExtendedLocation = (InstanceLocaltimeBookExtended|DataTypeString) + 4, + InstanceLocaltimeBookExtendedBookId = (InstanceLocaltimeBookExtended|DataTypeInteger) + 5, + InstanceLocaltimeBookExtendedDescription = (InstanceLocaltimeBookExtended|DataTypeString) + 6, + InstanceLocaltimeBookExtendedBusyStatus = (InstanceLocaltimeBookExtended|DataTypeInteger) + 7, + InstanceLocaltimeBookExtendedEventStatus = (InstanceLocaltimeBookExtended|DataTypeInteger) + 8, + InstanceLocaltimeBookExtendedPriority = (InstanceLocaltimeBookExtended|DataTypeInteger) + 9, + InstanceLocaltimeBookExtendedSensitivity = (InstanceLocaltimeBookExtended|DataTypeInteger) + 10, + InstanceLocaltimeBookExtendedHasRrule = (InstanceLocaltimeBookExtended|DataTypeInteger) + 11, + InstanceLocaltimeBookExtendedLatitude = (InstanceLocaltimeBookExtended|DataTypeDouble) + 12, + InstanceLocaltimeBookExtendedLongitude = (InstanceLocaltimeBookExtended|DataTypeDouble) + 13, + InstanceLocaltimeBookExtendedHasAlarm = (InstanceLocaltimeBookExtended|DataTypeInteger) + 14, + InstanceLocaltimeBookExtendedOriginalEventId = (InstanceLocaltimeBookExtended|DataTypeInteger) + 15, + InstanceLocaltimeBookExtendedLastModifiedTime = (InstanceLocaltimeBookExtended|DataTypeLong) + 16, + InstanceLocaltimeBookExtendedSyncData1 = (InstanceLocaltimeBookExtended|DataTypeString) + 17, + InstanceLocaltimeBookExtendedOrganizerName = (InstanceLocaltimeBookExtended|DataTypeString) + 18, + InstanceLocaltimeBookExtendedCategories = (InstanceLocaltimeBookExtended|DataTypeString) + 19, + InstanceLocaltimeBookExtendedHasAttendee = (InstanceLocaltimeBookExtended|DataTypeInteger) + 20, + InstanceLocaltimeBookExtendedSyncData2 = (InstanceLocaltimeBookExtended|DataTypeString) + 21, + InstanceLocaltimeBookExtendedSyncData3 = (InstanceLocaltimeBookExtended|DataTypeString) + 22, + InstanceLocaltimeBookExtendedSyncData4 = (InstanceLocaltimeBookExtended|DataTypeString) + 23, + InstanceLocaltimeBookExtendedIsAllday = (InstanceLocaltimeBookExtended|DataTypeInteger|PropertyReadOnly) + 24, - UpdateInfoId = (ViewUpdateInfo|DataTypeInteger), - UpdateInfoCalendarId = (ViewUpdateInfo|DataTypeInteger) + 1, - UpdateInfoType = (ViewUpdateInfo|DataTypeInteger) + 2, - UpdateInfoVersion = (ViewUpdateInfo|DataTypeInteger) + 3, + UpdateInfoId = (UpdateInfo|DataTypeInteger), + UpdateInfoCalendarId = (UpdateInfo|DataTypeInteger) + 1, + UpdateInfoType = (UpdateInfo|DataTypeInteger) + 2, + UpdateInfoVersion = (UpdateInfo|DataTypeInteger) + 3, - ExtendedId = (ViewExtended|DataTypeInteger|PropertyReadOnly), - ExtendedRecordId = (ViewExtended|DataTypeInteger) + 1, - ExtendedRecordType = (ViewExtended|DataTypeInteger) + 2, - ExtendedKey = (ViewExtended|DataTypeString) + 3, - ExtendedValue = (ViewExtended|DataTypeString) + 4, + ExtendedId = (Extended|DataTypeInteger|PropertyReadOnly), + ExtendedRecordId = (Extended|DataTypeInteger) + 1, + ExtendedRecordType = (Extended|DataTypeInteger) + 2, + ExtendedKey = (Extended|DataTypeString) + 3, + ExtendedValue = (Extended|DataTypeString) + 4, + } } - ///average size - internal const uint AverageSizeOfRecord = 56; + internal static class Record + { + ///average size + internal const uint AverageSize = 56; + } + /// + /// Describes properies of a Book record. + /// public static class Book { /// @@ -343,65 +352,68 @@ namespace Tizen.Pims.Calendar /// /// DB record ID of the calendar book /// - public const uint Id = (uint)PropertyIds.BookId; + public const uint Id = (uint)Property.Id.BookId; /// /// Unique identifier /// - public const uint Uid = (uint)PropertyIds.BookUid; + public const uint Uid = (uint)Property.Id.BookUid; /// /// Calendar book name /// - public const uint Name = (uint)PropertyIds.BookName; + public const uint Name = (uint)Property.Id.BookName; /// /// Calendar book description /// - public const uint Description = (uint)PropertyIds.BookDescription; + public const uint Description = (uint)Property.Id.BookDescription; /// /// Calendar book color for UX /// - public const uint Color = (uint)PropertyIds.BookColor; + public const uint Color = (uint)Property.Id.BookColor; /// /// Location of the event /// - public const uint Location = (uint)PropertyIds.BookLocation; + public const uint Location = (uint)Property.Id.BookLocation; /// /// Visibility of the calendar book for UX /// - public const uint Visibility = (uint)PropertyIds.BookVisibility; + public const uint Visibility = (uint)Property.Id.BookVisibility; /// /// Currently NOT Used /// - public const uint SyncEvent = (uint)PropertyIds.BookSyncEvent; + public const uint SyncEvent = (uint)Property.Id.BookSyncEvent; /// /// Account for this calendar /// - public const uint AccountId = (uint)PropertyIds.BookAccountId; + public const uint AccountId = (uint)Property.Id.BookAccountId; /// /// Type of calendar contents(refer to the CalendarTypes.StoreType) /// - public const uint StoreType = (uint)PropertyIds.BookStoreType; + public const uint StoreType = (uint)Property.Id.BookStoreType; /// /// Generic data for use by syncing /// - public const uint SyncData1 = (uint)PropertyIds.BookSyncData1; + public const uint SyncData1 = (uint)Property.Id.BookSyncData1; /// /// Generic data for use by syncing /// - public const uint SyncData2 = (uint)PropertyIds.BookSyncData2; + public const uint SyncData2 = (uint)Property.Id.BookSyncData2; /// /// Generic data for use by syncing /// - public const uint SyncData3 = (uint)PropertyIds.BookSyncData3; + public const uint SyncData3 = (uint)Property.Id.BookSyncData3; /// /// Generic data for use by syncing /// - public const uint SyncData4 = (uint)PropertyIds.BookSyncData4; + public const uint SyncData4 = (uint)Property.Id.BookSyncData4; /// /// Calendar book mode(refer to the CalendarTypes.BookMode) /// - public const uint Mode = (uint)PropertyIds.BookMode; + public const uint Mode = (uint)Property.Id.BookMode; } + /// + /// Describes properies of a Event record. + /// public static class Event { /// @@ -411,241 +423,244 @@ namespace Tizen.Pims.Calendar /// /// DB record ID of the event /// - public const uint Id = (uint)PropertyIds.EventId; + public const uint Id = (uint)Property.Id.EventId; /// /// ID of the calendar book to which the event belongs /// - public const uint BookId = (uint)PropertyIds.EventBookId; + public const uint BookId = (uint)Property.Id.EventBookId; /// /// The short description of the event /// - public const uint Summary = (uint)PropertyIds.EventSummary; + public const uint Summary = (uint)Property.Id.EventSummary; /// /// The description of the event /// - public const uint Description = (uint)PropertyIds.EventDescription; + public const uint Description = (uint)Property.Id.EventDescription; /// /// The location of the event /// - public const uint Location = (uint)PropertyIds.EventLocation; + public const uint Location = (uint)Property.Id.EventLocation; /// /// The category of the event. For example APPOINTMENT, BIRTHDAY /// - public const uint Categories = (uint)PropertyIds.EventCategories; + public const uint Categories = (uint)Property.Id.EventCategories; /// /// The exception list of the event. If this event has a recurrence rule, the instance of the exdate is removed. Format is "YYYYMMDD"(allday event) or "YYYYMMDDTHHMMSS". Multiple exceptions can be included with a comma /// - public const uint Exdate = (uint)PropertyIds.EventExdate; + public const uint Exdate = (uint)Property.Id.EventExdate; /// /// The status of event(refer to the CalendarTypes.EventStatus). /// - public const uint EventStatus = (uint)PropertyIds.EventEventStatus; + public const uint EventStatus = (uint)Property.Id.EventEventStatus; /// /// The priority of event(refer to the CalendarTypes.Priority). /// - public const uint Priority = (uint)PropertyIds.EventPriority; + public const uint Priority = (uint)Property.Id.EventPriority; /// /// The timezone_id of the event if it exists. /// - public const uint Timezone = (uint)PropertyIds.EventTimezone; + public const uint Timezone = (uint)Property.Id.EventTimezone; /// /// The person_id of the event if the event is a birthday. Refer to the contacts-service /// - public const uint ContactId = (uint)PropertyIds.EventContactId; + public const uint ContactId = (uint)Property.Id.EventContactId; /// /// The busy status of event(refer to the CalendarTypes.BusyStatus). /// - public const uint BusyStatus = (uint)PropertyIds.EventBusyStatus; + public const uint BusyStatus = (uint)Property.Id.EventBusyStatus; /// /// The Sensitivity of event(refer to the CalendarTypes.Sensitivity). /// - public const uint Sensitivity = (uint)PropertyIds.EventSensitivity; + public const uint Sensitivity = (uint)Property.Id.EventSensitivity; /// /// The unique ID of the event /// - public const uint Uid = (uint)PropertyIds.EventUid; + public const uint Uid = (uint)Property.Id.EventUid; /// /// The name of organizer of the event /// - public const uint OrganizerName = (uint)PropertyIds.EventOrganizerName; + public const uint OrganizerName = (uint)Property.Id.EventOrganizerName; /// /// The email address of the organizer of the event /// - public const uint OrganizerEmail = (uint)PropertyIds.EventOrganizerEmail; + public const uint OrganizerEmail = (uint)Property.Id.EventOrganizerEmail; /// /// The meeting status of event(refer to the CalendarTypes.MeetingStatus). /// - public const uint MeetingStatus = (uint)PropertyIds.EventMeetingStatus; + public const uint MeetingStatus = (uint)Property.Id.EventMeetingStatus; /// /// The ID of the original event if the event is an exception. /// - public const uint OriginalEventId = (uint)PropertyIds.EventOriginalEventId; + public const uint OriginalEventId = (uint)Property.Id.EventOriginalEventId; /// /// The latitude of the location of the event /// - public const uint Latitude = (uint)PropertyIds.EventLatitude; + public const uint Latitude = (uint)Property.Id.EventLatitude; /// /// The longitude of the location of the event /// - public const uint Longitude = (uint)PropertyIds.EventLongitude; + public const uint Longitude = (uint)Property.Id.EventLongitude; /// /// ID of the email_id. Refer to the email-service. /// - public const uint EmailId = (uint)PropertyIds.EventEmailId; + public const uint EmailId = (uint)Property.Id.EventEmailId; /// /// The time when the event is created /// - public const uint CreatedTime = (uint)PropertyIds.EventCreatedTime; + public const uint CreatedTime = (uint)Property.Id.EventCreatedTime; /// /// The time when the event is updated /// - public const uint LastModifiedTime = (uint)PropertyIds.EventLastModifiedTime; + public const uint LastModifiedTime = (uint)Property.Id.EventLastModifiedTime; /// /// Whether or not the event is deleted /// - public const uint IsDeleted = (uint)PropertyIds.EventIsDeleted; + public const uint IsDeleted = (uint)Property.Id.EventIsDeleted; /// /// The frequent type of event recurrence(refer to the CalendarTypes.Recurrence). /// - public const uint Freq = (uint)PropertyIds.EventFreq; + public const uint Freq = (uint)Property.Id.EventFreq; /// /// The range type of event recurrence(refer to the CalendarTypes.RangeType). /// - public const uint RangeType = (uint)PropertyIds.EventRangeType; + public const uint RangeType = (uint)Property.Id.EventRangeType; /// /// The end time of the event recurrence. Only if this is used with RangeType.Until. /// - public const uint Until = (uint)PropertyIds.EventUntil; + public const uint Until = (uint)Property.Id.EventUntil; /// /// The count of the event recurrence. Only if this is used with RangeType.Count. /// - public const uint Count = (uint)PropertyIds.EventCount; + public const uint Count = (uint)Property.Id.EventCount; /// /// The interval of the event recurrence /// - public const uint Interval = (uint)PropertyIds.EventInterval; + public const uint Interval = (uint)Property.Id.EventInterval; /// /// The second list of the event recurrence. The value can be from 0 to 59. The list is separated by comma /// - public const uint Bysecond = (uint)PropertyIds.EventBysecond; + public const uint Bysecond = (uint)Property.Id.EventBysecond; /// /// The minute list of the event recurrence. The value can be from 0 to 59. The list is separated by commas /// - public const uint Byminute = (uint)PropertyIds.EventByminute; + public const uint Byminute = (uint)Property.Id.EventByminute; /// /// The hour list of the event recurrence. The value can be from 0 to 23. The list is separated by commas /// - public const uint Byhour = (uint)PropertyIds.EventByhour; + public const uint Byhour = (uint)Property.Id.EventByhour; /// /// The day list of the event recurrence. The value can be SU, MO, TU, WE, TH, FR, SA. The list is separated by commas. /// - public const uint Byday = (uint)PropertyIds.EventByday; + public const uint Byday = (uint)Property.Id.EventByday; /// /// The month day list of the event recurrence. The value can be from 1 to 31 and from -31 to -1. The list is separated by commas. /// - public const uint Bymonthday = (uint)PropertyIds.EventBymonthday; + public const uint Bymonthday = (uint)Property.Id.EventBymonthday; /// /// The year day list of the event recurrence. The value can be from 1 to 366 and from -366 to -1. The list is separated by commas /// - public const uint Byyearday = (uint)PropertyIds.EventByyearday; + public const uint Byyearday = (uint)Property.Id.EventByyearday; /// /// The week number list of the event recurrence. The value can be from 1 to 53 and from -53 to -1. The list is separated by commas /// - public const uint Byweekno = (uint)PropertyIds.EventByweekno; + public const uint Byweekno = (uint)Property.Id.EventByweekno; /// /// The month list of the event recurrence. The value can be from 1 to 12. The list is separated by commas /// - public const uint Bymonth = (uint)PropertyIds.EventBymonth; + public const uint Bymonth = (uint)Property.Id.EventBymonth; /// /// The position list of the event recurrence. The value can be from 1 to 366 and from -366 to -1. The list is separated by commas /// - public const uint Bysetpos = (uint)PropertyIds.EventBysetpos; + public const uint Bysetpos = (uint)Property.Id.EventBysetpos; /// /// The start day of the week(refer to the CalendarTypes.WeekDay). /// - public const uint Wkst = (uint)PropertyIds.EventWkst; + public const uint Wkst = (uint)Property.Id.EventWkst; /// /// RECURRENCE-ID of RFC #2445 /// - public const uint RecurrenceId = (uint)PropertyIds.EventRecurrenceId; + public const uint RecurrenceId = (uint)Property.Id.EventRecurrenceId; /// /// RDATE of RFC #2445 /// - public const uint Rdate = (uint)PropertyIds.EventRdate; + public const uint Rdate = (uint)Property.Id.EventRdate; /// /// Whether or not the event has an attendee list /// - public const uint HasAttendee = (uint)PropertyIds.EventHasAttendee; + public const uint HasAttendee = (uint)Property.Id.EventHasAttendee; /// /// Whether or not the event has an alarm list /// - public const uint HasAlarm = (uint)PropertyIds.EventHasAlarm; + public const uint HasAlarm = (uint)Property.Id.EventHasAlarm; /// /// The sync data of the event. If developer need to save some information related to the event, they can use this property /// - public const uint SyncData1 = (uint)PropertyIds.EventSyncData1; + public const uint SyncData1 = (uint)Property.Id.EventSyncData1; /// /// The sync data of the event. If developer need to save some information related to the event, they can use this property /// - public const uint SyncData2 = (uint)PropertyIds.EventSyncData2; + public const uint SyncData2 = (uint)Property.Id.EventSyncData2; /// /// The sync data of the event. If developer need to save some information related to the event, they can use this property /// - public const uint SyncData3 = (uint)PropertyIds.EventSyncData3; + public const uint SyncData3 = (uint)Property.Id.EventSyncData3; /// /// The sync data of the event. If developer need to save some information related to the event, they can use this property /// - public const uint SyncData4 = (uint)PropertyIds.EventSyncData4; + public const uint SyncData4 = (uint)Property.Id.EventSyncData4; /// /// The start time of the event /// - public const uint Start = (uint)PropertyIds.EventStart; + public const uint Start = (uint)Property.Id.EventStart; /// /// The end time of the event /// - public const uint End = (uint)PropertyIds.EventEnd; + public const uint End = (uint)Property.Id.EventEnd; /// /// The alarm list of the event. /// - public const uint Alarm = (uint)PropertyIds.EventAlarm; + public const uint Alarm = (uint)Property.Id.EventAlarm; /// /// The attendee list of the event. /// - public const uint Attendee = (uint)PropertyIds.EventAttendee; + public const uint Attendee = (uint)Property.Id.EventAttendee; /// /// The Calendar system type(refer to the CalendarTypes.SystemType). /// - public const uint CalendarSystemType = (uint)PropertyIds.EventCalendarSystemType; + public const uint CalendarSystemType = (uint)Property.Id.EventCalendarSystemType; /// /// The timezone of the start_time /// - public const uint StartTzid = (uint)PropertyIds.EventStartTzid; + public const uint StartTzid = (uint)Property.Id.EventStartTzid; /// /// The timezone of the end_time /// - public const uint EndTzid = (uint)PropertyIds.EventEndTzid; + public const uint EndTzid = (uint)Property.Id.EventEndTzid; /// /// The exception mod event list of the event /// - public const uint Exception = (uint)PropertyIds.EventException; + public const uint Exception = (uint)Property.Id.EventException; /// /// The extended property list of the event. /// - public const uint Extended = (uint)PropertyIds.EventExtended; + public const uint Extended = (uint)Property.Id.EventExtended; /// /// The event is an allday event or not /// - public const uint IsAllday = (uint)PropertyIds.EventIsAllday; + public const uint IsAllday = (uint)Property.Id.EventIsAllday; /// /// The linked event count /// - public const uint LinkCount = (uint)PropertyIds.EventLinkCount; + public const uint LinkCount = (uint)Property.Id.EventLinkCount; /// /// The event is an base linked event /// - public const uint LinkBaseId = (uint)PropertyIds.EventLinkBaseId; + public const uint LinkBaseId = (uint)Property.Id.EventLinkBaseId; } + /// + /// Describes properies of a Todo record. + /// public static class Todo { /// @@ -655,197 +670,200 @@ namespace Tizen.Pims.Calendar /// /// DB record ID of the todo /// - public const uint Id = (uint)PropertyIds.TodoId; + public const uint Id = (uint)Property.Id.TodoId; /// /// ID of the calendar book to which the todo belongs /// - public const uint BookId = (uint)PropertyIds.TodoBookId; + public const uint BookId = (uint)Property.Id.TodoBookId; /// /// The short description of the todo /// - public const uint Summary = (uint)PropertyIds.TodoSummary; + public const uint Summary = (uint)Property.Id.TodoSummary; /// /// The description of the todo /// - public const uint Description = (uint)PropertyIds.TodoDescription; + public const uint Description = (uint)Property.Id.TodoDescription; /// /// The location of the todo /// - public const uint Location = (uint)PropertyIds.TodoLocation; + public const uint Location = (uint)Property.Id.TodoLocation; /// /// The category of the todo. i.g. APPOINTMENT, BIRTHDAY /// - public const uint Categories = (uint)PropertyIds.TodoCategories; + public const uint Categories = (uint)Property.Id.TodoCategories; /// /// The status of todo(refer to the CalendarTypes.TodoStatus). /// - public const uint TodoStatus = (uint)PropertyIds.TodoStatus; + public const uint TodoStatus = (uint)Property.Id.TodoStatus; /// /// The Priority of todo(refer to the CalendarTypes.Priority). /// - public const uint Priority = (uint)PropertyIds.TodoPriority; + public const uint Priority = (uint)Property.Id.TodoPriority; /// /// The Sensitivity of todo(refer to the CalendarTypes.Sensitivity). /// - public const uint Sensitivity = (uint)PropertyIds.TodoSensitivity; + public const uint Sensitivity = (uint)Property.Id.TodoSensitivity; /// /// The unique ID of the todo /// - public const uint Uid = (uint)PropertyIds.TodoUid; + public const uint Uid = (uint)Property.Id.TodoUid; /// /// The latitude of the location of the todo /// - public const uint Latitude = (uint)PropertyIds.TodoLatitude; + public const uint Latitude = (uint)Property.Id.TodoLatitude; /// /// The longitude of the location of the todo /// - public const uint Longitude = (uint)PropertyIds.TodoLongitude; + public const uint Longitude = (uint)Property.Id.TodoLongitude; /// /// The progression of the todo. The value can be from 0 to 100 /// - public const uint Progress = (uint)PropertyIds.TodoProgress; + public const uint Progress = (uint)Property.Id.TodoProgress; /// /// The time when the todo is create /// - public const uint CreatedTime = (uint)PropertyIds.TodoCreatedTime; + public const uint CreatedTime = (uint)Property.Id.TodoCreatedTime; /// /// The time when the todo is updated /// - public const uint LastModifiedTime = (uint)PropertyIds.TodoLastModifiedTime; + public const uint LastModifiedTime = (uint)Property.Id.TodoLastModifiedTime; /// /// The time when the todo is completed /// - public const uint CompletedTime = (uint)PropertyIds.TodoCompletedTime; + public const uint CompletedTime = (uint)Property.Id.TodoCompletedTime; /// /// Whether or not the todo is deleted /// - public const uint IsDeleted = (uint)PropertyIds.TodoIsDeleted; + public const uint IsDeleted = (uint)Property.Id.TodoIsDeleted; /// /// The frequent type of todo recurrence(refer to the CalendarTypes.Recurrence). /// - public const uint Freq = (uint)PropertyIds.TodoFreq; + public const uint Freq = (uint)Property.Id.TodoFreq; /// /// The range type of todo recurrence(refer to the CalendarTypes.RangeType). /// - public const uint RangeType = (uint)PropertyIds.TodoRangeType; + public const uint RangeType = (uint)Property.Id.TodoRangeType; /// /// The end time of the todo recurrence. Only if this is used with RangeType.Until. /// - public const uint Until = (uint)PropertyIds.TodoUntil; + public const uint Until = (uint)Property.Id.TodoUntil; /// /// The count of the todo recurrence. Only if this is used with RangeType.Count. /// - public const uint Count = (uint)PropertyIds.TodoCount; + public const uint Count = (uint)Property.Id.TodoCount; /// /// The interval of the todo recurrence /// - public const uint Integererval = (uint)PropertyIds.TodoIntegererval; + public const uint Interval = (uint)Property.Id.TodoInterval; /// /// The second list of the todo recurrence. The value can be from 0 to 59. The list is separated by commas /// - public const uint Bysecond = (uint)PropertyIds.TodoBysecond; + public const uint Bysecond = (uint)Property.Id.TodoBysecond; /// /// The minute list of the todo recurrence. The value can be from 0 to 59. The list is separated by commas /// - public const uint Byminute = (uint)PropertyIds.TodoByminute; + public const uint Byminute = (uint)Property.Id.TodoByminute; /// /// The hour list of the todo recurrence. The value can be from 0 to 23. The list is separated by commas /// - public const uint Byhour = (uint)PropertyIds.TodoByhour; + public const uint Byhour = (uint)Property.Id.TodoByhour; /// /// The day list of the todo recurrence. The value can be SU, MO, TU, WE, TH, FR, SA. The list is separated by commas /// - public const uint Byday = (uint)PropertyIds.TodoByday; + public const uint Byday = (uint)Property.Id.TodoByday; /// /// The month day list of the todo recurrence. The value can be from 1 to 31 and from -31 to -1. The list is separated by commas /// - public const uint Bymonthday = (uint)PropertyIds.TodoBymonthday; + public const uint Bymonthday = (uint)Property.Id.TodoBymonthday; /// /// The year day list of the todo recurrence. The value can be from 1 to 366 and from -366 to -1. The list is separated by commas /// - public const uint Byyearday = (uint)PropertyIds.TodoByyearday; + public const uint Byyearday = (uint)Property.Id.TodoByyearday; /// /// The week number list of the todo recurrence. The value can be from 1 to 53 and from -53 to -1. The list is separated by commas /// - public const uint Byweekno = (uint)PropertyIds.TodoByweekno; + public const uint Byweekno = (uint)Property.Id.TodoByweekno; /// /// The month list of the todo recurrence. The value can be from 1 to 12. The list is separated by commas /// - public const uint Bymonth = (uint)PropertyIds.TodoBymonth; + public const uint Bymonth = (uint)Property.Id.TodoBymonth; /// /// The position list of the todo recurrence. The value can be from 1 to 366 and from -366 to -1. The list is separated by commas /// - public const uint Bysetpos = (uint)PropertyIds.TodoBysetpos; + public const uint Bysetpos = (uint)Property.Id.TodoBysetpos; /// /// The start day of the week(refer to the CalendarTypes.WeekDay). /// - public const uint Wkst = (uint)PropertyIds.TodoWkst; + public const uint Wkst = (uint)Property.Id.TodoWkst; /// /// Whether or not the todo has an alarm list /// - public const uint HasAlarm = (uint)PropertyIds.TodoHasAlarm; + public const uint HasAlarm = (uint)Property.Id.TodoHasAlarm; /// /// The sync data of the todo. If developers need to save some information related to the todo, they can use this property /// - public const uint SyncData1 = (uint)PropertyIds.TodoSyncData1; + public const uint SyncData1 = (uint)Property.Id.TodoSyncData1; /// /// The sync data of the todo. If developers need to save some information related to the todo, they can use this property /// - public const uint SyncData2 = (uint)PropertyIds.TodoSyncData2; + public const uint SyncData2 = (uint)Property.Id.TodoSyncData2; /// /// The sync data of the todo. If developers need to save some information related to the todo, they can use this property /// - public const uint SyncData3 = (uint)PropertyIds.TodoSyncData3; + public const uint SyncData3 = (uint)Property.Id.TodoSyncData3; /// /// The sync data of the todo. If developers need to save some information related to the todo, they can use this property /// - public const uint SyncData4 = (uint)PropertyIds.TodoSyncData4; + public const uint SyncData4 = (uint)Property.Id.TodoSyncData4; /// /// The start time of the todo /// - public const uint Start = (uint)PropertyIds.TodoStart; + public const uint Start = (uint)Property.Id.TodoStart; /// /// The due time of the todo /// - public const uint Due = (uint)PropertyIds.TodoDue; + public const uint Due = (uint)Property.Id.TodoDue; /// /// The alarm list of the todo. /// - public const uint Alarm = (uint)PropertyIds.TodoAlarm; + public const uint Alarm = (uint)Property.Id.TodoAlarm; /// /// The timezone of the start_time /// - public const uint StartTzid = (uint)PropertyIds.TodoStartTzid; + public const uint StartTzid = (uint)Property.Id.TodoStartTzid; /// /// The timezone of the due_time /// - public const uint DueTzid = (uint)PropertyIds.TodoDueTzid; + public const uint DueTzid = (uint)Property.Id.TodoDueTzid; /// /// The name of the organizer of the event /// - public const uint OrganizerName = (uint)PropertyIds.TodoOrganizerName; + public const uint OrganizerName = (uint)Property.Id.TodoOrganizerName; /// /// The email address of the organizer of the todo /// - public const uint OrganizerEmail = (uint)PropertyIds.TodoOrganizerEmail; + public const uint OrganizerEmail = (uint)Property.Id.TodoOrganizerEmail; /// /// Whether or not the todo has an attendee list /// - public const uint HasAttendee = (uint)PropertyIds.TodoHasAttendee; + public const uint HasAttendee = (uint)Property.Id.TodoHasAttendee; /// /// The attendee list of the todo. /// - public const uint Attendee = (uint)PropertyIds.TodoAttendee; + public const uint Attendee = (uint)Property.Id.TodoAttendee; /// /// The extended property list of the todo. /// - public const uint Extended = (uint)PropertyIds.TodoExtended; + public const uint Extended = (uint)Property.Id.TodoExtended; /// /// The todo is an allday event or not /// - public const uint IsAllday = (uint)PropertyIds.TodoIsAllday; + public const uint IsAllday = (uint)Property.Id.TodoIsAllday; } + /// + /// Describes properies of a Timezone record. + /// public static class Timezone { /// @@ -855,65 +873,68 @@ namespace Tizen.Pims.Calendar /// /// DB record ID of the timezone /// - public const uint Id = (uint)PropertyIds.TimezoneId; + public const uint Id = (uint)Property.Id.TimezoneId; /// /// UTC offset which is in use when the onset of this time zone observance begins. Valid values are -720(-12:00) to 840(+14:00) /// - public const uint TzOffsetFromGmt = (uint)PropertyIds.TimezoneTzOffsetFromGmt; + public const uint TzOffsetFromGmt = (uint)Property.Id.TimezoneTzOffsetFromGmt; /// /// Name of the Standard Time /// - public const uint StandardName = (uint)PropertyIds.TimezoneStandardName; + public const uint StandardName = (uint)Property.Id.TimezoneStandardName; /// /// Starting month of the Standard Time. Month is 0-based. eg, 0 for January /// - public const uint StdStartMonth = (uint)PropertyIds.TimezoneStdStartMonth; + public const uint StdStartMonth = (uint)Property.Id.TimezoneStdStartMonth; /// /// Starting day-of-week-in-month of the Standard Time. Day is 1-based /// - public const uint StdStartPositionOfWeek = (uint)PropertyIds.TimezoneStdStartPositionOfWeek; + public const uint StdStartPositionOfWeek = (uint)Property.Id.TimezoneStdStartPositionOfWeek; /// /// Starting day-of-week of the Standard Time. Valid values are 1(SUNDAY) to 7(SATURDAY) /// - public const uint StdStartDay = (uint)PropertyIds.TimezoneStdStartDay; + public const uint StdStartDay = (uint)Property.Id.TimezoneStdStartDay; /// /// Starting hour of the Standard Time. Valid values are 0 to 23 /// - public const uint StdStartHour = (uint)PropertyIds.TimezoneStdStartHour; + public const uint StdStartHour = (uint)Property.Id.TimezoneStdStartHour; /// /// The number of minutes added during the Standard Time /// - public const uint StandardBias = (uint)PropertyIds.TimezoneStandardBias; + public const uint StandardBias = (uint)Property.Id.TimezoneStandardBias; /// /// Name of Daylight /// - public const uint DayLightName = (uint)PropertyIds.TimezoneDayLightName; + public const uint DayLightName = (uint)Property.Id.TimezoneDayLightName; /// /// Starting month of Daylight. Month is 0-based. eg, 0 for January /// - public const uint DayLightStartMonth = (uint)PropertyIds.TimezoneDayLightStartMonth; + public const uint DayLightStartMonth = (uint)Property.Id.TimezoneDayLightStartMonth; /// /// Starting day-of-week-in-month of Daylight. Day is 1-based /// - public const uint DayLightStartPositionOfWeek = (uint)PropertyIds.TimezoneDayLightStartPositionOfWeek; + public const uint DayLightStartPositionOfWeek = (uint)Property.Id.TimezoneDayLightStartPositionOfWeek; /// /// Starting day-of-week of Daylight. Valid values are 1(SUNDAY) to 7(SATURDAY) /// - public const uint DayLightStartDay = (uint)PropertyIds.TimezoneDayLightStartDay; + public const uint DayLightStartDay = (uint)Property.Id.TimezoneDayLightStartDay; /// /// Starting hour of Daylight. Valid values are 0 to 23 /// - public const uint DayLightStartHour = (uint)PropertyIds.TimezoneDayLightStartHour; + public const uint DayLightStartHour = (uint)Property.Id.TimezoneDayLightStartHour; /// /// The number of minutes added during Daylight Time /// - public const uint DayLightBias = (uint)PropertyIds.TimezoneDayLightBias; + public const uint DayLightBias = (uint)Property.Id.TimezoneDayLightBias; /// /// DB record ID of a related calendar book /// - public const uint CalendarId = (uint)PropertyIds.TimezoneCalendarId; + public const uint CalendarId = (uint)Property.Id.TimezoneCalendarId; } + /// + /// Describes properies of a Attendee record. + /// public static class Attendee { /// @@ -923,61 +944,64 @@ namespace Tizen.Pims.Calendar /// /// The number of the attendee /// - public const uint Number = (uint)PropertyIds.AttendeeNumber; + public const uint Number = (uint)Property.Id.AttendeeNumber; /// /// The type of attendee(refer to the CalendarTypes.Cutype). /// - public const uint Cutype = (uint)PropertyIds.AttendeeCutype; + public const uint Cutype = (uint)Property.Id.AttendeeCutype; /// - /// + /// CtIndex /// - public const uint CtIndex = (uint)PropertyIds.AttendeeCtIndex; + public const uint CtIndex = (uint)Property.Id.AttendeeCtIndex; /// /// Unique identifier /// - public const uint Uid = (uint)PropertyIds.AttendeeUid; + public const uint Uid = (uint)Property.Id.AttendeeUid; /// - /// + /// Group /// - public const uint Group = (uint)PropertyIds.AttendeeGroup; + public const uint Group = (uint)Property.Id.AttendeeGroup; /// /// The email address of the attendee /// - public const uint Email = (uint)PropertyIds.AttendeeEmail; + public const uint Email = (uint)Property.Id.AttendeeEmail; /// /// Attendee role(refer to the CalendarTypes.AttendeeRole). /// - public const uint Role = (uint)PropertyIds.AttendeeRole; + public const uint Role = (uint)Property.Id.AttendeeRole; /// /// Attendee status(refer to the CalendarTypes.AttendeeStatus). /// - public const uint Status = (uint)PropertyIds.AttendeeStatus; + public const uint Status = (uint)Property.Id.AttendeeStatus; /// /// RSVP invitation reply (one of true, false) /// - public const uint Rsvp = (uint)PropertyIds.AttendeeRsvp; + public const uint Rsvp = (uint)Property.Id.AttendeeRsvp; /// /// Delegatee (DELEGATED-TO) /// - public const uint DelegateeUri = (uint)PropertyIds.AttendeeDelegateeUri; + public const uint DelegateeUri = (uint)Property.Id.AttendeeDelegateeUri; /// /// Delegator (DELEGATED-FROM) /// - public const uint DelegatorUri = (uint)PropertyIds.AttendeeDelegatorUri; + public const uint DelegatorUri = (uint)Property.Id.AttendeeDelegatorUri; /// /// Attendee name /// - public const uint Name = (uint)PropertyIds.AttendeeName; + public const uint Name = (uint)Property.Id.AttendeeName; /// /// Group that the attendee belongs to /// - public const uint Member = (uint)PropertyIds.AttendeeMember; + public const uint Member = (uint)Property.Id.AttendeeMember; /// /// Event/TODO that the attendee belongs to /// - public const uint ParentId = (uint)PropertyIds.AttendeeParentId; + public const uint ParentId = (uint)Property.Id.AttendeeParentId; } + /// + /// Describes properies of a Alarm record. + /// public static class Alarm { /// @@ -987,37 +1011,41 @@ namespace Tizen.Pims.Calendar /// /// The number of unit before start time. This MUST be used with one of TickUnit. /// - public const uint Tick = (uint)PropertyIds.AlarmTick; + public const uint Tick = (uint)Property.Id.AlarmTick; /// /// Reminder tick time unit(refer to the CalendarTypes.TickUnit). /// - public const uint TickUnit = (uint)PropertyIds.AlarmTickUnit; + public const uint TickUnit = (uint)Property.Id.AlarmTickUnit; /// /// Alarm description /// - public const uint Description = (uint)PropertyIds.AlarmDescription; + public const uint Description = (uint)Property.Id.AlarmDescription; /// /// Event that the alarm belongs to /// - public const uint ParentId = (uint)PropertyIds.AlarmParentId; + public const uint ParentId = (uint)Property.Id.AlarmParentId; /// /// Alarm summary /// - public const uint Summary = (uint)PropertyIds.AlarmSummary; + public const uint Summary = (uint)Property.Id.AlarmSummary; /// /// Action of alarm(refer to the CalendarTypes.Action). /// - public const uint Action = (uint)PropertyIds.AlarmAction; + public const uint Action = (uint)Property.Id.AlarmAction; /// /// Alarm tone path /// - public const uint Attach = (uint)PropertyIds.AlarmAttach; + public const uint Attach = (uint)Property.Id.AlarmAttach; /// /// The alarm time /// - public const uint AlarmTime = (uint)PropertyIds.AlarmAlarm; + public const uint AlarmTime = (uint)Property.Id.AlarmAlarm; } + /// + /// Describes properies of a InstanceUtimeBook record. + /// + /// Read only view public static class InstanceUtimeBook { /// @@ -1027,77 +1055,81 @@ namespace Tizen.Pims.Calendar /// /// Event id /// - public const uint EventId = (uint)PropertyIds.InstanceUtimeBookEventId; + public const uint EventId = (uint)Property.Id.InstanceUtimeBookEventId; /// /// Start time /// - public const uint Start = (uint)PropertyIds.InstanceUtimeBookStart; + public const uint Start = (uint)Property.Id.InstanceUtimeBookStart; /// /// End time /// - public const uint End = (uint)PropertyIds.InstanceUtimeBookEnd; + public const uint End = (uint)Property.Id.InstanceUtimeBookEnd; /// /// Summary /// - public const uint Summary = (uint)PropertyIds.InstanceUtimeBookSummary; + public const uint Summary = (uint)Property.Id.InstanceUtimeBookSummary; /// /// Location /// - public const uint Location = (uint)PropertyIds.InstanceUtimeBookLocation; + public const uint Location = (uint)Property.Id.InstanceUtimeBookLocation; /// /// Book id /// - public const uint BookId = (uint)PropertyIds.InstanceUtimeBookBookId; + public const uint BookId = (uint)Property.Id.InstanceUtimeBookBookId; /// /// Description /// - public const uint Description = (uint)PropertyIds.InstanceUtimeBookDescription; + public const uint Description = (uint)Property.Id.InstanceUtimeBookDescription; /// /// BusyStatus /// - public const uint BusyStatus = (uint)PropertyIds.InstanceUtimeBookBusyStatus; + public const uint BusyStatus = (uint)Property.Id.InstanceUtimeBookBusyStatus; /// /// EventStatus /// - public const uint EventStatus = (uint)PropertyIds.InstanceUtimeBookEventStatus; + public const uint EventStatus = (uint)Property.Id.InstanceUtimeBookEventStatus; /// /// Priority /// - public const uint Priority = (uint)PropertyIds.InstanceUtimeBookPriority; + public const uint Priority = (uint)Property.Id.InstanceUtimeBookPriority; /// /// Sensitivity /// - public const uint Sensitivity = (uint)PropertyIds.InstanceUtimeBookSensitivity; + public const uint Sensitivity = (uint)Property.Id.InstanceUtimeBookSensitivity; /// /// HasRrule /// - public const uint HasRrule = (uint)PropertyIds.InstanceUtimeBookHasRrule; + public const uint HasRrule = (uint)Property.Id.InstanceUtimeBookHasRrule; /// /// Latitude /// - public const uint Latitude = (uint)PropertyIds.InstanceUtimeBookLatitude; + public const uint Latitude = (uint)Property.Id.InstanceUtimeBookLatitude; /// /// Longitude /// - public const uint Longitude = (uint)PropertyIds.InstanceUtimeBookLongitude; + public const uint Longitude = (uint)Property.Id.InstanceUtimeBookLongitude; /// /// HasAlarm /// - public const uint HasAlarm = (uint)PropertyIds.InstanceUtimeBookHasAlarm; + public const uint HasAlarm = (uint)Property.Id.InstanceUtimeBookHasAlarm; /// /// OriginalEventId /// - public const uint OriginalEventId = (uint)PropertyIds.InstanceUtimeBookOriginalEventId; + public const uint OriginalEventId = (uint)Property.Id.InstanceUtimeBookOriginalEventId; /// /// LastModifiedtime /// - public const uint LastModifiedtime = (uint)PropertyIds.InstanceUtimeBookLastModifiedtime; + public const uint LastModifiedtime = (uint)Property.Id.InstanceUtimeBookLastModifiedTime; /// /// SyncData1 /// - public const uint SyncData1 = (uint)PropertyIds.InstanceUtimeBookSyncData1; + public const uint SyncData1 = (uint)Property.Id.InstanceUtimeBookSyncData1; } + /// + /// Describes properies of a InstanceLocaltimeBook record. + /// + /// Read only view public static class InstanceLocaltimeBook { /// @@ -1107,81 +1139,85 @@ namespace Tizen.Pims.Calendar /// /// EventId /// - public const uint EventId = (uint)PropertyIds.InstanceLocaltimeBookEventId; + public const uint EventId = (uint)Property.Id.InstanceLocaltimeBookEventId; /// /// Start /// - public const uint Start = (uint)PropertyIds.InstanceLocaltimeBookStart; + public const uint Start = (uint)Property.Id.InstanceLocaltimeBookStart; /// /// End /// - public const uint End = (uint)PropertyIds.InstanceLocaltimeBookEnd; + public const uint End = (uint)Property.Id.InstanceLocaltimeBookEnd; /// /// Summary /// - public const uint Summary = (uint)PropertyIds.InstanceLocaltimeBookSummary; + public const uint Summary = (uint)Property.Id.InstanceLocaltimeBookSummary; /// /// Location /// - public const uint Location = (uint)PropertyIds.InstanceLocaltimeBookLocation; + public const uint Location = (uint)Property.Id.InstanceLocaltimeBookLocation; /// /// BookId /// - public const uint BookId = (uint)PropertyIds.InstanceLocaltimeBookBookId; + public const uint BookId = (uint)Property.Id.InstanceLocaltimeBookBookId; /// /// Description /// - public const uint Description = (uint)PropertyIds.InstanceLocaltimeBookDescription; + public const uint Description = (uint)Property.Id.InstanceLocaltimeBookDescription; /// /// BusyStatus /// - public const uint BusyStatus = (uint)PropertyIds.InstanceLocaltimeBookBusyStatus; + public const uint BusyStatus = (uint)Property.Id.InstanceLocaltimeBookBusyStatus; /// /// EventStatus /// - public const uint EventStatus = (uint)PropertyIds.InstanceLocaltimeBookEventStatus; + public const uint EventStatus = (uint)Property.Id.InstanceLocaltimeBookEventStatus; /// /// Priority /// - public const uint Priority = (uint)PropertyIds.InstanceLocaltimeBookPriority; + public const uint Priority = (uint)Property.Id.InstanceLocaltimeBookPriority; /// /// Sensitivity /// - public const uint Sensitivity = (uint)PropertyIds.InstanceLocaltimeBookSensitivity; + public const uint Sensitivity = (uint)Property.Id.InstanceLocaltimeBookSensitivity; /// /// HasRrule /// - public const uint HasRrule = (uint)PropertyIds.InstanceLocaltimeBookHasRrule; + public const uint HasRrule = (uint)Property.Id.InstanceLocaltimeBookHasRrule; /// /// Latitude /// - public const uint Latitude = (uint)PropertyIds.InstanceLocaltimeBookLatitude; + public const uint Latitude = (uint)Property.Id.InstanceLocaltimeBookLatitude; /// /// Longitude /// - public const uint Longitude = (uint)PropertyIds.InstanceLocaltimeBookLongitude; + public const uint Longitude = (uint)Property.Id.InstanceLocaltimeBookLongitude; /// /// HasAlarm /// - public const uint HasAlarm = (uint)PropertyIds.InstanceLocaltimeBookHasAlarm; + public const uint HasAlarm = (uint)Property.Id.InstanceLocaltimeBookHasAlarm; /// /// OriginalEventId /// - public const uint OriginalEventId = (uint)PropertyIds.InstanceLocaltimeBookOriginalEventId; + public const uint OriginalEventId = (uint)Property.Id.InstanceLocaltimeBookOriginalEventId; /// /// LastModifiedTime /// - public const uint LastModifiedTime = (uint)PropertyIds.InstanceLocaltimeBookLastModifiedTime; + public const uint LastModifiedTime = (uint)Property.Id.InstanceLocaltimeBookLastModifiedTime; /// /// SyncData1 /// - public const uint SyncData1 = (uint)PropertyIds.InstanceLocaltimeBookSyncData1; + public const uint SyncData1 = (uint)Property.Id.InstanceLocaltimeBookSyncData1; /// /// IsAllday /// - public const uint IsAllday = (uint)PropertyIds.InstanceLocaltimeBookIsAllday; + public const uint IsAllday = (uint)Property.Id.InstanceLocaltimeBookIsAllday; } + /// + /// Describes properies of a InstanceUtimeBookExtended record. + /// + /// Read only view public static class InstanceUtimeBookExtended { /// @@ -1191,101 +1227,105 @@ namespace Tizen.Pims.Calendar /// /// EventId /// - public const uint EventId = (uint)PropertyIds.InstanceUtimeBookExtendedEventId; + public const uint EventId = (uint)Property.Id.InstanceUtimeBookExtendedEventId; /// /// Start /// - public const uint Start = (uint)PropertyIds.InstanceUtimeBookExtendedStart; + public const uint Start = (uint)Property.Id.InstanceUtimeBookExtendedStart; /// /// End /// - public const uint End = (uint)PropertyIds.InstanceUtimeBookExtendedEnd; + public const uint End = (uint)Property.Id.InstanceUtimeBookExtendedEnd; /// /// Summary /// - public const uint Summary = (uint)PropertyIds.InstanceUtimeBookExtendedSummary; + public const uint Summary = (uint)Property.Id.InstanceUtimeBookExtendedSummary; /// /// Location /// - public const uint Location = (uint)PropertyIds.InstanceUtimeBookExtendedLocation; + public const uint Location = (uint)Property.Id.InstanceUtimeBookExtendedLocation; /// /// BookId /// - public const uint BookId = (uint)PropertyIds.InstanceUtimeBookExtendedBookId; + public const uint BookId = (uint)Property.Id.InstanceUtimeBookExtendedBookId; /// /// Description /// - public const uint Description = (uint)PropertyIds.InstanceUtimeBookExtendedDescription; + public const uint Description = (uint)Property.Id.InstanceUtimeBookExtendedDescription; /// /// BusyStatus /// - public const uint BusyStatus = (uint)PropertyIds.InstanceUtimeBookExtendedBusyStatus; + public const uint BusyStatus = (uint)Property.Id.InstanceUtimeBookExtendedBusyStatus; /// /// EventStatus /// - public const uint EventStatus = (uint)PropertyIds.InstanceUtimeBookExtendedEventStatus; + public const uint EventStatus = (uint)Property.Id.InstanceUtimeBookExtendedEventStatus; /// /// Priority /// - public const uint Priority = (uint)PropertyIds.InstanceUtimeBookExtendedPriority; + public const uint Priority = (uint)Property.Id.InstanceUtimeBookExtendedPriority; /// /// Sensitivity /// - public const uint Sensitivity = (uint)PropertyIds.InstanceUtimeBookExtendedSensitivity; + public const uint Sensitivity = (uint)Property.Id.InstanceUtimeBookExtendedSensitivity; /// /// HasRrule /// - public const uint HasRrule = (uint)PropertyIds.InstanceUtimeBookExtendedHasRrule; + public const uint HasRrule = (uint)Property.Id.InstanceUtimeBookExtendedHasRrule; /// /// Latitude /// - public const uint Latitude = (uint)PropertyIds.InstanceUtimeBookExtendedLatitude; + public const uint Latitude = (uint)Property.Id.InstanceUtimeBookExtendedLatitude; /// /// Longitude /// - public const uint Longitude = (uint)PropertyIds.InstanceUtimeBookExtendedLongitude; + public const uint Longitude = (uint)Property.Id.InstanceUtimeBookExtendedLongitude; /// /// HasAlarm /// - public const uint HasAlarm = (uint)PropertyIds.InstanceUtimeBookExtendedHasAlarm; + public const uint HasAlarm = (uint)Property.Id.InstanceUtimeBookExtendedHasAlarm; /// /// OriginalEventId /// - public const uint OriginalEventId = (uint)PropertyIds.InstanceUtimeBookExtendedOriginalEventId; + public const uint OriginalEventId = (uint)Property.Id.InstanceUtimeBookExtendedOriginalEventId; /// /// LastModifiedTime /// - public const uint LastModifiedTime = (uint)PropertyIds.InstanceUtimeBookExtendedLastModifiedTime; + public const uint LastModifiedTime = (uint)Property.Id.InstanceUtimeBookExtendedLastModifiedTime; /// /// SyncData1 /// - public const uint SyncData1 = (uint)PropertyIds.InstanceUtimeBookExtendedSyncData1; + public const uint SyncData1 = (uint)Property.Id.InstanceUtimeBookExtendedSyncData1; /// /// OrganizerName /// - public const uint OrganizerName = (uint)PropertyIds.InstanceUtimeBookExtendedOrganizerName; + public const uint OrganizerName = (uint)Property.Id.InstanceUtimeBookExtendedOrganizerName; /// /// Categories /// - public const uint Categories = (uint)PropertyIds.InstanceUtimeBookExtendedCategories; + public const uint Categories = (uint)Property.Id.InstanceUtimeBookExtendedCategories; /// /// HasAttendee /// - public const uint HasAttendee = (uint)PropertyIds.InstanceUtimeBookExtendedHasAttendee; + public const uint HasAttendee = (uint)Property.Id.InstanceUtimeBookExtendedHasAttendee; /// /// SyncData2 /// - public const uint SyncData2 = (uint)PropertyIds.InstanceUtimeBookExtendedSyncData2; + public const uint SyncData2 = (uint)Property.Id.InstanceUtimeBookExtendedSyncData2; /// /// SyncData3 /// - public const uint SyncData3 = (uint)PropertyIds.InstanceUtimeBookExtendedSyncData3; + public const uint SyncData3 = (uint)Property.Id.InstanceUtimeBookExtendedSyncData3; /// /// SyncData4 /// - public const uint SyncData4 = (uint)PropertyIds.InstanceUtimeBookExtendedSyncData4; + public const uint SyncData4 = (uint)Property.Id.InstanceUtimeBookExtendedSyncData4; } + /// + /// Describes properies of a InstanceLocaltimeBookExtended record. + /// + /// Read only view public static class InstanceLocaltimeBookExtended { /// @@ -1295,103 +1335,109 @@ namespace Tizen.Pims.Calendar /// /// EventId /// - public const uint EventId = (uint)PropertyIds.InstanceLocaltimeBookExtendedEventId; + public const uint EventId = (uint)Property.Id.InstanceLocaltimeBookExtendedEventId; /// /// Start /// - public const uint Start = (uint)PropertyIds.InstanceLocaltimeBookExtendedStart; + public const uint Start = (uint)Property.Id.InstanceLocaltimeBookExtendedStart; /// /// End /// - public const uint End = (uint)PropertyIds.InstanceLocaltimeBookExtendedEnd; + public const uint End = (uint)Property.Id.InstanceLocaltimeBookExtendedEnd; /// /// Summary /// - public const uint Summary = (uint)PropertyIds.InstanceLocaltimeBookExtendedSummary; + public const uint Summary = (uint)Property.Id.InstanceLocaltimeBookExtendedSummary; /// /// Location /// - public const uint Location = (uint)PropertyIds.InstanceLocaltimeBookExtendedLocation; + public const uint Location = (uint)Property.Id.InstanceLocaltimeBookExtendedLocation; /// /// BookId /// - public const uint BookId = (uint)PropertyIds.InstanceLocaltimeBookExtendedBookId; + public const uint BookId = (uint)Property.Id.InstanceLocaltimeBookExtendedBookId; /// + /// Description /// - public const uint Description = (uint)PropertyIds.InstanceLocaltimeBookExtendedDescription; + public const uint Description = (uint)Property.Id.InstanceLocaltimeBookExtendedDescription; /// + /// BusyStatus /// - public const uint BusyStatus = (uint)PropertyIds.InstanceLocaltimeBookExtendedBusyStatus; + public const uint BusyStatus = (uint)Property.Id.InstanceLocaltimeBookExtendedBusyStatus; /// /// EventStatus /// - public const uint EventStatus = (uint)PropertyIds.InstanceLocaltimeBookExtendedEventStatus; + public const uint EventStatus = (uint)Property.Id.InstanceLocaltimeBookExtendedEventStatus; /// /// Priority /// - public const uint Priority = (uint)PropertyIds.InstanceLocaltimeBookExtendedPriority; + public const uint Priority = (uint)Property.Id.InstanceLocaltimeBookExtendedPriority; /// /// Sensitivity /// - public const uint Sensitivity = (uint)PropertyIds.InstanceLocaltimeBookExtendedSensitivity; + public const uint Sensitivity = (uint)Property.Id.InstanceLocaltimeBookExtendedSensitivity; /// /// HasRrule /// - public const uint HasRrule = (uint)PropertyIds.InstanceLocaltimeBookExtendedHasRrule; + public const uint HasRrule = (uint)Property.Id.InstanceLocaltimeBookExtendedHasRrule; /// /// Latitude /// - public const uint Latitude = (uint)PropertyIds.InstanceLocaltimeBookExtendedLatitude; + public const uint Latitude = (uint)Property.Id.InstanceLocaltimeBookExtendedLatitude; /// /// Longitude /// - public const uint Longitude = (uint)PropertyIds.InstanceLocaltimeBookExtendedLongitude; + public const uint Longitude = (uint)Property.Id.InstanceLocaltimeBookExtendedLongitude; /// /// HasAlarm /// - public const uint HasAlarm = (uint)PropertyIds.InstanceLocaltimeBookExtendedHasAlarm; + public const uint HasAlarm = (uint)Property.Id.InstanceLocaltimeBookExtendedHasAlarm; /// /// OriginalEventId /// - public const uint OriginalEventId = (uint)PropertyIds.InstanceLocaltimeBookExtendedOriginalEventId; + public const uint OriginalEventId = (uint)Property.Id.InstanceLocaltimeBookExtendedOriginalEventId; /// /// LastModifiedTime /// - public const uint LastModifiedTime = (uint)PropertyIds.InstanceLocaltimeBookExtendedLastModifiedTime; + public const uint LastModifiedTime = (uint)Property.Id.InstanceLocaltimeBookExtendedLastModifiedTime; /// /// SyncData1 /// - public const uint SyncData1 = (uint)PropertyIds.InstanceLocaltimeBookExtendedSyncData1; + public const uint SyncData1 = (uint)Property.Id.InstanceLocaltimeBookExtendedSyncData1; /// /// OrganizerName /// - public const uint OrganizerName = (uint)PropertyIds.InstanceLocaltimeBookExtendedOrganizerName; + public const uint OrganizerName = (uint)Property.Id.InstanceLocaltimeBookExtendedOrganizerName; /// /// Categories /// - public const uint Categories = (uint)PropertyIds.InstanceLocaltimeBookExtendedCategories; + public const uint Categories = (uint)Property.Id.InstanceLocaltimeBookExtendedCategories; /// /// HasAttendee /// - public const uint HasAttendee = (uint)PropertyIds.InstanceLocaltimeBookExtendedHasAttendee; + public const uint HasAttendee = (uint)Property.Id.InstanceLocaltimeBookExtendedHasAttendee; /// /// SyncData2 /// - public const uint SyncData2 = (uint)PropertyIds.InstanceLocaltimeBookExtendedSyncData2; + public const uint SyncData2 = (uint)Property.Id.InstanceLocaltimeBookExtendedSyncData2; /// /// SyncData3 /// - public const uint SyncData3 = (uint)PropertyIds.InstanceLocaltimeBookExtendedSyncData3; + public const uint SyncData3 = (uint)Property.Id.InstanceLocaltimeBookExtendedSyncData3; /// /// SyncData4 /// - public const uint SyncData4 = (uint)PropertyIds.InstanceLocaltimeBookExtendedSyncData4; + public const uint SyncData4 = (uint)Property.Id.InstanceLocaltimeBookExtendedSyncData4; /// /// IsAllday /// - public const uint IsAllday = (uint)PropertyIds.InstanceLocaltimeBookExtendedIsAllday; + public const uint IsAllday = (uint)Property.Id.InstanceLocaltimeBookExtendedIsAllday; } + /// + /// Describes properies of a UpdatedInfo record. + /// + /// Read only view public static class UpdatedInfo { /// @@ -1401,21 +1447,24 @@ namespace Tizen.Pims.Calendar /// /// Modified event(or todo) record ID /// - public const uint Id = (uint)PropertyIds.UpdateInfoId; + public const uint Id = (uint)Property.Id.UpdateInfoId; /// /// Calendar book ID of the modified event(or todo) record /// - public const uint CalendarId = (uint)PropertyIds.UpdateInfoCalendarId; + public const uint CalendarId = (uint)Property.Id.UpdateInfoCalendarId; /// /// Enumeration value of the modified status. /// - public const uint Type = (uint)PropertyIds.UpdateInfoType; + public const uint Type = (uint)Property.Id.UpdateInfoType; /// /// Version after change /// - public const uint Version = (uint)PropertyIds.UpdateInfoVersion; + public const uint Version = (uint)Property.Id.UpdateInfoVersion; } + /// + /// Describes properies of a Extended record. + /// public static class Extended { /// @@ -1425,23 +1474,23 @@ namespace Tizen.Pims.Calendar /// /// DB record ID of the extended_property /// - public const uint Id = (uint)PropertyIds.ExtendedId; + public const uint Id = (uint)Property.Id.ExtendedId; /// /// Related record ID /// - public const uint RecordId = (uint)PropertyIds.ExtendedRecordId; + public const uint RecordId = (uint)Property.Id.ExtendedRecordId; /// /// Enumeration value of the record type. /// - public const uint RecordType = (uint)PropertyIds.ExtendedRecordType; + public const uint RecordType = (uint)Property.Id.ExtendedRecordType; /// /// The key of the property /// - public const uint Key = (uint)PropertyIds.ExtendedKey; + public const uint Key = (uint)Property.Id.ExtendedKey; /// /// The value of the property /// - public const uint Value = (uint)PropertyIds.ExtendedValue; + public const uint Value = (uint)Property.Id.ExtendedValue; } } } -- 2.7.4