From: Jongkyu Koo Date: Fri, 18 Aug 2017 06:00:25 +0000 (+0900) Subject: [Contacts]fix Validator issues X-Git-Tag: submit/trunk/20170823.075128~15^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F24%2F144824%2F5;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Contacts]fix Validator issues Change-Id: Ia2d274e35e4372f15b53cac578d1c987b3a621fb Signed-off-by: Jongkyu Koo --- diff --git a/src/Tizen.Pims.Contacts/Interop/Interop.Activity.cs b/src/Tizen.Pims.Contacts/Interop/Interop.Activity.cs index ccff505..7033526 100755 --- a/src/Tizen.Pims.Contacts/Interop/Interop.Activity.cs +++ b/src/Tizen.Pims.Contacts/Interop/Interop.Activity.cs @@ -14,7 +14,6 @@ * limitations under the License. */ -using System; using System.Runtime.InteropServices; /// diff --git a/src/Tizen.Pims.Contacts/Interop/Interop.Group.cs b/src/Tizen.Pims.Contacts/Interop/Interop.Group.cs index a028fb5..9eb1ab7 100755 --- a/src/Tizen.Pims.Contacts/Interop/Interop.Group.cs +++ b/src/Tizen.Pims.Contacts/Interop/Interop.Group.cs @@ -14,7 +14,6 @@ * limitations under the License. */ -using System; using System.Runtime.InteropServices; /// diff --git a/src/Tizen.Pims.Contacts/Interop/Interop.Person.cs b/src/Tizen.Pims.Contacts/Interop/Interop.Person.cs old mode 100755 new mode 100644 index 7dd177f..f52ef15 --- a/src/Tizen.Pims.Contacts/Interop/Interop.Person.cs +++ b/src/Tizen.Pims.Contacts/Interop/Interop.Person.cs @@ -29,17 +29,17 @@ internal static partial class Interop internal enum ContactsUsageType { - None, /**< None */ - OutgoingCall, /**< Outgoing Call */ - OutgoingMsg, /**< Outgoing message */ - OutgoingEmail, /**< Outgoing Email (Since 3.0) */ - IncomingCall, /**< Incoming Call (Since 3.0) */ - IncomingMsg, /**< Incoming message (Since 3.0) */ - IncomingEmail,/**< Incoming Email (Since 3.0) */ - MissedCall, /**< Missed Call (Since 3.0) */ - RejectedCall, /**< Rejected Call (Since 3.0) */ - BlockedCall, /**< Blocked Call (Since 3.0) */ - BlockedMsg /**< Blocked message (Since 3.0) */ + None, + OutgoingCall, + OutgoingMsg, + OutgoingEmail, + IncomingCall, + IncomingMsg, + IncomingEmail, + MissedCall, + RejectedCall, + BlockedCall, + BlockedMsg }; internal static partial class Person diff --git a/src/Tizen.Pims.Contacts/Interop/Interop.Contacts.cs b/src/Tizen.Pims.Contacts/Interop/Interop.Service.cs old mode 100755 new mode 100644 similarity index 96% rename from src/Tizen.Pims.Contacts/Interop/Interop.Contacts.cs rename to src/Tizen.Pims.Contacts/Interop/Interop.Service.cs index 7efa40f..223b5a3 --- a/src/Tizen.Pims.Contacts/Interop/Interop.Contacts.cs +++ b/src/Tizen.Pims.Contacts/Interop/Interop.Service.cs @@ -14,7 +14,6 @@ * limitations under the License. */ -using System; using System.Runtime.InteropServices; /// @@ -25,7 +24,7 @@ internal static partial class Interop /// /// Contacts Interop Class /// - internal static class Contacts + internal static class Service { [DllImport(Libraries.Contacts, EntryPoint = "contacts_connect")] internal static extern int Connect(); diff --git a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsDatabase.cs b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsDatabase.cs index bae4710..c868c56 100644 --- a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsDatabase.cs +++ b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsDatabase.cs @@ -16,11 +16,22 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; namespace Tizen.Pims.Contacts { /// + /// Delegate for detecting the contacts database changes + /// + /// The contacts view URI + /// + /// The delegate must be registered using AddDBChangedDelegate. + /// It's invoked when the designated view changes. + /// + public delegate void ContactsDBChanged(string uri); + + /// /// ContactsDatabase provides methods to manage contacts information from/to the database. /// /// @@ -30,24 +41,14 @@ namespace Tizen.Pims.Contacts { private Object thisLock = new Object(); private Interop.Database.ContactsDBStatusChangedCallback _contactsDBStatusChangedCallback; - private event EventHandler _dbStatusChanged; - private Dictionary _callbackMap = new Dictionary(); - private Dictionary _delegateMap = new Dictionary(); + private EventHandler _dbStatusChanged; + private Dictionary _delegateMap = new Dictionary(); + private Dictionary _callbackMap = new Dictionary(); private Interop.Database.ContactsDBChangedCallback _dbChangedDelegate; - /// - /// Delegete for detecting the contacts database changes - /// - /// The contacts view URI - /// - /// The delegate must be registered using AddDBChangedDelegate. - /// It's invoked when the designated view changes. - /// - /// - public delegate void ContactsDBChangedDelegate(string uri); internal ContactsDatabase() { - ///To be created in ContactsManager only. + /*To be created in ContactsManager only.*/ } /// @@ -68,9 +69,14 @@ namespace Tizen.Pims.Contacts /// /// Enumeration for Contacts search range. /// - public enum SearchRange + [Flags] + public enum SearchRanges { /// + /// None + /// + None = 0, + /// /// Search record from name /// Name = 0x00000001, @@ -97,21 +103,25 @@ namespace Tizen.Pims.Contacts { lock (thisLock) { - _contactsDBStatusChangedCallback = (DBStatus status, IntPtr userData) => + if (_contactsDBStatusChangedCallback == null) { - DBStatusChangedEventArgs args = new DBStatusChangedEventArgs(status); - _dbStatusChanged?.Invoke(this, args); - }; - - int error = Interop.Database.AddStatusChangedCb(_contactsDBStatusChangedCallback, IntPtr.Zero); - if ((int)ContactsError.None != error) - { - Log.Error(Globals.LogTag, "Add StatusChanged Failed with error " + error); + _contactsDBStatusChangedCallback = (DBStatus status, IntPtr userData) => + { + DBStatusChangedEventArgs args = new DBStatusChangedEventArgs(status); + _dbStatusChanged?.Invoke(this, args); + }; } - else + + if (_dbStatusChanged == null) { - _dbStatusChanged += value; + int error = Interop.Database.AddStatusChangedCb(_contactsDBStatusChangedCallback, IntPtr.Zero); + if ((int)ContactsError.None != error) + { + Log.Error(Globals.LogTag, "Add StatusChanged Failed with error " + error); + } } + + _dbStatusChanged += value; } } @@ -120,13 +130,16 @@ namespace Tizen.Pims.Contacts { lock (thisLock) { - int error = Interop.Database.RemoveStatusChangedCb(_contactsDBStatusChangedCallback, IntPtr.Zero); - if ((int)ContactsError.None != error) + _dbStatusChanged -= value; + + if (_dbStatusChanged == null) { - Log.Error(Globals.LogTag, "Remove StatusChanged Failed with error " + error); + int error = Interop.Database.RemoveStatusChangedCb(_contactsDBStatusChangedCallback, IntPtr.Zero); + if ((int)ContactsError.None != error) + { + Log.Error(Globals.LogTag, "Remove StatusChanged Failed with error " + error); + } } - - _dbStatusChanged -= value; } } @@ -135,6 +148,8 @@ namespace Tizen.Pims.Contacts /// /// The current contacts database version. /// + /// The current contacts database version. + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] public int Version { get @@ -152,6 +167,8 @@ namespace Tizen.Pims.Contacts /// /// The last successful changed contacts database version on the current connection. /// + /// The last successful changed contacts database version on the current connection. + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] public int LastChangeVersion { get @@ -169,6 +186,8 @@ namespace Tizen.Pims.Contacts /// /// The contacts database status. /// + /// The contacts database status. + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] public DBStatus Status { get @@ -195,6 +214,7 @@ namespace Tizen.Pims.Contacts /// 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(ContactsRecord record) { int id = -1; @@ -219,6 +239,7 @@ namespace Tizen.Pims.Contacts /// 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(ContactsList list) { IntPtr ids; @@ -249,6 +270,8 @@ namespace Tizen.Pims.Contacts /// 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 ContactsRecord Get(string viewUri, int recordId) { IntPtr handle; @@ -272,6 +295,7 @@ namespace Tizen.Pims.Contacts /// 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(ContactsRecord record) { int error = Interop.Database.Update(record._recordHandle); @@ -293,6 +317,7 @@ namespace Tizen.Pims.Contacts /// 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(ContactsList list) { int error = Interop.Database.UpdateRecords(list._listHandle); @@ -315,6 +340,8 @@ namespace Tizen.Pims.Contacts /// 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.Database.Delete(viewUri, recordId); @@ -337,6 +364,8 @@ namespace Tizen.Pims.Contacts /// 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.Database.DeleteRecords(viewUri, idArray, idArray.Length); @@ -359,6 +388,7 @@ namespace Tizen.Pims.Contacts /// 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(ContactsRecord record, int recordId) { int error = Interop.Database.Replace(record._recordHandle, recordId); @@ -381,6 +411,7 @@ namespace Tizen.Pims.Contacts /// 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(ContactsList list, int[] idArray) { int error = Interop.Database.ReplaceRecords(list._listHandle, idArray, idArray.Length); @@ -407,6 +438,8 @@ namespace Tizen.Pims.Contacts /// 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 ContactsList GetAll(string viewUri, int offset, int limit) { IntPtr handle; @@ -435,6 +468,7 @@ namespace Tizen.Pims.Contacts /// 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 ContactsList GetRecordsWithQuery(ContactsQuery query, int offset, int limit) { IntPtr handle; @@ -451,7 +485,7 @@ namespace Tizen.Pims.Contacts /// Retrieves records changes since the given database version. /// /// The view URI to get records - /// The address book ID to filter + /// The address book ID to filter /// The contacts database version /// The current contacts database version /// @@ -463,10 +497,12 @@ namespace Tizen.Pims.Contacts /// 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 - public ContactsList GetChangesByVersion(string viewUri, int addressbookId, int contactsDBVersion, out int currentDBVersion) + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] + public ContactsList GetChangesByVersion(string viewUri, int addressBookId, int contactsDBVersion, out int currentDBVersion) { IntPtr recordList; - int error = Interop.Database.GetChangesByVersion(viewUri, addressbookId, contactsDBVersion, out recordList,out currentDBVersion); + int error = Interop.Database.GetChangesByVersion(viewUri, addressBookId, contactsDBVersion, out recordList,out currentDBVersion); if ((int)ContactsError.None != error) { Log.Error(Globals.LogTag, "GetChangesByVersion Failed with error " + error); @@ -486,8 +522,10 @@ namespace Tizen.Pims.Contacts /// The keyword /// The index from which to get results /// The number to limit results(value 0 is used for get all records) - /// + /// The record list /// http://tizen.org/privilege/contact.read + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] public ContactsList Search(string viewUri, string keyword, int offset, int limit) { IntPtr recordList; @@ -512,6 +550,7 @@ namespace Tizen.Pims.Contacts /// The index from which to get results /// The number to limit results(value 0 used for get all records) /// The record list + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] public ContactsList Search(ContactsQuery query, string keyword, int offset, int limit) { IntPtr recordList; @@ -537,6 +576,8 @@ namespace Tizen.Pims.Contacts /// The number to limit results(value 0 is used for get all records) /// The search range, it should be a element of SearchRange or bitwise OR operation of them /// The record list + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] public ContactsList Search(string viewUri, string keyword, int offset, int limit, int range) { IntPtr recordList; @@ -565,6 +606,8 @@ namespace Tizen.Pims.Contacts /// The text which is inserted into the fragment after the keyword(If NULL, default is "]") /// The one side extra number of tokens near keyword(If negative value, full sentence is printed. e.g. if token number is 3 with 'abc' keyword, "my name is [abc]de and my home") /// The record list + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] public ContactsList Search(string viewUri, string keyword, int offset, int limit, string startMatch, string endMatch, int tokenNumber) { IntPtr recordList; @@ -593,6 +636,7 @@ namespace Tizen.Pims.Contacts /// The text which is inserted into the fragment after the keyword(If NULL, default is "]") /// The one side extra number of tokens near keyword(If negative value, full sentence is printed. e.g. if token number is 3 with 'abc' keyword, "my name is [abc]de and my home") /// The record list + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] public ContactsList Search(ContactsQuery query, string keyword, int offset, int limit, string startMatch, string endMatch, int tokenNumber) { IntPtr recordList; @@ -622,6 +666,8 @@ namespace Tizen.Pims.Contacts /// The text which is inserted into the fragment after the keyword(If NULL, default is "]") /// The one side extra number of tokens near keyword(If negative value, full sentence is printed. e.g. if token number is 3 with 'abc' keyword, "my name is [abc]de and my home") /// The record list + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] public ContactsList Search(string viewUri, string keyword, int offset, int limit, int range, string startMatch, string endMatch, int tokenNumber) { IntPtr recordList; @@ -639,6 +685,8 @@ namespace Tizen.Pims.Contacts /// /// The view URI /// The count of records + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] public int GetCount(string viewUri) { int count = -1; @@ -656,6 +704,7 @@ namespace Tizen.Pims.Contacts /// /// The query used for filtering the results /// The count of records + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] public int GetCount(ContactsQuery query) { int count = -1; @@ -673,37 +722,47 @@ namespace Tizen.Pims.Contacts /// /// The view URI of records whose changes are monitored /// The callback function to register - public void AddDBChangedDelegate(string viewUri, ContactsDBChangedDelegate callback) + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] + public void AddDBChangedDelegate(string viewUri, ContactsDBChanged callback) { - _dbChangedDelegate = (string uri, IntPtr userData) => + if (_callbackMap[viewUri] == null) { - _callbackMap[uri](uri); - }; - int error = Interop.Database.AddChangedCb(viewUri, _dbChangedDelegate, IntPtr.Zero); - if ((int)ContactsError.None != error) - { - Log.Error(Globals.LogTag, "AddDBChangedDelegate Failed with error " + error); - throw ContactsErrorFactory.CheckAndCreateException(error); + _callbackMap[viewUri] = (string uri, IntPtr userData) => + { + _delegateMap[uri](uri); + }; + + int error = Interop.Database.AddChangedCb(viewUri, _callbackMap[viewUri], IntPtr.Zero); + if ((int)ContactsError.None != error) + { + Log.Error(Globals.LogTag, "AddDBChangedDelegate Failed with error " + error); + throw ContactsErrorFactory.CheckAndCreateException(error); + } } - _callbackMap[viewUri] = callback; - _delegateMap[viewUri] = _dbChangedDelegate; + + _delegateMap[viewUri] += callback; } /// - /// Unregisters a callback function. + /// Deregisters a callback function. /// /// The view URI of records whose changes are monitored /// The callback function to register - public void RemoveDBChangedDelegate(string viewUri, ContactsDBChangedDelegate callback) + [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")] + public void RemoveDBChangedDelegate(string viewUri, ContactsDBChanged callback) { - int error = Interop.Database.RemoveChangedCb(viewUri, _delegateMap[viewUri], IntPtr.Zero); - if ((int)ContactsError.None != error) + _delegateMap[viewUri] -= callback; + + if (_delegateMap[viewUri] == null) { - Log.Error(Globals.LogTag, "RemoveDBChangedDelegate Failed with error " + error); - throw ContactsErrorFactory.CheckAndCreateException(error); + int error = Interop.Database.RemoveChangedCb(viewUri, _callbackMap[viewUri], IntPtr.Zero); + if ((int)ContactsError.None != error) + { + Log.Error(Globals.LogTag, "RemoveDBChangedDelegate Failed with error " + error); + throw ContactsErrorFactory.CheckAndCreateException(error); + } + _callbackMap.Remove(viewUri); } - _callbackMap.Remove(viewUri); - _delegateMap.Remove(viewUri); } } } diff --git a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsFilter.cs b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsFilter.cs index 18880ac..0b53bff 100644 --- a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsFilter.cs +++ b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsFilter.cs @@ -15,8 +15,7 @@ */ using System; -using System.Collections.Generic; -using static Interop.Contacts; +using System.Diagnostics.CodeAnalysis; namespace Tizen.Pims.Contacts { @@ -37,6 +36,7 @@ namespace Tizen.Pims.Contacts /// 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 ContactsFilter(string viewUri, uint propertyId, StringMatchType matchType, string matchValue) { int error = Interop.Filter.ContactsFilterCreate(viewUri, out _filterHandle); @@ -64,6 +64,7 @@ namespace Tizen.Pims.Contacts /// 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 ContactsFilter(string viewUri, uint propertyId, IntegerMatchType matchType, int matchValue) { int error = Interop.Filter.ContactsFilterCreate(viewUri, out _filterHandle); @@ -91,6 +92,7 @@ namespace Tizen.Pims.Contacts /// 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 ContactsFilter(string viewUri, uint propertyId, IntegerMatchType matchType, long matchValue) { int error = Interop.Filter.ContactsFilterCreate(viewUri, out _filterHandle); @@ -118,6 +120,7 @@ namespace Tizen.Pims.Contacts /// 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 ContactsFilter(string viewUri, uint propertyId, IntegerMatchType matchType, double matchValue) { int error = Interop.Filter.ContactsFilterCreate(viewUri, out _filterHandle); @@ -144,6 +147,7 @@ namespace Tizen.Pims.Contacts /// 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 ContactsFilter(string viewUri, uint propertyId, bool matchValue) { int error = Interop.Filter.ContactsFilterCreate(viewUri, out _filterHandle); @@ -161,6 +165,9 @@ namespace Tizen.Pims.Contacts } } + /// + /// Destructor + /// ~ContactsFilter() { Dispose(false); @@ -237,15 +244,32 @@ namespace Tizen.Pims.Contacts /// public enum LogicalOperator { + /// + /// AND + /// And, + /// + /// OR + /// Or, } #region IDisposable Support private bool disposedValue = false; // To detect redundant calls + /// + /// Releases all resources used by the ContactsFilter. + /// + /// Disposing by User protected virtual void Dispose(bool disposing) { + if (disposing) + { + //Called by User + //Release your own managed resources here. + //You should release all of your own disposable objects here + } + if (!disposedValue) { int error = Interop.Filter.ContactsFilterDestroy(_filterHandle); @@ -265,6 +289,7 @@ namespace Tizen.Pims.Contacts public void Dispose() { Dispose(true); + GC.SuppressFinalize(this); } #endregion diff --git a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsList.cs b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsList.cs index d0965eb..fc62de1 100644 --- a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsList.cs +++ b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsList.cs @@ -36,7 +36,7 @@ namespace Tizen.Pims.Contacts Log.Error(Globals.LogTag, "ContactsList Failed with error " + error); throw ContactsErrorFactory.CheckAndCreateException(error); } - _memoryPressure += count * ContactsViews.AverageSizeOfRecord; + _memoryPressure += count * ContactsViews.Record.AverageSize; GC.AddMemoryPressure(_memoryPressure); } @@ -56,6 +56,9 @@ namespace Tizen.Pims.Contacts GC.AddMemoryPressure(_memoryPressure); } + /// + /// Destructor + /// ~ContactsList() { Dispose(false); @@ -64,6 +67,7 @@ namespace Tizen.Pims.Contacts /// /// The count of contact entity. /// + /// The count of contact entity. public int Count { get @@ -81,8 +85,19 @@ namespace Tizen.Pims.Contacts #region IDisposable Support private bool disposedValue = false; // To detect redundant calls + /// + /// Releases all resources used by the ContactsList. + /// + /// Disposing by User protected virtual void Dispose(bool disposing) { + if (disposing) + { + //Called by User + //Release your own managed resources here. + //You should release all of your own disposable objects here + } + if (!disposedValue) { int error = Interop.List.ContactsListDestroy(_listHandle, true); @@ -103,6 +118,7 @@ namespace Tizen.Pims.Contacts public void Dispose() { Dispose(true); + GC.SuppressFinalize(this); } #endregion @@ -121,7 +137,7 @@ namespace Tizen.Pims.Contacts throw ContactsErrorFactory.CheckAndCreateException(error); } record._disposedValue = true; - _memoryPressure += ContactsViews.AverageSizeOfRecord; + _memoryPressure += ContactsViews.Record.AverageSize; } /// @@ -139,7 +155,7 @@ namespace Tizen.Pims.Contacts throw ContactsErrorFactory.CheckAndCreateException(error); } record._disposedValue = false; - _memoryPressure -= ContactsViews.AverageSizeOfRecord; + _memoryPressure -= ContactsViews.Record.AverageSize; } /// diff --git a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsManager.cs b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsManager.cs index cde2fff..903c86f 100644 --- a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsManager.cs +++ b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsManager.cs @@ -15,8 +15,7 @@ */ using System; -using System.Collections.Generic; -using static Interop.Contacts; +using System.Diagnostics.CodeAnalysis; namespace Tizen.Pims.Contacts { @@ -57,8 +56,8 @@ namespace Tizen.Pims.Contacts { private ContactsDatabase _db = null; private Object thisLock = new Object(); - private Interop.Setting.DisplayOrderChangedCallback _displayOrderDelegate; - private Interop.Setting.SortingOrderChangedCallback _sortingOrderDelegate; + private Interop.Setting.DisplayOrderChangedCallback _displayOrderChangedCallback; + private Interop.Setting.SortingOrderChangedCallback _sortingOrderChangedCallback; /// /// Creates a ContactsManager. @@ -66,7 +65,7 @@ namespace Tizen.Pims.Contacts /// Thrown when method failed due to invalid operation public ContactsManager() { - int error = Interop.Contacts.Connect(); + int error = Interop.Service.Connect(); if ((int)ContactsError.None != error) { Log.Error(Globals.LogTag, "Connect Failed with error " + error); @@ -75,6 +74,9 @@ namespace Tizen.Pims.Contacts _db = new ContactsDatabase(); } + /// + /// Destructor + /// ~ContactsManager() { Dispose(false); @@ -83,11 +85,22 @@ namespace Tizen.Pims.Contacts #region IDisposable Support private bool disposedValue = false; // To detect redundant calls + /// + /// Releases all resources used by the ContactsManager. + /// + /// Disposing by User protected virtual void Dispose(bool disposing) { + if (disposing) + { + //Called by User + //Release your own managed resources here. + //You should release all of your own disposable objects here + } + if (!disposedValue) { - int error = Interop.Contacts.Disconnect(); + int error = Interop.Service.Disconnect(); if ((int)ContactsError.None != error) { Log.Error(Globals.LogTag, "Disconnect Failed with error " + error); @@ -104,11 +117,12 @@ namespace Tizen.Pims.Contacts public void Dispose() { Dispose(true); + GC.SuppressFinalize(this); } #endregion - private event EventHandler _nameDisplayOrderChanged; - private event EventHandler _nameSortingOrderChanged; + private EventHandler _nameDisplayOrderChanged; + private EventHandler _nameSortingOrderChanged; /// /// (event) NameDisplayOrderChanged is raised when changing setting value of contacts name display order @@ -120,9 +134,9 @@ namespace Tizen.Pims.Contacts { lock (thisLock) { - if (_displayOrderDelegate == null) + if (_displayOrderChangedCallback == null) { - _displayOrderDelegate = (ContactDisplayOrder nameDisplayOrder, IntPtr userData) => + _displayOrderChangedCallback = (ContactDisplayOrder nameDisplayOrder, IntPtr userData) => { NameDisplayOrderChangedEventArgs args = new NameDisplayOrderChangedEventArgs(nameDisplayOrder); _nameDisplayOrderChanged?.Invoke(this, args); @@ -131,7 +145,7 @@ namespace Tizen.Pims.Contacts if (_nameDisplayOrderChanged == null) { - int error = Interop.Setting.AddNameDisplayOrderChangedCB(_displayOrderDelegate, IntPtr.Zero); + int error = Interop.Setting.AddNameDisplayOrderChangedCB(_displayOrderChangedCallback, IntPtr.Zero); if ((int)ContactsError.None != error) { Log.Error(Globals.LogTag, "Add NameDisplayOrderChangedCB Failed with error " + error); @@ -150,7 +164,7 @@ namespace Tizen.Pims.Contacts if (_nameDisplayOrderChanged == null) { - int error = Interop.Setting.RemoveNameDisplayOrderChangedCB(_displayOrderDelegate, IntPtr.Zero); + int error = Interop.Setting.RemoveNameDisplayOrderChangedCB(_displayOrderChangedCallback, IntPtr.Zero); if ((int)ContactsError.None != error) { Log.Error(Globals.LogTag, "Remove StateChanged Failed with error " + error); @@ -170,9 +184,9 @@ namespace Tizen.Pims.Contacts { lock (thisLock) { - if (_sortingOrderDelegate == null) + if (_sortingOrderChangedCallback == null) { - _sortingOrderDelegate = (ContactSortingOrder nameSortingOrder, IntPtr userData) => + _sortingOrderChangedCallback = (ContactSortingOrder nameSortingOrder, IntPtr userData) => { NameSortingOrderChangedEventArgs args = new NameSortingOrderChangedEventArgs(nameSortingOrder); _nameSortingOrderChanged?.Invoke(this, args); @@ -181,7 +195,7 @@ namespace Tizen.Pims.Contacts if (_nameSortingOrderChanged == null) { - int error = Interop.Setting.AddNameSortingOrderChangedCB(_sortingOrderDelegate, IntPtr.Zero); + int error = Interop.Setting.AddNameSortingOrderChangedCB(_sortingOrderChangedCallback, IntPtr.Zero); if ((int)ContactsError.None != error) { Log.Error(Globals.LogTag, "Add NameSortingOrderChangedCB Failed with error " + error); @@ -200,7 +214,7 @@ namespace Tizen.Pims.Contacts if (_nameSortingOrderChanged == null) { - int error = Interop.Setting.RemoveNameSortingOrderChangedCB(_sortingOrderDelegate, IntPtr.Zero); + int error = Interop.Setting.RemoveNameSortingOrderChangedCB(_sortingOrderChangedCallback, IntPtr.Zero); if ((int)ContactsError.None != error) { Log.Error(Globals.LogTag, "Remove StateChanged Failed with error " + error); @@ -213,6 +227,7 @@ namespace Tizen.Pims.Contacts /// /// A ContactsDatabase /// + /// A ContactsDatabase public ContactsDatabase Database { get @@ -224,11 +239,13 @@ namespace Tizen.Pims.Contacts /// /// A setting value of contacts name display order /// + /// A setting value of contacts name display order /// /// DisplayName of contacts returned from database are determined by this property /// /// http://tizen.org/privilege/contact.read /// http://tizen.org/privilege/contact.write + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] public ContactDisplayOrder NameDisplayOrder { get @@ -254,11 +271,13 @@ namespace Tizen.Pims.Contacts /// /// A setting value of contacts name sorting order /// + /// A setting value of contacts name sorting order /// /// Contacts returned from database are first sorted based on the first name or last name by this property /// /// http://tizen.org/privilege/contact.read /// http://tizen.org/privilege/contact.write + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] public ContactSortingOrder NameSortingOrder { get diff --git a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsQuery.cs b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsQuery.cs index 6754700..63cadcb 100644 --- a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsQuery.cs +++ b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsQuery.cs @@ -15,7 +15,7 @@ */ using System; -using static Interop.Contacts; +using System.Diagnostics.CodeAnalysis; namespace Tizen.Pims.Contacts { @@ -37,6 +37,7 @@ namespace Tizen.Pims.Contacts /// 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 ContactsQuery(string viewUri) { int error = Interop.Query.ContactsQueryCreate(viewUri, out _queryHandle); @@ -52,6 +53,9 @@ namespace Tizen.Pims.Contacts _queryHandle = handle; } + /// + /// Destructor + /// ~ContactsQuery() { Dispose(false); @@ -59,8 +63,19 @@ namespace Tizen.Pims.Contacts #region IDisposable Support private bool disposedValue = false; + /// + /// Releases all resources used by the ContactsQuery. + /// + /// Disposing by User protected virtual void Dispose(bool disposing) { + if (disposing) + { + //Called by User + //Release your own managed resources here. + //You should release all of your own disposable objects here + } + if (!disposedValue) { int error = Interop.Query.ContactsQueryDestroy(_queryHandle); @@ -80,6 +95,7 @@ namespace Tizen.Pims.Contacts public void Dispose() { Dispose(true); + GC.SuppressFinalize(this); } #endregion diff --git a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsRecord.cs b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsRecord.cs index dd8c592..47dd62b 100644 --- a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsRecord.cs +++ b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsRecord.cs @@ -15,7 +15,7 @@ */ using System; -using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; namespace Tizen.Pims.Contacts @@ -32,7 +32,7 @@ namespace Tizen.Pims.Contacts { private string _uri = null; private uint _id; - private Int64 _memoryPressure = ContactsViews.AverageSizeOfRecord; + private Int64 _memoryPressure = ContactsViews.Record.AverageSize; internal IntPtr _recordHandle; internal ContactsRecord(IntPtr handle) @@ -88,6 +88,7 @@ namespace Tizen.Pims.Contacts /// 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 ContactsRecord(string viewUri) { int error = Interop.Record.Create(viewUri, out _recordHandle); @@ -100,6 +101,9 @@ namespace Tizen.Pims.Contacts GC.AddMemoryPressure(_memoryPressure); } + /// + /// Destructor + /// ~ContactsRecord() { Dispose(false); @@ -108,6 +112,8 @@ namespace Tizen.Pims.Contacts /// /// The URI of the record /// + /// The URI of the record + [SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings")] public string Uri { get @@ -119,8 +125,19 @@ namespace Tizen.Pims.Contacts #region IDisposable Support internal bool _disposedValue = false; // To detect redundant calls + /// + /// Releases all resources used by the ContactsRecord. + /// + /// Disposing by User protected virtual void Dispose(bool disposing) { + if (disposing) + { + //Called by User + //Release your own managed resources here. + //You should release all of your own disposable objects here + } + if (!_disposedValue) { int error = Interop.Record.Destroy(_recordHandle, true); @@ -140,6 +157,7 @@ namespace Tizen.Pims.Contacts public void Dispose() { Dispose(true); + GC.SuppressFinalize(this); } #endregion diff --git a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsVcard.cs b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsVcard.cs index c02cc4f..3273a9d 100644 --- a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsVcard.cs +++ b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsVcard.cs @@ -15,12 +15,18 @@ */ using System; -using System.Collections.Generic; -using static Interop.Contacts; namespace Tizen.Pims.Contacts { - using static ContactsViews; + using ContactsViews; + + /// + /// Delegate for getting a record parsed from a vCard file + /// + /// The contacts record + /// + public delegate bool ParseCallback(ContactsRecord record); + /// /// A class for parsing and making vCards. /// @@ -29,8 +35,6 @@ namespace Tizen.Pims.Contacts /// public static class ContactsVcard { - public delegate bool ParseDelegate(ContactsRecord record); - /// /// Retrieves the vCard stream from a contacts record. /// @@ -103,7 +107,7 @@ namespace Tizen.Pims.Contacts /// 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) { Interop.Vcard.ContactsVcardParseCallback cb = (IntPtr handle, IntPtr data) => { diff --git a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsViews.cs b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsViews.cs index 82ed5fe..0620b5a 100644 --- a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsViews.cs +++ b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsViews.cs @@ -14,13 +14,14 @@ * limitations under the License. */ + using System; -using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace Tizen.Pims.Contacts { /// - /// This class provides information about views with properties. + /// This namespace provides information about views with properties. /// /// /// Views are provided to access and handle entities. A view is a structure, which has property elements. @@ -28,356 +29,366 @@ namespace Tizen.Pims.Contacts /// A "record" represents a single row of the views. /// A record can have basic properties of five types: integer, string, boolean, long, double. /// - public static class ContactsViews + namespace ContactsViews { - private const uint PropertyAddressBook = 0x00100000; - private const uint PropertyGroup = 0x00200000; - private const uint PropertyPerson = 0x00300000; - private const uint PropertyData = 0x00600000; - private const uint PropertySpeedDial = 0x00700000; - private const uint PropertyPhonelog = 0x00800000; - private const uint PropertyUpdateInfo = 0x00900000; - private const uint PropertyPhonelogStat = 0x00B00000; - - private const uint PropertyContact = 0x01000000; - private const uint PropertyName = 0x01100000; - private const uint PropertyNumber = 0x01200000; - private const uint PropertyEmail = 0x01300000; - private const uint PropertyAddress = 0x01400000; - private const uint PropertyUrl = 0x01500000; - private const uint PropertyEvent = 0x01600000; - private const uint PropertyGroupRelation = 0x01700000; - private const uint PropertyRelationship = 0x01800000; - private const uint PropertyCompany = 0x01900000; - private const uint PropertyNickname = 0x01A00000; - private const uint PropertyMessenger = 0x01B00000; - private const uint PropertyNote = 0x01C00000; - private const uint PropertyProfile = 0x01D00000; - private const uint PropertyImage = 0x01E00000; - private const uint PropertyExtension = 0x01F00000; - private const uint PropertyMyProfile = 0x02000000; - private const uint PropertyActivityPhoto = 0x02100000; - private const uint PropertySip = 0x02200000; - - /* data_type mask 0x000FF000 */ - private const uint DataTypeBool = 0x00010000; - private const uint DataTypeInt = 0x00020000; - private const uint DataTypeLong = 0x00030000; - private const uint DataTypeString = 0x00040000; - private const uint DataTypeDouble = 0x00050000; - private const uint DataTypeRecord = 0x00060000; - - private const uint ReadOnly = 0x00001000; - - private enum PropertyIds : uint + internal static class Property + { + private const uint AddressBook = 0x00100000; + private const uint Group = 0x00200000; + private const uint Person = 0x00300000; + private const uint Data = 0x00600000; + private const uint SpeedDial = 0x00700000; + private const uint Phonelog = 0x00800000; + private const uint UpdateInfo = 0x00900000; + private const uint PhonelogStat = 0x00B00000; + + private const uint Contact = 0x01000000; + private const uint Name = 0x01100000; + private const uint Number = 0x01200000; + private const uint Email = 0x01300000; + private const uint Address = 0x01400000; + private const uint URL = 0x01500000; + private const uint Event = 0x01600000; + private const uint GroupRelation = 0x01700000; + private const uint Relationship = 0x01800000; + private const uint Company = 0x01900000; + private const uint Nickname = 0x01A00000; + private const uint Messenger = 0x01B00000; + private const uint Note = 0x01C00000; + private const uint Profile = 0x01D00000; + private const uint Image = 0x01E00000; + private const uint Extension = 0x01F00000; + private const uint MyProfile = 0x02000000; + private const uint ActivityPhoto = 0x02100000; + private const uint Sip = 0x02200000; + + /* data_type mask 0x000FF000 */ + private const uint DataTypeBool = 0x00010000; + private const uint DataTypeInt = 0x00020000; + private const uint DataTypeLong = 0x00030000; + private const uint DataTypeString = 0x00040000; + private const uint DataTypeDouble = 0x00050000; + private const uint DataTypeRecord = 0x00060000; + + private const uint ReadOnly = 0x00001000; + + internal enum Id : uint + { + None, + + /* address book */ + AddressBookId = (AddressBook | DataTypeInt | ReadOnly), + AddressBookAccountId = (AddressBook | DataTypeInt) + 1, + AddressBookName = (AddressBook | DataTypeString) + 2, + AddressBookMode = (AddressBook | DataTypeInt) + 3, + + /* group */ + GroupId = (Group | DataTypeInt | ReadOnly), + GroupAddressBookId = (Group | DataTypeInt) + 1, + GroupName = (Group | DataTypeString) + 2, + GroupRingtone = (Group | DataTypeString) + 3, + GroupImage = (Group | DataTypeString) + 4, + GroupVibration = (Group | DataTypeString) + 5, + GroupExtraData = (Group | DataTypeString) + 6, + GroupIsReadOnly = (Group | DataTypeBool) + 7, + GroupMessageAlert = (Group | DataTypeString) + 8, + + /* person */ + PersonId = (Person | DataTypeInt | ReadOnly), + PersonDisplayName = (Person | DataTypeString | ReadOnly) + 1, + PersonDisplayContactId = (Person | DataTypeInt) + 2, + PersonRingtone = (Person | DataTypeString) + 3, + PersonThumbnail = (Person | DataTypeString | ReadOnly) + 4, + PersonVibration = (Person | DataTypeString) + 5, + PersonIsFavorite = (Person | DataTypeBool) + 6, + PersonFavoritePriority = (Person | DataTypeDouble | ReadOnly) + 7, + PersonLinkCount = (Person | DataTypeInt | ReadOnly) + 8, + PersonAddressBookIds = (Person | DataTypeString | ReadOnly) + 9, + PersonHasPhoneNumber = (Person | DataTypeBool | ReadOnly) + 10, + PersonHasEmail = (Person | DataTypeBool | ReadOnly) + 11, + PersonDisplayNameIndex = (Person | DataTypeString | ReadOnly) + 12, + PersonStatus = (Person | DataTypeString | ReadOnly) + 13, + PersonMessageAlert = (Person | DataTypeString) + 14, + PersonSnippetType = (Person | DataTypeInt | ReadOnly) + 15, + PersonSnippetString = (Person | DataTypeString | ReadOnly) + 16, + + /* person-stat */ + PersonUsageType = (Person | DataTypeInt) + 100, + PersonTimesUsed = (Person | DataTypeInt) + 101, + + /* simple contact : read only */ + /* contact */ + ContactId = (Contact | DataTypeInt | ReadOnly), + ContactDisplayName = (Contact | DataTypeString | ReadOnly) + 1, + ContactDisplaySourceDataId = (Contact | DataTypeInt | ReadOnly) + 2, + ContactAddressBookId = (Contact | DataTypeInt) + 3, + ContactRingtone = (Contact | DataTypeString) + 4, + ContactImage = (Contact | DataTypeRecord) + 5, + ContactThumbnail = (Contact | DataTypeString | ReadOnly) + 6, + ContactIsFavorite = (Contact | DataTypeBool) + 7, + ContactHasPhoneNumber = (Contact | DataTypeBool | ReadOnly) + 8, + ContactHasEmail = (Contact | DataTypeBool | ReadOnly) + 9, + ContactPersonId = (Contact | DataTypeInt) + 10, + ContactUId = (Contact | DataTypeString) + 11, + ContactVibration = (Contact | DataTypeString) + 12, + ContactChangedTime = (Contact | DataTypeInt | ReadOnly) + 13, + ContactName = (Contact | DataTypeRecord) + 14, + ContactCompany = (Contact | DataTypeRecord) + 15, + ContactNote = (Contact | DataTypeRecord) + 16, + ContactNumber = (Contact | DataTypeRecord) + 17, + ContactEmail = (Contact | DataTypeRecord) + 18, + ContactEvent = (Contact | DataTypeRecord) + 19, + ContactMessenger = (Contact | DataTypeRecord) + 20, + ContactAddress = (Contact | DataTypeRecord) + 21, + ContactURL = (Contact | DataTypeRecord) + 22, + ContactNickname = (Contact | DataTypeRecord) + 23, + ContactProfile = (Contact | DataTypeRecord) + 24, + ContactRelationship = (Contact | DataTypeRecord) + 25, + ContactGroupRelation = (Contact | DataTypeRecord) + 26, + ContactExtension = (Contact | DataTypeRecord) + 27, + ContactLinkMode = (Contact | DataTypeInt) + 28, + ContactMessageAlert = (Contact | DataTypeString) + 29, + ContactSip = (Contact | DataTypeRecord) + 30, + + /* my_profile */ + MyProfileId = (MyProfile | DataTypeInt | ReadOnly), + MyProfileDisplayName = (MyProfile | DataTypeString | ReadOnly) + 1, + MyProfileAddressBookId = (MyProfile | DataTypeInt) + 2, + MyProfileImage = (MyProfile | DataTypeRecord) + 3, + MyProfileThumbnail = (MyProfile | DataTypeString | ReadOnly) + 4, + MyProfileUId = (MyProfile | DataTypeString) + 5, + MyProfileChangedTime = (MyProfile | DataTypeInt) + 6, + MyProfileName = (MyProfile | DataTypeRecord) + 7, + MyProfileCompany = (MyProfile | DataTypeRecord) + 8, + MyProfileNote = (MyProfile | DataTypeRecord) + 9, + MyProfileNumber = (MyProfile | DataTypeRecord) + 10, + MyProfileEmail = (MyProfile | DataTypeRecord) + 11, + MyProfileEvent = (MyProfile | DataTypeRecord) + 12, + MyProfileMessenger = (MyProfile | DataTypeRecord) + 13, + MyProfileAddress = (MyProfile | DataTypeRecord) + 14, + MyProfileURL = (MyProfile | DataTypeRecord) + 15, + MyProfileNickname = (MyProfile | DataTypeRecord) + 16, + MyProfileProfile = (MyProfile | DataTypeRecord) + 17, + MyProfileRelationship = (MyProfile | DataTypeRecord) + 18, + MyProfileExtension = (MyProfile | DataTypeRecord) + 19, + MyProfileSip = (MyProfile | DataTypeRecord) + 20, + + /* data */ + DataId = (Data | DataTypeInt), + DataContactId = (Data | DataTypeInt) + 1, + DataType = (Data | DataTypeInt) + 2, + DataIsPrimaryDefault = (Data | DataTypeBool) + 3, + DataIsDefault = (Data | DataTypeBool) + 4, + DataData1 = (Data | DataTypeInt) + 5, + DataData2 = (Data | DataTypeString) + 6, + DataData3 = (Data | DataTypeString) + 7, + DataData4 = (Data | DataTypeString) + 8, + DataData5 = (Data | DataTypeString) + 9, + DataData6 = (Data | DataTypeString) + 10, + DataData7 = (Data | DataTypeString) + 11, + DataData8 = (Data | DataTypeString) + 12, + DataData9 = (Data | DataTypeString) + 13, + DataData10 = (Data | DataTypeString) + 14, + + /* contact_name */ + NameId = (Name | DataTypeInt | ReadOnly), + NameContactId = (Name | DataTypeInt) + 1, + NameFirst = (Name | DataTypeString) + 2, + NameLast = (Name | DataTypeString) + 3, + NameAddition = (Name | DataTypeString) + 4, + NameSuffix = (Name | DataTypeString) + 5, + NamePrefix = (Name | DataTypeString) + 6, + NamePhoneticFirst = (Name | DataTypeString) + 7, + NamePhoneticMiddle = (Name | DataTypeString) + 8, + NamePhoneticLast = (Name | DataTypeString) + 9, + + /* contact_number */ + NumberId = (Number | DataTypeInt | ReadOnly), + NumberContactId = (Number | DataTypeInt) + 1, + NumberType = (Number | DataTypeInt) + 2, + NumberLabel = (Number | DataTypeString) + 3, + NumberIsDefault = (Number | DataTypeBool) + 4, + NumberNumber = (Number | DataTypeString) + 5, + NumberNumberFilter = (Number | DataTypeString) + 6, + NumberNormalizedNumber = (Number | DataTypeString | ReadOnly) + 7, + NumberCleanedNumber = (Number | DataTypeString | ReadOnly) + 8, + + /* contact_email */ + EmailId = (Email | DataTypeInt | ReadOnly), + EmailContactId = (Email | DataTypeInt) + 1, + EmailType = (Email | DataTypeInt) + 2, + EmailLabel = (Email | DataTypeString) + 3, + EmailIsDefault = (Email | DataTypeBool) + 4, + EmailEmail = (Email | DataTypeString) + 5, + + /* contact_address */ + AddressId = (Address | DataTypeInt | ReadOnly), + AddressContactId = (Address | DataTypeInt) + 1, + AddressType = (Address | DataTypeInt) + 2, + AddressLabel = (Address | DataTypeString) + 3, + AddressPostbox = (Address | DataTypeString) + 4, + AddressPostalCode = (Address | DataTypeString) + 5, + AddressRegion = (Address | DataTypeString) + 6, + AddressLocality = (Address | DataTypeString) + 7, + AddressStreet = (Address | DataTypeString) + 8, + AddressCountry = (Address | DataTypeString) + 9, + AddressExtended = (Address | DataTypeString) + 10, + AddressIsDefault = (Address | DataTypeBool) + 11, + + /* contact_url */ + URLId = (URL | DataTypeInt | ReadOnly), + URLContactId = (URL | DataTypeInt) + 1, + URLType = (URL | DataTypeInt) + 2, + URLLabel = (URL | DataTypeString) + 3, + URLData = (URL | DataTypeString) + 4, + + /* contact_event */ + EventId = (Event | DataTypeInt | ReadOnly), + EventContactId = (Event | DataTypeInt) + 1, + EventType = (Event | DataTypeInt) + 2, + EventLabel = (Event | DataTypeString) + 3, + EventDate = (Event | DataTypeInt) + 4, + EventCalendarType = (Event | DataTypeInt) + 5, + EventIsLeapMonth = (Event | DataTypeBool) + 6, + + /* contact_grouprelation */ + GroupRelationId = (GroupRelation | DataTypeInt | ReadOnly), + GroupRelationGroupId = (GroupRelation | DataTypeInt) + 1, + GroupRelationContactId = (GroupRelation | DataTypeInt) + 2, + GroupRelationGroupName = (GroupRelation | DataTypeString) + 3, + + /* contact_relationship */ + RelationshipId = (Relationship | DataTypeInt | ReadOnly), + RelationshipContactId = (Relationship | DataTypeInt) + 1, + RelationshipType = (Relationship | DataTypeInt) + 2, + RelationshipLabel = (Relationship | DataTypeString) + 3, + RelationshipName = (Relationship | DataTypeString) + 4, + + /* contact_image */ + ImageId = (Image | DataTypeInt | ReadOnly), + ImageContactId = (Image | DataTypeInt) + 1, + ImageType = (Image | DataTypeInt) + 2, + ImageLabel = (Image | DataTypeString) + 3, + ImagePath = (Image | DataTypeString) + 4, + ImageIsDefault = (Image | DataTypeBool) + 5, + + /* contact_company */ + CompanyId = (Company | DataTypeInt | ReadOnly), + CompanyContactId = (Company | DataTypeInt) + 1, + CompanyType = (Company | DataTypeInt) + 2, + CompanyLabel = (Company | DataTypeString) + 3, + CompanyName = (Company | DataTypeString) + 4, + CompanyDepartment = (Company | DataTypeString) + 5, + CompanyJobTitle = (Company | DataTypeString) + 6, + CompanyRole = (Company | DataTypeString) + 7, + CompanyAssistantName = (Company | DataTypeString) + 8, + CompanyLogo = (Company | DataTypeString) + 9, + CompanyLocation = (Company | DataTypeString) + 10, + CompanyDescription = (Company | DataTypeString) + 11, + CompanyPhoneticName = (Company | DataTypeString) + 12, + + /* contact_nickname */ + NicknameId = (Nickname | DataTypeInt | ReadOnly), + NicknameContactId = (Nickname | DataTypeInt) + 1, + NicknameName = (Nickname | DataTypeString) + 2, + + /* contact_messenger */ + MessengerId = (Messenger | DataTypeInt | ReadOnly), + MessengerContactId = (Messenger | DataTypeInt) + 1, + MessengerType = (Messenger | DataTypeInt) + 2, + MessengerLabel = (Messenger | DataTypeString) + 3, + MessengerIMId = (Messenger | DataTypeString) + 4, + + /* contact_note */ + NoteId = (Note | DataTypeInt | ReadOnly), + NoteContactId = (Note | DataTypeInt) + 1, + NoteNote = (Note | DataTypeString) + 2, + + /* contact sip */ + SipId = (Sip | DataTypeInt | ReadOnly), + SipContactId = (Sip | DataTypeInt) + 1, + SipAddress = (Sip | DataTypeString) + 2, + SipType = (Sip | DataTypeInt) + 3, + SipLabel = (Sip | DataTypeString) + 4, + + /* contact_profile */ + ProfileId = (Profile | DataTypeInt | ReadOnly), + ProfileContactId = (Profile | DataTypeInt) + 1, + ProfileUId = (Profile | DataTypeString) + 2, + ProfileText = (Profile | DataTypeString) + 3, + ProfileOrder = (Profile | DataTypeInt) + 4, + ProfileServiceOperation = (Profile | DataTypeString) + 5, + ProfileMIME = (Profile | DataTypeString) + 6, + ProfileAppId = (Profile | DataTypeString) + 7, + ProfileUri = (Profile | DataTypeString) + 8, + ProfileCategory = (Profile | DataTypeString) + 9, + ProfileExtraData = (Profile | DataTypeString) + 10, + + ExtensionId = (Extension | DataTypeInt | ReadOnly), + ExtensionContactId = (Extension | DataTypeInt) + 1, + ExtensionData1 = (Extension | DataTypeInt) + 2, + ExtensionData2 = (Extension | DataTypeString) + 3, + ExtensionData3 = (Extension | DataTypeString) + 4, + ExtensionData4 = (Extension | DataTypeString) + 5, + ExtensionData5 = (Extension | DataTypeString) + 6, + ExtensionData6 = (Extension | DataTypeString) + 7, + ExtensionData7 = (Extension | DataTypeString) + 8, + ExtensionData8 = (Extension | DataTypeString) + 9, + ExtensionData9 = (Extension | DataTypeString) + 10, + ExtensionData10 = (Extension | DataTypeString) + 11, + ExtensionData11 = (Extension | DataTypeString) + 12, + ExtensionData12 = (Extension | DataTypeString) + 13, + + /* speeddial */ + SpeedDialDialNumber = (SpeedDial | DataTypeInt), + SpeedDialNumberId = (SpeedDial | DataTypeInt) + 1, + SpeedDialNumber = (SpeedDial | DataTypeString | ReadOnly) + 2, + SpeedDialNumberLabel = (SpeedDial | DataTypeString | ReadOnly) + 3, + SpeedDialNumberType = (SpeedDial | DataTypeInt | ReadOnly) + 4, + SpeedDialPersonId = (SpeedDial | DataTypeInt | ReadOnly) + 5, + SpeedDialDisplayName = (SpeedDial | DataTypeString | ReadOnly) + 6, + SpeedDialThumbnail = (SpeedDial | DataTypeString | ReadOnly) + 7, + SpeedDialNormalizedNumber = (SpeedDial | DataTypeString | ReadOnly) + 8, + SpeedDialCleanedNumber = (SpeedDial | DataTypeString | ReadOnly) + 9, + SpeedDialNumberFilter = (SpeedDial | DataTypeString | ReadOnly) + 10, + + /* phonelog */ + PhonelogId = (Phonelog | DataTypeInt | ReadOnly), + PhonelogPersonId = (Phonelog | DataTypeInt) + 1, + PhonelogAddress = (Phonelog | DataTypeString) + 2, + PhonelogLogTime = (Phonelog | DataTypeInt) + 3, + PhonelogLogType = (Phonelog | DataTypeInt) + 4, + PhonelogExtraData1 = (Phonelog | DataTypeInt) + 5, + PhonelogExtraData2 = (Phonelog | DataTypeString) + 6, + PhonelogNormalizedAddress = (Phonelog | DataTypeString | ReadOnly) + 7, + PhonelogCleanedAddress = (Phonelog | DataTypeString | ReadOnly) + 8, + PhonelogAddressFilter = (Phonelog | DataTypeString | ReadOnly) + 9, + PhonelogSIMSlotNo = (Phonelog | DataTypeInt) + 10, + + /* phonelog_stat */ + PhonelogStatLogCount = (PhonelogStat | DataTypeInt | ReadOnly), + PhonelogStatLogType = (PhonelogStat | DataTypeInt | ReadOnly) + 1, + PhonelogStatSIMSlotNo = (PhonelogStat | DataTypeInt | ReadOnly) + 2, + + /* updated_info : read only */ + UpdateInfoId = (UpdateInfo | DataTypeInt), + UpdateInfoAddressBookId = (UpdateInfo | DataTypeInt) + 1, + UpdateInfoType = (UpdateInfo | DataTypeInt) + 2, + UpdateInfoVersion = (UpdateInfo | DataTypeInt) + 3, + UpdateInfoImageChanged = (UpdateInfo | DataTypeBool) + 4, + UpdateInfoLastChangedType = (UpdateInfo | DataTypeInt) + 5, + } + } + + internal static class Record { - /* addressbook */ - AddressbookId = (PropertyAddressBook | DataTypeInt | ReadOnly), - AddressbookAccountId = (PropertyAddressBook | DataTypeInt) + 1, - AddressbookName = (PropertyAddressBook | DataTypeString) + 2, - AddressbookMode = (PropertyAddressBook | DataTypeInt) + 3, - - /* group */ - GroupId = (PropertyGroup | DataTypeInt | ReadOnly), - GroupAddressbookId = (PropertyGroup | DataTypeInt) + 1, - GroupName = (PropertyGroup | DataTypeString) + 2, - GroupRingtone = (PropertyGroup | DataTypeString) + 3, - GroupImage = (PropertyGroup | DataTypeString) + 4, - GroupVibration = (PropertyGroup | DataTypeString) + 5, - GroupExtraData = (PropertyGroup | DataTypeString) + 6, - GroupIsReadOnly = (PropertyGroup | DataTypeBool) + 7, - GroupMessageAlert = (PropertyGroup | DataTypeString) + 8, - - /* person */ - PersonId = (PropertyPerson | DataTypeInt | ReadOnly), - PersonDisplayName = (PropertyPerson | DataTypeString | ReadOnly) + 1, - PersonDisplayContactId = (PropertyPerson | DataTypeInt) + 2, - PersonRingtone = (PropertyPerson | DataTypeString) + 3, - PersonThumbnail = (PropertyPerson | DataTypeString | ReadOnly) + 4, - PersonVibration = (PropertyPerson | DataTypeString) + 5, - PersonIsFavorite = (PropertyPerson | DataTypeBool) + 6, - PersonFavoritePriority = (PropertyPerson | DataTypeDouble | ReadOnly) + 7, - PersonLinkCount = (PropertyPerson | DataTypeInt | ReadOnly) + 8, - PersonAddressbookIds = (PropertyPerson | DataTypeString | ReadOnly) + 9, - PersonHasPhoneNumber = (PropertyPerson | DataTypeBool | ReadOnly) + 10, - PersonHasEmail = (PropertyPerson | DataTypeBool | ReadOnly) + 11, - PersonDisplayNameIndex = (PropertyPerson | DataTypeString | ReadOnly) + 12, - PersonStatus = (PropertyPerson | DataTypeString | ReadOnly) + 13, - PersonMessageAlert = (PropertyPerson | DataTypeString) + 14, - PersonSnippetType = (PropertyPerson | DataTypeInt | ReadOnly) + 15, - PersonSnippetString = (PropertyPerson | DataTypeString | ReadOnly) + 16, - - /* person-stat */ - PersonUsageType = (PropertyPerson | DataTypeInt) + 100, - PersonTimesUsed = (PropertyPerson | DataTypeInt) + 101, - - /* simple contact : read only */ - /* contact */ - ContactId = (PropertyContact | DataTypeInt | ReadOnly), - ContactDisplayName = (PropertyContact | DataTypeString | ReadOnly) + 1, - ContactDisplaySourceDataId = (PropertyContact | DataTypeInt | ReadOnly) + 2, - ContactAddressbookId = (PropertyContact | DataTypeInt) + 3, - ContactRingtone = (PropertyContact | DataTypeString) + 4, - ContactImage = (PropertyContact | DataTypeRecord) + 5, - ContactThumbnail = (PropertyContact | DataTypeString | ReadOnly) + 6, - ContactIsFavorite = (PropertyContact | DataTypeBool) + 7, - ContactHasPhoneNumber = (PropertyContact | DataTypeBool | ReadOnly) + 8, - ContactHasEmail = (PropertyContact | DataTypeBool | ReadOnly) + 9, - ContactPersonId = (PropertyContact | DataTypeInt) + 10, - ContactUid = (PropertyContact | DataTypeString) + 11, - ContactVibration = (PropertyContact | DataTypeString) + 12, - ContactChangedTime = (PropertyContact | DataTypeInt | ReadOnly) + 13, - ContactName = (PropertyContact | DataTypeRecord) + 14, - ContactCompany = (PropertyContact | DataTypeRecord) + 15, - ContactNote = (PropertyContact | DataTypeRecord) + 16, - ContactNumber = (PropertyContact | DataTypeRecord) + 17, - ContactEmail = (PropertyContact | DataTypeRecord) + 18, - ContactEvent = (PropertyContact | DataTypeRecord) + 19, - ContactMessenger = (PropertyContact | DataTypeRecord) + 20, - ContactAddress = (PropertyContact | DataTypeRecord) + 21, - ContactUrl = (PropertyContact | DataTypeRecord) + 22, - ContactNickname = (PropertyContact | DataTypeRecord) + 23, - ContactProfile = (PropertyContact | DataTypeRecord) + 24, - ContactRelationship = (PropertyContact | DataTypeRecord) + 25, - ContactGroupRelation = (PropertyContact | DataTypeRecord) + 26, - ContactExtension = (PropertyContact | DataTypeRecord) + 27, - ContactLinkMode = (PropertyContact | DataTypeInt) + 28, - ContactMessageAlert = (PropertyContact | DataTypeString) + 29, - ContactSip = (PropertyContact | DataTypeRecord) + 30, - - /* my_profile */ - MyProfileId = (PropertyMyProfile | DataTypeInt | ReadOnly), - MyProfileDisplayName = (PropertyMyProfile | DataTypeString | ReadOnly) + 1, - MyProfileAddressbookId = (PropertyMyProfile | DataTypeInt) + 2, - MyProfileImage = (PropertyMyProfile | DataTypeRecord) + 3, - MyProfileThumbnail = (PropertyMyProfile | DataTypeString | ReadOnly) + 4, - MyProfileUid = (PropertyMyProfile | DataTypeString) + 5, - MyProfileChangedTime = (PropertyMyProfile | DataTypeInt) + 6, - MyProfileName = (PropertyMyProfile | DataTypeRecord) + 7, - MyProfileCompany = (PropertyMyProfile | DataTypeRecord) + 8, - MyProfileNote = (PropertyMyProfile | DataTypeRecord) + 9, - MyProfileNumber = (PropertyMyProfile | DataTypeRecord) + 10, - MyProfileEmail = (PropertyMyProfile | DataTypeRecord) + 11, - MyProfileEvent = (PropertyMyProfile | DataTypeRecord) + 12, - MyProfileMessenger = (PropertyMyProfile | DataTypeRecord) + 13, - MyProfileAddress = (PropertyMyProfile | DataTypeRecord) + 14, - MyProfileUrl = (PropertyMyProfile | DataTypeRecord) + 15, - MyProfileNickname = (PropertyMyProfile | DataTypeRecord) + 16, - MyProfileProfile = (PropertyMyProfile | DataTypeRecord) + 17, - MyProfileRelationship = (PropertyMyProfile | DataTypeRecord) + 18, - MyProfileExtension = (PropertyMyProfile | DataTypeRecord) + 19, - MyProfileSip = (PropertyMyProfile | DataTypeRecord) + 20, - - /* data */ - DataId = (PropertyData | DataTypeInt), - DataContactId = (PropertyData | DataTypeInt) + 1, - DataType = (PropertyData | DataTypeInt) + 2, - DataIsPrimaryDefault = (PropertyData | DataTypeBool) + 3, - DataIsDefault = (PropertyData | DataTypeBool) + 4, - DataData1 = (PropertyData | DataTypeInt) + 5, - DataData2 = (PropertyData | DataTypeString) + 6, - DataData3 = (PropertyData | DataTypeString) + 7, - DataData4 = (PropertyData | DataTypeString) + 8, - DataData5 = (PropertyData | DataTypeString) + 9, - DataData6 = (PropertyData | DataTypeString) + 10, - DataData7 = (PropertyData | DataTypeString) + 11, - DataData8 = (PropertyData | DataTypeString) + 12, - DataData9 = (PropertyData | DataTypeString) + 13, - DataData10 = (PropertyData | DataTypeString) + 14, - - /* contact_name */ - NameId = (PropertyName | DataTypeInt | ReadOnly), - NameContactId = (PropertyName | DataTypeInt) + 1, - NameFirst = (PropertyName | DataTypeString) + 2, - NameLast = (PropertyName | DataTypeString) + 3, - NameAddition = (PropertyName | DataTypeString) + 4, - NameSuffix = (PropertyName | DataTypeString) + 5, - NamePrefix = (PropertyName | DataTypeString) + 6, - NamePhoneticFirst = (PropertyName | DataTypeString) + 7, - NamePhoneticMiddle = (PropertyName | DataTypeString) + 8, - NamePhoneticLast = (PropertyName | DataTypeString) + 9, - - /* contact_number */ - NumberId = (PropertyNumber | DataTypeInt | ReadOnly), - NumberContactId = (PropertyNumber | DataTypeInt) + 1, - NumberType = (PropertyNumber | DataTypeInt) + 2, - NumberLabel = (PropertyNumber | DataTypeString) + 3, - NumberIsDefault = (PropertyNumber | DataTypeBool) + 4, - NumberNumber = (PropertyNumber | DataTypeString) + 5, - NumberNumberFilter = (PropertyNumber | DataTypeString) + 6, - NumberNormalizedNumber = (PropertyNumber | DataTypeString | ReadOnly) + 7, - NumberCleanedNumber = (PropertyNumber | DataTypeString | ReadOnly) + 8, - - /* contact_email */ - EmailId = (PropertyEmail | DataTypeInt | ReadOnly), - EmailContactId = (PropertyEmail | DataTypeInt) + 1, - EmailType = (PropertyEmail | DataTypeInt) + 2, - EmailLabel = (PropertyEmail | DataTypeString) + 3, - EmailIsDefault = (PropertyEmail | DataTypeBool) + 4, - EmailEmail = (PropertyEmail | DataTypeString) + 5, - - /* contact_address */ - AddressId = (PropertyAddress | DataTypeInt | ReadOnly), - AddressContactId = (PropertyAddress | DataTypeInt) + 1, - AddressType = (PropertyAddress | DataTypeInt) + 2, - AddressLabel = (PropertyAddress | DataTypeString) + 3, - AddressPostbox = (PropertyAddress | DataTypeString) + 4, - AddressPostalCode = (PropertyAddress | DataTypeString) + 5, - AddressRegion = (PropertyAddress | DataTypeString) + 6, - AddressLocality = (PropertyAddress | DataTypeString) + 7, - AddressStreet = (PropertyAddress | DataTypeString) + 8, - AddressCountry = (PropertyAddress | DataTypeString) + 9, - AddressExtended = (PropertyAddress | DataTypeString) + 10, - AddressIsDefault = (PropertyAddress | DataTypeBool) + 11, - - /* contact_url */ - UrlId = (PropertyUrl | DataTypeInt | ReadOnly), - UrlContactId = (PropertyUrl | DataTypeInt) + 1, - UrlType = (PropertyUrl | DataTypeInt) + 2, - UrlLabel = (PropertyUrl | DataTypeString) + 3, - UrlUrl = (PropertyUrl | DataTypeString) + 4, - - /* contact_event */ - EventId = (PropertyEvent | DataTypeInt | ReadOnly), - EventContactId = (PropertyEvent | DataTypeInt) + 1, - EventType = (PropertyEvent | DataTypeInt) + 2, - EventLabel = (PropertyEvent | DataTypeString) + 3, - EventDate = (PropertyEvent | DataTypeInt) + 4, - EventCalendarType = (PropertyEvent | DataTypeInt) + 5, - EventIsLeapMonth = (PropertyEvent | DataTypeBool) + 6, - - /* contact_grouprelation */ - GroupRelationId = (PropertyGroupRelation | DataTypeInt | ReadOnly), - GroupRelationGroupId = (PropertyGroupRelation | DataTypeInt) + 1, - GroupRelationContactId = (PropertyGroupRelation | DataTypeInt) + 2, - GroupRelationGroupName = (PropertyGroupRelation | DataTypeString) + 3, - - /* contact_relationship */ - RelationshipId = (PropertyRelationship | DataTypeInt | ReadOnly), - RelationshipContactId = (PropertyRelationship | DataTypeInt) + 1, - RelationshipType = (PropertyRelationship | DataTypeInt) + 2, - RelationshipLabel = (PropertyRelationship | DataTypeString) + 3, - RelationshipName = (PropertyRelationship | DataTypeString) + 4, - - /* contact_image */ - ImageId = (PropertyImage | DataTypeInt | ReadOnly), - ImageContactId = (PropertyImage | DataTypeInt) + 1, - ImageType = (PropertyImage | DataTypeInt) + 2, - ImageLabel = (PropertyImage | DataTypeString) + 3, - ImagePath = (PropertyImage | DataTypeString) + 4, - ImageIsDefault = (PropertyImage | DataTypeBool) + 5, - - /* contact_company */ - CompanyId = (PropertyCompany | DataTypeInt | ReadOnly), - CompanyContactId = (PropertyCompany | DataTypeInt) + 1, - CompanyType = (PropertyCompany | DataTypeInt) + 2, - CompanyLabel = (PropertyCompany | DataTypeString) + 3, - CompanyName = (PropertyCompany | DataTypeString) + 4, - CompanyDepartment = (PropertyCompany | DataTypeString) + 5, - CompanyJobTitle = (PropertyCompany | DataTypeString) + 6, - CompanyRole = (PropertyCompany | DataTypeString) + 7, - CompanyAssistantName = (PropertyCompany | DataTypeString) + 8, - CompanyLogo = (PropertyCompany | DataTypeString) + 9, - CompanyLocation = (PropertyCompany | DataTypeString) + 10, - CompanyDescription = (PropertyCompany | DataTypeString) + 11, - CompanyPhoneticName = (PropertyCompany | DataTypeString) + 12, - - /* contact_nickname */ - NicknameId = (PropertyNickname | DataTypeInt | ReadOnly), - NicknameContactId = (PropertyNickname | DataTypeInt) + 1, - NicknameName = (PropertyNickname | DataTypeString) + 2, - - /* contact_messenger */ - MessengerId = (PropertyMessenger | DataTypeInt | ReadOnly), - MessengerContactId = (PropertyMessenger | DataTypeInt) + 1, - MessengerType = (PropertyMessenger | DataTypeInt) + 2, - MessengerLabel = (PropertyMessenger | DataTypeString) + 3, - MessengerIMId = (PropertyMessenger | DataTypeString) + 4, - - /* contact_note */ - NoteId = (PropertyNote | DataTypeInt | ReadOnly), - NoteContactId = (PropertyNote | DataTypeInt) + 1, - NoteNote = (PropertyNote | DataTypeString) + 2, - - /* contact sip */ - SipId = (PropertySip | DataTypeInt | ReadOnly), - SipContactId = (PropertySip | DataTypeInt) + 1, - SipAddress = (PropertySip | DataTypeString) + 2, - SipType = (PropertySip | DataTypeInt) + 3, - SipLabel = (PropertySip | DataTypeString) + 4, - - /* contact_profile */ - ProfileId = (PropertyProfile | DataTypeInt | ReadOnly), - ProfileContactId = (PropertyProfile | DataTypeInt) + 1, - ProfileUid = (PropertyProfile | DataTypeString) + 2, - ProfileText = (PropertyProfile | DataTypeString) + 3, - ProfileOrder = (PropertyProfile | DataTypeInt) + 4, - ProfileServiceOperation = (PropertyProfile | DataTypeString) + 5, - ProfileMIME = (PropertyProfile | DataTypeString) + 6, - ProfileAppId = (PropertyProfile | DataTypeString) + 7, - ProfileUri = (PropertyProfile | DataTypeString) + 8, - ProfileCategory = (PropertyProfile | DataTypeString) + 9, - ProfileExtraData = (PropertyProfile | DataTypeString) + 10, - - ExtensionId = (PropertyExtension | DataTypeInt | ReadOnly), - ExtensionContactId = (PropertyExtension | DataTypeInt) +1, - ExtensionData1 = (PropertyExtension | DataTypeInt) +2, - ExtensionData2 = (PropertyExtension | DataTypeString) +3, - ExtensionData3 = (PropertyExtension | DataTypeString) +4, - ExtensionData4 = (PropertyExtension | DataTypeString) +5, - ExtensionData5 = (PropertyExtension | DataTypeString) +6, - ExtensionData6 = (PropertyExtension | DataTypeString) +7, - ExtensionData7 = (PropertyExtension | DataTypeString) +8, - ExtensionData8 = (PropertyExtension | DataTypeString) +9, - ExtensionData9 = (PropertyExtension | DataTypeString) +10, - ExtensionData10 = (PropertyExtension | DataTypeString) +11, - ExtensionData11 = (PropertyExtension | DataTypeString) +12, - ExtensionData12 = (PropertyExtension | DataTypeString) +13, - - /* speeddial */ - SpeedDialDialNumber = (PropertySpeedDial | DataTypeInt), - SpeedDialNumberId = (PropertySpeedDial | DataTypeInt) +1, - SpeedDialNumber = (PropertySpeedDial | DataTypeString | ReadOnly) +2, - SpeedDialNumberLabel = (PropertySpeedDial | DataTypeString | ReadOnly) +3, - SpeedDialNumberType = (PropertySpeedDial | DataTypeInt | ReadOnly) +4, - SpeedDialPersonId = (PropertySpeedDial | DataTypeInt | ReadOnly) +5, - SpeedDialDisplayName = (PropertySpeedDial | DataTypeString | ReadOnly) +6, - SpeedDialThumbnail = (PropertySpeedDial | DataTypeString | ReadOnly) +7, - SpeedDialNormalizedNumber = (PropertySpeedDial | DataTypeString | ReadOnly) +8, - SpeedDialCleanedNumber = (PropertySpeedDial | DataTypeString | ReadOnly) +9, - SpeedDialNumberFilter = (PropertySpeedDial | DataTypeString | ReadOnly) +10, - - /* phonelog */ - PhonelogId = (PropertyPhonelog | DataTypeInt | ReadOnly), - PhonelogPersonId = (PropertyPhonelog | DataTypeInt) + 1, - PhonelogAddress = (PropertyPhonelog | DataTypeString) + 2, - PhonelogLogTime = (PropertyPhonelog | DataTypeInt) + 3, - PhonelogLogType = (PropertyPhonelog | DataTypeInt) + 4, - PhonelogExtraData1 = (PropertyPhonelog | DataTypeInt) + 5, /* duration, message_id, email_id */ - PhonelogExtraData2 = (PropertyPhonelog | DataTypeString) + 6, /* short message, subject */ - PhonelogNormalizedAddress = (PropertyPhonelog | DataTypeString | ReadOnly) + 7, /* for search by calllog number */ - PhonelogCleanedAddress = (PropertyPhonelog | DataTypeString | ReadOnly) + 8, /* for search by calllog number */ - PhonelogAddressFilter = (PropertyPhonelog | DataTypeString | ReadOnly) + 9, /* for search by calllog number */ - PhonelogSIMSlotNo = (PropertyPhonelog | DataTypeInt) + 10, - - /* phonelog_stat */ - PhonelogStatLogCount = (PropertyPhonelogStat | DataTypeInt | ReadOnly), - PhonelogStatLogType = (PropertyPhonelogStat | DataTypeInt | ReadOnly) + 1, - PhonelogStatSIMSlotNo = (PropertyPhonelogStat | DataTypeInt | ReadOnly) + 2, - - /* updated_info : read only */ - UpdateInfoId = (PropertyUpdateInfo | DataTypeInt), - UpdateInfoAddressbookId = (PropertyUpdateInfo | DataTypeInt) +1, - UpdateInfoType = (PropertyUpdateInfo | DataTypeInt) +2, - UpdateInfoVersion = (PropertyUpdateInfo | DataTypeInt) +3, - UpdateInfoImageChanged = (PropertyUpdateInfo | DataTypeBool) +4, - UpdateInfoLastChangedType = (PropertyUpdateInfo | DataTypeInt)+5, /* now, it is used for _contacts_my_profile_updated_info */ + internal const uint AverageSize = 120; /* average size of person record */ } /// /// Enumeration for contact change state. /// - public enum ChangeTypes + public enum ChangeType { /// /// Inserted @@ -393,38 +404,36 @@ namespace Tizen.Pims.Contacts Deleted, } - internal const uint AverageSizeOfRecord = 120; /* average size of person record */ - /// - /// Describes properies of a Address book record. + /// Describes properties of a Address book record. /// - public static class Addressbook + public static class AddressBook { /// - /// Identifier of this contacts addressbook view + /// Identifier of this contacts address book view /// public const string Uri = "tizen.contacts_view.addressbook"; /// - /// integer, read only, DB record ID of the addressbook + /// integer, read only, DB record ID of the address book /// - public const uint Id = (uint)PropertyIds.AddressbookId; + public const uint Id = (uint)Property.Id.AddressBookId; /// - /// integer, read/write once, Account ID that the addressbook belongs to + /// integer, read/write once, Account ID that the address book belongs to /// - public const uint AccountId = (uint)PropertyIds.AddressbookAccountId; + public const uint AccountId = (uint)Property.Id.AddressBookAccountId; /// /// string, read/write, It cannot be NULL. Duplicate names are not allowed. /// - public const uint Name = (uint)PropertyIds.AddressbookName; + public const uint Name = (uint)Property.Id.AddressBookName; /// - /// integer, read/write, Addressbook mode, refer to the Modes + /// integer, read/write, AddressBook mode, refer to the ModeValue /// - public const uint Mode = (uint)PropertyIds.AddressbookMode; + public const uint Mode = (uint)Property.Id.AddressBookMode; /// /// Enumeration for Address book mode. /// - public enum Modes + public enum ModeValue { /// /// All module can read and write contacts of this address_book @@ -438,7 +447,7 @@ namespace Tizen.Pims.Contacts } /// - /// Describes properies of a Group record. + /// Describes properties of a Group record. /// public static class Group { @@ -449,43 +458,43 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the group /// - public const uint Id = (uint)PropertyIds.GroupId; + public const uint Id = (uint)Property.Id.GroupId; /// - /// Addressbook ID that the group belongs to + /// AddressBook ID that the group belongs to /// - public const uint AddressbookId = (uint)PropertyIds.GroupAddressbookId; + public const uint AddressBookId = (uint)Property.Id.GroupAddressBookId; /// /// Group name /// - public const uint Name = (uint)PropertyIds.GroupName; + public const uint Name = (uint)Property.Id.GroupName; /// /// Ringtone path of the group /// - public const uint RingtonePath = (uint)PropertyIds.GroupRingtone; + public const uint RingtonePath = (uint)Property.Id.GroupRingtone; /// /// Image path of the group /// - public const uint ImagePath = (uint)PropertyIds.GroupImage; + public const uint ImagePath = (uint)Property.Id.GroupImage; /// /// Vibration path of the group /// - public const uint Vibration = (uint)PropertyIds.GroupVibration; + public const uint Vibration = (uint)Property.Id.GroupVibration; /// /// Extra data for default group name /// - public const uint ExtraData = (uint)PropertyIds.GroupExtraData; + public const uint ExtraData = (uint)Property.Id.GroupExtraData; /// /// The group is read only or not /// - public const uint IsReadOnly = (uint)PropertyIds.GroupIsReadOnly; + public const uint IsReadOnly = (uint)Property.Id.GroupIsReadOnly; /// /// Message alert path of the group /// - public const uint MessageAlert = (uint)PropertyIds.GroupMessageAlert; + public const uint MessageAlert = (uint)Property.Id.GroupMessageAlert; } /// - /// Describes properies of a Person record. + /// Describes properties of a Person record. /// public static class Person { @@ -496,75 +505,75 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the person /// - public const uint Id = (uint)PropertyIds.PersonId; + public const uint Id = (uint)Property.Id.PersonId; /// /// Display name of the person /// - public const uint DisplayName = (uint)PropertyIds.PersonDisplayName; + public const uint DisplayName = (uint)Property.Id.PersonDisplayName; /// - /// The first character of first string for grouping. This is normalized using icu (projection) + /// The first character of first string for grouping. This is normalized using ICU (projection) /// - public const uint DisplayNameIndex = (uint)PropertyIds.PersonDisplayNameIndex; + public const uint DisplayNameIndex = (uint)Property.Id.PersonDisplayNameIndex; /// /// Display contact ID that the person belongs to /// - public const uint DisplayContactId = (uint)PropertyIds.PersonDisplayContactId; + public const uint DisplayContactId = (uint)Property.Id.PersonDisplayContactId; /// /// Ringtone path of the person /// - public const uint RingtonePath = (uint)PropertyIds.PersonRingtone; + public const uint RingtonePath = (uint)Property.Id.PersonRingtone; /// /// Image thumbnail path of the person /// - public const uint ThumbnailPath = (uint)PropertyIds.PersonThumbnail; + public const uint ThumbnailPath = (uint)Property.Id.PersonThumbnail; /// /// Vibration path of the person /// - public const uint Vibration = (uint)PropertyIds.PersonVibration; + public const uint Vibration = (uint)Property.Id.PersonVibration; /// /// Message alert path of the person /// - public const uint MessageAlert = (uint)PropertyIds.PersonMessageAlert; + public const uint MessageAlert = (uint)Property.Id.PersonMessageAlert; /// /// Status of social account /// - public const uint Status = (uint)PropertyIds.PersonStatus; + public const uint Status = (uint)Property.Id.PersonStatus; /// /// The person is favorite or not /// - public const uint IsFavorite = (uint)PropertyIds.PersonIsFavorite; + public const uint IsFavorite = (uint)Property.Id.PersonIsFavorite; /// /// The priority of favorite contacts. it can be used as sorting key /// - public const uint FavoritePriority = (uint)PropertyIds.PersonFavoritePriority; + public const uint FavoritePriority = (uint)Property.Id.PersonFavoritePriority; /// /// Link count of contact records (projection) /// - public const uint LinkCount = (uint)PropertyIds.PersonLinkCount; + public const uint LinkCount = (uint)Property.Id.PersonLinkCount; /// - /// Addressbook IDs that the person belongs to (projection) + /// AddressBook IDs that the person belongs to (projection) /// - public const uint AddressbookIds = (uint)PropertyIds.PersonAddressbookIds; + public const uint AddressBookIds = (uint)Property.Id.PersonAddressBookIds; /// /// The person has phone number or not /// - public const uint HasPhoneNumber = (uint)PropertyIds.PersonHasPhoneNumber; + public const uint HasPhoneNumber = (uint)Property.Id.PersonHasPhoneNumber; /// /// The person has email or not /// - public const uint HasEmail = (uint)PropertyIds.PersonHasEmail; + public const uint HasEmail = (uint)Property.Id.PersonHasEmail; /// - /// kerword matched data type + /// keyword matched data type /// - public const uint SnippetType = (uint)PropertyIds.PersonSnippetType; + public const uint SnippetType = (uint)Property.Id.PersonSnippetType; /// /// keyword matched data string /// - public const uint SnippetString = (uint)PropertyIds.PersonSnippetString; + public const uint SnippetString = (uint)Property.Id.PersonSnippetString; } /// - /// Describes properies of a Contact record. + /// Describes properties of a Contact record. /// public static class Contact { @@ -575,132 +584,132 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the contact /// - public const uint Id = (uint)PropertyIds.ContactId; + public const uint Id = (uint)Property.Id.ContactId; /// /// Display name of the contact /// - public const uint DisplayName = (uint)PropertyIds.ContactDisplayName; + public const uint DisplayName = (uint)Property.Id.ContactDisplayName; /// - /// The source type of display name, refer to the DisplayNameSourceTypes + /// The source type of display name, refer to the DisplayNameSourceType /// - public const uint DisplaySourceType = (uint)PropertyIds.ContactDisplaySourceDataId; + public const uint DisplaySourceType = (uint)Property.Id.ContactDisplaySourceDataId; /// - /// Addressbook ID that the contact belongs to + /// AddressBook ID that the contact belongs to /// - public const uint AddressbookId = (uint)PropertyIds.ContactAddressbookId; + public const uint AddressBookId = (uint)Property.Id.ContactAddressBookId; /// /// Ringtone path of the contact /// - public const uint RingtonePath = (uint)PropertyIds.ContactRingtone; + public const uint RingtonePath = (uint)Property.Id.ContactRingtone; /// /// Image thumbnail path of the contact /// - public const uint ThumbnailPath = (uint)PropertyIds.ContactThumbnail; + public const uint ThumbnailPath = (uint)Property.Id.ContactThumbnail; /// /// The contact is favorite or not /// - public const uint IsFavorite = (uint)PropertyIds.ContactIsFavorite; + public const uint IsFavorite = (uint)Property.Id.ContactIsFavorite; /// /// The contact has phone number or not /// - public const uint HasPhoneNumber = (uint)PropertyIds.ContactHasPhoneNumber; + public const uint HasPhoneNumber = (uint)Property.Id.ContactHasPhoneNumber; /// /// The contact has email or not /// - public const uint HasEmail = (uint)PropertyIds.ContactHasEmail; + public const uint HasEmail = (uint)Property.Id.ContactHasEmail; /// /// Person ID that the contact belongs to. If set when inserting, a contact will be linked to person /// - public const uint PersonId = (uint)PropertyIds.ContactPersonId; + public const uint PersonId = (uint)Property.Id.ContactPersonId; /// /// Unique identifier /// - public const uint Uid = (uint)PropertyIds.ContactUid; + public const uint UId = (uint)Property.Id.ContactUId; /// /// Vibration path of the contact /// - public const uint Vibration = (uint)PropertyIds.ContactVibration; + public const uint Vibration = (uint)Property.Id.ContactVibration; /// /// Message alert path of the contact /// - public const uint MessageAlert = (uint)PropertyIds.ContactMessageAlert; + public const uint MessageAlert = (uint)Property.Id.ContactMessageAlert; /// /// Last changed contact time /// - public const uint ChangedTime = (uint)PropertyIds.ContactChangedTime; + public const uint ChangedTime = (uint)Property.Id.ContactChangedTime; /// - /// The link mode, refer to the LinkModes. If the person_id was set, this value will be ignored + /// The link mode, refer to the LinkModeValue. If the person_id was set, this value will be ignored /// - public const uint LinkMode = (uint)PropertyIds.ContactLinkMode; + public const uint LinkMode = (uint)Property.Id.ContactLinkMode; /// /// Name child record (single) /// - public const uint Name = (uint)PropertyIds.ContactName; + public const uint Name = (uint)Property.Id.ContactName; /// /// Company child record (multiple) /// - public const uint Company = (uint)PropertyIds.ContactCompany; + public const uint Company = (uint)Property.Id.ContactCompany; /// /// Note child record (multiple) /// - public const uint Note = (uint)PropertyIds.ContactNote; + public const uint Note = (uint)Property.Id.ContactNote; /// /// Number child record (multiple) /// - public const uint Number = (uint)PropertyIds.ContactNumber; + public const uint Number = (uint)Property.Id.ContactNumber; /// /// Email child record (multiple) /// - public const uint Email = (uint)PropertyIds.ContactEmail; + public const uint Email = (uint)Property.Id.ContactEmail; /// /// Event child record (multiple) /// - public const uint Event = (uint)PropertyIds.ContactEvent; + public const uint Event = (uint)Property.Id.ContactEvent; /// /// Messenger child record (multiple) /// - public const uint Messenger = (uint)PropertyIds.ContactMessenger; + public const uint Messenger = (uint)Property.Id.ContactMessenger; /// /// Address child record (multiple) /// - public const uint Address = (uint)PropertyIds.ContactAddress; + public const uint Address = (uint)Property.Id.ContactAddress; /// - /// Url child record (multiple) + /// URL child record (multiple) /// - public const uint Url = (uint)PropertyIds.ContactUrl; + public const uint URL = (uint)Property.Id.ContactURL; /// /// Nickname child record (multiple) /// - public const uint Nickname = (uint)PropertyIds.ContactNickname; + public const uint Nickname = (uint)Property.Id.ContactNickname; /// /// Profile child record (multiple) /// - public const uint Profile = (uint)PropertyIds.ContactProfile; + public const uint Profile = (uint)Property.Id.ContactProfile; /// /// Relationship child record (multiple) /// - public const uint Relationship = (uint)PropertyIds.ContactRelationship; + public const uint Relationship = (uint)Property.Id.ContactRelationship; /// /// Image child record (multiple) /// - public const uint Image = (uint)PropertyIds.ContactImage; + public const uint Image = (uint)Property.Id.ContactImage; /// /// GroupRelation child record (multiple) /// - public const uint GroupRelation = (uint)PropertyIds.ContactGroupRelation; + public const uint GroupRelation = (uint)Property.Id.ContactGroupRelation; /// /// Extension child record (multiple) /// - public const uint Extension = (uint)PropertyIds.ContactExtension; + public const uint Extension = (uint)Property.Id.ContactExtension; /// /// Sip child record (multiple) /// - public const uint Sip = (uint)PropertyIds.ContactSip; + public const uint Sip = (uint)Property.Id.ContactSip; /// /// Enumeration for link mode when inserting contact. /// - public enum LinkModes + public enum LinkModeValue { /// /// Auto link immediately @@ -715,7 +724,7 @@ namespace Tizen.Pims.Contacts /// /// Enumeration for Contact display name source type. /// - public enum DisplayNameSourceTypes + public enum DisplayNameSourceType { /// /// Invalid source of display name @@ -746,28 +755,77 @@ namespace Tizen.Pims.Contacts /// /// Enumeration for contacts data type. /// - public enum DataTypes + public enum DataType { + /// + /// None + /// + None, + /// + /// Name + /// Name = 1, + /// + /// Address + /// Address = 2, + /// + /// Messenger + /// Messenger = 3, - Url = 4, + /// + /// URL + /// + URL = 4, + /// + /// Event + /// Event = 5, + /// + /// Company + /// Company = 6, + /// + /// Nickname + /// Nickname = 7, + /// + /// Number + /// Number = 8, + /// + /// Email + /// Email = 9, + /// + /// Profile + /// Profile = 10, - Relationsip = 11, + /// + /// Relationship + /// + Relationship = 11, + /// + /// Note + /// Note = 12, + /// + /// Image + /// Image = 13, + /// + /// SIP + /// Sip = 14, + /// + /// Extension + /// Extension = 100 } } /// - /// Describes properies of a Simple contact record. + /// Describes properties of a Simple contact record. /// public static class SimpleContact { @@ -778,63 +836,63 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the contact /// - public const uint Id = (uint)PropertyIds.ContactId; + public const uint Id = (uint)Property.Id.ContactId; /// /// Display name of the contact /// - public const uint DisplayName = (uint)PropertyIds.ContactDisplayName; + public const uint DisplayName = (uint)Property.Id.ContactDisplayName; /// - /// The source type of display name, refer to the Contact.DisplayNameSourceTypes + /// The source type of display name, refer to the Contact.DisplayNameSourceType /// - public const uint DisplaySourceType = (uint)PropertyIds.ContactDisplaySourceDataId; + public const uint DisplaySourceType = (uint)Property.Id.ContactDisplaySourceDataId; /// - /// Addressbook that the contact belongs to + /// AddressBook that the contact belongs to /// - public const uint AddressbookId = (uint)PropertyIds.ContactAddressbookId; + public const uint AddressBookId = (uint)Property.Id.ContactAddressBookId; /// /// Ringtone path of the contact /// - public const uint RingtonePath = (uint)PropertyIds.ContactRingtone; + public const uint RingtonePath = (uint)Property.Id.ContactRingtone; /// /// Image thumbnail path of the contact /// - public const uint ThumbnailPath = (uint)PropertyIds.ContactThumbnail; + public const uint ThumbnailPath = (uint)Property.Id.ContactThumbnail; /// /// The contact is favorite or not /// - public const uint IsFavorite = (uint)PropertyIds.ContactIsFavorite; + public const uint IsFavorite = (uint)Property.Id.ContactIsFavorite; /// /// The contact has phone number or not /// - public const uint HasPhoneNumber = (uint)PropertyIds.ContactHasPhoneNumber; + public const uint HasPhoneNumber = (uint)Property.Id.ContactHasPhoneNumber; /// /// The contact has email or not /// - public const uint HasEmail = (uint)PropertyIds.ContactHasEmail; + public const uint HasEmail = (uint)Property.Id.ContactHasEmail; /// /// Person ID that the contact belongs to /// - public const uint PersonId = (uint)PropertyIds.ContactPersonId; + public const uint PersonId = (uint)Property.Id.ContactPersonId; /// /// Unique identifier /// - public const uint Uid = (uint)PropertyIds.ContactUid; + public const uint UId = (uint)Property.Id.ContactUId; /// /// Vibration path of the contact /// - public const uint Vibration = (uint)PropertyIds.ContactVibration; + public const uint Vibration = (uint)Property.Id.ContactVibration; /// /// Message alert path of the contact /// - public const uint MessageAlert = (uint)PropertyIds.ContactMessageAlert; + public const uint MessageAlert = (uint)Property.Id.ContactMessageAlert; /// /// Last changed contact time /// - public const uint ChangedTime = (uint)PropertyIds.ContactChangedTime; + public const uint ChangedTime = (uint)Property.Id.ContactChangedTime; } /// - /// Describes properies of a My profile record. + /// Describes properties of a My profile record. /// public static class MyProfile { @@ -845,91 +903,91 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the my profile /// - public const uint Id = (uint)PropertyIds.MyProfileId; + public const uint Id = (uint)Property.Id.MyProfileId; /// /// Display name of the profile /// - public const uint DisplayName = (uint)PropertyIds.MyProfileDisplayName; + public const uint DisplayName = (uint)Property.Id.MyProfileDisplayName; /// - /// Addressbook ID that the profile belongs to + /// AddressBook ID that the profile belongs to /// - public const uint AddressbookId = (uint)PropertyIds.MyProfileAddressbookId; + public const uint AddressBookId = (uint)Property.Id.MyProfileAddressBookId; /// /// Image thumbnail path of the profile /// - public const uint ThumbnailPath = (uint)PropertyIds.MyProfileThumbnail; + public const uint ThumbnailPath = (uint)Property.Id.MyProfileThumbnail; /// /// Unique identifier /// - public const uint Uid = (uint)PropertyIds.MyProfileUid; + public const uint UId = (uint)Property.Id.MyProfileUId; /// /// Last changed profile time /// - public const uint ChangedTime = (uint)PropertyIds.MyProfileChangedTime; + public const uint ChangedTime = (uint)Property.Id.MyProfileChangedTime; /// /// Name child record (single) /// - public const uint Name = (uint)PropertyIds.MyProfileName; + public const uint Name = (uint)Property.Id.MyProfileName; /// /// Company child record (multiple) /// - public const uint Company = (uint)PropertyIds.MyProfileCompany; + public const uint Company = (uint)Property.Id.MyProfileCompany; /// /// Note child record (multiple) /// - public const uint Note = (uint)PropertyIds.MyProfileNote; + public const uint Note = (uint)Property.Id.MyProfileNote; /// /// Number child record (multiple) /// - public const uint Number = (uint)PropertyIds.MyProfileNumber; + public const uint Number = (uint)Property.Id.MyProfileNumber; /// /// Email child record (multiple) /// - public const uint Email = (uint)PropertyIds.MyProfileEmail; + public const uint Email = (uint)Property.Id.MyProfileEmail; /// /// Event child record (multiple) /// - public const uint Event = (uint)PropertyIds.MyProfileEvent; + public const uint Event = (uint)Property.Id.MyProfileEvent; /// /// Messenger child record (multiple) /// - public const uint Messenger = (uint)PropertyIds.MyProfileMessenger; + public const uint Messenger = (uint)Property.Id.MyProfileMessenger; /// /// Address child record (multiple) /// - public const uint Address = (uint)PropertyIds.MyProfileAddress; + public const uint Address = (uint)Property.Id.MyProfileAddress; /// - /// Url child record (multiple) + /// URL child record (multiple) /// - public const uint Url = (uint)PropertyIds.MyProfileUrl; + public const uint URL = (uint)Property.Id.MyProfileURL; /// /// Nickname child record (multiple) /// - public const uint Nickname = (uint)PropertyIds.MyProfileNickname; + public const uint Nickname = (uint)Property.Id.MyProfileNickname; /// /// Profile child record (multiple) /// - public const uint Profile = (uint)PropertyIds.MyProfileProfile; + public const uint Profile = (uint)Property.Id.MyProfileProfile; /// /// Relationship child record (multiple) /// - public const uint Relationship = (uint)PropertyIds.MyProfileRelationship; + public const uint Relationship = (uint)Property.Id.MyProfileRelationship; /// /// Image child record (multiple) /// - public const uint Image = (uint)PropertyIds.MyProfileImage; + public const uint Image = (uint)Property.Id.MyProfileImage; /// /// Extension child record (multiple) /// - public const uint Extension = (uint)PropertyIds.MyProfileExtension; + public const uint Extension = (uint)Property.Id.MyProfileExtension; /// /// Sip child record (multiple) /// - public const uint Sip = (uint)PropertyIds.MyProfileSip; + public const uint Sip = (uint)Property.Id.MyProfileSip; } /// - /// Describes properies of a Name record. + /// Describes properties of a Name record. /// public static class Name { @@ -940,47 +998,47 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the name /// - public const uint Id = (uint)PropertyIds.NameId; + public const uint Id = (uint)Property.Id.NameId; /// /// Contacts ID that the name record belongs to /// - public const uint ContactId = (uint)PropertyIds.NameContactId; + public const uint ContactId = (uint)Property.Id.NameContactId; /// /// First name /// - public const uint First = (uint)PropertyIds.NameFirst; + public const uint First = (uint)Property.Id.NameFirst; /// /// Last name /// - public const uint Last = (uint)PropertyIds.NameLast; + public const uint Last = (uint)Property.Id.NameLast; /// /// Middle name /// - public const uint Addition = (uint)PropertyIds.NameAddition; + public const uint Addition = (uint)Property.Id.NameAddition; /// /// Suffix /// - public const uint Suffix = (uint)PropertyIds.NameSuffix; + public const uint Suffix = (uint)Property.Id.NameSuffix; /// /// Prefix /// - public const uint Prefix = (uint)PropertyIds.NamePrefix; + public const uint Prefix = (uint)Property.Id.NamePrefix; /// /// Pronounce the first name /// - public const uint PhoneticFirst = (uint)PropertyIds.NamePhoneticFirst; + public const uint PhoneticFirst = (uint)Property.Id.NamePhoneticFirst; /// /// Pronounce the middle name /// - public const uint PhoneticMiddle = (uint)PropertyIds.NamePhoneticMiddle; + public const uint PhoneticMiddle = (uint)Property.Id.NamePhoneticMiddle; /// /// Pronounce the last name /// - public const uint PhoneticLast = (uint)PropertyIds.NamePhoneticLast; + public const uint PhoneticLast = (uint)Property.Id.NamePhoneticLast; } /// - /// Describes properies of a Number record. + /// Describes properties of a Number record. /// public static class Number { @@ -991,43 +1049,44 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the number /// - public const uint Id = (uint)PropertyIds.NumberId; + public const uint Id = (uint)Property.Id.NumberId; /// /// Contact ID that the number belongs to /// - public const uint ContactId = (uint)PropertyIds.NumberContactId; + public const uint ContactId = (uint)Property.Id.NumberContactId; /// /// Number type, refer to the Types /// - public const uint Type = (uint)PropertyIds.NumberType; + public const uint Type = (uint)Property.Id.NumberType; /// /// Custom number type label, when the number type is Types.Custom /// - public const uint Label = (uint)PropertyIds.NumberLabel; + public const uint Label = (uint)Property.Id.NumberLabel; /// /// The number is default number or not /// - public const uint IsDefault = (uint)PropertyIds.NumberIsDefault; + public const uint IsDefault = (uint)Property.Id.NumberIsDefault; /// /// Number /// - public const uint NumberData = (uint)PropertyIds.NumberNumber; + public const uint NumberData = (uint)Property.Id.NumberNumber; /// /// You can only use this property for search filter. /// - public const uint NormalizedNumber = (uint)PropertyIds.NumberNormalizedNumber; + public const uint NormalizedNumber = (uint)Property.Id.NumberNormalizedNumber; /// /// You can only use this property for search filter. /// - public const uint CleanedNumber = (uint)PropertyIds.NumberCleanedNumber; + public const uint CleanedNumber = (uint)Property.Id.NumberCleanedNumber; /// /// You can only use this property for search filter. /// - public const uint NumberFilter = (uint)PropertyIds.NumberNumberFilter; + public const uint NumberFilter = (uint)Property.Id.NumberNumberFilter; /// /// Enumeration for number type. /// + [Flags] public enum Types { /// @@ -1110,7 +1169,7 @@ namespace Tizen.Pims.Contacts } /// - /// Describes properies of a Email record. + /// Describes properties of a Email record. /// public static class Email { @@ -1121,31 +1180,32 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the email /// - public const uint Id = (uint)PropertyIds.EmailId; + public const uint Id = (uint)Property.Id.EmailId; /// /// Contact ID that the email belongs to /// - public const uint ContactId = (uint)PropertyIds.EmailContactId; + public const uint ContactId = (uint)Property.Id.EmailContactId; /// /// Email type, refer to the Types /// - public const uint Type = (uint)PropertyIds.EmailType; + public const uint Type = (uint)Property.Id.EmailType; /// /// Custom mail type label, when the email type is Types.Custom /// - public const uint Label = (uint)PropertyIds.EmailLabel; + public const uint Label = (uint)Property.Id.EmailLabel; /// /// The email is default email or not /// - public const uint IsDefault = (uint)PropertyIds.EmailIsDefault; + public const uint IsDefault = (uint)Property.Id.EmailIsDefault; /// /// Email address /// - public const uint Address = (uint)PropertyIds.EmailEmail; + public const uint Address = (uint)Property.Id.EmailEmail; /// /// Enumeration for Contact email type. /// + [Flags] public enum Types { /// @@ -1172,7 +1232,7 @@ namespace Tizen.Pims.Contacts } /// - /// Describes properies of a Address record. + /// Describes properties of a Address record. /// public static class Address { @@ -1183,55 +1243,56 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the address /// - public const uint Id = (uint)PropertyIds.AddressId; + public const uint Id = (uint)Property.Id.AddressId; /// /// Contact ID that the address belongs to /// - public const uint ContactId = (uint)PropertyIds.AddressContactId; + public const uint ContactId = (uint)Property.Id.AddressContactId; /// /// Address type, refer to the Types /// - public const uint Type = (uint)PropertyIds.AddressType; + public const uint Type = (uint)Property.Id.AddressType; /// /// Address type label, when the address type is Types.Custom /// - public const uint Label = (uint)PropertyIds.AddressLabel; + public const uint Label = (uint)Property.Id.AddressLabel; /// /// Post office box /// - public const uint Postbox = (uint)PropertyIds.AddressPostbox; + public const uint Postbox = (uint)Property.Id.AddressPostbox; /// /// Postal code /// - public const uint PostalCode = (uint)PropertyIds.AddressPostalCode; + public const uint PostalCode = (uint)Property.Id.AddressPostalCode; /// /// Region /// - public const uint Region = (uint)PropertyIds.AddressRegion; + public const uint Region = (uint)Property.Id.AddressRegion; /// /// Locality /// - public const uint Locality = (uint)PropertyIds.AddressLocality; + public const uint Locality = (uint)Property.Id.AddressLocality; /// /// Street /// - public const uint Street = (uint)PropertyIds.AddressStreet; + public const uint Street = (uint)Property.Id.AddressStreet; /// /// Country /// - public const uint Country = (uint)PropertyIds.AddressCountry; + public const uint Country = (uint)Property.Id.AddressCountry; /// /// Extended address /// - public const uint Extended = (uint)PropertyIds.AddressExtended; + public const uint Extended = (uint)Property.Id.AddressExtended; /// /// The address is default or not /// - public const uint IsDefault = (uint)PropertyIds.AddressIsDefault; + public const uint IsDefault = (uint)Property.Id.AddressIsDefault; /// /// Enumeration for Contact address type. /// + [Flags] public enum Types { /// @@ -1270,7 +1331,7 @@ namespace Tizen.Pims.Contacts } /// - /// Describes properies of a Note record. + /// Describes properties of a Note record. /// public static class Note { @@ -1281,21 +1342,21 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the note /// - public const uint Id = (uint)PropertyIds.NoteId; + public const uint Id = (uint)Property.Id.NoteId; /// /// Contact ID that the note belongs to /// - public const uint ContactId = (uint)PropertyIds.NoteContactId; + public const uint ContactId = (uint)Property.Id.NoteContactId; /// /// Note contents /// - public const uint Contents = (uint)PropertyIds.NoteNote; + public const uint Contents = (uint)Property.Id.NoteNote; } /// - /// Describes properies of a Url record. + /// Describes properties of a URL record. /// - public static class Url + public static class URL { /// /// Identifier of this contacts URL view @@ -1304,28 +1365,28 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the URL /// - public const uint Id = (uint)PropertyIds.UrlId; + public const uint Id = (uint)Property.Id.URLId; /// /// Contact ID that the URL belongs to /// - public const uint ContactId = (uint)PropertyIds.UrlContactId; + public const uint ContactId = (uint)Property.Id.URLContactId; /// - /// URL type, refer to the Types + /// URL type, refer to the TypeValue /// - public const uint Type = (uint)PropertyIds.UrlType; + public const uint Type = (uint)Property.Id.URLType; /// - /// Custom URL type label, when the URL type is Types.Custom + /// Custom URL type label, when the URL type is TypeValue.Custom /// - public const uint Label = (uint)PropertyIds.UrlLabel; + public const uint Label = (uint)Property.Id.URLLabel; /// /// URL /// - public const uint UrlData = (uint)PropertyIds.UrlUrl; + public const uint URLData = (uint)Property.Id.URLData; /// /// Enumeration for Contact URL type. /// - public enum Types + public enum TypeValue { /// /// Other URL type @@ -1347,8 +1408,9 @@ namespace Tizen.Pims.Contacts } /// - /// Describes properies of a Event record. + /// Describes properties of a Event record. /// + [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords")] public static class Event { /// @@ -1358,32 +1420,32 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the event /// - public const uint Id = (uint)PropertyIds.EventId; + public const uint Id = (uint)Property.Id.EventId; /// /// Contact ID that the event belongs to /// - public const uint ContactId = (uint)PropertyIds.EventContactId; + public const uint ContactId = (uint)Property.Id.EventContactId; /// - /// Event type, refer to the Types + /// Event type, refer to the TypeValue /// - public const uint Type = (uint)PropertyIds.EventType; + public const uint Type = (uint)Property.Id.EventType; /// - /// Custom event type label, when the event type is Types.Custom + /// Custom event type label, when the event type is TypeValue.Custom /// - public const uint Label = (uint)PropertyIds.EventLabel; + public const uint Label = (uint)Property.Id.EventLabel; /// /// Event date(YYYYMMDD). e.g. 2014/1/1 : 20140101. Even if the calendar_type is set as CONTACTS_EVENT_CALENDAR_TYPE_CHINESE, you SHOULD set Gregorian date /// - public const uint Date = (uint)PropertyIds.EventDate; + public const uint Date = (uint)Property.Id.EventDate; /// - /// Calendar type, refer to the CalendarTypes + /// Calendar type, refer to the CalendarType /// - public const uint IsLeapMonth = (uint)PropertyIds.EventIsLeapMonth; + public const uint IsLeapMonth = (uint)Property.Id.EventIsLeapMonth; /// /// Enumeration for Contact event type. /// - public enum Types + public enum TypeValue { /// /// Other event type @@ -1406,21 +1468,21 @@ namespace Tizen.Pims.Contacts /// /// Enumeration for Contact event calendar type. /// - public enum CalendarTypes + public enum CalendarType { /// /// Gregorian calendar /// Gregorian, /// - /// Chinese calenadr + /// Chinese calendar /// Chinese } } /// - /// Describes properies of a Relationship record. + /// Describes properties of a Relationship record. /// public static class Relationship { @@ -1431,28 +1493,28 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the relationship /// - public const uint Id = (uint)PropertyIds.RelationshipId; + public const uint Id = (uint)Property.Id.RelationshipId; /// /// Contact ID that the relationship belongs to /// - public const uint ContactId = (uint)PropertyIds.RelationshipContactId; + public const uint ContactId = (uint)Property.Id.RelationshipContactId; /// - /// Relationship type, refer to the Types + /// Relationship type, refer to the TypeValue /// - public const uint Type = (uint)PropertyIds.RelationshipType; + public const uint Type = (uint)Property.Id.RelationshipType; /// - /// Custom relationship type label, when the relationship type is Types.Custom + /// Custom relationship type label, when the relationship type is TypeValue.Custom /// - public const uint Label = (uint)PropertyIds.RelationshipLabel; + public const uint Label = (uint)Property.Id.RelationshipLabel; /// /// Selected contact name that the relationship belongs to /// - public const uint Name = (uint)PropertyIds.RelationshipName; + public const uint Name = (uint)Property.Id.RelationshipName; /// /// Enumeration for Contact relationship type. /// - public enum Types + public enum TypeValue { /// /// Other relationship type @@ -1522,7 +1584,7 @@ namespace Tizen.Pims.Contacts } /// - /// Describes properies of a Image record. + /// Describes properties of a Image record. /// public static class Image { @@ -1533,32 +1595,32 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the image /// - public const uint Id = (uint)PropertyIds.ImageId; + public const uint Id = (uint)Property.Id.ImageId; /// /// Contact ID that the image belongs to /// - public const uint ContactId = (uint)PropertyIds.ImageContactId; + public const uint ContactId = (uint)Property.Id.ImageContactId; /// - /// Image type, refer to the Types + /// Image type, refer to the TypeValue /// - public const uint Type = (uint)PropertyIds.ImageType; + public const uint Type = (uint)Property.Id.ImageType; /// - /// Custom image type label, when the image type is Types.Custom + /// Custom image type label, when the image type is TypeValue.Custom /// - public const uint Label = (uint)PropertyIds.ImageLabel; + public const uint Label = (uint)Property.Id.ImageLabel; /// /// Image thumbnail path /// - public const uint Path = (uint)PropertyIds.ImagePath; + public const uint Path = (uint)Property.Id.ImagePath; /// /// The Image is default or not /// - public const uint IsDefault = (uint)PropertyIds.ImageIsDefault; + public const uint IsDefault = (uint)Property.Id.ImageIsDefault; /// /// Enumeration for Contact image type. /// - public enum Types + public enum TypeValue { /// /// Other type @@ -1572,7 +1634,7 @@ namespace Tizen.Pims.Contacts } /// - /// Describes properies of a Company record. + /// Describes properties of a Company record. /// public static class Company { @@ -1583,69 +1645,78 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the company /// - public const uint Id = (uint)PropertyIds.CompanyId; + public const uint Id = (uint)Property.Id.CompanyId; /// /// Contact ID that the company belongs to /// - public const uint ContactId = (uint)PropertyIds.CompanyContactId; + public const uint ContactId = (uint)Property.Id.CompanyContactId; /// - /// Company type, refer to the Types + /// Company type, refer to the TypeValue /// - public const uint Type = (uint)PropertyIds.CompanyType; + public const uint Type = (uint)Property.Id.CompanyType; /// - /// Custom company type label, when the company type is Types.Custom + /// Custom company type label, when the company type is TypeValue.Custom /// - public const uint Label = (uint)PropertyIds.CompanyLabel; + public const uint Label = (uint)Property.Id.CompanyLabel; /// /// Company name /// - public const uint Name = (uint)PropertyIds.CompanyName; + public const uint Name = (uint)Property.Id.CompanyName; /// /// Department /// - public const uint Department = (uint)PropertyIds.CompanyDepartment; + public const uint Department = (uint)Property.Id.CompanyDepartment; /// /// Job title /// - public const uint JobTitle = (uint)PropertyIds.CompanyJobTitle; + public const uint JobTitle = (uint)Property.Id.CompanyJobTitle; /// /// Assistant name /// - public const uint AssistantName = (uint)PropertyIds.CompanyAssistantName; + public const uint AssistantName = (uint)Property.Id.CompanyAssistantName; /// /// Role /// - public const uint Role = (uint)PropertyIds.CompanyRole; + public const uint Role = (uint)Property.Id.CompanyRole; /// /// Company logo image file path /// - public const uint Logo = (uint)PropertyIds.CompanyLogo; + public const uint Logo = (uint)Property.Id.CompanyLogo; /// /// Company location /// - public const uint Location = (uint)PropertyIds.CompanyLocation; + public const uint Location = (uint)Property.Id.CompanyLocation; /// /// Description /// - public const uint Description = (uint)PropertyIds.CompanyDescription; + public const uint Description = (uint)Property.Id.CompanyDescription; /// /// Pronounce the company name /// - public const uint PhoneticName = (uint)PropertyIds.CompanyPhoneticName; + public const uint PhoneticName = (uint)Property.Id.CompanyPhoneticName; /// /// Enumeration for Contact company type. /// - public enum Types + public enum TypeValue { - Other = 0, /**< Other company type */ - Custom = 1 << 0, /**< Custom company type */ - Work = 1 << 1, /**< Work company type */ + /// + /// Other type + /// + Other = 0, + /// + /// Custom type + /// + Custom = 1 << 0, + /// + /// Work type + /// + Work = 1 << 1, } } /// - /// Describes properies of a Nickname record. + /// Describes properties of a Nickname record. /// public static class Nickname { @@ -1656,19 +1727,19 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the nickname /// - public const uint Id = (uint)PropertyIds.NicknameId; + public const uint Id = (uint)Property.Id.NicknameId; /// /// Contact ID that the nickname belongs to /// - public const uint ContactId = (uint)PropertyIds.NicknameContactId; + public const uint ContactId = (uint)Property.Id.NicknameContactId; /// /// Nickname /// - public const uint Name = (uint)PropertyIds.NicknameName; + public const uint Name = (uint)Property.Id.NicknameName; } /// - /// Describes properies of a Messenger record. + /// Describes properties of a Messenger record. /// public static class Messenger { @@ -1679,28 +1750,28 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the messenger /// - public const uint Id = (uint)PropertyIds.MessengerId; + public const uint Id = (uint)Property.Id.MessengerId; /// /// Contact ID that the messenger belongs to /// - public const uint ContactId = (uint)PropertyIds.MessengerContactId; + public const uint ContactId = (uint)Property.Id.MessengerContactId; /// - /// Messenger type, refer to the Types + /// Messenger type, refer to the TypeValue /// - public const uint Type = (uint)PropertyIds.MessengerType; + public const uint Type = (uint)Property.Id.MessengerType; /// - /// Custom messenger type label, when the messenger type is Types.Custom + /// Custom messenger type label, when the messenger type is TypeValue.Custom /// - public const uint Label = (uint)PropertyIds.MessengerLabel; + public const uint Label = (uint)Property.Id.MessengerLabel; /// /// Messenger ID (email address or email ID...) /// - public const uint IMId = (uint)PropertyIds.MessengerIMId; + public const uint IMId = (uint)Property.Id.MessengerIMId; /// /// Enumeration for Contact messenger type. /// - public enum Types + public enum TypeValue { /// /// Other messenger type @@ -1754,8 +1825,9 @@ namespace Tizen.Pims.Contacts } /// - /// Describes properies of a Profile record. + /// Describes properties of a Profile record. /// + [SuppressMessage("Microsoft.Naming", "CA1724:TypeNamesShouldNotMatchNamespaces")] public static class Profile { /// @@ -1765,51 +1837,51 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of profile /// - public const uint Id = (uint)PropertyIds.ProfileId; + public const uint Id = (uint)Property.Id.ProfileId; /// /// Contacts ID that the profile belongs to /// - public const uint ContactId = (uint)PropertyIds.ProfileContactId; + public const uint ContactId = (uint)Property.Id.ProfileContactId; /// /// Unique identifier /// - public const uint Uid = (uint)PropertyIds.ProfileUid; + public const uint UId = (uint)Property.Id.ProfileUId; /// /// Profile contents /// - public const uint Text = (uint)PropertyIds.ProfileText; + public const uint Text = (uint)Property.Id.ProfileText; /// /// Priority to display the profile /// - public const uint Order = (uint)PropertyIds.ProfileOrder; + public const uint Order = (uint)Property.Id.ProfileOrder; /// /// Data for app_control_set_operation /// - public const uint ServiceOperation = (uint)PropertyIds.ProfileServiceOperation; + public const uint ServiceOperation = (uint)Property.Id.ProfileServiceOperation; /// /// Data for app_control_set_mime /// - public const uint Mime = (uint)PropertyIds.ProfileMIME; + public const uint Mime = (uint)Property.Id.ProfileMIME; /// /// Data for app_control_set_app_id /// - public const uint AppId = (uint)PropertyIds.ProfileAppId; + public const uint AppId = (uint)Property.Id.ProfileAppId; /// /// Data for app_control_set_uri /// - public const uint ProfileUri = (uint)PropertyIds.ProfileUri; + public const uint ProfileUri = (uint)Property.Id.ProfileUri; /// /// Data for app_control_set_category /// - public const uint Category = (uint)PropertyIds.ProfileCategory; + public const uint Category = (uint)Property.Id.ProfileCategory; /// /// It includes "key:value,key:value," pairs. You should parse it. And you must base64 encode each key and value /// - public const uint ExtraData = (uint)PropertyIds.ProfileExtraData; + public const uint ExtraData = (uint)Property.Id.ProfileExtraData; } /// - /// Describes properies of a Sip record. + /// Describes properties of a Sip record. /// public static class Sip { @@ -1820,28 +1892,28 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the sip /// - public const uint Id = (uint)PropertyIds.SipId; + public const uint Id = (uint)Property.Id.SipId; /// /// Contact ID that the sip belongs to /// - public const uint ContactId = (uint)PropertyIds.SipContactId; + public const uint ContactId = (uint)Property.Id.SipContactId; /// /// SIP address /// - public const uint Address = (uint)PropertyIds.SipAddress; + public const uint Address = (uint)Property.Id.SipAddress; /// - /// sip type, refer to the Types + /// sip type, refer to the TypeValue /// - public const uint Type = (uint)PropertyIds.SipType; + public const uint Type = (uint)Property.Id.SipType; /// - /// Custom sip type label, when the sip type is Types.Custom + /// Custom sip type label, when the sip type is TypeValue.Custom /// - public const uint Label = (uint)PropertyIds.SipLabel; + public const uint Label = (uint)Property.Id.SipLabel; /// /// Enumeration for Contact SIP type. /// - public enum Types + public enum TypeValue { /// /// Other SIP type @@ -1863,7 +1935,7 @@ namespace Tizen.Pims.Contacts } /// - /// Describes properies of a Extension record. + /// Describes properties of a Extension record. /// public static class Extension { @@ -1874,63 +1946,63 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the contact extension /// - public const uint Id = (uint)PropertyIds.ExtensionId; + public const uint Id = (uint)Property.Id.ExtensionId; /// /// Contact ID that the contact extension belongs to /// - public const uint ContactId = (uint)PropertyIds.ExtensionContactId; + public const uint ContactId = (uint)Property.Id.ExtensionContactId; /// /// The extra child record format for non-provided from contacts-service /// - public const uint Data1 = (uint)PropertyIds.ExtensionData1; + public const uint Data1 = (uint)Property.Id.ExtensionData1; /// /// The extra child record format for non-provided from contacts-service /// - public const uint Data2 = (uint)PropertyIds.ExtensionData2; + public const uint Data2 = (uint)Property.Id.ExtensionData2; /// /// The extra child record format for non-provided from contacts-service /// - public const uint Data3 = (uint)PropertyIds.ExtensionData3; + public const uint Data3 = (uint)Property.Id.ExtensionData3; /// /// The extra child record format for non-provided from contacts-service /// - public const uint Data4 = (uint)PropertyIds.ExtensionData4; + public const uint Data4 = (uint)Property.Id.ExtensionData4; /// /// The extra child record format for non-provided from contacts-service /// - public const uint Data5 = (uint)PropertyIds.ExtensionData5; + public const uint Data5 = (uint)Property.Id.ExtensionData5; /// /// The extra child record format for non-provided from contacts-service /// - public const uint Data6 = (uint)PropertyIds.ExtensionData6; + public const uint Data6 = (uint)Property.Id.ExtensionData6; /// /// The extra child record format for non-provided from contacts-service /// - public const uint Data7 = (uint)PropertyIds.ExtensionData7; + public const uint Data7 = (uint)Property.Id.ExtensionData7; /// /// The extra child record format for non-provided from contacts-service /// - public const uint Data8 = (uint)PropertyIds.ExtensionData8; + public const uint Data8 = (uint)Property.Id.ExtensionData8; /// /// The extra child record format for non-provided from contacts-service /// - public const uint Data9 = (uint)PropertyIds.ExtensionData9; + public const uint Data9 = (uint)Property.Id.ExtensionData9; /// /// The extra child record format for non-provided from contacts-service /// - public const uint Data10 = (uint)PropertyIds.ExtensionData10; + public const uint Data10 = (uint)Property.Id.ExtensionData10; /// /// The extra child record format for non-provided from contacts-service /// - public const uint Data11 = (uint)PropertyIds.ExtensionData11; + public const uint Data11 = (uint)Property.Id.ExtensionData11; /// /// The extra child record format for non-provided from contacts-service /// - public const uint Data12 = (uint)PropertyIds.ExtensionData12; + public const uint Data12 = (uint)Property.Id.ExtensionData12; } /// - /// Describes properies of a Group relation record. + /// Describes properties of a Group relation record. /// public static class GroupRelation { @@ -1941,23 +2013,23 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the group relation (can not be used as filter) /// - public const uint Id = (uint)PropertyIds.GroupRelationId; + public const uint Id = (uint)Property.Id.GroupRelationId; /// /// DB record ID of the group /// - public const uint GroupId = (uint)PropertyIds.GroupRelationGroupId; + public const uint GroupId = (uint)Property.Id.GroupRelationGroupId; /// /// DB record ID of the contact /// - public const uint ContactId = (uint)PropertyIds.GroupRelationContactId; + public const uint ContactId = (uint)Property.Id.GroupRelationContactId; /// /// Group name /// - public const uint Name = (uint)PropertyIds.GroupRelationGroupName; + public const uint Name = (uint)Property.Id.GroupRelationGroupName; } /// - /// Describes properies of a Speed dial record. + /// Describes properties of a Speed dial record. /// public static class SpeedDial { @@ -1968,51 +2040,51 @@ namespace Tizen.Pims.Contacts /// /// Stored speed dial number /// - public const uint SpeedDialNumber = (uint)PropertyIds.SpeedDialDialNumber; + public const uint SpeedDialNumber = (uint)Property.Id.SpeedDialDialNumber; /// /// Number ID that the speed dial belongs to /// - public const uint NumberId = (uint)PropertyIds.SpeedDialNumberId; + public const uint NumberId = (uint)Property.Id.SpeedDialNumberId; /// /// Contact number of specified speed dial /// - public const uint Number = (uint)PropertyIds.SpeedDialNumber; + public const uint Number = (uint)Property.Id.SpeedDialNumber; /// /// Contact number label of specified speed dial, when the number type is Number.Types.Custom /// - public const uint NumberLabel = (uint)PropertyIds.SpeedDialNumberLabel; + public const uint NumberLabel = (uint)Property.Id.SpeedDialNumberLabel; /// /// Contact number type, refer to the Number.Types /// - public const uint NumberType = (uint)PropertyIds.SpeedDialNumberType; + public const uint NumberType = (uint)Property.Id.SpeedDialNumberType; /// /// Person ID that the speed dial belongs to /// - public const uint PersonId = (uint)PropertyIds.SpeedDialPersonId; + public const uint PersonId = (uint)Property.Id.SpeedDialPersonId; /// /// Display name that the speed dial belongs to /// - public const uint DisplayName = (uint)PropertyIds.SpeedDialDisplayName; + public const uint DisplayName = (uint)Property.Id.SpeedDialDisplayName; /// /// Image thumbnail path that the speed dial belongs to /// - public const uint ThumbnailPath = (uint)PropertyIds.SpeedDialThumbnail; + public const uint ThumbnailPath = (uint)Property.Id.SpeedDialThumbnail; /// /// You can only use this property for search filter /// - public const uint NormalizedNumber = (uint)PropertyIds.SpeedDialNormalizedNumber; + public const uint NormalizedNumber = (uint)Property.Id.SpeedDialNormalizedNumber; /// /// You can only use this property for search filter /// - public const uint CleanedNumber = (uint)PropertyIds.SpeedDialCleanedNumber; + public const uint CleanedNumber = (uint)Property.Id.SpeedDialCleanedNumber; /// - /// If you add filter with this property, the string will be normalized as minmatch length internally and the match rule will be applied ContactsFilter.StringMatchType.Exactly + /// If you add filter with this property, the string will be normalized as minimal match length internally and the match rule will be applied ContactsFilter.StringMatchType.Exactly /// - public const uint NumberFilter = (uint)PropertyIds.SpeedDialNumberFilter; + public const uint NumberFilter = (uint)Property.Id.SpeedDialNumberFilter; } /// - /// Describes properies of a Phone log record. + /// Describes properties of a Phone log record. /// public static class PhoneLog { @@ -2023,52 +2095,52 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of phone log /// - public const uint Id = (uint)PropertyIds.PhonelogId; + public const uint Id = (uint)Property.Id.PhonelogId; /// /// Person ID that the phone log belongs to /// - public const uint PersonId = (uint)PropertyIds.PhonelogPersonId; + public const uint PersonId = (uint)Property.Id.PhonelogPersonId; /// /// Number or Email that the phone log displays /// - public const uint Address = (uint)PropertyIds.PhonelogAddress; + public const uint Address = (uint)Property.Id.PhonelogAddress; /// /// Call end time. The value means number of seconds since 1970-01-01 00:00:00 (UTC) /// - public const uint LogTime = (uint)PropertyIds.PhonelogLogTime; + public const uint LogTime = (uint)Property.Id.PhonelogLogTime; /// - /// Log type, refer to the Types + /// Log type, refer to the Type /// - public const uint LogType = (uint)PropertyIds.PhonelogLogType; + public const uint LogType = (uint)Property.Id.PhonelogLogType; /// /// You can set the related integer data (e.g. message_id, email_id or duration(seconds) of call) /// - public const uint ExtraData1 = (uint)PropertyIds.PhonelogExtraData1; + public const uint ExtraData1 = (uint)Property.Id.PhonelogExtraData1; /// /// You can set the related string data (e.g. short message, subject) /// - public const uint ExtraData2 = (uint)PropertyIds.PhonelogExtraData2; + public const uint ExtraData2 = (uint)Property.Id.PhonelogExtraData2; /// /// You can only use this property for search filter /// - public const uint NormalizedAddress = (uint)PropertyIds.PhonelogNormalizedAddress; + public const uint NormalizedAddress = (uint)Property.Id.PhonelogNormalizedAddress; /// /// You can only use this property for search filter /// - public const uint CleanedAddress = (uint)PropertyIds.PhonelogCleanedAddress; + public const uint CleanedAddress = (uint)Property.Id.PhonelogCleanedAddress; /// /// You can only use this property for search filter /// - public const uint AddressFilter = (uint)PropertyIds.PhonelogAddressFilter; + public const uint AddressFilter = (uint)Property.Id.PhonelogAddressFilter; /// - /// You can set the related SIM slot number. sim_slot_no 0 means first SIM card, sim_slot_no 1 means second SIM. It is same with handle index of telephony handle list. Refer to the telephony_init() + /// You can set the related SIM slot number. SimSlotNo 0 means first SIM card, SimSlotNo 1 means second SIM. /// - public const uint SimSlotNo = (uint)PropertyIds.PhonelogSIMSlotNo; + public const uint SimSlotNo = (uint)Property.Id.PhonelogSIMSlotNo; /// /// Enumeration for Phone log type. /// - public enum Types + public enum Type { /// /// None @@ -2105,7 +2177,7 @@ namespace Tizen.Pims.Contacts /// /// Confirmed missed video call /// - VidoeMissedSeen = 8, + VideoMissedSeen = 8, /// /// Rejected call /// @@ -2125,27 +2197,27 @@ namespace Tizen.Pims.Contacts /// /// Incoming MMS /// - MmsIncoming = 101, + MMSIncoming = 101, /// /// Outgoing MMS /// - MmsOutgoing = 102, + MMSOutgoing = 102, /// /// Incoming SMS /// - SmsIncoming = 103, + SMSIncoming = 103, /// /// Outgoing SMS /// - SmsOutgoing = 104, + SMSOutgoing = 104, /// /// Blocked SMS /// - SmsBlocked = 105, + SMSBlocked = 105, /// /// Blocked MMS /// - MmsBlocked = 106, + MMSBlocked = 106, /// /// Received email /// @@ -2159,7 +2231,7 @@ namespace Tizen.Pims.Contacts } /// - /// Describes properies of a Contact updated information record. + /// Describes properties of a Contact updated information record. /// /// Read only view public static class ContactUpdatedInfo @@ -2171,27 +2243,27 @@ namespace Tizen.Pims.Contacts /// /// Updated contact ID /// - public const uint ContactId = (uint)PropertyIds.UpdateInfoId; + public const uint ContactId = (uint)Property.Id.UpdateInfoId; /// - /// Addressbook ID that the updated contact belongs to + /// AddressBook ID that the updated contact belongs to /// - public const uint AddressbookId = (uint)PropertyIds.UpdateInfoAddressbookId; + public const uint AddressBookId = (uint)Property.Id.UpdateInfoAddressBookId; /// - /// Contact change type, refer to the ContactsViews.ChangeTypes + /// Contact change type, refer to the ContactsViews.ChangeType /// - public const uint Type = (uint)PropertyIds.UpdateInfoType; + public const uint Type = (uint)Property.Id.UpdateInfoType; /// /// Updated version /// - public const uint Version = (uint)PropertyIds.UpdateInfoVersion; + public const uint Version = (uint)Property.Id.UpdateInfoVersion; /// /// Contact image is changed or not /// - public const uint ImageChanged = (uint)PropertyIds.UpdateInfoImageChanged; + public const uint ImageChanged = (uint)Property.Id.UpdateInfoImageChanged; } /// - /// Describes properies of a My profile updated information record. + /// Describes properties of a My profile updated information record. /// /// Read only view public static class MyProfileUpdatedInfo @@ -2203,19 +2275,19 @@ namespace Tizen.Pims.Contacts /// /// Address book ID that the updated my profile belongs to /// - public const uint AddressbookId = (uint)PropertyIds.UpdateInfoAddressbookId; + public const uint AddressBookId = (uint)Property.Id.UpdateInfoAddressBookId; /// - /// MyProfile change type, refer to the ContactsViews.ChangeTypes + /// MyProfile change type, refer to the ContactsViews.ChangeType /// - public const uint LastChangedType = (uint)PropertyIds.UpdateInfoLastChangedType; + public const uint LastChangedType = (uint)Property.Id.UpdateInfoLastChangedType; /// /// Updated version /// - public const uint Version = (uint)PropertyIds.UpdateInfoVersion; + public const uint Version = (uint)Property.Id.UpdateInfoVersion; } /// - /// Describes properies of a Group updated information record. + /// Describes properties of a Group updated information record. /// /// Read only view public static class GroupUpdatedInfo @@ -2227,23 +2299,23 @@ namespace Tizen.Pims.Contacts /// /// Updated group ID /// - public const uint GroupId = (uint)PropertyIds.UpdateInfoId; + public const uint GroupId = (uint)Property.Id.UpdateInfoId; /// /// Address book ID that the updated group belongs to /// - public const uint AddressbookId = (uint)PropertyIds.UpdateInfoAddressbookId; + public const uint AddressBookId = (uint)Property.Id.UpdateInfoAddressBookId; /// - /// Group change type, refer to the ContactsViews.ChangeTypes + /// Group change type, refer to the ContactsViews.ChangeType /// - public const uint Type = (uint)PropertyIds.UpdateInfoType; + public const uint Type = (uint)Property.Id.UpdateInfoType; /// /// Updated version /// - public const uint Version = (uint)PropertyIds.UpdateInfoVersion; + public const uint Version = (uint)Property.Id.UpdateInfoVersion; } /// - /// Describes properies of a Group Member updated information record. + /// Describes properties of a Group Member updated information record. /// /// Read only view public static class GroupMemberUpdatedInfo @@ -2255,19 +2327,19 @@ namespace Tizen.Pims.Contacts /// /// Updated group ID /// - public const uint GroupId = (uint)PropertyIds.UpdateInfoId; + public const uint GroupId = (uint)Property.Id.UpdateInfoId; /// /// Address book ID that the updated group belongs to /// - public const uint AddressbookId = (uint)PropertyIds.UpdateInfoAddressbookId; + public const uint AddressBookId = (uint)Property.Id.UpdateInfoAddressBookId; /// /// Updated version /// - public const uint Version = (uint)PropertyIds.UpdateInfoVersion; + public const uint Version = (uint)Property.Id.UpdateInfoVersion; } /// - /// Describes properies of a Relation updated information record. + /// Describes properties of a Relation updated information record. /// /// Read only view public static class GroupRelationUpdatedInfo @@ -2279,27 +2351,27 @@ namespace Tizen.Pims.Contacts /// /// Group ID of group relation /// - public const uint GroupId = (uint)PropertyIds.GroupId; + public const uint GroupId = (uint)Property.Id.GroupId; /// /// Contact ID of the updated group relation /// - public const uint ContactId = (uint)PropertyIds.ContactId; + public const uint ContactId = (uint)Property.Id.ContactId; /// /// Address book ID of contact that the updated group relation /// - public const uint AddressbookId = (uint)PropertyIds.AddressbookId; + public const uint AddressBookId = (uint)Property.Id.AddressBookId; /// - /// Group relation change type, refer to the ContactsViews.ChangeTypes + /// Group relation change type, refer to the ContactsViews.ChangeType /// - public const uint Type = (uint)PropertyIds.UpdateInfoType; + public const uint Type = (uint)Property.Id.UpdateInfoType; /// /// Updated version /// - public const uint Version = (uint)PropertyIds.UpdateInfoVersion; + public const uint Version = (uint)Property.Id.UpdateInfoVersion; } /// - /// Describes properies of a Person & Contact record. + /// Describes properties of a PersonContact record. /// /// Read only view public static class PersonContact @@ -2311,87 +2383,87 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the person /// - public const uint PersonId = (uint)PropertyIds.PersonId; + public const uint PersonId = (uint)Property.Id.PersonId; /// /// Display name of the person /// - public const uint DisplayName = (uint)PropertyIds.PersonDisplayName; + public const uint DisplayName = (uint)Property.Id.PersonDisplayName; /// - /// The first character of first string for grouping. This is normalized using icu (projection) + /// The first character of first string for grouping. This is normalized using ICU (projection) /// - public const uint DisplayNameIndex = (uint)PropertyIds.PersonDisplayNameIndex; + public const uint DisplayNameIndex = (uint)Property.Id.PersonDisplayNameIndex; /// /// Display contact ID that the person belongs to (projection) /// - public const uint DisplayContactId = (uint)PropertyIds.PersonDisplayContactId; + public const uint DisplayContactId = (uint)Property.Id.PersonDisplayContactId; /// /// Ringtone path of the person (projection) /// - public const uint RingtonePath = (uint)PropertyIds.PersonRingtone; + public const uint RingtonePath = (uint)Property.Id.PersonRingtone; /// /// Image thumbnail path of the person (projection) /// - public const uint ThumbnailPath = (uint)PropertyIds.PersonThumbnail; + public const uint ThumbnailPath = (uint)Property.Id.PersonThumbnail; /// /// Vibration path of the person (projection) /// - public const uint Vibration = (uint)PropertyIds.PersonVibration; + public const uint Vibration = (uint)Property.Id.PersonVibration; /// /// Message alert path of the person (projection) /// - public const uint MessageAlert = (uint)PropertyIds.PersonMessageAlert; + public const uint MessageAlert = (uint)Property.Id.PersonMessageAlert; /// /// Status of social account (projection) /// - public const uint Status = (uint)PropertyIds.PersonStatus; + public const uint Status = (uint)Property.Id.PersonStatus; /// /// The person is favorite or not /// - public const uint IsFavorite = (uint)PropertyIds.PersonIsFavorite; + public const uint IsFavorite = (uint)Property.Id.PersonIsFavorite; /// /// Link count of contact records (projection) /// - public const uint LinkCount = (uint)PropertyIds.PersonLinkCount; + public const uint LinkCount = (uint)Property.Id.PersonLinkCount; /// /// Contact ID that the person belongs to /// - public const uint ContactId = (uint)PropertyIds.ContactId; + public const uint ContactId = (uint)Property.Id.ContactId; /// - /// Addressbook IDs that the person belongs to (projection) + /// AddressBook IDs that the person belongs to (projection) /// - public const uint AddressbookIds = (uint)PropertyIds.PersonAddressbookIds; + public const uint AddressBookIds = (uint)Property.Id.PersonAddressBookIds; /// /// The person has phone number or not /// - public const uint HasPhoneNumber = (uint)PropertyIds.PersonHasPhoneNumber; + public const uint HasPhoneNumber = (uint)Property.Id.PersonHasPhoneNumber; /// /// The person has email or not /// - public const uint HasEmail = (uint)PropertyIds.PersonHasEmail; + public const uint HasEmail = (uint)Property.Id.PersonHasEmail; /// - /// Addressbook ID that the person belongs to + /// AddressBook ID that the person belongs to /// - public const uint AddressbookId = (uint)PropertyIds.ContactAddressbookId; + public const uint AddressBookId = (uint)Property.Id.ContactAddressBookId; /// - /// Addressbook mode, refer to the Addressbook.Modes + /// AddressBook mode, refer to the AddressBook.Mode /// - public const uint AddressbookMode = (uint)PropertyIds.AddressbookMode; + public const uint AddressBookMode = (uint)Property.Id.AddressBookMode; /// - /// Addressbook name that the person belongs to + /// AddressBook name that the person belongs to /// - public const uint AddressbookName = (uint)PropertyIds.AddressbookName; + public const uint AddressBookName = (uint)Property.Id.AddressBookName; /// - /// kerword matched data type, refer to the Contact.DataTypes + /// keyword matched data type, refer to the Contact.DataType /// - public const uint SnippetType = (uint)PropertyIds.PersonSnippetType; + public const uint SnippetType = (uint)Property.Id.PersonSnippetType; /// /// keyword matched data string /// - public const uint SnippetString = (uint)PropertyIds.PersonSnippetString; + public const uint SnippetString = (uint)Property.Id.PersonSnippetString; }; /// - /// Describes properies of a Person & Number record. + /// Describes properties of a PersonNumber record. /// /// Read only view public static class PersonNumber @@ -2403,91 +2475,91 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the person /// - public const uint PersonId = (uint)PropertyIds.PersonId; + public const uint PersonId = (uint)Property.Id.PersonId; /// /// Display name of the person /// - public const uint DisplayName = (uint)PropertyIds.PersonDisplayName; + public const uint DisplayName = (uint)Property.Id.PersonDisplayName; /// - /// The first character of first string for grouping. This is normalized using icu (projection) + /// The first character of first string for grouping. This is normalized using ICU (projection) /// - public const uint DisplayNameIndex = (uint)PropertyIds.PersonDisplayNameIndex; + public const uint DisplayNameIndex = (uint)Property.Id.PersonDisplayNameIndex; /// /// Display contact ID that the person belongs to (projection) /// - public const uint DisplayContactId = (uint)PropertyIds.PersonDisplayContactId; + public const uint DisplayContactId = (uint)Property.Id.PersonDisplayContactId; /// /// Ringtone path of the person (projection) /// - public const uint RingtonePath = (uint)PropertyIds.PersonRingtone; + public const uint RingtonePath = (uint)Property.Id.PersonRingtone; /// /// Image thumbnail path of the person (projection) /// - public const uint ThumbnailPath = (uint)PropertyIds.PersonThumbnail; + public const uint ThumbnailPath = (uint)Property.Id.PersonThumbnail; /// /// Vibration path of the person (projection) /// - public const uint Vibration = (uint)PropertyIds.PersonVibration; + public const uint Vibration = (uint)Property.Id.PersonVibration; /// /// Message alert path of the person (projection) /// - public const uint MessageAlert = (uint)PropertyIds.PersonMessageAlert; + public const uint MessageAlert = (uint)Property.Id.PersonMessageAlert; /// /// The person is favorite or not /// - public const uint IsFavorite = (uint)PropertyIds.PersonIsFavorite; + public const uint IsFavorite = (uint)Property.Id.PersonIsFavorite; /// /// The person has phone number or not /// - public const uint HasPhoneNumber = (uint)PropertyIds.PersonHasPhoneNumber; + public const uint HasPhoneNumber = (uint)Property.Id.PersonHasPhoneNumber; /// /// The person has email or not /// - public const uint HasEmail = (uint)PropertyIds.PersonHasEmail; + public const uint HasEmail = (uint)Property.Id.PersonHasEmail; /// /// Number ID that the person belongs to /// - public const uint NumberId = (uint)PropertyIds.NumberId; + public const uint NumberId = (uint)Property.Id.NumberId; /// /// Number type, refer to the Number.Types (projection) /// - public const uint Type = (uint)PropertyIds.NumberType; + public const uint Type = (uint)Property.Id.NumberType; /// /// Custom number type label, when the number type is Number.Types.Custom (projection) /// - public const uint Label = (uint)PropertyIds.NumberLabel; + public const uint Label = (uint)Property.Id.NumberLabel; /// /// The number is default number or not /// - public const uint IsPrimaryDefault = (uint)PropertyIds.DataIsPrimaryDefault; + public const uint IsPrimaryDefault = (uint)Property.Id.DataIsPrimaryDefault; /// /// Number /// - public const uint Number = (uint)PropertyIds.NumberNumber; + public const uint Number = (uint)Property.Id.NumberNumber; /// - /// If you add filter with this property, the string will be normalized as minmatch length internally and the match rule will be applied ContactsFilter.StringMatchType.Exactly. + /// If you add filter with this property, the string will be normalized as minimal match length internally and the match rule will be applied ContactsFilter.StringMatchType.Exactly. /// - public const uint NumberFilter = (uint)PropertyIds.NumberNumberFilter; + public const uint NumberFilter = (uint)Property.Id.NumberNumberFilter; /// /// You can only use this property for search filter /// - public const uint NormalizedNumber = (uint)PropertyIds.NumberNormalizedNumber; + public const uint NormalizedNumber = (uint)Property.Id.NumberNormalizedNumber; /// /// You can only use this property for search filter /// - public const uint CleanedNumber = (uint)PropertyIds.NumberCleanedNumber; + public const uint CleanedNumber = (uint)Property.Id.NumberCleanedNumber; /// - /// kerword matched data type, refer to they Contact.DataTypes + /// keyword matched data type, refer to they Contact.DataType /// - public const uint SnippetType = (uint)PropertyIds.PersonSnippetType; + public const uint SnippetType = (uint)Property.Id.PersonSnippetType; /// /// keyword matched data string /// - public const uint SnippetString = (uint)PropertyIds.PersonSnippetString; + public const uint SnippetString = (uint)Property.Id.PersonSnippetString; }; /// - /// Describes properies of a Person & Email record. + /// Describes properties of a PersonEmail record. /// /// Read only view public static class PersonEmail @@ -2499,79 +2571,79 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the person /// - public const uint PersonId = (uint)PropertyIds.PersonId; + public const uint PersonId = (uint)Property.Id.PersonId; /// /// Display name of the person /// - public const uint DisplayName = (uint)PropertyIds.PersonDisplayName; + public const uint DisplayName = (uint)Property.Id.PersonDisplayName; /// - /// The first character of first string for grouping. This is normalized using icu (projection) + /// The first character of first string for grouping. This is normalized using ICU (projection) /// - public const uint DisplayNameIndex = (uint)PropertyIds.PersonDisplayNameIndex; + public const uint DisplayNameIndex = (uint)Property.Id.PersonDisplayNameIndex; /// /// Display contact ID that the person belongs to (projection) /// - public const uint DisplayContactId = (uint)PropertyIds.PersonDisplayContactId; + public const uint DisplayContactId = (uint)Property.Id.PersonDisplayContactId; /// /// Ringtone path of the person (projection) /// - public const uint RingtonePath = (uint)PropertyIds.PersonRingtone; + public const uint RingtonePath = (uint)Property.Id.PersonRingtone; /// /// Image thumbnail path of the person (projection) /// - public const uint ThumbnailPath = (uint)PropertyIds.PersonThumbnail; + public const uint ThumbnailPath = (uint)Property.Id.PersonThumbnail; /// /// Vibration path of the person (projection) /// - public const uint Vibration = (uint)PropertyIds.PersonVibration; + public const uint Vibration = (uint)Property.Id.PersonVibration; /// /// Message alert path of the person (projection) /// - public const uint MessageAlert = (uint)PropertyIds.PersonMessageAlert; + public const uint MessageAlert = (uint)Property.Id.PersonMessageAlert; /// /// The person is favorite or not /// - public const uint IsFavorite = (uint)PropertyIds.PersonIsFavorite; + public const uint IsFavorite = (uint)Property.Id.PersonIsFavorite; /// /// The person has phone number or not /// - public const uint HasPhoneNumber = (uint)PropertyIds.PersonHasPhoneNumber; + public const uint HasPhoneNumber = (uint)Property.Id.PersonHasPhoneNumber; /// /// The person has email or not /// - public const uint HasEmail = (uint)PropertyIds.PersonHasEmail; + public const uint HasEmail = (uint)Property.Id.PersonHasEmail; /// /// Email ID that the person belongs to /// - public const uint EmailId = (uint)PropertyIds.EmailId; + public const uint EmailId = (uint)Property.Id.EmailId; /// /// Email type, refer to the Email.Types (projection) /// - public const uint Type = (uint)PropertyIds.EmailType; + public const uint Type = (uint)Property.Id.EmailType; /// /// Custom mail type label, when the email type is Email.Types.Custom (projection) /// - public const uint Label = (uint)PropertyIds.EmailLabel; + public const uint Label = (uint)Property.Id.EmailLabel; /// /// The email is default email or not /// - public const uint IsPrimaryDefault = (uint)PropertyIds.DataIsPrimaryDefault; + public const uint IsPrimaryDefault = (uint)Property.Id.DataIsPrimaryDefault; /// /// Email address /// - public const uint Email = (uint)PropertyIds.EmailEmail; + public const uint Email = (uint)Property.Id.EmailEmail; /// - /// kerword matched data type, refer to they Contact.DataTypes + /// keyword matched data type, refer to they Contact.DataType /// - public const uint SnippetType = (uint)PropertyIds.PersonSnippetType; + public const uint SnippetType = (uint)Property.Id.PersonSnippetType; /// /// keyword matched data string /// - public const uint SnippetString = (uint)PropertyIds.PersonSnippetString; + public const uint SnippetString = (uint)Property.Id.PersonSnippetString; }; /// - /// Describes properies of a Person & Group Relation record. + /// Describes properties of a PersonGroupRelation record. /// /// Read only view public static class PersonGroupRelation @@ -2583,91 +2655,91 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the person /// - public const uint PersonId = (uint)PropertyIds.PersonId; + public const uint PersonId = (uint)Property.Id.PersonId; /// /// Display name of the person /// - public const uint DisplayName = (uint)PropertyIds.PersonDisplayName; + public const uint DisplayName = (uint)Property.Id.PersonDisplayName; /// - /// The first character of first string for grouping. This is normalized using icu (projection) + /// The first character of first string for grouping. This is normalized using ICU (projection) /// - public const uint DisplayNameIndex = (uint)PropertyIds.PersonDisplayNameIndex; + public const uint DisplayNameIndex = (uint)Property.Id.PersonDisplayNameIndex; /// /// Display contact ID that the person belongs to (projection) /// - public const uint DisplayContactId = (uint)PropertyIds.PersonDisplayContactId; + public const uint DisplayContactId = (uint)Property.Id.PersonDisplayContactId; /// /// Ringtone path of the person (projection) /// - public const uint RingtonePath = (uint)PropertyIds.PersonRingtone; + public const uint RingtonePath = (uint)Property.Id.PersonRingtone; /// /// Image thumbnail path of the person (projection) /// - public const uint ThumbnailPath = (uint)PropertyIds.PersonThumbnail; + public const uint ThumbnailPath = (uint)Property.Id.PersonThumbnail; /// /// Vibration path of the person (projection) /// - public const uint Vibration = (uint)PropertyIds.PersonVibration; + public const uint Vibration = (uint)Property.Id.PersonVibration; /// /// Message alert path of the person (projection) /// - public const uint MessageAlert = (uint)PropertyIds.PersonMessageAlert; + public const uint MessageAlert = (uint)Property.Id.PersonMessageAlert; /// /// Status of social account (projection) /// - public const uint Status = (uint)PropertyIds.PersonStatus; + public const uint Status = (uint)Property.Id.PersonStatus; /// /// The person is favorite or not /// - public const uint IsFavorite = (uint)PropertyIds.PersonIsFavorite; + public const uint IsFavorite = (uint)Property.Id.PersonIsFavorite; /// /// The person has phone number or not /// - public const uint HasPhoneNumber = (uint)PropertyIds.PersonHasPhoneNumber; + public const uint HasPhoneNumber = (uint)Property.Id.PersonHasPhoneNumber; /// /// The person has email or not /// - public const uint HasEmail = (uint)PropertyIds.PersonHasEmail; + public const uint HasEmail = (uint)Property.Id.PersonHasEmail; /// - /// Link count of contat records (projection) + /// Link count of contact records (projection) /// - public const uint LinkCount = (uint)PropertyIds.PersonLinkCount; + public const uint LinkCount = (uint)Property.Id.PersonLinkCount; /// - /// Addressbook IDs that the person belongs to (projection) + /// AddressBook IDs that the person belongs to (projection) /// - public const uint AddressbookIds = (uint)PropertyIds.PersonAddressbookIds; + public const uint AddressBookIds = (uint)Property.Id.PersonAddressBookIds; /// - /// Addressbook ID that the person belongs to + /// AddressBook ID that the person belongs to /// - public const uint AddressbookId = (uint)PropertyIds.ContactAddressbookId; + public const uint AddressBookId = (uint)Property.Id.ContactAddressBookId; /// - /// Addressbook name that the person belongs to + /// AddressBook name that the person belongs to /// - public const uint AddressbookName = (uint)PropertyIds.AddressbookName; + public const uint AddressBookName = (uint)Property.Id.AddressBookName; /// - /// Addressbook mode, refer to the Addressbook.Modes + /// AddressBook mode, refer to the AddressBook.Mode /// - public const uint AddressbookMode = (uint)PropertyIds.AddressbookMode; + public const uint AddressBookMode = (uint)Property.Id.AddressBookMode; /// /// Group ID that the person belongs to /// - public const uint GroupId = (uint)PropertyIds.GroupRelationGroupId; + public const uint GroupId = (uint)Property.Id.GroupRelationGroupId; /// /// Contact ID that the person belongs to (projection) /// - public const uint ContactId = (uint)PropertyIds.GroupRelationContactId; + public const uint ContactId = (uint)Property.Id.GroupRelationContactId; /// - /// kerword matched data type, refer to they Contact.DataTypes + /// keyword matched data type, refer to they Contact.DataType /// - public const uint SnippetType = (uint)PropertyIds.PersonSnippetType; + public const uint SnippetType = (uint)Property.Id.PersonSnippetType; /// /// keyword matched data string /// - public const uint SnippetString = (uint)PropertyIds.PersonSnippetString; + public const uint SnippetString = (uint)Property.Id.PersonSnippetString; }; /// - /// Describes properies of a Person & Group Assigned record. + /// Describes properties of a PersonGroupAssignedrecord. /// /// Read only view public static class PersonGroupAssigned @@ -2679,87 +2751,87 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the person /// - public const uint PersonId = (uint)PropertyIds.PersonId; + public const uint PersonId = (uint)Property.Id.PersonId; /// /// Display name of the person /// - public const uint DisplayName = (uint)PropertyIds.PersonDisplayName; + public const uint DisplayName = (uint)Property.Id.PersonDisplayName; /// - /// The first character of first string for grouping. This is normalized using icu (projection) + /// The first character of first string for grouping. This is normalized using ICU (projection) /// - public const uint DisplayNameIndex = (uint)PropertyIds.PersonDisplayNameIndex; + public const uint DisplayNameIndex = (uint)Property.Id.PersonDisplayNameIndex; /// /// Display contact ID that the person belongs to (projection) /// - public const uint DisplayContactId = (uint)PropertyIds.PersonDisplayContactId; + public const uint DisplayContactId = (uint)Property.Id.PersonDisplayContactId; /// /// Ringtone path of the person (projection) /// - public const uint RingtonePath = (uint)PropertyIds.PersonRingtone; + public const uint RingtonePath = (uint)Property.Id.PersonRingtone; /// /// Image thumbnail path of the person (projection) /// - public const uint ThumbnailPath = (uint)PropertyIds.PersonThumbnail; + public const uint ThumbnailPath = (uint)Property.Id.PersonThumbnail; /// /// Vibration path of the person (projection) /// - public const uint Vibration = (uint)PropertyIds.PersonVibration; + public const uint Vibration = (uint)Property.Id.PersonVibration; /// /// Message alert path of the person (projection) /// - public const uint MessageAlert = (uint)PropertyIds.PersonMessageAlert; + public const uint MessageAlert = (uint)Property.Id.PersonMessageAlert; /// /// Status of social account (projection) /// - public const uint Status = (uint)PropertyIds.PersonStatus; + public const uint Status = (uint)Property.Id.PersonStatus; /// /// The person is favorite or not /// - public const uint IsFavorite = (uint)PropertyIds.PersonIsFavorite; + public const uint IsFavorite = (uint)Property.Id.PersonIsFavorite; /// /// The person has phone number or not /// - public const uint HasPhoneNumber = (uint)PropertyIds.PersonHasPhoneNumber; + public const uint HasPhoneNumber = (uint)Property.Id.PersonHasPhoneNumber; /// /// The person has email or not /// - public const uint HasEmail = (uint)PropertyIds.PersonHasEmail; + public const uint HasEmail = (uint)Property.Id.PersonHasEmail; /// /// Link count of contact records (projection) /// - public const uint LinkCount = (uint)PropertyIds.PersonLinkCount; + public const uint LinkCount = (uint)Property.Id.PersonLinkCount; /// - /// Addressbook IDs that the linked person belongs to (projection) + /// AddressBook IDs that the linked person belongs to (projection) /// - public const uint AddressbookIds = (uint)PropertyIds.PersonAddressbookIds; + public const uint AddressBookIds = (uint)Property.Id.PersonAddressBookIds; /// - /// Addressbook ID that the person belongs to + /// AddressBook ID that the person belongs to /// - public const uint AddressbookId = (uint)PropertyIds.ContactAddressbookId; + public const uint AddressBookId = (uint)Property.Id.ContactAddressBookId; /// - /// Addressbook mode, refer to the Addressbook.Modes + /// AddressBook mode, refer to the AddressBook.Mode /// - public const uint AddressbookMode = (uint)PropertyIds.AddressbookMode; + public const uint AddressBookMode = (uint)Property.Id.AddressBookMode; /// /// Group ID that the person belongs to /// - public const uint GroupId = (uint)PropertyIds.GroupRelationGroupId; + public const uint GroupId = (uint)Property.Id.GroupRelationGroupId; /// /// Contact ID that the person belongs to (projection) /// - public const uint ContactId = (uint)PropertyIds.GroupRelationContactId; + public const uint ContactId = (uint)Property.Id.GroupRelationContactId; /// - /// kerword matched data type, refer to they Contact.DataTypes + /// keyword matched data type, refer to they Contact.DataType /// - public const uint SnippetType = (uint)PropertyIds.PersonSnippetType; + public const uint SnippetType = (uint)Property.Id.PersonSnippetType; /// /// keyword matched data string /// - public const uint SnippetString = (uint)PropertyIds.PersonSnippetString; + public const uint SnippetString = (uint)Property.Id.PersonSnippetString; }; /// - /// Describes properies of a Person & Group Not Assigned record. + /// Describes properties of a PersonGroupNotAssigned record. /// /// Read only view public static class PersonGroupNotAssigned @@ -2771,86 +2843,86 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the person /// - public const uint PersonId = (uint)PropertyIds.PersonId; + public const uint PersonId = (uint)Property.Id.PersonId; /// /// Display name of the person /// - public const uint DisplayName = (uint)PropertyIds.PersonDisplayName; + public const uint DisplayName = (uint)Property.Id.PersonDisplayName; /// - /// The first character of first string for grouping. This is normalized using icu (projection) + /// The first character of first string for grouping. This is normalized using ICU (projection) /// - public const uint DisplayNameIndex = (uint)PropertyIds.PersonDisplayNameIndex; + public const uint DisplayNameIndex = (uint)Property.Id.PersonDisplayNameIndex; /// /// Display contact ID that the person belongs to (projection) /// - public const uint DisplayContactId = (uint)PropertyIds.PersonDisplayContactId; + public const uint DisplayContactId = (uint)Property.Id.PersonDisplayContactId; /// /// Ringtone path of the person (projection) /// - public const uint RingtonePath = (uint)PropertyIds.PersonRingtone; + public const uint RingtonePath = (uint)Property.Id.PersonRingtone; /// /// Image thumbnail path of the person (projection) /// - public const uint ThumbnailPath = (uint)PropertyIds.PersonThumbnail; + public const uint ThumbnailPath = (uint)Property.Id.PersonThumbnail; /// /// Vibration path of the person (projection) /// - public const uint Vibration = (uint)PropertyIds.PersonVibration; + public const uint Vibration = (uint)Property.Id.PersonVibration; /// /// Message alert path of the person (projection) /// - public const uint MessageAlert = (uint)PropertyIds.PersonMessageAlert; + public const uint MessageAlert = (uint)Property.Id.PersonMessageAlert; /// /// Status of social account (projection) /// - public const uint Status = (uint)PropertyIds.PersonStatus; + public const uint Status = (uint)Property.Id.PersonStatus; /// /// The person is favorite or not /// - public const uint IsFavorite = (uint)PropertyIds.PersonIsFavorite; + public const uint IsFavorite = (uint)Property.Id.PersonIsFavorite; /// /// The person has phone number or not /// - public const uint HasPhoneNumber = (uint)PropertyIds.PersonHasPhoneNumber; + public const uint HasPhoneNumber = (uint)Property.Id.PersonHasPhoneNumber; /// /// The person has email or not /// - public const uint HasEmail = (uint)PropertyIds.PersonHasEmail; + public const uint HasEmail = (uint)Property.Id.PersonHasEmail; /// /// Link count of contact records (projection) /// - public const uint LinkCount = (uint)PropertyIds.PersonLinkCount; + public const uint LinkCount = (uint)Property.Id.PersonLinkCount; /// - /// Addressbook IDs that the linked person belongs to (projection) + /// AddressBook IDs that the linked person belongs to (projection) /// - public const uint AddressbookIds = (uint)PropertyIds.PersonAddressbookIds; + public const uint AddressBookIds = (uint)Property.Id.PersonAddressBookIds; /// - /// Addressbook ID that the person belongs to + /// AddressBook ID that the person belongs to /// - public const uint AddressbookId = (uint)PropertyIds.ContactAddressbookId; + public const uint AddressBookId = (uint)Property.Id.ContactAddressBookId; /// - /// Addressbook mode, refer to the Addressbook.Modes + /// AddressBook mode, refer to the AddressBook.Mode /// - public const uint AddressbookMode = (uint)PropertyIds.AddressbookMode; + public const uint AddressBookMode = (uint)Property.Id.AddressBookMode; /// /// Contact ID that the person belongs to (projection) /// - public const uint ContactId = (uint)PropertyIds.ContactId; + public const uint ContactId = (uint)Property.Id.ContactId; /// - /// kerword matched data type, refer to they Contact.DataTypes + /// keyword matched data type, refer to they Contact.DataType /// - public const uint SnippetType = (uint)PropertyIds.PersonSnippetType; + public const uint SnippetType = (uint)Property.Id.PersonSnippetType; /// /// keyword matched data string /// - public const uint SnippetString = (uint)PropertyIds.PersonSnippetString; + public const uint SnippetString = (uint)Property.Id.PersonSnippetString; }; /// - /// Describes properies of a Person & Phone Log record. + /// Describes properties of a PersonPhoneLog record. /// /// Read only view - public static class PersonPhonelog + public static class PersonPhoneLog { /// /// Identifier of this phone log view @@ -2859,63 +2931,63 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the person /// - public const uint PersonId = (uint)PropertyIds.PersonId; + public const uint PersonId = (uint)Property.Id.PersonId; /// /// Display name of the person /// - public const uint DisplayName = (uint)PropertyIds.PersonDisplayName; + public const uint DisplayName = (uint)Property.Id.PersonDisplayName; /// /// Image thumbnail path of the person (projection) /// - public const uint ThumbnailPath = (uint)PropertyIds.PersonThumbnail; + public const uint ThumbnailPath = (uint)Property.Id.PersonThumbnail; /// /// DB record ID of phone log /// - public const uint LogId = (uint)PropertyIds.PhonelogId; + public const uint LogId = (uint)Property.Id.PhonelogId; /// /// Number or Email that the phone log displays /// - public const uint Address = (uint)PropertyIds.PhonelogAddress; + public const uint Address = (uint)Property.Id.PhonelogAddress; /// /// Number or Email type (projection) /// - public const uint AddressType = (uint)PropertyIds.DataData1; + public const uint AddressType = (uint)Property.Id.DataData1; /// /// Call end time. The value means number of seconds since 1970-01-01 00:00:00 (UTC) /// - public const uint LogTime = (uint)PropertyIds.PhonelogLogTime; + public const uint LogTime = (uint)Property.Id.PhonelogLogTime; /// /// Log type, refer to the PhoneLog.Types /// - public const uint LogType = (uint)PropertyIds.PhonelogLogType; + public const uint LogType = (uint)Property.Id.PhonelogLogType; /// /// You can set the related integer data (e.g. message_id, email_id or duration(seconds) of call) (projection) /// - public const uint ExtraData1 = (uint)PropertyIds.PhonelogExtraData1; + public const uint ExtraData1 = (uint)Property.Id.PhonelogExtraData1; /// /// You can set the related string data (e.g. short message, subject) (projection) /// - public const uint ExtraData2 = (uint)PropertyIds.PhonelogExtraData2; + public const uint ExtraData2 = (uint)Property.Id.PhonelogExtraData2; /// /// You can only use this property for search filter /// - public const uint NormalizedAddress = (uint)PropertyIds.PhonelogNormalizedAddress; + public const uint NormalizedAddress = (uint)Property.Id.PhonelogNormalizedAddress; /// /// You can only use this property for search filter /// - public const uint CleanedAddress = (uint)PropertyIds.PhonelogCleanedAddress; + public const uint CleanedAddress = (uint)Property.Id.PhonelogCleanedAddress; /// /// You can only use this property for search filter /// - public const uint AddressFilter = (uint)PropertyIds.PhonelogAddressFilter; + public const uint AddressFilter = (uint)Property.Id.PhonelogAddressFilter; /// - /// It is related to the SIM slot number. sim_slot_no 0 means first SIM card, sim_slot_no 1 means second SIM. It is same with handle index of telephony handle list. Refer to the telephony_init() + /// It is related to the SIM slot number. SimSlotNo 0 means first SIM card, SimSlotNo 1 means second SIM. /// - public const uint SIMSlotNo = (uint)PropertyIds.PhonelogSIMSlotNo; + public const uint SIMSlotNo = (uint)Property.Id.PhonelogSIMSlotNo; }; /// - /// Describes properies of a Person Usage record. + /// Describes properties of a Person Usage record. /// /// Read only view public static class PersonUsage @@ -2927,60 +2999,60 @@ namespace Tizen.Pims.Contacts /// /// DB record ID of the person /// - public const uint PersonId = (uint)PropertyIds.PersonId; + public const uint PersonId = (uint)Property.Id.PersonId; /// /// Display name of the person /// - public const uint DisplayName = (uint)PropertyIds.PersonDisplayName; + public const uint DisplayName = (uint)Property.Id.PersonDisplayName; /// - /// The first character of first string for grouping. This is normalized using icu (projection) + /// The first character of first string for grouping. This is normalized using ICU (projection) /// - public const uint DisplayNameIndex = (uint)PropertyIds.PersonDisplayNameIndex; + public const uint DisplayNameIndex = (uint)Property.Id.PersonDisplayNameIndex; /// /// Display contact ID that the person belongs to (projection) /// - public const uint DisplayContactId = (uint)PropertyIds.PersonDisplayContactId; + public const uint DisplayContactId = (uint)Property.Id.PersonDisplayContactId; /// /// Ringtone path of the person (projection) /// - public const uint RingtonePath = (uint)PropertyIds.PersonRingtone; + public const uint RingtonePath = (uint)Property.Id.PersonRingtone; /// /// Image thumbnail path of the person (projection) /// - public const uint ThumbnailPath = (uint)PropertyIds.PersonThumbnail; + public const uint ThumbnailPath = (uint)Property.Id.PersonThumbnail; /// /// Vibration path of the person (projection) /// - public const uint Vibration = (uint)PropertyIds.PersonVibration; + public const uint Vibration = (uint)Property.Id.PersonVibration; /// /// Message alert path of the person (projection) /// - public const uint MessageAlert = (uint)PropertyIds.PersonMessageAlert; + public const uint MessageAlert = (uint)Property.Id.PersonMessageAlert; /// /// The person is favorite or not /// - public const uint IsFavorite = (uint)PropertyIds.PersonIsFavorite; + public const uint IsFavorite = (uint)Property.Id.PersonIsFavorite; /// /// The person has phone number or not /// - public const uint HasPhoneNumber = (uint)PropertyIds.PersonHasPhoneNumber; + public const uint HasPhoneNumber = (uint)Property.Id.PersonHasPhoneNumber; /// /// The person has email or not /// - public const uint HasEmail = (uint)PropertyIds.PersonHasEmail; + public const uint HasEmail = (uint)Property.Id.PersonHasEmail; /// - /// Usage type, refer to the UsageTypes + /// Usage type, refer to the Type /// - public const uint UsageType = (uint)PropertyIds.PersonUsageType; + public const uint UsageType = (uint)Property.Id.PersonUsageType; /// /// Usage number of person /// - public const uint TimesUsed = (uint)PropertyIds.PersonTimesUsed; + public const uint TimesUsed = (uint)Property.Id.PersonTimesUsed; /// /// Enumeration for Person usage type. /// - public enum Types + public enum Type { /// /// None @@ -3030,7 +3102,7 @@ namespace Tizen.Pims.Contacts }; /// - /// Describes properies of a Contact & Number record. + /// Describes properties of a ContactNumber record. /// /// Read only view public static class ContactNumber @@ -3042,67 +3114,67 @@ namespace Tizen.Pims.Contacts /// /// Contact ID that the number belongs to /// - public const uint ContactId = (uint)PropertyIds.ContactId; + public const uint ContactId = (uint)Property.Id.ContactId; /// /// Display name of contact that the number belongs to /// - public const uint DisplayName = (uint)PropertyIds.ContactDisplayName; + public const uint DisplayName = (uint)Property.Id.ContactDisplayName; /// - /// The source type of display name, refer to the Contact.DisplayNameSourceTypes (projection) + /// The source type of display name, refer to the Contact.DisplayNameSourceType (projection) /// - public const uint DisplaySourceType = (uint)PropertyIds.ContactDisplaySourceDataId; + public const uint DisplaySourceType = (uint)Property.Id.ContactDisplaySourceDataId; /// - /// Addressbook ID that the number belongs to + /// AddressBook ID that the number belongs to /// - public const uint AddressbookId = (uint)PropertyIds.ContactAddressbookId; + public const uint AddressBookId = (uint)Property.Id.ContactAddressBookId; /// /// Person ID that the number belongs to /// - public const uint PersonId = (uint)PropertyIds.ContactPersonId; + public const uint PersonId = (uint)Property.Id.ContactPersonId; /// /// Ringtone path that the number belongs to (projection) /// - public const uint RingtonePath = (uint)PropertyIds.ContactRingtone; + public const uint RingtonePath = (uint)Property.Id.ContactRingtone; /// /// Image thumbnail path that the number belongs to (projection) /// - public const uint ThumbnailPath = (uint)PropertyIds.ContactThumbnail; + public const uint ThumbnailPath = (uint)Property.Id.ContactThumbnail; /// /// DB record ID of the number /// - public const uint NumberId = (uint)PropertyIds.NumberId; + public const uint NumberId = (uint)Property.Id.NumberId; /// /// Number type, refer to the Number.Types (projection) /// - public const uint Type = (uint)PropertyIds.NumberType; + public const uint Type = (uint)Property.Id.NumberType; /// /// Custom number type label, when the number type is Number.Types.Custom (projection) /// - public const uint Label = (uint)PropertyIds.NumberLabel; + public const uint Label = (uint)Property.Id.NumberLabel; /// /// The number is default number or not /// - public const uint IsDefault = (uint)PropertyIds.NumberIsDefault; + public const uint IsDefault = (uint)Property.Id.NumberIsDefault; /// /// Number /// - public const uint Number = (uint)PropertyIds.NumberNumber; + public const uint Number = (uint)Property.Id.NumberNumber; /// - /// If you add filter with this property, the string will be normalized as minmatch length internally and the match rule will be applied ContactsFilter.StringMatchType.Exactly + /// If you add filter with this property, the string will be normalized as minimal match length internally and the match rule will be applied ContactsFilter.StringMatchType.Exactly /// - public const uint NumberFilter = (uint)PropertyIds.NumberNumberFilter; + public const uint NumberFilter = (uint)Property.Id.NumberNumberFilter; /// /// You can only use this property for search filter /// - public const uint NormalizedNumber = (uint)PropertyIds.NumberNormalizedNumber; + public const uint NormalizedNumber = (uint)Property.Id.NumberNormalizedNumber; /// /// You can only use this property for search filter /// - public const uint CleanedNumber = (uint)PropertyIds.NumberCleanedNumber; + public const uint CleanedNumber = (uint)Property.Id.NumberCleanedNumber; }; /// - /// Describes properies of a Contact & Email record. + /// Describes properties of a ContactEmail record. /// /// Read only view public static class ContactEmail @@ -3114,106 +3186,106 @@ namespace Tizen.Pims.Contacts /// /// Contact ID that the number belongs to /// - public const uint ContactId = (uint)PropertyIds.ContactId; + public const uint ContactId = (uint)Property.Id.ContactId; /// /// Display name of contact that the number belongs to /// - public const uint DisplayName = (uint)PropertyIds.ContactDisplayName; + public const uint DisplayName = (uint)Property.Id.ContactDisplayName; /// - /// The source type of display name, refer to the Contact.DisplayNameSourceTypes (projection) + /// The source type of display name, refer to the Contact.DisplayNameSourceType (projection) /// - public const uint DisplaySourceType = (uint)PropertyIds.ContactDisplaySourceDataId; + public const uint DisplaySourceType = (uint)Property.Id.ContactDisplaySourceDataId; /// - /// Addressbook ID that the number belongs to + /// AddressBook ID that the number belongs to /// - public const uint AddressbookId = (uint)PropertyIds.ContactAddressbookId; + public const uint AddressBookId = (uint)Property.Id.ContactAddressBookId; /// /// Person ID that the number belongs to /// - public const uint PersonId = (uint)PropertyIds.ContactPersonId; + public const uint PersonId = (uint)Property.Id.ContactPersonId; /// /// Ringtone path that the number belongs to (projection) /// - public const uint RingtonePath = (uint)PropertyIds.ContactRingtone; + public const uint RingtonePath = (uint)Property.Id.ContactRingtone; /// /// Image thumbnail path that the number belongs to (projection) /// - public const uint ThumbnailPath = (uint)PropertyIds.ContactThumbnail; + public const uint ThumbnailPath = (uint)Property.Id.ContactThumbnail; /// /// DB record ID of the email /// - public const uint EmailId = (uint)PropertyIds.EmailId; + public const uint EmailId = (uint)Property.Id.EmailId; /// /// Email type, refer to the Email.Types (projection) /// - public const uint Type = (uint)PropertyIds.EmailType; + public const uint Type = (uint)Property.Id.EmailType; /// /// Custom mail type label, when the email type is Email.Types.Custom (projection) /// - public const uint Label = (uint)PropertyIds.EmailLabel; + public const uint Label = (uint)Property.Id.EmailLabel; /// /// Email is default email or not /// - public const uint IsDefault = (uint)PropertyIds.EmailIsDefault; + public const uint IsDefault = (uint)Property.Id.EmailIsDefault; /// /// Email address /// - public const uint Email = (uint)PropertyIds.EmailEmail; + public const uint Email = (uint)Property.Id.EmailEmail; }; /// - /// Describes properies of a Contact & Group Relation record. + /// Describes properties of a ContactGroupRelation record. /// /// Read only view public static class ContactGroupRelation { /// - /// Identifier of this contact grouprel view + /// Identifier of this contact group relation view /// public const string Uri = "tizen.contacts_view.simple_contact/group"; /// /// Contact ID that the number belongs to /// - public const uint ContactId = (uint)PropertyIds.ContactId; + public const uint ContactId = (uint)Property.Id.ContactId; /// /// Display name of contact that the number belongs to /// - public const uint DisplayName = (uint)PropertyIds.ContactDisplayName; + public const uint DisplayName = (uint)Property.Id.ContactDisplayName; /// - /// The source type of display name, refer to the Contact.DisplayNameSourceTypes (projection) + /// The source type of display name, refer to the Contact.DisplayNameSourceType (projection) /// - public const uint DisplaySourceType = (uint)PropertyIds.ContactDisplaySourceDataId; + public const uint DisplaySourceType = (uint)Property.Id.ContactDisplaySourceDataId; /// - /// Addressbook ID that the number belongs to + /// AddressBook ID that the number belongs to /// - public const uint AddressbookId = (uint)PropertyIds.ContactAddressbookId; + public const uint AddressBookId = (uint)Property.Id.ContactAddressBookId; /// /// Person ID that the number belongs to /// - public const uint PersonId = (uint)PropertyIds.ContactPersonId; + public const uint PersonId = (uint)Property.Id.ContactPersonId; /// /// Ringtone path that the number belongs to (projection) /// - public const uint RingtonePath = (uint)PropertyIds.ContactRingtone; + public const uint RingtonePath = (uint)Property.Id.ContactRingtone; /// /// Image thumbnail path that the number belongs to (projection) /// - public const uint ThumbnailPath = (uint)PropertyIds.ContactThumbnail; + public const uint ThumbnailPath = (uint)Property.Id.ContactThumbnail; /// /// DB record ID of the group relation /// - public const uint GroupId = (uint)PropertyIds.GroupRelationGroupId; + public const uint GroupId = (uint)Property.Id.GroupRelationGroupId; /// /// Group name (projection) /// - public const uint GroupName = (uint)PropertyIds.GroupRelationGroupName; + public const uint GroupName = (uint)Property.Id.GroupRelationGroupName; }; /// - /// Describes properies of a Phone Log Statistics record. + /// Describes properties of a Phone Log Statistics record. /// /// Read only view - public static class PhonelogStatistics + public static class PhoneLogStatistics { /// /// Identifier of this log statistics view @@ -3222,15 +3294,15 @@ namespace Tizen.Pims.Contacts /// /// Log count (projection) /// - public const uint LogCount = (uint)PropertyIds.PhonelogStatLogCount; + public const uint LogCount = (uint)Property.Id.PhonelogStatLogCount; /// /// Log type, see the contacts_phone_log_type_e /// - public const uint LogType = (uint)PropertyIds.PhonelogStatLogType; + public const uint LogType = (uint)Property.Id.PhonelogStatLogType; /// /// It is related to the SIM slot number. sim_slot_no 0 means first SIM card, sim_slot_no 1 means second SIM. It is same with handle index of telephony handle list. Refer to the telephony_init() /// - public const uint SIMSlotNo = (uint)PropertyIds.PhonelogStatSIMSlotNo; + public const uint SIMSlotNo = (uint)Property.Id.PhonelogStatSIMSlotNo; }; } } diff --git a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/DBStatusChangedEventArgs.cs b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/DBStatusChangedEventArgs.cs index 4029e35..0257c18 100644 --- a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/DBStatusChangedEventArgs.cs +++ b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/DBStatusChangedEventArgs.cs @@ -14,6 +14,7 @@ * limitations under the License. */ +using System; using static Tizen.Pims.Contacts.ContactsDatabase; namespace Tizen.Pims.Contacts @@ -21,13 +22,16 @@ namespace Tizen.Pims.Contacts /// /// Event arguments passed when contacts database status is changed /// - public class DBStatusChangedEventArgs + public class DBStatusChangedEventArgs : EventArgs { internal DBStatusChangedEventArgs(DBStatus status) { this.Status = status; } + /// + /// The contacts database status. + /// public DBStatus Status { get; diff --git a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/NameDisplayOrderChangedEventArgs.cs b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/NameDisplayOrderChangedEventArgs.cs index 71ce4d3..8e5dc3d 100644 --- a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/NameDisplayOrderChangedEventArgs.cs +++ b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/NameDisplayOrderChangedEventArgs.cs @@ -14,18 +14,23 @@ * limitations under the License. */ +using System; + namespace Tizen.Pims.Contacts { /// /// Event arguments passed when setting value of contacts name display order is changed /// - public class NameDisplayOrderChangedEventArgs + public class NameDisplayOrderChangedEventArgs : EventArgs { internal NameDisplayOrderChangedEventArgs(ContactDisplayOrder displayOrder) { this.NameDisplayOrder = displayOrder; } + /// + /// A setting value of contacts name display order + /// public ContactDisplayOrder NameDisplayOrder { get; diff --git a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/NameSortingOrderChangedEventArgs.cs b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/NameSortingOrderChangedEventArgs.cs index 1f9b663..e365204 100644 --- a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/NameSortingOrderChangedEventArgs.cs +++ b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/NameSortingOrderChangedEventArgs.cs @@ -14,18 +14,23 @@ * limitations under the License. */ +using System; + namespace Tizen.Pims.Contacts { /// /// Event arguments passed when setting value of contacts name sorting order is changed /// - public class NameSortingOrderChangedEventArgs + public class NameSortingOrderChangedEventArgs : EventArgs { internal NameSortingOrderChangedEventArgs(ContactSortingOrder SortingOrder) { this.NameSortingOrder = SortingOrder; } + /// + /// A setting value of contacts name sorting order + /// public ContactSortingOrder NameSortingOrder { get;