From b515cba3897ff07d0b25849a36558d2549d64905 Mon Sep 17 00:00:00 2001 From: tarunkumarmahay1999 <113899126+tarunkumarmahay1999@users.noreply.github.com> Date: Thu, 6 Oct 2022 05:07:55 +0530 Subject: [PATCH] Deprecating Attach Panel APIs (#4591) * Deprecating Attach Panel APIs Signed-off-by: tarun.mahay * Deprecating Attach Panel APIs. Signed-off-by: tarun.mahay * Deprecating Attach Panel APIs. Signed-off-by: tarun.mahay Signed-off-by: tarun.mahay Co-authored-by: WonYoung Choi --- .../Tizen.Applications.AttachPanel/AttachPanel.cs | 14 ++++++++++++++ .../Tizen.Applications.AttachPanel/ContentCategory.cs | 3 +++ .../Tizen.Applications.AttachPanel/EventType.cs | 3 +++ .../Tizen.Applications.AttachPanel/ResultEventArgs.cs | 4 ++++ .../Tizen.Applications.AttachPanel/StateEventArgs.cs | 2 ++ .../Tizen.Applications.AttachPanel/StateType.cs | 3 +++ 6 files changed, 29 insertions(+) diff --git a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/AttachPanel.cs b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/AttachPanel.cs index 488e8dd..7e4b2a4 100755 --- a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/AttachPanel.cs +++ b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/AttachPanel.cs @@ -6,6 +6,7 @@ namespace Tizen.Applications.AttachPanel /// /// Represents the immutable class for the attach panel. /// + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public partial class AttachPanel { /// @@ -18,6 +19,7 @@ namespace Tizen.Applications.AttachPanel /// Thrown when an attempt to allocate the memory fails. /// Thrown when the AttachPanel already exists or the is not a conformant object. /// Thrown when the AttachPanel is not supported in the device. + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public AttachPanel(EvasObject conformant) { if (conformant == IntPtr.Zero) @@ -63,6 +65,7 @@ namespace Tizen.Applications.AttachPanel /// Thrown when the AttachPanel already exists or the is not a conformant object. /// Thrown when the AttachPanel is not supported in the device. /// Thrown when the parameter is null + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public AttachPanel(Conformant conformant) : this(conformant as EvasObject) { } @@ -88,6 +91,7 @@ namespace Tizen.Applications.AttachPanel /// Thrown when the AttachPanel is not created yet or is already destroyed. /// Thrown when the AttachPanel is not supported in the device. /// Thrown when the parameter is invalid + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public StateType State { get @@ -117,6 +121,7 @@ namespace Tizen.Applications.AttachPanel /// http://tizen.org/feature/attach_panel /// Thrown when the AttachPanel is not created yet or is already destroyed. /// Thrown when the AttachPanel is not supported in the device. + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public bool Visible { get @@ -175,6 +180,7 @@ namespace Tizen.Applications.AttachPanel /// Thrown when the AttachPanel is not created yet or is already destroyed. /// Thrown when the AttachPanel is not supported in the device. /// 4 + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void AddCategory(ContentCategory category, Bundle extraData) { if (IsAttachPanelSupported() == false) @@ -206,6 +212,7 @@ namespace Tizen.Applications.AttachPanel /// Thrown when the AttachPanel is not created yet or is already destroyed. /// Thrown when the AttachPanel is not supported in the device. /// 4 + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void RemoveCategory(ContentCategory category) { if (IsAttachPanelSupported() == false) @@ -233,6 +240,7 @@ namespace Tizen.Applications.AttachPanel /// Thrown when an attempt to allocate the memory fails. /// Thrown when the AttachPanel is not supported in the device. /// 4 + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void SetExtraData(ContentCategory category, Bundle extraData) { if (extraData == null) @@ -267,6 +275,7 @@ namespace Tizen.Applications.AttachPanel /// Thrown when the AttachPanel is destroyed. /// Thrown when the AttachPanel is not supported in the device. /// 4 + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void Show() { if (IsAttachPanelSupported() == false) @@ -291,6 +300,7 @@ namespace Tizen.Applications.AttachPanel /// Thrown when the AttachPanel is destroyed. /// Thrown when the AttachPanel is not supported in the device. /// 4 + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void Show(bool animation) { if (IsAttachPanelSupported() == false) @@ -322,6 +332,7 @@ namespace Tizen.Applications.AttachPanel /// Thrown when the AttachPanel is destroyed. /// Thrown when the AttachPanel is not supported in the device. /// 4 + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void Hide() { if (IsAttachPanelSupported() == false) @@ -346,6 +357,7 @@ namespace Tizen.Applications.AttachPanel /// Thrown when the AttachPanel is destroyed. /// Thrown when the AttachPanel is not supported in the device. /// 4 + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void Hide(bool animation) { if (IsAttachPanelSupported() == false) @@ -374,6 +386,7 @@ namespace Tizen.Applications.AttachPanel /// Occurs when the reserved events are published from the panel-side. /// /// 4 + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public event EventHandler EventChanged { add @@ -400,6 +413,7 @@ namespace Tizen.Applications.AttachPanel /// Occurs when a user selects and confirms something to attach in the AttachPanel. /// /// 4 + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public event EventHandler ResultCallback { add diff --git a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/ContentCategory.cs b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/ContentCategory.cs index bc65fc6..039bbb7 100755 --- a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/ContentCategory.cs +++ b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/ContentCategory.cs @@ -1,9 +1,12 @@ +using System; + namespace Tizen.Applications.AttachPanel { /// /// Enumeration for the attach panel content category. /// /// 4 + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public enum ContentCategory { /// diff --git a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/EventType.cs b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/EventType.cs index f5906a6..e447186 100755 --- a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/EventType.cs +++ b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/EventType.cs @@ -1,9 +1,12 @@ +using System; + namespace Tizen.Applications.AttachPanel { /// /// Enumeration for the attach panel event. /// /// 4 + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public enum EventType { /// diff --git a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/ResultEventArgs.cs b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/ResultEventArgs.cs index 272e75a..573eccd 100755 --- a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/ResultEventArgs.cs +++ b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/ResultEventArgs.cs @@ -6,6 +6,7 @@ namespace Tizen.Applications.AttachPanel /// A class for the event arguments of the result event. /// /// 4 + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public class ResultEventArgs : EventArgs { private readonly ContentCategory _category; @@ -23,6 +24,7 @@ namespace Tizen.Applications.AttachPanel /// Results are from the content category. /// /// 4 + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public ContentCategory Category { get @@ -36,6 +38,7 @@ namespace Tizen.Applications.AttachPanel /// The caller application has to use the ExtraData property to get received data. /// /// 4 + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public AppControl Result { get @@ -48,6 +51,7 @@ namespace Tizen.Applications.AttachPanel /// Property for the result of the AppControl. /// /// 4 + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public AppControlReplyResult ResultCode { get diff --git a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/StateEventArgs.cs b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/StateEventArgs.cs index d053f13..986cde4 100755 --- a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/StateEventArgs.cs +++ b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/StateEventArgs.cs @@ -6,6 +6,7 @@ namespace Tizen.Applications.AttachPanel /// A class for the event arguments of the state event. /// /// 4 + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public class StateEventArgs : EventArgs { private readonly EventType _eventType; @@ -19,6 +20,7 @@ namespace Tizen.Applications.AttachPanel /// Property for the event type. /// /// 4 + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public EventType EventType { get diff --git a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/StateType.cs b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/StateType.cs index da250b6..b0ff1fd 100755 --- a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/StateType.cs +++ b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/StateType.cs @@ -1,9 +1,12 @@ +using System; + namespace Tizen.Applications.AttachPanel { /// /// Enumeration for the attach panel's window state. /// /// 4 + [Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public enum StateType { /// -- 2.7.4