[NUI] Change api name Finalize to DestroyContext, to remove build warning 53/159353/1
authorxb.teng <xb.teng@samsung.com>
Thu, 26 Oct 2017 05:31:23 +0000 (13:31 +0800)
committerdongsug.song <dongsug.song@samsung.com>
Wed, 8 Nov 2017 09:23:24 +0000 (18:23 +0900)
Conflicts:
src/Tizen.NUI/src/public/ImfManager.cs

Change-Id: I9004de05f5ba4995959f5c7cf7670198d03a6a08

src/Tizen.NUI/src/public/ImfManager.cs [changed mode: 0644->0755]
src/Tizen.NUI/src/public/StyleManager.cs [changed mode: 0644->0755]
src/Tizen.NUI/src/public/TTSPlayer.cs [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 91fb3f4..cc0adf4
@@ -39,6 +39,22 @@ namespace Tizen.NUI
             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
         }
 
+        private static readonly ImfManager instance = ImfManager.Get();
+
+        /// <summary>
+        /// Gets the singleton of the ImfManager object.
+        /// </summary>
+        /// <since_tizen> 5 </since_tizen>
+        /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public static ImfManager Instance
+        {
+            get
+            {
+                return instance;
+            }
+        }
+
         /// <summary>
         /// Dispose
         /// </summary>
@@ -706,15 +722,25 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// Finalize the IMF.<br/>
+        /// Destroy the context of the IMF.<br/>
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
-        public void Finalize()
+        /// <since_tizen> 5 </since_tizen>
+        /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public void DestroyContext()
         {
             NDalicManualPINVOKE.ImfManager_Finalize(swigCPtr);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
+        /// Please DO NOT use! This will be deprecated, instead please USE Tizen.NUI.ImfManager.Instance.DestroyContext()!
+        [Obsolete("Please DO NOT use! This will be deprecated, instead please USE Tizen.NUI.ImfManager.Instance.DestroyContext()!")]
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public void Finalize()
+        {
+            DestroyContext();
+        }
+
         /// <summary>
         /// Retrieves a handle to the instance of the ImfManager.
         /// </summary>
@@ -1894,4 +1920,4 @@ namespace Tizen.NUI
             HardwareKeyboard
         }
     }
-}
\ No newline at end of file
+}
old mode 100644 (file)
new mode 100755 (executable)
index 3a8af42..831160a
@@ -44,6 +44,22 @@ namespace Tizen.NUI
             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
         }
 
+        private static readonly StyleManager instance = StyleManager.Get();
+
+        /// <summary>
+        /// Gets the singleton of the StyleManager object.
+        /// </summary>
+        /// <since_tizen> 5 </since_tizen>
+        /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public static StyleManager Instance
+        {
+            get
+            {
+                return instance;
+            }
+        }
+
         /// <summary>
         /// Dispose.
         /// </summary>
@@ -275,4 +291,4 @@ namespace Tizen.NUI
         }
 
     }
-}
\ No newline at end of file
+}
old mode 100644 (file)
new mode 100755 (executable)
index 1496196..de82248
@@ -39,6 +39,22 @@ namespace Tizen.NUI
             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
         }
 
+        private static readonly TTSPlayer instance = TTSPlayer.Get();
+
+        /// <summary>
+        /// Gets the singleton of the TTSPlayer object.
+        /// </summary>
+        /// <since_tizen> 5 </since_tizen>
+        /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public static TTSPlayer Instance
+        {
+            get
+            {
+                return instance;
+            }
+        }
+
         /// <summary>
         /// Dispose.
         /// </summary>
@@ -315,4 +331,4 @@ namespace Tizen.NUI
 
     }
 
-}
\ No newline at end of file
+}