From d0ee25c371ab1b611b21852e0192c12eaf29cde4 Mon Sep 17 00:00:00 2001 From: kilig Date: Tue, 4 Oct 2022 19:04:19 +0900 Subject: [PATCH] [Tizen.Applications] Deprecate some application API (#4547) - Deprecate Tizen.Applications.ComponentBased.Default - Deprecate Tizen.Applications.RemoteView - Deprecate Tizen.Applications.WatchApplication - Deprecate Tizen.Applications.WidgetApplication Signed-off-by: Inkyun Kil Signed-off-by: Inkyun Kil Co-authored-by: WonYoung Choi --- .../EFLComponentBasedApplication.cs | 6 ++++++ .../EFLWindowInfo.cs | 5 +++++ .../Tizen.Applications/RemoteView.cs | 12 ++++++++++++ .../Tizen.Applications/RemoteViewFactory.cs | 4 ++++ .../Tizen.Applications/AmbientEventArgs.cs | 1 + .../Tizen.Applications/AmbientTickType.cs | 1 + .../Tizen.Applications/TimeEventArgs.cs | 1 + .../Tizen.Applications/TimeTickResolution.cs | 1 + .../Tizen.Applications/WatchApplication.cs | 21 +++++++++++++++++++++ .../Tizen.Applications/WatchTime.cs | 12 ++++++++++++ .../Tizen.Applications/WidgetApplication.cs | 5 +++++ .../Tizen.Applications/WidgetBase.cs | 14 ++++++++++++++ 12 files changed, 83 insertions(+) mode change 100644 => 100755 src/Tizen.Applications.ComponentBased.Default/Tizen.Applications.ComponentBased.Default/EFLWindowInfo.cs mode change 100644 => 100755 src/Tizen.Applications.WatchApplication/Tizen.Applications/WatchTime.cs mode change 100644 => 100755 src/Tizen.Applications.WidgetApplication/Tizen.Applications/WidgetBase.cs diff --git a/src/Tizen.Applications.ComponentBased.Default/Tizen.Applications.ComponentBased.Default/EFLComponentBasedApplication.cs b/src/Tizen.Applications.ComponentBased.Default/Tizen.Applications.ComponentBased.Default/EFLComponentBasedApplication.cs index 5abfcff..3b4dba6 100755 --- a/src/Tizen.Applications.ComponentBased.Default/Tizen.Applications.ComponentBased.Default/EFLComponentBasedApplication.cs +++ b/src/Tizen.Applications.ComponentBased.Default/Tizen.Applications.ComponentBased.Default/EFLComponentBasedApplication.cs @@ -9,6 +9,7 @@ namespace Tizen.Applications.ComponentBased.Default /// The basic EFL component-based application class. /// /// 6 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public class EFLComponentBasedApplication : ComponentBasedApplication { private const string LogTag = "Tizen.Applications"; @@ -21,6 +22,7 @@ namespace Tizen.Applications.ComponentBased.Default /// The value should be a component id which is declared in tizen-manifest.xml. /// /// 6 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public EFLComponentBasedApplication(IDictionary typeInfo) : base(typeInfo) { } @@ -30,6 +32,7 @@ namespace Tizen.Applications.ComponentBased.Default /// /// /// 6 + [Obsolete("Deprecated since API10. Will be removed in API12.")] protected override void OnInit(string[] args) { Interop.Elementary.ElmInit(args.Length, args); @@ -55,6 +58,7 @@ namespace Tizen.Applications.ComponentBased.Default /// This method will be called after exiting main-loop /// /// 6 + [Obsolete("Deprecated since API10. Will be removed in API12.")] protected override void OnFinished() { Interop.Elementary.ElmShutdown(); @@ -69,6 +73,7 @@ namespace Tizen.Applications.ComponentBased.Default /// This method will be called to start main-loop /// /// 6 + [Obsolete("Deprecated since API10. Will be removed in API12.")] protected override void OnRun() { Interop.Elementary.ElmRun(); @@ -78,6 +83,7 @@ namespace Tizen.Applications.ComponentBased.Default /// This method will be called to exit main-loop /// /// 6 + [Obsolete("Deprecated since API10. Will be removed in API12.")] protected override void OnExit() { Interop.Elementary.ElmExit(); diff --git a/src/Tizen.Applications.ComponentBased.Default/Tizen.Applications.ComponentBased.Default/EFLWindowInfo.cs b/src/Tizen.Applications.ComponentBased.Default/Tizen.Applications.ComponentBased.Default/EFLWindowInfo.cs old mode 100644 new mode 100755 index e899a0c..5d290c2 --- a/src/Tizen.Applications.ComponentBased.Default/Tizen.Applications.ComponentBased.Default/EFLWindowInfo.cs +++ b/src/Tizen.Applications.ComponentBased.Default/Tizen.Applications.ComponentBased.Default/EFLWindowInfo.cs @@ -8,6 +8,7 @@ namespace Tizen.Applications.ComponentBased.Default /// Window information class for ComponentBasedApplication /// /// 6 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public class EFLWindowInfo : IWindowInfo { private const string LogTag = "Tizen.Applications"; @@ -20,6 +21,7 @@ namespace Tizen.Applications.ComponentBased.Default /// /// The window object of component. /// 6 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public EFLWindowInfo(Window win) { _win = win; @@ -30,6 +32,7 @@ namespace Tizen.Applications.ComponentBased.Default /// /// The native handle of window /// 6 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public int ResourceId { get @@ -50,6 +53,7 @@ namespace Tizen.Applications.ComponentBased.Default /// /// 6 /// If true, disposes any disposable objects. If false, does not dispose disposable objects. + [Obsolete("Deprecated since API10. Will be removed in API12.")] protected virtual void Dispose(bool disposing) { if (_disposed) @@ -68,6 +72,7 @@ namespace Tizen.Applications.ComponentBased.Default /// /// /// 6 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public void Dispose() { Dispose(true); diff --git a/src/Tizen.Applications.RemoteView/Tizen.Applications/RemoteView.cs b/src/Tizen.Applications.RemoteView/Tizen.Applications/RemoteView.cs index af98247..dab7417 100755 --- a/src/Tizen.Applications.RemoteView/Tizen.Applications/RemoteView.cs +++ b/src/Tizen.Applications.RemoteView/Tizen.Applications/RemoteView.cs @@ -24,12 +24,14 @@ namespace Tizen.Applications /// Represents the proxy class for the widget application. /// /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public class RemoteView { /// /// The event types to send. /// /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public enum Event { /// @@ -48,6 +50,7 @@ namespace Tizen.Applications /// /// http://tizen.org/privilege/widget.viewer /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public Layout Layout { get; internal set; } /// @@ -55,6 +58,7 @@ namespace Tizen.Applications /// /// http://tizen.org/privilege/widget.viewer /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public string Id { get @@ -70,6 +74,7 @@ namespace Tizen.Applications /// /// http://tizen.org/privilege/widget.viewer /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public double Period { get @@ -86,6 +91,7 @@ namespace Tizen.Applications /// /// http://tizen.org/privilege/widget.viewer /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public string Content { get @@ -101,6 +107,7 @@ namespace Tizen.Applications /// /// http://tizen.org/privilege/widget.viewer /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public string Title { get @@ -147,6 +154,7 @@ namespace Tizen.Applications /// Thrown when this operation is denied. /// Thrown when this operation is not supported for this device. /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public static void PauseAll() { CheckException(Interop.WidgetViewerEvas.NotifyPausedStatusOfViewer()); @@ -160,6 +168,7 @@ namespace Tizen.Applications /// Thrown when this operation is denied. /// Thrown when this operation is not supported for this device. /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public static void ResumeAll() { CheckException(Interop.WidgetViewerEvas.NotifyResumedStatusOfViewer()); @@ -173,6 +182,7 @@ namespace Tizen.Applications /// Thrown when this operation is denied. /// Thrown when this operation is not supported for this device. /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public void Pause() { CheckException(Interop.WidgetViewerEvas.PauseWidget(Layout)); @@ -186,6 +196,7 @@ namespace Tizen.Applications /// Thrown when this operation is denied. /// Thrown when this operation is not supported for this device. /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public void Resume() { CheckException(Interop.WidgetViewerEvas.ResumeWidget(Layout)); @@ -198,6 +209,7 @@ namespace Tizen.Applications /// Thrown when this operation is denied. /// Thrown when this operation is not supported for this device. /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public void SendEvent(Event ev) { switch (ev) diff --git a/src/Tizen.Applications.RemoteView/Tizen.Applications/RemoteViewFactory.cs b/src/Tizen.Applications.RemoteView/Tizen.Applications/RemoteViewFactory.cs index 8fd6798..cbf77a4 100755 --- a/src/Tizen.Applications.RemoteView/Tizen.Applications/RemoteViewFactory.cs +++ b/src/Tizen.Applications.RemoteView/Tizen.Applications/RemoteViewFactory.cs @@ -23,6 +23,7 @@ namespace Tizen.Applications /// Represents a factory class for making the RemoteView objects. /// /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public static class RemoteViewFactory { private static bool _ready; @@ -38,6 +39,7 @@ namespace Tizen.Applications /// Thrown when this operation is denied. /// Thrown when this operation is not supported for this device. /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public static void Init(EvasObject win) { if (_ready) @@ -62,6 +64,7 @@ namespace Tizen.Applications /// Thrown when this operation is denied. /// Thrown when this operation is not supported for this device. /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public static RemoteView Create(EvasObject parent, string widgetId, string content, double period, bool previewImage = true, bool overlayText = true, bool loadingMessage = true) { @@ -93,6 +96,7 @@ namespace Tizen.Applications /// Thrown when this operation is denied. /// Thrown when this operation is not supported for this device. /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public static void Shutdown() { if (!_ready) diff --git a/src/Tizen.Applications.WatchApplication/Tizen.Applications/AmbientEventArgs.cs b/src/Tizen.Applications.WatchApplication/Tizen.Applications/AmbientEventArgs.cs index 4d14b49..d03bdea 100755 --- a/src/Tizen.Applications.WatchApplication/Tizen.Applications/AmbientEventArgs.cs +++ b/src/Tizen.Applications.WatchApplication/Tizen.Applications/AmbientEventArgs.cs @@ -23,6 +23,7 @@ namespace Tizen.Applications /// Arguments for the event that are raised when the device enters or exits the ambient mode. /// /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public class AmbientEventArgs : EventArgs { /// diff --git a/src/Tizen.Applications.WatchApplication/Tizen.Applications/AmbientTickType.cs b/src/Tizen.Applications.WatchApplication/Tizen.Applications/AmbientTickType.cs index 07b71cb..f3392fe 100755 --- a/src/Tizen.Applications.WatchApplication/Tizen.Applications/AmbientTickType.cs +++ b/src/Tizen.Applications.WatchApplication/Tizen.Applications/AmbientTickType.cs @@ -22,6 +22,7 @@ namespace Tizen.Applications /// Enumeration for the ambient tick types. /// /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public enum AmbientTickType { /// diff --git a/src/Tizen.Applications.WatchApplication/Tizen.Applications/TimeEventArgs.cs b/src/Tizen.Applications.WatchApplication/Tizen.Applications/TimeEventArgs.cs index d93deeb..f67a337 100755 --- a/src/Tizen.Applications.WatchApplication/Tizen.Applications/TimeEventArgs.cs +++ b/src/Tizen.Applications.WatchApplication/Tizen.Applications/TimeEventArgs.cs @@ -22,6 +22,7 @@ namespace Tizen.Applications /// Arguments for the event that are raised when the time tick comes. /// /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public class TimeEventArgs : EventArgs { /// diff --git a/src/Tizen.Applications.WatchApplication/Tizen.Applications/TimeTickResolution.cs b/src/Tizen.Applications.WatchApplication/Tizen.Applications/TimeTickResolution.cs index 72507d2..3755459 100755 --- a/src/Tizen.Applications.WatchApplication/Tizen.Applications/TimeTickResolution.cs +++ b/src/Tizen.Applications.WatchApplication/Tizen.Applications/TimeTickResolution.cs @@ -22,6 +22,7 @@ namespace Tizen.Applications /// Enumeration for the time tick resolution. /// /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public enum TimeTickResolution { /// diff --git a/src/Tizen.Applications.WatchApplication/Tizen.Applications/WatchApplication.cs b/src/Tizen.Applications.WatchApplication/Tizen.Applications/WatchApplication.cs index ecf49ee..76fb7f8 100755 --- a/src/Tizen.Applications.WatchApplication/Tizen.Applications/WatchApplication.cs +++ b/src/Tizen.Applications.WatchApplication/Tizen.Applications/WatchApplication.cs @@ -24,6 +24,7 @@ namespace Tizen.Applications /// The class that represents the Tizen watch application. /// /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public class WatchApplication : CoreApplication { /// @@ -33,6 +34,7 @@ namespace Tizen.Applications /// Default backend for the watch application will be used. /// /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public WatchApplication() : base(new WatchCoreBackend()) { } @@ -45,6 +47,7 @@ namespace Tizen.Applications /// /// The backend instance implementing the ICoreBackend interface. /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public WatchApplication(ICoreBackend backend) : base(backend) { } @@ -53,36 +56,42 @@ namespace Tizen.Applications /// Instances for the window. /// /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] protected Window Window; /// /// Occurs whenever the application is resumed. /// /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public event EventHandler Resumed; /// /// Occurs whenever the application is paused. /// /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public event EventHandler Paused; /// /// Occurs whenever the time tick comes. /// /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public event EventHandler TimeTick; /// /// Occurs whenever the time tick comes in the ambient mode. /// /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public event EventHandler AmbientTick; /// /// Occurs when the ambient mode is changed. /// /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public event EventHandler AmbientChanged; /// @@ -90,6 +99,7 @@ namespace Tizen.Applications /// /// Arguments from the commandline. /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public override void Run(string[] args) { Backend.AddEventHandler(EventType.Resumed, OnResume); @@ -107,6 +117,7 @@ namespace Tizen.Applications /// If base.OnCreate() is not called, the event 'Created' will not be emitted. /// /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] protected override void OnCreate() { base.OnCreate(); @@ -122,6 +133,7 @@ namespace Tizen.Applications /// If base.OnResume() is not called, the event 'Resumed' will not be emitted. /// /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] protected virtual void OnResume() { Resumed?.Invoke(this, EventArgs.Empty); @@ -132,6 +144,7 @@ namespace Tizen.Applications /// If base.OnPause() is not called, the event 'Paused' will not be emitted. /// /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] protected virtual void OnPause() { Paused?.Invoke(this, EventArgs.Empty); @@ -143,6 +156,7 @@ namespace Tizen.Applications /// /// The received TimeEventArgs to get the time information. /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] protected virtual void OnTick(TimeEventArgs time) { TimeTick?.Invoke(this, time); @@ -155,6 +169,7 @@ namespace Tizen.Applications /// The received TimeEventArgs to get time information. /// http://tizen.org/privilege/alarm.set /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] protected virtual void OnAmbientTick(TimeEventArgs time) { AmbientTick?.Invoke(this, time); @@ -166,6 +181,7 @@ namespace Tizen.Applications /// /// The received AmbientEventArgs. /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] protected virtual void OnAmbientChanged(AmbientEventArgs mode) { AmbientChanged?.Invoke(this, mode); @@ -199,6 +215,7 @@ namespace Tizen.Applications /// /// /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] protected WatchTime GetCurrentTime() { SafeWatchTimeHandle handle; @@ -243,6 +260,7 @@ namespace Tizen.Applications /// /// /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] protected AmbientTickType GetAmbientTickType() { AmbientTickType ambientTickType; @@ -288,6 +306,7 @@ namespace Tizen.Applications /// /// /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] protected void SetAmbientTickType(AmbientTickType ambientTickType) { Interop.Watch.ErrorCode err = Interop.Watch.SetAmbientTickType(ambientTickType); @@ -330,6 +349,7 @@ namespace Tizen.Applications /// /// /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] protected void SetTimeTickFrequency(int ticks, TimeTickResolution type) { Interop.Watch.ErrorCode err = Interop.Watch.SetTimeTickFrequency(ticks, type); @@ -372,6 +392,7 @@ namespace Tizen.Applications /// /// /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] protected void GetTimeTickFrequency(out int ticks, out TimeTickResolution type) { Interop.Watch.ErrorCode err = Interop.Watch.GetTimeTickFrequency(out ticks, out type); diff --git a/src/Tizen.Applications.WatchApplication/Tizen.Applications/WatchTime.cs b/src/Tizen.Applications.WatchApplication/Tizen.Applications/WatchTime.cs old mode 100644 new mode 100755 index cf5b429..e29df70 --- a/src/Tizen.Applications.WatchApplication/Tizen.Applications/WatchTime.cs +++ b/src/Tizen.Applications.WatchApplication/Tizen.Applications/WatchTime.cs @@ -22,6 +22,7 @@ namespace Tizen.Applications /// The information of the Watch Time. /// /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public class WatchTime { private readonly SafeWatchTimeHandle _handle; @@ -38,6 +39,7 @@ namespace Tizen.Applications /// http://tizen.org/feature/watch_app /// Thrown when the property is not supported. /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public int Year { get @@ -62,6 +64,7 @@ namespace Tizen.Applications /// http://tizen.org/feature/watch_app /// Thrown when the property is not supported. /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public int Month { get @@ -86,6 +89,7 @@ namespace Tizen.Applications /// http://tizen.org/feature/watch_app /// Thrown when the property is not supported. /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public int Day { get @@ -110,6 +114,7 @@ namespace Tizen.Applications /// http://tizen.org/feature/watch_app /// Thrown when the property is not supported. /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public int DayOfWeek { get @@ -134,6 +139,7 @@ namespace Tizen.Applications /// http://tizen.org/feature/watch_app /// Thrown when the property is not supported. /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public int Hour { get @@ -158,6 +164,7 @@ namespace Tizen.Applications /// http://tizen.org/feature/watch_app /// Thrown when the property is not supported. /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public int Hour24 { get @@ -182,6 +189,7 @@ namespace Tizen.Applications /// http://tizen.org/feature/watch_app /// Thrown when the property is not supported. /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public int Minute { get @@ -206,6 +214,7 @@ namespace Tizen.Applications /// http://tizen.org/feature/watch_app /// Thrown when the property is not supported. /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public int Second { get @@ -230,6 +239,7 @@ namespace Tizen.Applications /// http://tizen.org/feature/watch_app /// Thrown when the property is not supported. /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public int Millisecond { get @@ -254,6 +264,7 @@ namespace Tizen.Applications /// http://tizen.org/feature/watch_app /// Thrown when the property is not supported. /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public string TimeZone { get @@ -278,6 +289,7 @@ namespace Tizen.Applications /// http://tizen.org/feature/watch_app /// Thrown when the property is not supported. /// 4 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public DateTime UtcTimestamp { get diff --git a/src/Tizen.Applications.WidgetApplication/Tizen.Applications/WidgetApplication.cs b/src/Tizen.Applications.WidgetApplication/Tizen.Applications/WidgetApplication.cs index 1907a41..6d11cc4 100755 --- a/src/Tizen.Applications.WidgetApplication/Tizen.Applications/WidgetApplication.cs +++ b/src/Tizen.Applications.WidgetApplication/Tizen.Applications/WidgetApplication.cs @@ -24,6 +24,7 @@ namespace Tizen.Applications /// Represents a widget application. /// /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public class WidgetApplication : CoreApplication { /// @@ -31,6 +32,7 @@ namespace Tizen.Applications /// /// Map structure for the derived class type and widget ID. /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public WidgetApplication(IDictionary typeInfo) : base(new WidgetCoreBackend()) { WidgetCoreBackend core = Backend as WidgetCoreBackend; @@ -44,6 +46,7 @@ namespace Tizen.Applications /// Widget ID will be replaced as the application ID. /// Derived class type. /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public WidgetApplication(Type type) : base(new WidgetCoreBackend()) { WidgetCoreBackend core = Backend as WidgetCoreBackend; @@ -56,6 +59,7 @@ namespace Tizen.Applications /// /// Class type for the widget. /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public IEnumerable GetInstances(Type type) { WidgetCoreBackend core = Backend as WidgetCoreBackend; @@ -79,6 +83,7 @@ namespace Tizen.Applications /// /// Arguments from the commandline. /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public override void Run(string[] args) { base.Run(args); diff --git a/src/Tizen.Applications.WidgetApplication/Tizen.Applications/WidgetBase.cs b/src/Tizen.Applications.WidgetApplication/Tizen.Applications/WidgetBase.cs old mode 100644 new mode 100755 index c7f8dbf..d07bca9 --- a/src/Tizen.Applications.WidgetApplication/Tizen.Applications/WidgetBase.cs +++ b/src/Tizen.Applications.WidgetApplication/Tizen.Applications/WidgetBase.cs @@ -23,6 +23,7 @@ namespace Tizen.Applications /// The abstract class for widget instances. /// /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public abstract class WidgetBase { internal IntPtr Handle; @@ -33,12 +34,14 @@ namespace Tizen.Applications /// It will be created after OnCreate method is invoked. /// /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] protected Window Window; /// /// Delete type. /// /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public enum WidgetDestroyType { /// @@ -56,6 +59,7 @@ namespace Tizen.Applications /// Constructor. /// /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public WidgetBase() { } @@ -65,6 +69,7 @@ namespace Tizen.Applications /// It will be created after OnCreate method is invoked. /// /// 6 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public string Id { get; private set; } /// @@ -76,6 +81,7 @@ namespace Tizen.Applications /// Thrown when the API is not supported in this device. /// Thrown in case of an unrecoverable error. /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public void SetContent(Bundle info) { Interop.Widget.ErrorCode err = Interop.Widget.SetContent(Handle, info.SafeBundleHandle); @@ -109,6 +115,7 @@ namespace Tizen.Applications /// Thrown when the API is not supported in this device. /// Thrown in case of an unrecoverable error. /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public void SetTitle(string title) { Interop.Widget.ErrorCode err = Interop.Widget.SetTitle(Handle, title); @@ -139,6 +146,7 @@ namespace Tizen.Applications /// Thrown when the API is not supported in this device. /// Thrown in case of an unrecoverable error. /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public void Exit() { Interop.Widget.ErrorCode err = Interop.Widget.TerminateContext(Handle); @@ -172,6 +180,7 @@ namespace Tizen.Applications /// The pixel value for the widget width. /// The pixel value for the widget height. /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public virtual void OnCreate(Bundle content, int w, int h) { IntPtr win; @@ -188,6 +197,7 @@ namespace Tizen.Applications /// The reason for destruction. /// The data set to save. /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public virtual void OnDestroy(WidgetDestroyType reason, Bundle content) { } @@ -196,6 +206,7 @@ namespace Tizen.Applications /// Overrides this method if want to handle the behavior when the widget instance is paused. /// /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public virtual void OnPause() { } @@ -204,6 +215,7 @@ namespace Tizen.Applications /// Overrides this method if want to handle the behavior when the widget instance is resumed. /// /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public virtual void OnResume() { } @@ -214,6 +226,7 @@ namespace Tizen.Applications /// Widget width. /// Widget height. /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public virtual void OnResize(int w, int h) { } @@ -224,6 +237,7 @@ namespace Tizen.Applications /// The data set for updating this widget will be provided by the requester. /// Although the widget is paused, if it is true, the widget can be updated. /// 3 + [Obsolete("Deprecated since API10. Will be removed in API12.")] public virtual void OnUpdate(Bundle content, bool isForce) { } -- 2.7.4