X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.Pims.Calendar%2FTizen.Pims.Calendar%2FCalendarDatabase.cs;h=c088bd50ca4a6bb011f540e23e1a0d304aedadea;hb=046083ce06b6dba8f2f93b9de11f096a67b8b47d;hp=5592b33d2183d25f213ac110e33e8a89297cf18f;hpb=f817d3052b1b8ace4e83cc12eb12fea1dd055d63;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarDatabase.cs b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarDatabase.cs index 5592b33..c088bd5 100644 --- a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarDatabase.cs +++ b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarDatabase.cs @@ -34,11 +34,10 @@ namespace Tizen.Pims.Calendar private Object thisLock = new Object(); private Dictionary> _eventHandlerMap = new Dictionary>(); private Dictionary _callbackMap = new Dictionary(); - private Interop.Database.DBChangedCallback _dbChangedDelegate; internal CalendarDatabase() { - ///To be created in CalendarManager only + /*To be created in CalendarManager only*/ } /// @@ -264,7 +263,6 @@ namespace Tizen.Pims.Calendar /// http://tizen.org/feature/calendar /// Thrown when feature is not supported /// 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 /// Thrown when application does not have proper privileges [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] @@ -369,7 +367,6 @@ namespace Tizen.Pims.Calendar /// http://tizen.org/feature/calendar /// Thrown when feature is not supported /// 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 /// Thrown when application does not have proper privileges public void Delete(CalendarList list) @@ -536,7 +533,7 @@ namespace Tizen.Pims.Calendar _eventHandlerMap[uri]?.Invoke(this, args); }; - int error = Interop.Database.AddChangedCallback(viewUri, _dbChangedDelegate, IntPtr.Zero); + int error = Interop.Database.AddChangedCallback(viewUri, _callbackMap[viewUri], IntPtr.Zero); if (CalendarError.None != (CalendarError)error) { Log.Error(Globals.LogTag, "AddDBChangedDelegate Failed with error " + error); @@ -561,7 +558,6 @@ namespace Tizen.Pims.Calendar /// http://tizen.org/feature/calendar /// Thrown when feature is not supported /// 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 /// Thrown when application does not have proper privileges [SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings")]