[Notification/NotificationEventListener]Fix wrong spelling 73/162073/3 5.0.0-preview1-00395
authorSeungha Son <seungha.son@samsung.com>
Wed, 29 Nov 2017 03:31:39 +0000 (12:31 +0900)
committerSemun Lee <semun.lee@samsung.com>
Thu, 30 Nov 2017 05:06:20 +0000 (05:06 +0000)
Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I4410f7d11c37b4937188f1b6da6ff124a62fca08

src/Tizen.Applications.Notification/Interop/Interop.Notification.cs
src/Tizen.Applications.Notification/Tizen.Applications.Notifications/Notification.cs
src/Tizen.Applications.Notification/Tizen.Applications.Notifications/NotificationReplyAction.cs
src/Tizen.Applications.Notification/Tizen.Applications.Notifications/NotificationStyleBinder.cs
src/Tizen.Applications.NotificationEventListener/Interop/Interop.NotificationEventListener.cs
src/Tizen.Applications.NotificationEventListener/Tizen.Applications.NotificationEventListener/NotificationEventArgsBinder.cs

index 854e1aa..1d5651b 100755 (executable)
@@ -203,14 +203,14 @@ internal static partial class Interop
         [DllImport(Libraries.Notification, EntryPoint = "notification_set_delete_timeout")]
         internal static extern NotificationError SetDeleteTime(NotificationSafeHandle handle, int timeout);
 
-        [DllImport(Libraries.Notification, EntryPoint = "notification_set_extention_data")]
-        internal static extern NotificationError SetExtentionData(NotificationSafeHandle handle, string key, SafeBundleHandle bundleHandle);
+        [DllImport(Libraries.Notification, EntryPoint = "notification_set_extension_data")]
+        internal static extern NotificationError SetExtensionData(NotificationSafeHandle handle, string key, SafeBundleHandle bundleHandle);
 
-        [DllImport(Libraries.Notification, EntryPoint = "notification_get_extention_data")]
-        internal static extern NotificationError GetExtentionData(NotificationSafeHandle handle, string key, out SafeBundleHandle bundleHandle);
+        [DllImport(Libraries.Notification, EntryPoint = "notification_get_extension_data")]
+        internal static extern NotificationError GetExtensionData(NotificationSafeHandle handle, string key, out SafeBundleHandle bundleHandle);
 
         [DllImport(Libraries.Notification, EntryPoint = "notification_get_args")]
-        internal static extern NotificationError GetExtentionBundle(NotificationSafeHandle handle, out IntPtr args, out IntPtr group_args);
+        internal static extern NotificationError GetExtensionBundle(NotificationSafeHandle handle, out IntPtr args, out IntPtr group_args);
 
         [DllImport(Libraries.Notification, EntryPoint = "notification_get_default_button")]
         internal static extern NotificationError GetDefaultButton(NotificationSafeHandle handle, out int index);
index b4ec769..8ac2c21 100755 (executable)
@@ -479,7 +479,7 @@ namespace Tizen.Applications.Notifications
             foreach (string key in GetextraDataDictionary().Keys)
             {
                 Log.Info(LogTag, "Start to bind Notification.ExtenderData to SafeHandle");
-                Interop.Notification.SetExtentionData(Handle, key, extraDataDictionary[key].SafeBundleHandle);
+                Interop.Notification.SetExtensionData(Handle, key, extraDataDictionary[key].SafeBundleHandle);
             }
 
             foreach (Notification.StyleBase style in styleDictionary.Values)
@@ -503,23 +503,23 @@ namespace Tizen.Applications.Notifications
 
         internal Notification Build()
         {
-            IntPtr extention = IntPtr.Zero;
-            IntPtr extentionBundlePtr = IntPtr.Zero;
+            IntPtr extension = IntPtr.Zero;
+            IntPtr extensionBundlePtr = IntPtr.Zero;
 
             NotificationBinder.BindSafeHandle(this);
 
-            Interop.Notification.GetExtentionBundle(Handle, out extention, out extentionBundlePtr);
+            Interop.Notification.GetExtensionBundle(Handle, out extension, out extensionBundlePtr);
 
-            if (extention != IntPtr.Zero)
+            if (extension != IntPtr.Zero)
             {
-                Bundle bundle = new Bundle(new SafeBundleHandle(extention, false));
+                Bundle bundle = new Bundle(new SafeBundleHandle(extension, false));
                 foreach (string key in bundle.Keys)
                 {
                     if (key.StartsWith("_NOTIFICATION_EXTENSION_EVENT_"))
                         continue;
 
                     SafeBundleHandle sbh;
-                    Interop.Notification.GetExtentionData(Handle, key, out sbh);
+                    Interop.Notification.GetExtensionData(Handle, key, out sbh);
                     extraDataDictionary.Add(key, new Bundle(sbh));
                 }
             }
index 42d34ff..38cd443 100755 (executable)
@@ -106,7 +106,7 @@ namespace Tizen.Applications.Notifications
 
                 Bundle bundle = new Bundle();
                 bundle.AddItem(replyKey, ((int)this.ParentIndex).ToString());
-                Interop.Notification.SetExtentionData(notification.Handle, replyKey, bundle.SafeBundleHandle);
+                Interop.Notification.SetExtensionData(notification.Handle, replyKey, bundle.SafeBundleHandle);
 
                 Interop.Notification.SetPlaceHolderLength(notification.Handle, this.ReplyMax);
                 Interop.Notification.SetText(notification.Handle, NotificationText.PlaceHolder, PlaceHolderText, null, -1);
index f84c6f7..d32b721 100755 (executable)
@@ -255,7 +255,7 @@ namespace Tizen.Applications.Notifications
                     try
                     {
                         SafeBundleHandle bundleHandle;
-                        Interop.Notification.GetExtentionData(notification.Handle, replyKey, out bundleHandle);
+                        Interop.Notification.GetExtensionData(notification.Handle, replyKey, out bundleHandle);
                         Bundle bundle = new Bundle(bundleHandle);
                         reply.ParentIndex = (ButtonIndex)int.Parse(bundle.GetItem(replyKey).ToString());
                     }
index 9e36242..85fbc4b 100755 (executable)
@@ -138,7 +138,7 @@ internal static partial class Interop
         [DllImport(Libraries.NotificationEventListener, EntryPoint = "notification_get_property")]
         internal static extern ErrorCode GetProperties(NotificationSafeHandle handle, out int flags);
 
-        [DllImport(Libraries.NotificationEventListener, EntryPoint = "notification_get_extention_data")]
+        [DllImport(Libraries.NotificationEventListener, EntryPoint = "notification_get_extension_data")]
         internal static extern ErrorCode GetExtender(NotificationSafeHandle handle, string key, out SafeBundleHandle value);
 
         [DllImport(Libraries.NotificationEventListener, EntryPoint = "notification_clone")]
@@ -148,7 +148,7 @@ internal static partial class Interop
         internal static extern ErrorCode NotificationListFree(IntPtr list);
 
         [DllImport(Libraries.NotificationEventListener, EntryPoint = "notification_get_args")]
-        internal static extern ErrorCode GetExtentionBundle(NotificationSafeHandle handle, out IntPtr args, out IntPtr groupArgs);
+        internal static extern ErrorCode GetExtensionBundle(NotificationSafeHandle handle, out IntPtr args, out IntPtr groupArgs);
 
         [DllImport(Libraries.NotificationEventListener, EntryPoint = "notification_get_hide_timeout")]
         internal static extern ErrorCode GetHideTimeout(NotificationSafeHandle handle, out int timeout);
index d30292e..c70c072 100755 (executable)
@@ -35,7 +35,7 @@ namespace Tizen.Applications.NotificationEventListener
             NotificationLayout layout;
             NotificationType type;
             string text;
-            IntPtr extention = IntPtr.Zero;
+            IntPtr extension = IntPtr.Zero;
             IntPtr dummy = IntPtr.Zero;
             SafeAppControlHandle appcontrol = null;
 
@@ -158,15 +158,15 @@ namespace Tizen.Applications.NotificationEventListener
                 eventargs.IsVisible = false;
             }
 
-            err = Interop.NotificationEventListener.GetExtentionBundle(eventargs.Handle, out extention, out dummy);
+            err = Interop.NotificationEventListener.GetExtensionBundle(eventargs.Handle, out extension, out dummy);
             if (err != Interop.NotificationEventListener.ErrorCode.None)
             {
                 Log.Info(LogTag, "unable to get Extender");
             }
 
-            if (extention != IntPtr.Zero)
+            if (extension != IntPtr.Zero)
             {
-                Bundle bundle = new Bundle(new SafeBundleHandle(extention, false));
+                Bundle bundle = new Bundle(new SafeBundleHandle(extension, false));
                 foreach (string key in bundle.Keys)
                 {
                     if (key.StartsWith("_NOTIFICATION_EXTENSION_EVENT_"))