diff --git a/src/Tizen.Applications.AttachPanel/Interop/Interop.AttachPanel.cs b/src/Tizen.Applications.AttachPanel/Interop/Interop.AttachPanel.cs deleted file mode 100755 index 8d5560b5fc5..00000000000 --- a/src/Tizen.Applications.AttachPanel/Interop/Interop.AttachPanel.cs +++ /dev/null @@ -1,78 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using Tizen.Applications; - -/// -/// The Interoperability support class for the Tizen APIs. -/// -internal static partial class Interop -{ - /// - /// The Interoperability support class for the attach panel APIs. - /// - internal static partial class AttachPanel - { - internal enum ErrorCode : int - { - None = Tizen.Internals.Errors.ErrorCode.None, - InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, - OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, - PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, - AlreadyExists = -0x02850000 | 0x01, - NotInitialized = -0x02850000 | 0x02, - UnsupportedContentCategory = -0x02850000 | 0x03, - AlreadyDestroyed = -0x02850000 | 0x05, - NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, - } - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - internal delegate void AttachPanelEventCallback(IntPtr attachPanel, int eventType, IntPtr eventInfo, IntPtr userData); - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - internal delegate void AttachPanelResultCallback(IntPtr attachPanel, int category, IntPtr result, int resultCode, IntPtr userData); - - [DllImport(Libraries.AttachPanel, EntryPoint = "attach_panel_create")] - internal static extern ErrorCode CreateAttachPanel(IntPtr conform, out IntPtr attach_panel); - - [DllImport(Libraries.AttachPanel, EntryPoint = "attach_panel_destroy")] - internal static extern ErrorCode DestroyAttachPanel(IntPtr attach_panel); - - [DllImport(Libraries.AttachPanel, EntryPoint = "attach_panel_add_content_category")] - internal static extern ErrorCode AddCategory(IntPtr attach_panel, int content_category, IntPtr extraData); - - [DllImport(Libraries.AttachPanel, EntryPoint = "attach_panel_remove_content_category")] - internal static extern ErrorCode RemoveCategory(IntPtr attach_panel, int content_category); - - [DllImport(Libraries.AttachPanel, EntryPoint = "attach_panel_set_extra_data")] - internal static extern ErrorCode SetExtraData(IntPtr attach_panel, int content_category, IntPtr extraData); - - [DllImport(Libraries.AttachPanel, EntryPoint = "attach_panel_set_result_cb")] - internal static extern ErrorCode SetResultCb(IntPtr attach_panel, AttachPanelResultCallback callback, IntPtr userData); - - [DllImport(Libraries.AttachPanel, EntryPoint = "attach_panel_unset_result_cb")] - internal static extern ErrorCode UnsetResultCb(IntPtr attach_panel); - - [DllImport(Libraries.AttachPanel, EntryPoint = "attach_panel_set_event_cb")] - internal static extern ErrorCode SetEventCb(IntPtr attach_panel, AttachPanelEventCallback callback, IntPtr userData); - - [DllImport(Libraries.AttachPanel, EntryPoint = "attach_panel_unset_event_cb")] - internal static extern ErrorCode UnsetEventCb(IntPtr attach_panel); - - [DllImport(Libraries.AttachPanel, EntryPoint = "attach_panel_show")] - internal static extern ErrorCode Show(IntPtr attach_panel); - - [DllImport(Libraries.AttachPanel, EntryPoint = "attach_panel_show_without_animation")] - internal static extern ErrorCode ShowWithoutAnimation(IntPtr attach_panel); - - [DllImport(Libraries.AttachPanel, EntryPoint = "attach_panel_hide")] - internal static extern ErrorCode Hide(IntPtr attach_panel); - - [DllImport(Libraries.AttachPanel, EntryPoint = "attach_panel_hide_without_animation")] - internal static extern ErrorCode HideWithoutAnimation(IntPtr attach_panel); - - [DllImport(Libraries.AttachPanel, EntryPoint = "attach_panel_get_visibility")] - internal static extern ErrorCode GetVisibility(IntPtr attach_panel, out int visible); - - [DllImport(Libraries.AttachPanel, EntryPoint = "attach_panel_get_state")] - internal static extern ErrorCode GetState(IntPtr attach_panel, out int state); - } -} \ No newline at end of file diff --git a/src/Tizen.Applications.AttachPanel/Interop/Interop.Libraries.cs b/src/Tizen.Applications.AttachPanel/Interop/Interop.Libraries.cs deleted file mode 100755 index d6e2078b1b9..00000000000 --- a/src/Tizen.Applications.AttachPanel/Interop/Interop.Libraries.cs +++ /dev/null @@ -1,13 +0,0 @@ -/// -/// The Interoperability support class for the attach panel APIs. -/// -internal static partial class Interop -{ - /// - /// The Interoperability support class for the API library. - /// - internal static partial class Libraries - { - public const string AttachPanel = "libattach-panel.so.0.1.0"; - } -} diff --git a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel.csproj b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel.csproj deleted file mode 100755 index eda3cb4dcf0..00000000000 --- a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel.csproj +++ /dev/null @@ -1,17 +0,0 @@ - - - - net8.0 - - - - mobile - - - - - - - - - diff --git a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel.sln b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel.sln deleted file mode 100755 index d9ec1c86bc8..00000000000 --- a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel.sln +++ /dev/null @@ -1,59 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.26730.12 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Applications.AttachPanel", "Tizen.Applications.AttachPanel.csproj", "{C8C93D46-CACE-4BF1-8B50-6A6A00967045}" - ProjectSection(ProjectDependencies) = postProject - {AF2CEEB1-B3B2-4E2D-8854-A54871CD0D1C} = {AF2CEEB1-B3B2-4E2D-8854-A54871CD0D1C} - {0FF56FE4-CBFA-4E8E-B0A2-0FEDB856498D} = {0FF56FE4-CBFA-4E8E-B0A2-0FEDB856498D} - EndProjectSection -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Applications.Common", "..\Tizen.Applications.Common\Tizen.Applications.Common.csproj", "{D2B5F854-4FE1-473C-A8E3-53ABB0A966AA}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen", "..\Tizen\Tizen.csproj", "{B01C1F2E-18E2-4DDE-8B7E-6642F0730A7F}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Log", "..\Tizen.Log\Tizen.Log.csproj", "{AFF3D5BA-42DA-40CE-BC57-0DC1E92673B9}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ElmSharp", "..\ElmSharp\ElmSharp.csproj", "{AF2CEEB1-B3B2-4E2D-8854-A54871CD0D1C}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.System.Information", "..\Tizen.System.Information\Tizen.System.Information.csproj", "{0FF56FE4-CBFA-4E8E-B0A2-0FEDB856498D}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {C8C93D46-CACE-4BF1-8B50-6A6A00967045}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C8C93D46-CACE-4BF1-8B50-6A6A00967045}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C8C93D46-CACE-4BF1-8B50-6A6A00967045}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C8C93D46-CACE-4BF1-8B50-6A6A00967045}.Release|Any CPU.Build.0 = Release|Any CPU - {D2B5F854-4FE1-473C-A8E3-53ABB0A966AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D2B5F854-4FE1-473C-A8E3-53ABB0A966AA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D2B5F854-4FE1-473C-A8E3-53ABB0A966AA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D2B5F854-4FE1-473C-A8E3-53ABB0A966AA}.Release|Any CPU.Build.0 = Release|Any CPU - {B01C1F2E-18E2-4DDE-8B7E-6642F0730A7F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B01C1F2E-18E2-4DDE-8B7E-6642F0730A7F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B01C1F2E-18E2-4DDE-8B7E-6642F0730A7F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B01C1F2E-18E2-4DDE-8B7E-6642F0730A7F}.Release|Any CPU.Build.0 = Release|Any CPU - {AFF3D5BA-42DA-40CE-BC57-0DC1E92673B9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {AFF3D5BA-42DA-40CE-BC57-0DC1E92673B9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {AFF3D5BA-42DA-40CE-BC57-0DC1E92673B9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {AFF3D5BA-42DA-40CE-BC57-0DC1E92673B9}.Release|Any CPU.Build.0 = Release|Any CPU - {AF2CEEB1-B3B2-4E2D-8854-A54871CD0D1C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {AF2CEEB1-B3B2-4E2D-8854-A54871CD0D1C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {AF2CEEB1-B3B2-4E2D-8854-A54871CD0D1C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {AF2CEEB1-B3B2-4E2D-8854-A54871CD0D1C}.Release|Any CPU.Build.0 = Release|Any CPU - {0FF56FE4-CBFA-4E8E-B0A2-0FEDB856498D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0FF56FE4-CBFA-4E8E-B0A2-0FEDB856498D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0FF56FE4-CBFA-4E8E-B0A2-0FEDB856498D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0FF56FE4-CBFA-4E8E-B0A2-0FEDB856498D}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {7169FEAE-EE0D-4B29-B710-F504A6B82E8C} - EndGlobalSection -EndGlobal diff --git a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/AttachPanel.cs b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/AttachPanel.cs deleted file mode 100755 index 0aad56a071a..00000000000 --- a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/AttachPanel.cs +++ /dev/null @@ -1,439 +0,0 @@ -using ElmSharp; -using System; - -namespace Tizen.Applications.AttachPanel -{ - /// - /// Represents the immutable class for the attach panel. - /// - [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")] - public partial class AttachPanel - { - /// - /// Represents the immutable class for the attach panel. - /// - /// 4 - /// The caller's conformant. - /// http://tizen.org/feature/attach_panel - /// Thrown when the parameter is null - /// 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 12. Will be removed in API Level 14.")] - public AttachPanel(EvasObject conformant) - { - if (conformant == IntPtr.Zero) - { - throw new ArgumentNullException("Invalid conformant, it's null"); - } - - if (IsAttachPanelSupported() == false) - { - CheckException(Interop.AttachPanel.ErrorCode.NotSupported); - } - - if (IsInitialized()) - { - CheckException(Interop.AttachPanel.ErrorCode.AlreadyExists); - } - - var candidateAttachPanel = IntPtr.Zero; - var err = Interop.AttachPanel.CreateAttachPanel(conformant, out candidateAttachPanel); - CheckException(err); - - Tizen.Log.Debug("AttachPanelSharp", "Success to create an AttachPanel Instance"); - s_attachPanel = candidateAttachPanel; - - if (s_eventEventHandler == null) - { - StateEventListenStart(); - } - - if (s_resultEventHandler == null) - { - ResultEventListenStart(); - } - } - - /// - /// Represents the immutable class for the attach panel. - /// - /// 4 - /// The caller's conformant. - /// http://tizen.org/feature/attach_panel - /// 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. - /// Thrown when the parameter is null - [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")] - public AttachPanel(Conformant conformant) : this(conformant as EvasObject) - { - } - - /// - /// A destructor which deallocates the attach panel resources. - /// - ~AttachPanel() - { - if (IsInitialized()) - { - Interop.AttachPanel.DestroyAttachPanel(s_attachPanel); - s_attachPanel = IntPtr.Zero; - } - } - - /// - /// Gets the state of the AttachPanel. - /// - /// The AttachPanel window state. - /// 4 - /// 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. - /// Thrown when the parameter is invalid - [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")] - public StateType State - { - get - { - if (IsAttachPanelSupported() == false) - { - CheckException(Interop.AttachPanel.ErrorCode.NotSupported); - } - - if (IsInitialized() == false) - { - CheckException(Interop.AttachPanel.ErrorCode.NotInitialized); - } - - var err = Interop.AttachPanel.GetState(s_attachPanel, out int interopState); - CheckException(err); - - return (StateType)Enum.ToObject(typeof(StateType), interopState); - } - } - - /// - /// Gets the value that indicates whether the AttachPanel is visible. - /// - /// Visible value of the AttachPanel state. - /// 4 - /// 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 12. Will be removed in API Level 14.")] - public bool Visible - { - get - { - if (IsAttachPanelSupported() == false) - { - CheckException(Interop.AttachPanel.ErrorCode.NotSupported); - } - - if (IsInitialized() == false) - { - CheckException(Interop.AttachPanel.ErrorCode.NotInitialized); - } - - var err = Interop.AttachPanel.GetVisibility(s_attachPanel, out int visible); - CheckException(err); - - return visible == 1; - } - } - - /// - /// Adds a content category in the AttachPanel. - /// - /// The ContentCategory to be added in the AttachPanel. - /// The AttachPanel sends some information using the Bundle. - /// http://tizen.org/privilege/mediastorage - /// http://tizen.org/privilege/camera - /// http://tizen.org/privilege/telephony - /// http://tizen.org/privilege/recorder - /// http://tizen.org/privilege/appmanager.launch - /// http://tizen.org/feature/camera - /// http://tizen.org/feature/microphone - /// http://tizen.org/feature/attach_panel - /// - /// The caller application has to check the return value of this function. - /// Content categories will be shown as the sequence of using AddCategory. - /// Some contents need time to load it all. - /// So, it is needed to use this before the main-loop of the Show. - /// Privileges, - /// http://tizen.org/privilege/mediastorage, for using Image or Camera. - /// http://tizen.org/privilege/camera, for using Camera or TakePicture. - /// http://tizen.org/privilege/telephony, for using Camera, Since(5.0). - /// http://tizen.org/privilege/recorder, for using Voice. - /// http://tizen.org/privilege/appmanager.launch, for adding content categories on the More tab. - /// http://tizen.org/feature/camera, for using Camera or TakePicture. - /// http://tizen.org/feature/microphone, for using Voice. - /// http://tizen.org/feature/attach_panel, for using attach panel - /// Deliver more information to the callee with a bundle if you need. - /// http://tizen.org/appcontrol/data/total_count - /// http://tizen.org/appcontrol/data/total_size - /// - /// Thrown when the is not a valid category. - /// Thrown when the application does not have the privilege to access this method. - /// Thrown when the device does not support the feature. - /// 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 12. Will be removed in API Level 14.")] - public void AddCategory(ContentCategory category, Bundle extraData) - { - if (IsAttachPanelSupported() == false) - { - CheckException(Interop.AttachPanel.ErrorCode.NotSupported); - } - - if (IsInitialized() == false) - { - CheckException(Interop.AttachPanel.ErrorCode.NotInitialized); - } - - var bundle = IntPtr.Zero; - if (extraData != null) - { - bundle = extraData.SafeBundleHandle.DangerousGetHandle(); - } - - var err = Interop.AttachPanel.AddCategory(s_attachPanel, (int)category, bundle); - CheckException(err); - } - - /// - /// Removes the ContentCategory from the AttachPanel. - /// - /// The ContentCategory to be added in the AttachPanel. - /// http://tizen.org/feature/attach_panel - /// Thrown when the is not a valid category. - /// 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 12. Will be removed in API Level 14.")] - public void RemoveCategory(ContentCategory category) - { - if (IsAttachPanelSupported() == false) - { - CheckException(Interop.AttachPanel.ErrorCode.NotSupported); - } - - if (IsInitialized() == false) - { - CheckException(Interop.AttachPanel.ErrorCode.NotInitialized); - } - - var err = Interop.AttachPanel.RemoveCategory(s_attachPanel, (int)category); - CheckException(err); - } - - /// - /// Sets the extraData to be sent to the ContentCategory using a Bundle. - /// - /// The ContentCategory that some information is to be set, in the AttachPanel. - /// The AttachPanel sends some information using a Bundle. - /// http://tizen.org/feature/attach_panel - /// Thrown when the is not a valid category. - /// Thrown when the AttachPanel is destroyed. - /// 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 12. Will be removed in API Level 14.")] - public void SetExtraData(ContentCategory category, Bundle extraData) - { - if (extraData == null) - { - CheckException(Interop.AttachPanel.ErrorCode.InvalidParameter); - } - - if (IsAttachPanelSupported() == false) - { - CheckException(Interop.AttachPanel.ErrorCode.NotSupported); - } - - if (IsInitialized() == false) - { - CheckException(Interop.AttachPanel.ErrorCode.NotInitialized); - } - - var bundle = IntPtr.Zero; - if (extraData != null) - { - bundle = extraData.SafeBundleHandle.DangerousGetHandle(); - } - - var err = Interop.AttachPanel.SetExtraData(s_attachPanel, (int)category, bundle); - CheckException(err); - } - - /// - /// Shows the attach panel with the animations. - /// - /// http://tizen.org/feature/attach_panel - /// Thrown when the AttachPanel is destroyed. - /// Thrown when the AttachPanel is not supported in the device. - /// 4 - [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")] - public void Show() - { - if (IsAttachPanelSupported() == false) - { - CheckException(Interop.AttachPanel.ErrorCode.NotSupported); - } - - if (IsInitialized() == false) - { - CheckException(Interop.AttachPanel.ErrorCode.NotInitialized); - } - - var err = Interop.AttachPanel.Show(s_attachPanel); - CheckException(err); - } - - /// - /// Shows the attach panel and selects whether or not to animate. - /// - /// A flag which turns on or turns off the animation while the attach panel is showing. - /// http://tizen.org/feature/attach_panel - /// Thrown when the AttachPanel is destroyed. - /// Thrown when the AttachPanel is not supported in the device. - /// 4 - [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")] - public void Show(bool animation) - { - if (IsAttachPanelSupported() == false) - { - CheckException(Interop.AttachPanel.ErrorCode.NotSupported); - } - - if (IsInitialized() == false) - { - CheckException(Interop.AttachPanel.ErrorCode.NotInitialized); - } - - if (animation) - { - var err = Interop.AttachPanel.Show(s_attachPanel); - CheckException(err); - } - else - { - var err = Interop.AttachPanel.ShowWithoutAnimation(s_attachPanel); - CheckException(err); - } - } - - /// - /// Hides the attach panel with the animations. - /// - /// http://tizen.org/feature/attach_panel - /// Thrown when the AttachPanel is destroyed. - /// Thrown when the AttachPanel is not supported in the device. - /// 4 - [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")] - public void Hide() - { - if (IsAttachPanelSupported() == false) - { - CheckException(Interop.AttachPanel.ErrorCode.NotSupported); - } - - if (IsInitialized() == false) - { - CheckException(Interop.AttachPanel.ErrorCode.NotInitialized); - } - - var err = Interop.AttachPanel.Hide(s_attachPanel); - CheckException(err); - } - - /// - /// Hides the attach panel and selects whether or not to animate. - /// - /// A flag which turns on or turns off the animation while the attach panel is hiding. - /// http://tizen.org/feature/attach_panel - /// Thrown when the AttachPanel is destroyed. - /// Thrown when the AttachPanel is not supported in the device. - /// 4 - [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")] - public void Hide(bool animation) - { - if (IsAttachPanelSupported() == false) - { - CheckException(Interop.AttachPanel.ErrorCode.NotSupported); - } - - if (IsInitialized() == false) - { - CheckException(Interop.AttachPanel.ErrorCode.NotInitialized); - } - - if (animation) - { - var err = Interop.AttachPanel.Hide(s_attachPanel); - CheckException(err); - } - else - { - var err = Interop.AttachPanel.HideWithoutAnimation(s_attachPanel); - CheckException(err); - } - } - - /// - /// Occurs when the reserved events are published from the panel-side. - /// - /// 4 - [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")] - public event EventHandler EventChanged - { - add - { - if (s_eventEventHandler == null) - { - StateEventListenStart(); - } - - s_eventEventHandler += value; - } - - remove - { - s_eventEventHandler -= value; - if (s_eventEventHandler == null) - { - StateEventListenStop(); - } - } - } - - /// - /// Occurs when a user selects and confirms something to attach in the AttachPanel. - /// - /// 4 - [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")] - public event EventHandler ResultCallback - { - add - { - if (s_resultEventHandler == null) - { - ResultEventListenStart(); - } - - s_resultEventHandler += value; - } - - remove - { - s_resultEventHandler -= value; - if (s_resultEventHandler == null) - { - ResultEventListenStop(); - } - } - } - } -} diff --git a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/AttachPanelInternal.cs b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/AttachPanelInternal.cs deleted file mode 100755 index 0b2d19277a8..00000000000 --- a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/AttachPanelInternal.cs +++ /dev/null @@ -1,89 +0,0 @@ -using System; -using System.Collections.Generic; -using Tizen.System; - -namespace Tizen.Applications.AttachPanel -{ - /// - /// Attach panel internal implementation. - /// - /// 4 - public partial class AttachPanel - { - private IntPtr s_attachPanel = IntPtr.Zero; - - private event EventHandler s_eventEventHandler; - - private event EventHandler s_resultEventHandler; - - private Interop.AttachPanel.AttachPanelEventCallback s_setEventListener; - private Interop.AttachPanel.AttachPanelResultCallback s_setResultListener; - - private void StateEventListenStart() - { - s_setEventListener = (attachPanel, eventType, eventInfo, userData) => - { - s_eventEventHandler?.Invoke(null, new StateEventArgs((EventType)eventType)); - }; - var err = Interop.AttachPanel.SetEventCb(s_attachPanel, s_setEventListener, IntPtr.Zero); - CheckException(err); - } - - private void StateEventListenStop() - { - var err = Interop.AttachPanel.UnsetEventCb(s_attachPanel); - CheckException(err); - } - - private void ResultEventListenStart() - { - s_setResultListener = (attachPanel, category, resulthandler, resultCode, userData) => - { - SafeAppControlHandle handle = new SafeAppControlHandle(resulthandler, false); - AppControl result = new AppControl(handle); - s_resultEventHandler?.Invoke(null, new ResultEventArgs((ContentCategory)category, result, (AppControlReplyResult)resultCode)); - }; - var err = Interop.AttachPanel.SetResultCb(s_attachPanel, s_setResultListener, IntPtr.Zero); - CheckException(err); - } - - private void ResultEventListenStop() - { - var err = Interop.AttachPanel.UnsetResultCb(s_attachPanel); - CheckException(err); - } - - internal static void CheckException(Interop.AttachPanel.ErrorCode err) - { - switch (err) - { - case Interop.AttachPanel.ErrorCode.InvalidParameter: - throw new ArgumentOutOfRangeException("Invalid parameter"); - case Interop.AttachPanel.ErrorCode.OutOfMemory: - throw new OutOfMemoryException("Out of Memory"); - case Interop.AttachPanel.ErrorCode.PermissionDenied: - throw new UnauthorizedAccessException(); - case Interop.AttachPanel.ErrorCode.AlreadyExists: - throw new InvalidOperationException("AttachPanel is already exists"); - case Interop.AttachPanel.ErrorCode.NotInitialized: - throw new InvalidOperationException("AttachPanel is not initialized"); - case Interop.AttachPanel.ErrorCode.UnsupportedContentCategory: - throw new NotSupportedException("Unsupported content category"); - case Interop.AttachPanel.ErrorCode.AlreadyDestroyed: - throw new InvalidOperationException("AttachPanel is already destroyed"); - case Interop.AttachPanel.ErrorCode.NotSupported: - throw new NotSupportedException("AttachPanel is not supported in this device"); - } - } - - internal static bool IsAttachPanelSupported() - { - return Information.TryGetValue("http://tizen.org/feature/attach_panel", out bool isAttachPanelSupported) && isAttachPanelSupported; - } - - internal bool IsInitialized() - { - return s_attachPanel != IntPtr.Zero; - } - } -} diff --git a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/ContentCategory.cs b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/ContentCategory.cs deleted file mode 100755 index 4f3e38869e4..00000000000 --- a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/ContentCategory.cs +++ /dev/null @@ -1,72 +0,0 @@ -using System; - -namespace Tizen.Applications.AttachPanel -{ - /// - /// Enumeration for the attach panel content category. - /// - /// 4 - [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")] - public enum ContentCategory - { - /// - /// Attaching images from the gallery. - /// - Image = 1, - - /// - /// Taking pictures to attach. - /// - Camera, - - /// - /// Taking a voice clip to attach. - /// - Voice, - - /// - /// Attaching video from the gallery. - /// - Video, - - /// - /// Attaching audio from my files. - /// - Audio, - - /// - /// Attaching calendar data from the calendar. - /// - Calendar, - - /// - /// Attaching contact data from the contacts. - /// - Contact, - - /// - /// Attaching files data from my files. - /// - Myfiles, - - /// - /// Taking a video clip to attach. - /// - VideoRecorder, - - /// - /// Attaching files from the document list. - /// - Document, - - /// - /// Launching apps to take pictures will be attached. - /// - TakePicture, - - /// - /// Attaching memo data from the memo. - /// - Memo, - } -} diff --git a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/EventType.cs b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/EventType.cs deleted file mode 100755 index 5a816939bf4..00000000000 --- a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/EventType.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; - -namespace Tizen.Applications.AttachPanel -{ - /// - /// Enumeration for the attach panel event. - /// - /// 4 - [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")] - public enum EventType - { - /// - /// Attach panel starts the effect to show. - /// - ShowStart = 1, - - /// - /// Attach panel finishes the effect to show. - /// - ShowFinish, - - /// - /// Attach panel starts the effect to hide the panel. - /// - HideStart, - - /// - /// Attach panel finishes the effect to hide the panel. - /// - HideFinish, - } -} diff --git a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/ResultEventArgs.cs b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/ResultEventArgs.cs deleted file mode 100755 index 62ff4647c56..00000000000 --- a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/ResultEventArgs.cs +++ /dev/null @@ -1,63 +0,0 @@ -using System; - -namespace Tizen.Applications.AttachPanel -{ - /// - /// A class for the event arguments of the result event. - /// - /// 4 - [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")] - public class ResultEventArgs : EventArgs - { - private readonly ContentCategory _category; - private readonly AppControl _result; - private readonly AppControlReplyResult _resultCode; - - internal ResultEventArgs(ContentCategory category, AppControl result, AppControlReplyResult resultCode) - { - _category = category; - _result = result; - _resultCode = resultCode; - } - - /// - /// Results are from the content category. - /// - /// 4 - [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")] - public ContentCategory Category - { - get - { - return _category; - } - } - - /// - /// Property for the result. - /// The caller application has to use the ExtraData property to get received data. - /// - /// 4 - [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")] - public AppControl Result - { - get - { - return _result; - } - } - - /// - /// Property for the result of the AppControl. - /// - /// 4 - [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")] - public AppControlReplyResult ResultCode - { - get - { - return _resultCode; - } - } - } -} diff --git a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/StateEventArgs.cs b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/StateEventArgs.cs deleted file mode 100755 index 29fa1ccb98c..00000000000 --- a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/StateEventArgs.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; - -namespace Tizen.Applications.AttachPanel -{ - /// - /// A class for the event arguments of the state event. - /// - /// 4 - [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")] - public class StateEventArgs : EventArgs - { - private readonly EventType _eventType; - - internal StateEventArgs(EventType eventType) - { - _eventType = eventType; - } - - /// - /// Property for the event type. - /// - /// 4 - [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")] - public EventType EventType - { - get - { - return _eventType; - } - } - } -} diff --git a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/StateType.cs b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/StateType.cs deleted file mode 100755 index 283567b58cb..00000000000 --- a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/StateType.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; - -namespace Tizen.Applications.AttachPanel -{ - /// - /// Enumeration for the attach panel's window state. - /// - /// 4 - [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")] - public enum StateType - { - /// - /// Attach panel is not visible. - /// - Hidden = 0, - - /// - /// Attach panel is in the partial window mode. - /// - Partial, - - /// - /// Attach panel is in the full screen mode. - /// - Full, - } -} \ No newline at end of file