[ACR-564] deprecate unused API
[platform/core/csapi/tizenfx.git] / src / ElmSharp.Wearable / ElmSharp.Wearable / MoreOption.cs
index 002a7a6..75ace70 100644 (file)
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 
 using System;
 using System.Collections.Generic;
@@ -6,31 +21,43 @@ using System.Linq;
 namespace ElmSharp.Wearable
 {
     /// <summary>
-    /// The MoreOption is a widget composed of the toggle(cue button) and more option view, and MoreOption can change a visibility through the toggle.
+    /// The MoreOption is a widget composed of the toggle (cue button) and more option view that can change a visibility through the toggle.
     /// Inherits Layout
     /// </summary>
+    /// <since_tizen> preview </since_tizen>
+    [Obsolete("This has been deprecated in API12")]
     public class MoreOption : Layout
     {
         /// <summary>
-        /// Sets or gets the list of more option item
+        /// Sets or gets the list of the more option item.
         /// </summary>
+        /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public IList<MoreOptionItem> Items { get; private set; }
 
         /// <summary>
         /// Selected will be triggered when the user selects an item.
         /// </summary>
+        /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public event EventHandler<MoreOptionItemEventArgs> Selected;
         /// <summary>
         /// Clicked will be triggered when the user selects the already selected item again or selects a selector.
         /// </summary>
+        /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public event EventHandler<MoreOptionItemEventArgs> Clicked;
         /// <summary>
-        /// Opened will be triggered when more option view is shown.
+        /// Opened will be triggered when the more option view is shown.
         /// </summary>
+        /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public event EventHandler Opened;
         /// <summary>
-        /// Closed will be triggered when more option view is hidden.
+        /// Closed will be triggered when the more option view is hidden.
         /// </summary>
+        /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public event EventHandler Closed;
 
         SmartEvent<PointerEventArgs> _selectedEvent;
@@ -39,9 +66,11 @@ namespace ElmSharp.Wearable
         SmartEvent _closedEvent;
 
         /// <summary>
-        /// Creates and initializes a new instance of MoreOption class.
+        /// Creates and initializes a new instance of the MoreOption class.
         /// </summary>
-        /// <param name="parent">The parent is a given container which will be attached by MoreOption as a child. It's <see cref="EvasObject"/> type.</param>
+        /// <param name="parent">The parent is a given container, which will be attached by the MoreOption as a child. It's <see cref="EvasObject"/> type.</param>
+        /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public MoreOption(EvasObject parent) : base(parent)
         {
             Items = new MoreOptionList(this);
@@ -68,6 +97,13 @@ namespace ElmSharp.Wearable
 
         }
 
+        /// <summary>
+        /// Creates a widget handle.
+        /// </summary>
+        /// <param name="parent">Parent EvasObject.</param>
+        /// <returns>Handle IntPtr.</returns>
+        /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         protected override IntPtr CreateHandle(EvasObject parent)
         {
             return Interop.Eext.eext_more_option_add(parent);
@@ -76,6 +112,8 @@ namespace ElmSharp.Wearable
         /// <summary>
         /// Sets or gets the direction of more option.
         /// </summary>
+        /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public MoreOptionDirection Direction
         {
             get
@@ -91,8 +129,10 @@ namespace ElmSharp.Wearable
         }
 
         /// <summary>
-        /// Sets or gets the visibility of more option view.
+        /// Sets or gets the visibility of the more option view.
         /// </summary>
+        /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public bool IsOpened
         {
             get
@@ -108,13 +148,27 @@ namespace ElmSharp.Wearable
     }
 
     /// <summary>
-    /// Enumeration for More Option Direction type.
+    /// Enumeration for the more option direction types.
     /// </summary>
+    /// <since_tizen> preview </since_tizen>
+    [Obsolete("This has been deprecated in API12")]
     public enum MoreOptionDirection
     {
+        /// <summary>
+        /// Top direction.
+        /// </summary>
         Top,
+        /// <summary>
+        /// Bottom direction.
+        /// </summary>
         Bottom,
+        /// <summary>
+        /// Left direction.
+        /// </summary>
         Left,
+        /// <summary>
+        /// Right direction.
+        /// </summary>
         Right
     }
 }