[ACR-564] deprecate unused API
[platform/core/csapi/tizenfx.git] / src / ElmSharp / ElmSharp / ToolbarItem.cs
old mode 100755 (executable)
new mode 100644 (file)
index 38f90a0..6e71c98
@@ -19,23 +19,32 @@ using System;
 namespace ElmSharp
 {
     /// <summary>
-    /// The ToolbarItem is a item of Toolbar.
+    /// The ToolbarItem is an item of the toolbar.
     /// </summary>
     /// <since_tizen> preview </since_tizen>
+    [Obsolete("This has been deprecated in API12")]
     public class ToolbarItem : ItemObject
     {
         string _icon;
         string _text;
+
         internal ToolbarItem(string text, string icon) : base(IntPtr.Zero)
         {
             _text = text;
             _icon = icon;
         }
 
+        internal ToolbarItem(string text, string icon, EvasObject parent) : base(IntPtr.Zero, parent)
+        {
+            _text = text;
+            _icon = icon;
+        }
+
         /// <summary>
         /// Sets or gets the icon path of the item.
         /// </summary>
         /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public string Icon
         {
             get
@@ -53,6 +62,7 @@ namespace ElmSharp
         /// Sets or gets the text string of the item.
         /// </summary>
         /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public string Text
         {
             get
@@ -86,8 +96,9 @@ namespace ElmSharp
         /// <summary>
         /// Sets or gets whether displaying the item as a separator.
         /// </summary>
-        /// <remarks>Items aren't set as a separator by default. If set as a separator it displays a separator theme, so it won't display icons or labels.</remarks>
+        /// <remarks>Items aren't set as a separator by default. If set as a separator, it displays a separator theme, so it won't display the icons or labels.</remarks>
         /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public bool IsSeparator
         {
             get
@@ -104,6 +115,7 @@ namespace ElmSharp
         /// Sets or gets whether the item is selected.
         /// </summary>
         /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public bool IsSelected
         {
             get
@@ -120,18 +132,21 @@ namespace ElmSharp
         /// Selected will be triggered when the item is selected.
         /// </summary>
         /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public event EventHandler Selected;
 
         /// <summary>
-        /// LongPressed will be triggered when the item is pressed long time.
+        /// LongPressed will be triggered when the item is pressed for a long time.
         /// </summary>
         /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public event EventHandler LongPressed;
 
         /// <summary>
         /// Clicked will be triggered when the item is clicked.
         /// </summary>
         /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public event EventHandler Clicked;
 
         internal void SendSelected()