From 5910929134f47b4af45156f38fe9007a77fcd1f1 Mon Sep 17 00:00:00 2001 From: DotnetBuild Date: Wed, 11 Oct 2017 00:00:17 +0900 Subject: [PATCH] Release 4.0.0-preview1-00279 --- packaging/csapi-tizenfx.spec | 4 +- src/ElmSharp/Interop/Interop.Evas.Image.cs | 2 +- .../AuthenticatorInformation.cs | 2 +- .../UafAuthenticatorFinder.cs | 2 +- .../Tizen.Applications.AttachPanel/AttachPanel.cs | 3 + .../DefaultCoreBackend.cs | 98 +++++++++++++++++++++- .../Tizen.Applications/AppControl.cs | 8 +- .../Tizen.Applications/Bundle.cs | 18 ++-- .../Tizen.Applications.DataControl/BulkData.cs | 6 ++ .../Tizen.Applications.DataControl/Consumer.cs | 3 + .../Tizen.Applications.DataControl/MatrixCursor.cs | 7 ++ .../Tizen.Applications.DataControl/Provider.cs | 3 + .../Tizen.Applications/PackageType.cs | 3 + .../Tizen.Applications/Preference.cs | 8 +- .../Tizen.Content.Download/Request.cs | 3 + .../Tizen.Content.MediaContent/MediaDatabase.cs | 2 +- .../Tizen.Content.MediaContent/MediaInfoCommand.cs | 4 +- .../Tizen.Content.MimeType/MimeUtil.cs | 32 +++---- .../Tizen.Location.Geofence/Fence.cs | 7 ++ .../Tizen.Location.Geofence/FenceStatus.cs | 7 ++ .../Tizen.Location.Geofence/GeofenceManager.cs | 7 ++ .../Tizen.Location.Geofence/NamespaceDoc.cs | 11 ++- .../Tizen.Location/LocationBoundary.cs | 3 + src/Tizen.Location/Tizen.Location/LocationError.cs | 95 +++++++++++++++++---- src/Tizen.Location/Tizen.Location/Locator.cs | 3 + .../Tizen.Location/LocatorEnumerations.cs | 62 +++++++++++--- .../SatelliteStatusChangedEventArgs.cs | 4 + .../Tizen.Location/ServiceStateChangedEventArgs.cs | 1 + .../Tizen.Location/SettingChangedEventArgs.cs | 4 + .../Tizen.Location/ZoneChangedEventArgs.cs | 4 + src/Tizen.Maps/Tizen.Maps/Area.cs | 4 + src/Tizen.Maps/Tizen.Maps/Geocoordinates.cs | 4 + src/Tizen.Maps/Tizen.Maps/GeocoordinatesList.cs | 4 + src/Tizen.Maps/Tizen.Maps/MapService.cs | 5 ++ src/Tizen.Maps/Tizen.Maps/MapServiceRequest.cs | 12 ++- src/Tizen.Maps/Tizen.Maps/MapView.cs | 4 + src/Tizen.Maps/Tizen.Maps/Marker.cs | 4 + src/Tizen.Maps/Tizen.Maps/Overlay.cs | 4 + src/Tizen.Maps/Tizen.Maps/Place.cs | 4 + src/Tizen.Maps/Tizen.Maps/PlaceAddress.cs | 4 + src/Tizen.Maps/Tizen.Maps/PlaceAddressList.cs | 4 + src/Tizen.Maps/Tizen.Maps/PlaceCategory.cs | 4 + src/Tizen.Maps/Tizen.Maps/PlaceFilter.cs | 4 + src/Tizen.Maps/Tizen.Maps/PlaceList.cs | 4 + src/Tizen.Maps/Tizen.Maps/Polygon.cs | 4 + src/Tizen.Maps/Tizen.Maps/Polyline.cs | 4 + src/Tizen.Maps/Tizen.Maps/Route.cs | 4 + src/Tizen.Maps/Tizen.Maps/SearchPreference.cs | 4 + .../Tizen.Messaging.Email/EmailMessage.cs | 7 ++ .../Tizen.Messaging.Email/NamespaceDoc.cs | 12 +-- .../Tizen.Messaging.Messages/Message.cs | 6 ++ .../Tizen.Messaging.Messages/NamespaceDoc.cs | 14 ++-- .../Tizen.Network.WiFiDirect/NamespaceDoc.cs | 10 +-- .../Tizen.PhonenumberUtils/NamespaceDoc.cs | 34 ++++++-- .../Tizen.PhonenumberUtils/PhonenumberUtils.cs | 4 + .../Tizen.Pims.Calendar/CalendarDatabase.cs | 2 +- .../Tizen.Pims.Calendar/CalendarErrorFactory.cs | 28 +++---- .../Tizen.Pims.Calendar/CalendarList.cs | 7 ++ .../Tizen.Pims.Calendar/CalendarQuery.cs | 5 ++ .../Tizen.Pims.Calendar/CalendarReminder.cs | 1 - .../Tizen.Pims.Calendar/CalendarViews.cs | 21 ++--- .../Tizen.Pims.Calendar/NamespaceDoc.cs | 18 ++-- .../Tizen.Pims.Contacts/ContactsViews.cs | 21 ++--- .../Tizen.Pims.Contacts/NamespaceDoc.cs | 18 ++-- .../Interop/Interop.InputMethod.cs | 14 ++-- .../Tizen.Uix.InputMethod/EditorWindow.cs | 6 ++ .../Tizen.Uix.InputMethod/InputMethodEditor.cs | 5 +- .../Interop/Interop.InputMethodManager.cs | 8 +- src/Tizen.Uix.Stt/Interop/Interop.Stt.cs | 40 ++++----- src/Tizen.Uix.Stt/Tizen.Uix.Stt/SttClient.cs | 10 ++- .../Interop/Interop.SttEngine.cs | 24 +++--- src/Tizen.Uix.Tts/Interop/Interop.Tts.cs | 30 +++---- src/Tizen.Uix.Tts/Tizen.Uix.Tts/SupportedVoice.cs | 4 + src/Tizen.Uix.Tts/Tizen.Uix.Tts/TtsClient.cs | 7 ++ .../Interop/Interop.TtsEngine.cs | 22 ++--- .../Interop/Interop.VoiceControl.cs | 38 ++++----- 76 files changed, 668 insertions(+), 245 deletions(-) mode change 100755 => 100644 src/Tizen.Applications.PackageManager/Tizen.Applications/PackageType.cs mode change 100755 => 100644 src/Tizen.Content.MimeType/Tizen.Content.MimeType/MimeUtil.cs mode change 100755 => 100644 src/Tizen.Messaging/Tizen.Messaging.Email/NamespaceDoc.cs mode change 100755 => 100644 src/Tizen.Messaging/Tizen.Messaging.Messages/Message.cs mode change 100755 => 100644 src/Tizen.Messaging/Tizen.Messaging.Messages/NamespaceDoc.cs mode change 100644 => 100755 src/Tizen.Uix.Stt/Tizen.Uix.Stt/SttClient.cs diff --git a/packaging/csapi-tizenfx.spec b/packaging/csapi-tizenfx.spec index ba2a3fe..8887dfa 100644 --- a/packaging/csapi-tizenfx.spec +++ b/packaging/csapi-tizenfx.spec @@ -9,7 +9,7 @@ Name: csapi-tizenfx Summary: Assemblies of Tizen .NET -Version: 4.0.0.272 +Version: 4.0.0.279 Release: 1 Group: Development/Libraries License: Apache-2.0 @@ -144,7 +144,7 @@ rm -fr %{_tizenfx_bin_path} export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true ./build.sh --full ./build.sh --dummy -./build.sh --pack 4.0.0-preview1-00272 +./build.sh --pack 4.0.0-preview1-00279 %install mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH} diff --git a/src/ElmSharp/Interop/Interop.Evas.Image.cs b/src/ElmSharp/Interop/Interop.Evas.Image.cs index 815afff..101eabe 100644 --- a/src/ElmSharp/Interop/Interop.Evas.Image.cs +++ b/src/ElmSharp/Interop/Interop.Evas.Image.cs @@ -34,7 +34,7 @@ internal static partial class Interop [DllImport(Libraries.Evas)] internal static extern void evas_object_image_file_set(IntPtr obj, string file, string key); - [DllImport(Libraries.Evas, EntryPoint = "_evas_object_image_file_get")] + [DllImport(Libraries.Evas, EntryPoint = "evas_object_image_file_get")] internal static extern void _evas_object_image_file_get(IntPtr obj, out IntPtr file, out IntPtr key); internal static void evas_object_image_file_get(IntPtr obj, out string file, out string key) diff --git a/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/AuthenticatorInformation.cs b/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/AuthenticatorInformation.cs index 220b131..7aa4138 100755 --- a/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/AuthenticatorInformation.cs +++ b/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/AuthenticatorInformation.cs @@ -25,7 +25,7 @@ namespace Tizen.Account.FidoClient /// 3 /// /// - /// IEnumerable authInfos = await UafAuthenticatorFinder.DiscoverAuthenticatorsAsync(); + /// IEnumerable<AuthenticatorInformation> authInfos = await UafAuthenticatorFinder.DiscoverAuthenticatorsAsync(); /// foreach (AuthenticatorInformation authInfo in authInfos) /// { /// string aaid = authInfo.Aaid; diff --git a/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafAuthenticatorFinder.cs b/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafAuthenticatorFinder.cs index bed73d4..2f13307 100755 --- a/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafAuthenticatorFinder.cs +++ b/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafAuthenticatorFinder.cs @@ -39,7 +39,7 @@ namespace Tizen.Account.FidoClient /// /// - /// IEnumerable authInfos = await UafAuthenticatorFinder.DiscoverAuthenticatorsAsync(); + /// IEnumerable<AuthenticatorInformation> authInfos = await UafAuthenticatorFinder.DiscoverAuthenticatorsAsync(); /// foreach (AuthenticatorInformation authInfo in authInfos) /// { /// string aaid = authInfo.Aaid; diff --git a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/AttachPanel.cs b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/AttachPanel.cs index bd403f0..3c220bd 100755 --- a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/AttachPanel.cs +++ b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/AttachPanel.cs @@ -39,6 +39,9 @@ namespace Tizen.Applications.AttachPanel } } + /// + /// A destructor which deallocates attach panel resources. + /// ~AttachPanel() { if (isCreationSucceed && diff --git a/src/Tizen.Applications.Common/Tizen.Applications.CoreBackend/DefaultCoreBackend.cs b/src/Tizen.Applications.Common/Tizen.Applications.CoreBackend/DefaultCoreBackend.cs index 24915d9..5799ebc 100755 --- a/src/Tizen.Applications.Common/Tizen.Applications.CoreBackend/DefaultCoreBackend.cs +++ b/src/Tizen.Applications.Common/Tizen.Applications.CoreBackend/DefaultCoreBackend.cs @@ -16,7 +16,7 @@ using System; using System.Collections.Generic; - +using System.ComponentModel; using Tizen.Internals.Errors; namespace Tizen.Applications.CoreBackend @@ -31,52 +31,120 @@ namespace Tizen.Applications.CoreBackend /// public enum AppEventType { + /// + /// The low memory event. + /// LowMemory = 0, + + /// + /// The low battery event. + /// LowBattery, + + /// + /// The system language changed event. + /// LanguageChanged, + + /// + /// The device orientation changed event. + /// DeviceOrientationChanged, + + /// + /// The region format changed event. + /// RegionFormatChanged, + + /// + /// The suspended state changed event of the application. + /// SuspendedStateChanged } + /// + /// Tag string for this class. + /// + [EditorBrowsable(EditorBrowsableState.Never)] protected static readonly string LogTag = typeof(DefaultCoreBackend).Namespace; + /// + /// Data structure for event handlers. + /// + [EditorBrowsable(EditorBrowsableState.Never)] protected IDictionary Handlers = new Dictionary(); + /// + /// Constructor of DefaultCoreBackend class. + /// public DefaultCoreBackend() { } + /// + /// Finalizer of DefaultCoreBackend class. + /// ~DefaultCoreBackend() { Dispose(false); } - public void AddEventHandler(EventType evType, Action handler) + /// + /// Adds an event handler. + /// + /// The type of event. + /// The handler method without arguments. + public virtual void AddEventHandler(EventType evType, Action handler) { Handlers.Add(evType, handler); } - public void AddEventHandler(EventType evType, Action handler) where TEventArgs : EventArgs + /// + /// Adds an event handler. + /// + /// The EventArgs type used in arguments of the handler method. + /// The type of event. + /// The handler method with a TEventArgs type argument. + public virtual void AddEventHandler(EventType evType, Action handler) where TEventArgs : EventArgs { Handlers.Add(evType, handler); } + /// + /// Runs the mainloop of the backend. + /// + /// public virtual void Run(string[] args) { TizenSynchronizationContext.Initialize(); } + /// + /// Exits the mainloop of the backend. + /// public abstract void Exit(); + /// + /// Releases all resources. + /// public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } + /// + /// Releases any unmanaged resources used by this object. Can also dispose any other disposable objects. + /// + /// If true, disposes any disposable objects. If false, does not dispose disposable objects. protected abstract void Dispose(bool disposing); + /// + /// Default implementation for the low memory event. + /// + /// + /// + [EditorBrowsable(EditorBrowsableState.Never)] protected virtual void OnLowMemoryNative(IntPtr infoHandle, IntPtr data) { LowMemoryStatus status = LowMemoryStatus.None; @@ -92,6 +160,12 @@ namespace Tizen.Applications.CoreBackend } } + /// + /// Default implementation for the low battery event. + /// + /// + /// + [EditorBrowsable(EditorBrowsableState.Never)] protected virtual void OnLowBatteryNative(IntPtr infoHandle, IntPtr data) { LowBatteryStatus status = LowBatteryStatus.None; @@ -107,6 +181,12 @@ namespace Tizen.Applications.CoreBackend } } + /// + /// Default implementation for the system language changed event. + /// + /// + /// + [EditorBrowsable(EditorBrowsableState.Never)] protected virtual void OnLocaleChangedNative(IntPtr infoHandle, IntPtr data) { string lang; @@ -122,6 +202,12 @@ namespace Tizen.Applications.CoreBackend } } + /// + /// Default implementation for the region format changed event. + /// + /// + /// + [EditorBrowsable(EditorBrowsableState.Never)] protected virtual void OnRegionChangedNative(IntPtr infoHandle, IntPtr data) { string region; @@ -137,6 +223,12 @@ namespace Tizen.Applications.CoreBackend } } + /// + /// Default implementation for the suspended state changed event. + /// + /// + /// + [EditorBrowsable(EditorBrowsableState.Never)] protected virtual void OnDeviceOrientationChangedNative(IntPtr infoHandle, IntPtr data) { DeviceOrientation orientation; diff --git a/src/Tizen.Applications.Common/Tizen.Applications/AppControl.cs b/src/Tizen.Applications.Common/Tizen.Applications/AppControl.cs index a0e1f88..e591205 100755 --- a/src/Tizen.Applications.Common/Tizen.Applications/AppControl.cs +++ b/src/Tizen.Applications.Common/Tizen.Applications/AppControl.cs @@ -421,7 +421,7 @@ namespace Tizen.Applications /// Thrown when failed because of an invalid parameter. /// /// - /// IEnumerable applicationIds = AppControl.GetMatchedApplicationIds(control); + /// IEnumerable<string> applicationIds = AppControl.GetMatchedApplicationIds(control); /// if (applicationIds != null) /// { /// foreach (string id in applicationIds) @@ -732,7 +732,7 @@ namespace Tizen.Applications /// /// /// AppControl appControl = new AppControl(); - /// string myValue = appControl.ExtraData.Get("myKey"); + /// string myValue = appControl.ExtraData.Get<string>("myKey"); /// /// public T Get(string key) @@ -779,7 +779,7 @@ namespace Tizen.Applications /// /// /// AppControl appControl = new AppControl(); - /// IEnumerable keys = appControl.GetKeys(); + /// IEnumerable<string> keys = appControl.GetKeys(); /// if (keys != null) /// { /// foreach (string key in keys) @@ -862,7 +862,7 @@ namespace Tizen.Applications /// /// /// AppControl appControl = new AppControl(); - /// IEnumerable myValue = null; + /// IEnumerable<string> myValue = null; /// bool result = appControl.ExtraData.TryGet("myKey", out myValue); /// if (result) /// { diff --git a/src/Tizen.Applications.Common/Tizen.Applications/Bundle.cs b/src/Tizen.Applications.Common/Tizen.Applications/Bundle.cs index 0f790ab..7685607 100755 --- a/src/Tizen.Applications.Common/Tizen.Applications/Bundle.cs +++ b/src/Tizen.Applications.Common/Tizen.Applications/Bundle.cs @@ -158,7 +158,7 @@ namespace Tizen.Applications /// bundle.AddItem("string", "a_string"); /// if (bundle.Contains("string")) /// { - /// string aValue = bundle.GetItem("string"); + /// string aValue = bundle.GetItem<string>("string"); /// Console.WriteLine(aValue); /// } /// @@ -305,7 +305,7 @@ namespace Tizen.Applications /// if (bundle.Contains("string")) /// { /// object aValue = bundle.GetItem("string"); - /// if (bundle.Is("string");) + /// if (bundle.Is<string>("string");) /// { /// string aString = (string)aValue; /// Console.WriteLine(aString); @@ -373,15 +373,15 @@ namespace Tizen.Applications /// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle(); /// string[] stringArray = { "a", "b", "c" }; /// bundle.AddItem("string_array", stringArray); - /// if (bundle.Is("string_array")) + /// if (bundle.Is<string>("string_array")) /// { /// Console.WriteLine("It is a string"); - /// Console.WriteLine(bundle.GetItem("string_array")); + /// Console.WriteLine(bundle.GetItem<string>("string_array")); /// } - /// else if (bundle.Is("string_array")) + /// else if (bundle.Is<string[]>("string_array")) /// { /// Console.WriteLine("It is a string[]"); - /// string[] anArray = bundle.GetItem("string_array"); + /// string[] anArray = bundle.GetItem<string[]>("string_array"); /// foreach (string value in anArray) /// { /// Console.WriteLine(value); @@ -473,7 +473,7 @@ namespace Tizen.Applications /// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle(); /// string[] stringArray = { "a", "b", "c" }; /// bundle.AddItem("string_array", stringArray); - /// System.Collections.Generic.IEnumerable aStringEnumerable; + /// System.Collections.Generic.IEnumerable<string> aStringEnumerable; /// if (bundle.TryGetItem("string", out aStringEnumerable)) /// { /// foreach (string value in aStringEnumerable) @@ -512,10 +512,10 @@ namespace Tizen.Applications /// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle(); /// string[] stringArray = { "a", "b", "c" }; /// bundle.AddItem("string_array", stringArray); - /// if (bundle.Is("string_array")) + /// if (bundle.Is<string[]>("string_array")) /// { /// Console.WriteLine("It is a string[]"); - /// string[] anArray = bundle.GetItem("string_array"); + /// string[] anArray = bundle.GetItem<string[]>("string_array"); /// foreach (string value in anArray) /// { /// Console.WriteLine(value); diff --git a/src/Tizen.Applications.DataControl/Tizen.Applications.DataControl/BulkData.cs b/src/Tizen.Applications.DataControl/Tizen.Applications.DataControl/BulkData.cs index 74dd11f..f65a411 100755 --- a/src/Tizen.Applications.DataControl/Tizen.Applications.DataControl/BulkData.cs +++ b/src/Tizen.Applications.DataControl/Tizen.Applications.DataControl/BulkData.cs @@ -169,6 +169,9 @@ namespace Tizen.Applications.DataControl } } + /// + /// Destructor of the BulkData class. + /// ~BulkData() { Dispose(false); @@ -353,6 +356,9 @@ namespace Tizen.Applications.DataControl } } + /// + /// Destructor of the BulkResultData class. + /// ~BulkResultData() { Dispose(false); diff --git a/src/Tizen.Applications.DataControl/Tizen.Applications.DataControl/Consumer.cs b/src/Tizen.Applications.DataControl/Tizen.Applications.DataControl/Consumer.cs index 7811d15..9210db5 100755 --- a/src/Tizen.Applications.DataControl/Tizen.Applications.DataControl/Consumer.cs +++ b/src/Tizen.Applications.DataControl/Tizen.Applications.DataControl/Consumer.cs @@ -850,6 +850,9 @@ namespace Tizen.Applications.DataControl _providerID = providerId; } + /// + /// Destructor of the Consumer class. + /// ~Consumer() { Dispose(false); diff --git a/src/Tizen.Applications.DataControl/Tizen.Applications.DataControl/MatrixCursor.cs b/src/Tizen.Applications.DataControl/Tizen.Applications.DataControl/MatrixCursor.cs index 2df5c7b..98aa0b7 100755 --- a/src/Tizen.Applications.DataControl/Tizen.Applications.DataControl/MatrixCursor.cs +++ b/src/Tizen.Applications.DataControl/Tizen.Applications.DataControl/MatrixCursor.cs @@ -593,6 +593,10 @@ namespace Tizen.Applications.DataControl Dispose(true); } + /// + /// Releases the unmanaged resources used by the MatrixCursor class specifying whether to perform a normal dispose operation. + /// + /// true for a normal dispose operation; false to finalize the handle. protected virtual void Dispose(bool disposing) { if (!_disposed) @@ -621,6 +625,9 @@ namespace Tizen.Applications.DataControl } } + /// + /// Destructor of the MatrixCursor class. + /// ~MatrixCursor() { Dispose(false); diff --git a/src/Tizen.Applications.DataControl/Tizen.Applications.DataControl/Provider.cs b/src/Tizen.Applications.DataControl/Tizen.Applications.DataControl/Provider.cs index c99702e..a7d4e3f 100755 --- a/src/Tizen.Applications.DataControl/Tizen.Applications.DataControl/Provider.cs +++ b/src/Tizen.Applications.DataControl/Tizen.Applications.DataControl/Provider.cs @@ -975,6 +975,9 @@ namespace Tizen.Applications.DataControl } } + /// + /// Destructor of the Provider class. + /// ~Provider() { Dispose(false); diff --git a/src/Tizen.Applications.PackageManager/Tizen.Applications/PackageType.cs b/src/Tizen.Applications.PackageManager/Tizen.Applications/PackageType.cs old mode 100755 new mode 100644 index 227db5f..90c38e0 --- a/src/Tizen.Applications.PackageManager/Tizen.Applications/PackageType.cs +++ b/src/Tizen.Applications.PackageManager/Tizen.Applications/PackageType.cs @@ -23,6 +23,9 @@ namespace Tizen.Applications /// public enum PackageType { + /// + /// Unknown package. + /// UNKNOWN, /// /// Tizen native application package. diff --git a/src/Tizen.Applications.Preference/Tizen.Applications/Preference.cs b/src/Tizen.Applications.Preference/Tizen.Applications/Preference.cs index 742f132..41894a4 100755 --- a/src/Tizen.Applications.Preference/Tizen.Applications/Preference.cs +++ b/src/Tizen.Applications.Preference/Tizen.Applications/Preference.cs @@ -132,14 +132,14 @@ namespace Tizen.Applications /// The name of the key to check. /// True if the key exists in the preference, otherwise false. /// Thrown if the key is an invalid parameter. - /// Thrown when the method failed due to an internal I/O error. + /// Thrown when the method failed due to an internal I/O error. /// /// /// Preference.Set("active_user", "Joe"); /// bool exists = Preference.Contains("active_user"); /// if (exists) /// { - /// string value = Preference.Get("active_user"); + /// string value = Preference.Get<istring>("active_user"); /// Console.WriteLine("user {0}", value); /// } /// @@ -164,7 +164,7 @@ namespace Tizen.Applications /// If the key already exists in the preference, the old value will be overwritten with a new value. /// Data types for supported values are: integer, double, string, and bool. /// - /// The name of the key to create/modify./param> + /// The name of the key to create/modify. /// The value corresponding to the key. /// Thrown if the key is an invalid parameter. /// Thrown when the method failed due to an internal I/O error. @@ -237,7 +237,7 @@ namespace Tizen.Applications /// bool exists = Preference.Contains("active_user"); /// if (exists) /// { - /// string value = Preference.Get("active_user"); + /// string value = Preference.Get<string>("active_user"); /// Console.WriteLine("user {0}", value); /// } /// diff --git a/src/Tizen.Content.Download/Tizen.Content.Download/Request.cs b/src/Tizen.Content.Download/Tizen.Content.Download/Request.cs index 11c96a2..24eab9f 100755 --- a/src/Tizen.Content.Download/Tizen.Content.Download/Request.cs +++ b/src/Tizen.Content.Download/Tizen.Content.Download/Request.cs @@ -177,6 +177,9 @@ namespace Tizen.Content.Download _httpHeaders = httpHeaders; } + /// + /// Destructor of the Request class. + /// ~Request() { Dispose(false); diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaDatabase.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaDatabase.cs index 8474364..72031a5 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaDatabase.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaDatabase.cs @@ -354,7 +354,7 @@ namespace Tizen.Content.MediaContent private async Task ScanFolderAsyncCore(string folderPath, bool recursive, CancellationToken cancellationToken) { - var tcs = new TaskCompletionSource(); + var tcs = new TaskCompletionSource(TaskContinuationOptions.RunContinuationsAsynchronously); using (var cbKeeper = ObjectKeeper.Get(GetScanCompletedCallback(tcs, cancellationToken))) using (RegisterCancellationAction(tcs, folderPath, cancellationToken)) diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoCommand.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoCommand.cs index 7eb2be4..f0a5fb3 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoCommand.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoCommand.cs @@ -602,7 +602,7 @@ namespace Tizen.Content.MediaContent ValidatePaths(paths); var pathArray = paths.ToArray(); - var tcs = new TaskCompletionSource(); + var tcs = new TaskCompletionSource(TaskContinuationOptions.RunContinuationsAsynchronously); Interop.MediaInfo.InsertCompletedCallback callback = (error, _) => { @@ -658,7 +658,7 @@ namespace Tizen.Content.MediaContent ValidatePaths(paths); - var tcs = new TaskCompletionSource(); + var tcs = new TaskCompletionSource(TaskContinuationOptions.RunContinuationsAsynchronously); string[] pathArray = paths.ToArray(); Interop.MediaInfo.InsertBurstShotCompletedCallback callback = (error, _) => diff --git a/src/Tizen.Content.MimeType/Tizen.Content.MimeType/MimeUtil.cs b/src/Tizen.Content.MimeType/Tizen.Content.MimeType/MimeUtil.cs old mode 100755 new mode 100644 index 98aab3e..49dff2e --- a/src/Tizen.Content.MimeType/Tizen.Content.MimeType/MimeUtil.cs +++ b/src/Tizen.Content.MimeType/Tizen.Content.MimeType/MimeUtil.cs @@ -23,9 +23,11 @@ using System.Runtime.InteropServices; namespace Tizen.Content.MimeType { /// - /// The MimeUtil API provides functions to map the MIME types to file extensions and vice versa. + /// The MimeUtil API provides functions to map the MIME types to file extensions and vice versa. + /// /// - /// Conversions are provided from the file extensions to MIME types and from the MIME types to file extensions. + /// Conversions are provided from the file extensions to MIME types and from the MIME types to file extensions. + /// public static class MimeUtil { /// @@ -35,7 +37,7 @@ namespace Tizen.Content.MimeType /// The file extension. /// /// - /// string mimeType = MimeUtil.GetMimeType("png"); + /// string mimeType = MimeUtil.GetMimeType("png"); /// /// public static string GetMimeType(string fileExtension) @@ -50,18 +52,20 @@ namespace Tizen.Content.MimeType } /// - /// Gets the file extensions for the given MIME type. + /// Gets the file extensions for the given MIME type. + /// /// /// If successful, returns the list of file extension strings for the given MIME type. - /// The array of file extension is without the leading dot ('.'). + /// The array of file extension is without the leading dot ('.'). + /// /// The MIME type. /// /// - /// IEnumerable extColl = MimeUtil.GetFileExtension("video/mpeg"); - /// foreach ( string obj in extColl ) - /// { - /// Console.WriteLine(obj); - /// } + /// var extColl = MimeUtil.GetFileExtension("video/mpeg"); + /// foreach ( string obj in extColl ) + /// { + /// Console.WriteLine(obj); + /// } /// /// public static IEnumerable GetFileExtension(string mime) @@ -87,10 +91,10 @@ namespace Tizen.Content.MimeType internal enum MimeError : int { - None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */ - InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter */ - OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /**< Out of memory */ - IoError = Tizen.Internals.Errors.ErrorCode.IoError, /**< Internal I/O error */ + None = Tizen.Internals.Errors.ErrorCode.None, + InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, + OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, + IoError = Tizen.Internals.Errors.ErrorCode.IoError, } } } diff --git a/src/Tizen.Location.Geofence/Tizen.Location.Geofence/Fence.cs b/src/Tizen.Location.Geofence/Tizen.Location.Geofence/Fence.cs index 5443cf2..50a7e5d 100755 --- a/src/Tizen.Location.Geofence/Tizen.Location.Geofence/Fence.cs +++ b/src/Tizen.Location.Geofence/Tizen.Location.Geofence/Fence.cs @@ -46,6 +46,10 @@ namespace Tizen.Location.Geofence Handle = handle; } + /// + /// The destructor of the Fence class. + /// + /// 3 ~Fence() { Dispose(false); @@ -285,6 +289,9 @@ namespace Tizen.Location.Geofence GC.SuppressFinalize(this); } + /// + /// Dispose. + /// protected virtual void Dispose(bool disposing) { if (_disposed) diff --git a/src/Tizen.Location.Geofence/Tizen.Location.Geofence/FenceStatus.cs b/src/Tizen.Location.Geofence/Tizen.Location.Geofence/FenceStatus.cs index fdd0071..1f33a55 100644 --- a/src/Tizen.Location.Geofence/Tizen.Location.Geofence/FenceStatus.cs +++ b/src/Tizen.Location.Geofence/Tizen.Location.Geofence/FenceStatus.cs @@ -55,6 +55,10 @@ namespace Tizen.Location.Geofence Handle = handle; } + /// + /// The destructor of the FenceStatus class. + /// + /// 3 ~FenceStatus() { Dispose(false); @@ -110,6 +114,9 @@ namespace Tizen.Location.Geofence GC.SuppressFinalize(this); } + /// + /// Dispose. + /// protected virtual void Dispose(bool disposing) { if (_disposed) diff --git a/src/Tizen.Location.Geofence/Tizen.Location.Geofence/GeofenceManager.cs b/src/Tizen.Location.Geofence/Tizen.Location.Geofence/GeofenceManager.cs index 315c6cb..b97acc8 100755 --- a/src/Tizen.Location.Geofence/Tizen.Location.Geofence/GeofenceManager.cs +++ b/src/Tizen.Location.Geofence/Tizen.Location.Geofence/GeofenceManager.cs @@ -65,6 +65,10 @@ namespace Tizen.Location.Geofence Handle = handle; } + /// + /// The destructor of the GeofenceManager class. + /// + /// 3 ~GeofenceManager() { Dispose(false); @@ -281,6 +285,9 @@ namespace Tizen.Location.Geofence GC.SuppressFinalize(this); } + /// + /// Dispose. + /// protected virtual void Dispose(bool disposing) { if (_disposed) diff --git a/src/Tizen.Location.Geofence/Tizen.Location.Geofence/NamespaceDoc.cs b/src/Tizen.Location.Geofence/Tizen.Location.Geofence/NamespaceDoc.cs index 7944fc4..5d4315a 100755 --- a/src/Tizen.Location.Geofence/Tizen.Location.Geofence/NamespaceDoc.cs +++ b/src/Tizen.Location.Geofence/Tizen.Location.Geofence/NamespaceDoc.cs @@ -4,17 +4,21 @@ The Tizen.Location.Geofence namespace provides classes for virtual perimeter. +

Overview

This API provides functions to set the gofence with a geopoint, MAC address of Wi-Fi, and Bluetooth address. -Also, notifications on events like changing in service status are provided.

+Also, notifications on events like changing in service status are provided.

+ There are two kinds of places and fences:
- Public places and fences that are created by the MyPlace application can be used by all applications.
-- Private places and fences that are created by the specified application can be used by the same application.

+- Private places and fences that are created by the specified application can be used by the same application.

+ Notifications can be received about the following events:
- Zone in when a device enters a specific area.
- Zone out when a device exits a specific area.
-- Results and errors for each event requested to geofence module.

+- Results and errors for each event requested to geofence module.

+ The Geofence manager has the following properties:
- The geofence type.
- The status.
@@ -28,6 +32,7 @@ http://tizen.org/feature/location
http://tizen.org/feature/location.Geofence
http://tizen.org/feature/location.wps + */ namespace Tizen.Location.Geofence {} diff --git a/src/Tizen.Location/Tizen.Location/LocationBoundary.cs b/src/Tizen.Location/Tizen.Location/LocationBoundary.cs index d8991e4..20355a8 100755 --- a/src/Tizen.Location/Tizen.Location/LocationBoundary.cs +++ b/src/Tizen.Location/Tizen.Location/LocationBoundary.cs @@ -76,6 +76,9 @@ namespace Tizen.Location GC.SuppressFinalize(this); } + ///

+ /// Dispose. + /// protected virtual void Dispose(bool disposing) { Log.Info(Globals.LogTag, "Dispose"); diff --git a/src/Tizen.Location/Tizen.Location/LocationError.cs b/src/Tizen.Location/Tizen.Location/LocationError.cs index 3f2f633..61dfc8b 100755 --- a/src/Tizen.Location/Tizen.Location/LocationError.cs +++ b/src/Tizen.Location/Tizen.Location/LocationError.cs @@ -31,16 +31,55 @@ namespace Tizen.Location /// 3 public enum LocationError { - None = ErrorCode.None,/**< Successful */ - OutOfMemory = ErrorCode.OutOfMemory,/**< Out of memory error */ - InvalidParameter = ErrorCode.InvalidParameter,/**< Invalid parameter */ - AcessibilityNotallowed = ErrorCode.PermissionDenied,/**< Permission denied */ - NotSupported = ErrorCode.NotSupported,/**< Address family not supported */ - IncorrectMethod = LocationManagerError.Base | 0x01,/**< Location manager contains incorrect method for a given call */ - NetworkFailed = LocationManagerError.Base | 0x02,/**< Network unavailable */ - ServiceNotAvailable = LocationManagerError.Base | 0x03,/**< Location service is not available */ - SettingOff = LocationManagerError.Base | 0x04,/**< GPS/WPS, or MOCK setting is not enabled */ - SecuirtyRestricted = LocationManagerError.Base | 0x05,/**< Restricted by security system policy */ + /// + /// Successful. + /// + None = ErrorCode.None, + + /// + /// Out of memory error. + /// + OutOfMemory = ErrorCode.OutOfMemory, + + /// + /// Invalid parameter. + /// + InvalidParameter = ErrorCode.InvalidParameter, + + /// + /// Permission denied. + /// + AcessibilityNotallowed = ErrorCode.PermissionDenied, + + /// + /// Address family not supported. + /// + NotSupported = ErrorCode.NotSupported, + + /// + /// Location manager contains incorrect method for a given call. + /// + IncorrectMethod = LocationManagerError.Base | 0x01, + + /// + /// Network unavailable. + /// + NetworkFailed = LocationManagerError.Base | 0x02, + + /// + /// Location service is not available. + /// + ServiceNotAvailable = LocationManagerError.Base | 0x03, + + /// + /// GPS/WPS, or MOCK setting is not enabled. + /// + SettingOff = LocationManagerError.Base | 0x04, + + /// + /// Restricted by security system policy. + /// + SecuirtyRestricted = LocationManagerError.Base | 0x05, } /// @@ -49,12 +88,36 @@ namespace Tizen.Location /// 3 public enum LocationBoundError { - None = ErrorCode.None,/**< Successful */ - OutOfMemory = ErrorCode.OutOfMemory,/**< Out of memory error */ - InvalidParameter = ErrorCode.InvalidParameter,/**< Invalid parameter */ - NotSupported = ErrorCode.NotSupported,/**< Not supported */ - IncorrectType = LocationManagerError.BoundsBase | 0x01,/**< Incorrect bounds type for a given call */ - IsAdded = LocationManagerError.BoundsBase | 0x02/**< Cannot remove bounds handle from location manager */ + + /// + /// Successful. + /// + None = ErrorCode.None, + + /// + /// Out of memory error. + /// + OutOfMemory = ErrorCode.OutOfMemory, + + /// + /// Invalid parameter. + /// + InvalidParameter = ErrorCode.InvalidParameter, + + /// + /// Not supported. + /// + NotSupported = ErrorCode.NotSupported, + + /// + /// Incorrect bounds type for a given call. + /// + IncorrectType = LocationManagerError.BoundsBase | 0x01, + + /// + /// Cannot remove bounds handle from location manager. + /// + IsAdded = LocationManagerError.BoundsBase | 0x02 } internal static class LocationErrorFactory diff --git a/src/Tizen.Location/Tizen.Location/Locator.cs b/src/Tizen.Location/Tizen.Location/Locator.cs index 9a72fff..7ff1ab1 100755 --- a/src/Tizen.Location/Tizen.Location/Locator.cs +++ b/src/Tizen.Location/Tizen.Location/Locator.cs @@ -561,6 +561,9 @@ namespace Tizen.Location GC.SuppressFinalize(this); } + /// + /// Dispose. + /// protected virtual void Dispose(bool disposing) { if (_disposed) diff --git a/src/Tizen.Location/Tizen.Location/LocatorEnumerations.cs b/src/Tizen.Location/Tizen.Location/LocatorEnumerations.cs index 9de03cc..0e2e3d3 100755 --- a/src/Tizen.Location/Tizen.Location/LocatorEnumerations.cs +++ b/src/Tizen.Location/Tizen.Location/LocatorEnumerations.cs @@ -25,8 +25,15 @@ namespace Tizen.Location /// 3 public enum ServiceState { - Disabled = 0, /** + /// Service is disabled. + /// + Disabled = 0, + + /// + /// Service is enabled. + /// + Enabled } /// @@ -35,10 +42,25 @@ namespace Tizen.Location /// 3 public enum LocationType { - Hybrid = 0, /** + /// This method selects the best method available at the moment. + /// + Hybrid = 0, + + /// + /// This method uses Global Positioning System. + /// + Gps, + + /// + /// This method uses WiFi Positioning System. + /// + Wps, + + /// + /// This method uses passive mode. + /// + Passive, } /// @@ -47,9 +69,20 @@ namespace Tizen.Location /// 3 public enum BoundaryType { - Rectangle = 0, /** + /// Rectangular geographical area type. + /// + Rectangle = 0, + + /// + /// Circle geographical area type. + /// + Circle, + + /// + /// Polygon geographical area type. + /// + Polygon } /// @@ -58,7 +91,14 @@ namespace Tizen.Location /// 3 public enum BoundaryState { - In = 0, /**< Boundary In (Zone In) */ - Out /**< Boundary Out (Zone Out) */ + /// + /// Boundary In (Zone In). + /// + In = 0, + + /// + /// Boundary Out (Zone Out). + /// + Out } } diff --git a/src/Tizen.Location/Tizen.Location/SatelliteStatusChangedEventArgs.cs b/src/Tizen.Location/Tizen.Location/SatelliteStatusChangedEventArgs.cs index aa27203..f47b4d1 100755 --- a/src/Tizen.Location/Tizen.Location/SatelliteStatusChangedEventArgs.cs +++ b/src/Tizen.Location/Tizen.Location/SatelliteStatusChangedEventArgs.cs @@ -18,6 +18,10 @@ using System; namespace Tizen.Location { + /// + /// An extended EventArgs class which contains the changed satellite status. + /// + /// 3 public class SatelliteStatusChangedEventArgs : EventArgs { /// diff --git a/src/Tizen.Location/Tizen.Location/ServiceStateChangedEventArgs.cs b/src/Tizen.Location/Tizen.Location/ServiceStateChangedEventArgs.cs index 7059849..707bf2a 100755 --- a/src/Tizen.Location/Tizen.Location/ServiceStateChangedEventArgs.cs +++ b/src/Tizen.Location/Tizen.Location/ServiceStateChangedEventArgs.cs @@ -21,6 +21,7 @@ namespace Tizen.Location /// /// An extended EventArgs class contains the changed location service state. /// + /// 3 public class ServiceStateChangedEventArgs : EventArgs { /// diff --git a/src/Tizen.Location/Tizen.Location/SettingChangedEventArgs.cs b/src/Tizen.Location/Tizen.Location/SettingChangedEventArgs.cs index 36e8c93..b9e42e8 100755 --- a/src/Tizen.Location/Tizen.Location/SettingChangedEventArgs.cs +++ b/src/Tizen.Location/Tizen.Location/SettingChangedEventArgs.cs @@ -18,6 +18,10 @@ using System; namespace Tizen.Location { + /// + /// An extended EventArgs class which contains the changed setting status. + /// + /// 3 public class SettingChangedEventArgs : EventArgs { /// diff --git a/src/Tizen.Location/Tizen.Location/ZoneChangedEventArgs.cs b/src/Tizen.Location/Tizen.Location/ZoneChangedEventArgs.cs index 81a45d7..63446dc 100755 --- a/src/Tizen.Location/Tizen.Location/ZoneChangedEventArgs.cs +++ b/src/Tizen.Location/Tizen.Location/ZoneChangedEventArgs.cs @@ -18,6 +18,10 @@ using System; namespace Tizen.Location { + /// + /// An extended EventArgs class which contains the changed zone status. + /// + /// 3 public class ZoneChangedEventArgs : EventArgs { /// diff --git a/src/Tizen.Maps/Tizen.Maps/Area.cs b/src/Tizen.Maps/Tizen.Maps/Area.cs index a60be0e..3f440bf 100755 --- a/src/Tizen.Maps/Tizen.Maps/Area.cs +++ b/src/Tizen.Maps/Tizen.Maps/Area.cs @@ -62,6 +62,10 @@ namespace Tizen.Maps #region IDisposable Support private bool _disposedValue = false; + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + /// If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed. protected virtual void Dispose(bool disposing) { if (!_disposedValue) diff --git a/src/Tizen.Maps/Tizen.Maps/Geocoordinates.cs b/src/Tizen.Maps/Tizen.Maps/Geocoordinates.cs index 848dfae..13284c2 100755 --- a/src/Tizen.Maps/Tizen.Maps/Geocoordinates.cs +++ b/src/Tizen.Maps/Tizen.Maps/Geocoordinates.cs @@ -81,6 +81,10 @@ namespace Tizen.Maps #region IDisposable Support private bool _disposedValue = false; + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + /// If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed. protected virtual void Dispose(bool disposing) { if (!_disposedValue) diff --git a/src/Tizen.Maps/Tizen.Maps/GeocoordinatesList.cs b/src/Tizen.Maps/Tizen.Maps/GeocoordinatesList.cs index 801996b..86b77aa 100755 --- a/src/Tizen.Maps/Tizen.Maps/GeocoordinatesList.cs +++ b/src/Tizen.Maps/Tizen.Maps/GeocoordinatesList.cs @@ -51,6 +51,10 @@ namespace Tizen.Maps #region IDisposable Support private bool _disposedValue = false; + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + /// If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed. protected virtual void Dispose(bool disposing) { if (!_disposedValue) diff --git a/src/Tizen.Maps/Tizen.Maps/MapService.cs b/src/Tizen.Maps/Tizen.Maps/MapService.cs index 32949be..e8b016f 100755 --- a/src/Tizen.Maps/Tizen.Maps/MapService.cs +++ b/src/Tizen.Maps/Tizen.Maps/MapService.cs @@ -357,6 +357,11 @@ namespace Tizen.Maps #region IDisposable Support private bool _disposedValue = false; + + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + /// If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed. protected virtual void Dispose(bool disposing) { if (!_disposedValue) diff --git a/src/Tizen.Maps/Tizen.Maps/MapServiceRequest.cs b/src/Tizen.Maps/Tizen.Maps/MapServiceRequest.cs index 6aaaa86..498b0ac 100755 --- a/src/Tizen.Maps/Tizen.Maps/MapServiceRequest.cs +++ b/src/Tizen.Maps/Tizen.Maps/MapServiceRequest.cs @@ -27,10 +27,10 @@ namespace Tizen.Maps /// public abstract class MapServiceRequest : IDisposable { - protected TaskCompletionSource> _requestTask; - protected string errMessage; - protected int? _requestID; - protected ServiceRequestType _type; + internal TaskCompletionSource> _requestTask; + internal string errMessage; + internal int? _requestID; + internal ServiceRequestType _type; internal Action startExecutionAction; internal Interop.ErrorCode errorCode; @@ -91,6 +91,10 @@ namespace Tizen.Maps #region IDisposable Support private bool _disposedValue = false; + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + /// If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed. protected virtual void Dispose(bool disposing) { if (!_disposedValue) diff --git a/src/Tizen.Maps/Tizen.Maps/MapView.cs b/src/Tizen.Maps/Tizen.Maps/MapView.cs index 2b0219f..c3a0082 100755 --- a/src/Tizen.Maps/Tizen.Maps/MapView.cs +++ b/src/Tizen.Maps/Tizen.Maps/MapView.cs @@ -753,6 +753,10 @@ namespace Tizen.Maps #region IDisposable Support private bool _disposedValue = false; + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + /// If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed. protected virtual void Dispose(bool disposing) { if (!_disposedValue) diff --git a/src/Tizen.Maps/Tizen.Maps/Marker.cs b/src/Tizen.Maps/Tizen.Maps/Marker.cs index 45f6c11..8b968a9 100755 --- a/src/Tizen.Maps/Tizen.Maps/Marker.cs +++ b/src/Tizen.Maps/Tizen.Maps/Marker.cs @@ -165,6 +165,10 @@ namespace Tizen.Maps #region IDisposable Support private bool _disposedValue = false; + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + /// If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed. protected virtual void Dispose(bool disposing) { if (!_disposedValue) diff --git a/src/Tizen.Maps/Tizen.Maps/Overlay.cs b/src/Tizen.Maps/Tizen.Maps/Overlay.cs index d84e8a0..5c010e2 100755 --- a/src/Tizen.Maps/Tizen.Maps/Overlay.cs +++ b/src/Tizen.Maps/Tizen.Maps/Overlay.cs @@ -128,6 +128,10 @@ namespace Tizen.Maps #region IDisposable Support private bool _disposedValue = false; + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + /// If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed. protected virtual void Dispose(bool disposing) { if (!_disposedValue) diff --git a/src/Tizen.Maps/Tizen.Maps/Place.cs b/src/Tizen.Maps/Tizen.Maps/Place.cs index d9a7dfb..34fbb98 100755 --- a/src/Tizen.Maps/Tizen.Maps/Place.cs +++ b/src/Tizen.Maps/Tizen.Maps/Place.cs @@ -241,6 +241,10 @@ namespace Tizen.Maps #region IDisposable Support private bool _disposedValue = false; + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + /// If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed. protected virtual void Dispose(bool disposing) { if (!_disposedValue) diff --git a/src/Tizen.Maps/Tizen.Maps/PlaceAddress.cs b/src/Tizen.Maps/Tizen.Maps/PlaceAddress.cs index 28a1c2a..18cd873 100755 --- a/src/Tizen.Maps/Tizen.Maps/PlaceAddress.cs +++ b/src/Tizen.Maps/Tizen.Maps/PlaceAddress.cs @@ -215,6 +215,10 @@ namespace Tizen.Maps #region IDisposable Support private bool _disposedValue = false; + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + /// If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed. protected virtual void Dispose(bool disposing) { if (!_disposedValue) diff --git a/src/Tizen.Maps/Tizen.Maps/PlaceAddressList.cs b/src/Tizen.Maps/Tizen.Maps/PlaceAddressList.cs index c09ef3c..1c7a89e 100755 --- a/src/Tizen.Maps/Tizen.Maps/PlaceAddressList.cs +++ b/src/Tizen.Maps/Tizen.Maps/PlaceAddressList.cs @@ -61,6 +61,10 @@ namespace Tizen.Maps #region IDisposable Support private bool _disposedValue = false; + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + /// If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed. protected virtual void Dispose(bool disposing) { if (!_disposedValue) diff --git a/src/Tizen.Maps/Tizen.Maps/PlaceCategory.cs b/src/Tizen.Maps/Tizen.Maps/PlaceCategory.cs index 3013397..0f50051 100755 --- a/src/Tizen.Maps/Tizen.Maps/PlaceCategory.cs +++ b/src/Tizen.Maps/Tizen.Maps/PlaceCategory.cs @@ -85,6 +85,10 @@ namespace Tizen.Maps #region IDisposable Support private bool _disposedValue = false; + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + /// If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed. protected virtual void Dispose(bool disposing) { if (!_disposedValue) diff --git a/src/Tizen.Maps/Tizen.Maps/PlaceFilter.cs b/src/Tizen.Maps/Tizen.Maps/PlaceFilter.cs index 591bd16..244b34b 100755 --- a/src/Tizen.Maps/Tizen.Maps/PlaceFilter.cs +++ b/src/Tizen.Maps/Tizen.Maps/PlaceFilter.cs @@ -112,6 +112,10 @@ namespace Tizen.Maps #region IDisposable Support private bool _disposedValue = false; + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + /// If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed. protected virtual void Dispose(bool disposing) { if (!_disposedValue) diff --git a/src/Tizen.Maps/Tizen.Maps/PlaceList.cs b/src/Tizen.Maps/Tizen.Maps/PlaceList.cs index 6c9cc63..c457b1e 100755 --- a/src/Tizen.Maps/Tizen.Maps/PlaceList.cs +++ b/src/Tizen.Maps/Tizen.Maps/PlaceList.cs @@ -51,6 +51,10 @@ namespace Tizen.Maps #region IDisposable Support private bool _disposedValue = false; + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + /// If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed. protected virtual void Dispose(bool disposing) { if (!_disposedValue) diff --git a/src/Tizen.Maps/Tizen.Maps/Polygon.cs b/src/Tizen.Maps/Tizen.Maps/Polygon.cs index d0d97b5..d01b831 100755 --- a/src/Tizen.Maps/Tizen.Maps/Polygon.cs +++ b/src/Tizen.Maps/Tizen.Maps/Polygon.cs @@ -127,6 +127,10 @@ namespace Tizen.Maps #region IDisposable Support private bool _disposedValue = false; + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + /// If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed. protected virtual void Dispose(bool disposing) { if (!_disposedValue) diff --git a/src/Tizen.Maps/Tizen.Maps/Polyline.cs b/src/Tizen.Maps/Tizen.Maps/Polyline.cs index 7542480..e99f9a0 100755 --- a/src/Tizen.Maps/Tizen.Maps/Polyline.cs +++ b/src/Tizen.Maps/Tizen.Maps/Polyline.cs @@ -144,6 +144,10 @@ namespace Tizen.Maps #region IDisposable Support private bool _disposedValue = false; + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + /// If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed. protected virtual void Dispose(bool disposing) { if (!_disposedValue) diff --git a/src/Tizen.Maps/Tizen.Maps/Route.cs b/src/Tizen.Maps/Tizen.Maps/Route.cs index 618872b..bec87b7 100755 --- a/src/Tizen.Maps/Tizen.Maps/Route.cs +++ b/src/Tizen.Maps/Tizen.Maps/Route.cs @@ -159,6 +159,10 @@ namespace Tizen.Maps #region IDisposable Support private bool _disposedValue = false; + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + /// If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed. protected virtual void Dispose(bool disposing) { if (!_disposedValue) diff --git a/src/Tizen.Maps/Tizen.Maps/SearchPreference.cs b/src/Tizen.Maps/Tizen.Maps/SearchPreference.cs index 3ab84d4..06ce362 100755 --- a/src/Tizen.Maps/Tizen.Maps/SearchPreference.cs +++ b/src/Tizen.Maps/Tizen.Maps/SearchPreference.cs @@ -231,6 +231,10 @@ namespace Tizen.Maps #region IDisposable Support private bool _disposedValue = false; + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + /// If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed. protected virtual void Dispose(bool disposing) { if (!_disposedValue) diff --git a/src/Tizen.Messaging/Tizen.Messaging.Email/EmailMessage.cs b/src/Tizen.Messaging/Tizen.Messaging.Email/EmailMessage.cs index e4b9d9f..50bb943 100644 --- a/src/Tizen.Messaging/Tizen.Messaging.Email/EmailMessage.cs +++ b/src/Tizen.Messaging/Tizen.Messaging.Email/EmailMessage.cs @@ -157,12 +157,19 @@ namespace Tizen.Messaging.Email } } + /// + /// Releases all resources used by the EmailMessage. + /// public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } + /// + /// Releases all resources used by the EmailMessage. + /// + /// Disposing by User protected virtual void Dispose(bool disposing) { if (_disposed) diff --git a/src/Tizen.Messaging/Tizen.Messaging.Email/NamespaceDoc.cs b/src/Tizen.Messaging/Tizen.Messaging.Email/NamespaceDoc.cs old mode 100755 new mode 100644 index 8afebcb..3a072c5 --- a/src/Tizen.Messaging/Tizen.Messaging.Email/NamespaceDoc.cs +++ b/src/Tizen.Messaging/Tizen.Messaging.Email/NamespaceDoc.cs @@ -15,12 +15,12 @@ */ -/// -/// The Tizen.Messaging.Email namespace contains classes providing the functionality to send emails. -/// -/// -/// The Tizen.Messaging.Email namespace contains classes providing the functionality to send emails. -/// namespace Tizen.Messaging.Email { + /// + /// The Tizen.Messaging.Email namespace contains classes providing the functionality to send emails. + /// + /// + /// The Tizen.Messaging.Email namespace contains classes providing the functionality to send emails. + /// } diff --git a/src/Tizen.Messaging/Tizen.Messaging.Messages/Message.cs b/src/Tizen.Messaging/Tizen.Messaging.Messages/Message.cs old mode 100755 new mode 100644 index 38f0f5e..7bd72ab --- a/src/Tizen.Messaging/Tizen.Messaging.Messages/Message.cs +++ b/src/Tizen.Messaging/Tizen.Messaging.Messages/Message.cs @@ -59,11 +59,17 @@ namespace Tizen.Messaging.Messages (this as MmsMessage)?.SetAttachments(); } + /// + /// Destructor + /// ~Message() { Dispose(false); } + /// + /// Releases all resources used by the Message. + /// public void Dispose() { Dispose(true); diff --git a/src/Tizen.Messaging/Tizen.Messaging.Messages/NamespaceDoc.cs b/src/Tizen.Messaging/Tizen.Messaging.Messages/NamespaceDoc.cs old mode 100755 new mode 100644 index 79377ed..b540106 --- a/src/Tizen.Messaging/Tizen.Messaging.Messages/NamespaceDoc.cs +++ b/src/Tizen.Messaging/Tizen.Messaging.Messages/NamespaceDoc.cs @@ -14,12 +14,12 @@ * limitations under the License. */ -/// -/// The Tizen.Messaging.Messages namespace contains classes providing the functionality to send, receive, and search messages. -/// -/// -/// The Tizen.Messaging.Messages namespace contains classes providing the functionality to send, receive, and search messages. -/// namespace Tizen.Messaging.Messages { -} + /// + /// The Tizen.Messaging.Messages namespace contains classes providing the functionality to send, receive, and search messages. + /// + /// + /// The Tizen.Messaging.Messages namespace contains classes providing the functionality to send, receive, and search messages. + /// +} \ No newline at end of file diff --git a/src/Tizen.Network.WiFiDirect/Tizen.Network.WiFiDirect/NamespaceDoc.cs b/src/Tizen.Network.WiFiDirect/Tizen.Network.WiFiDirect/NamespaceDoc.cs index 3052502..9421c3b 100644 --- a/src/Tizen.Network.WiFiDirect/Tizen.Network.WiFiDirect/NamespaceDoc.cs +++ b/src/Tizen.Network.WiFiDirect/Tizen.Network.WiFiDirect/NamespaceDoc.cs @@ -1,7 +1,5 @@ -/** - -The Tizen.Network.WiFiDirect namespace provides classes to manage the settings of Wi-Fi Direct. -In addition, this namespace provides classes to connect and disconnect remote devices using Wi-Fi Direct. - -*/ +/// +/// The Tizen.Network.WiFiDirect namespace provides classes to manage the settings of Wi-Fi Direct. +/// In addition, this namespace provides classes to connect and disconnect remote devices using Wi-Fi Direct. +/// namespace Tizen.Network.WiFiDirect {} diff --git a/src/Tizen.PhonenumberUtils/Tizen.PhonenumberUtils/NamespaceDoc.cs b/src/Tizen.PhonenumberUtils/Tizen.PhonenumberUtils/NamespaceDoc.cs index 6960e7f..e5845ac 100644 --- a/src/Tizen.PhonenumberUtils/Tizen.PhonenumberUtils/NamespaceDoc.cs +++ b/src/Tizen.PhonenumberUtils/Tizen.PhonenumberUtils/NamespaceDoc.cs @@ -1,8 +1,26 @@ -/// -/// The Tizen.PhonenumberUtils namespace provides a class for parsing, formatting and normalizing phone numbers. -/// -/// -/// The Tizen.PhonenumberUtils namespace provides a class for parsing, formatting and normalizing phone numbers. -/// -/// 4 -namespace Tizen.PhonenumberUtils {} +/* + * 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. + */ + +namespace Tizen.PhonenumberUtils +{ + /// + /// The Tizen.PhonenumberUtils namespace provides a class for parsing, formatting and normalizing phone numbers. + /// + /// + /// The Tizen.PhonenumberUtils namespace provides a class for parsing, formatting and normalizing phone numbers. + /// + /// 4 +} diff --git a/src/Tizen.PhonenumberUtils/Tizen.PhonenumberUtils/PhonenumberUtils.cs b/src/Tizen.PhonenumberUtils/Tizen.PhonenumberUtils/PhonenumberUtils.cs index 9368f8c..5530d80 100644 --- a/src/Tizen.PhonenumberUtils/Tizen.PhonenumberUtils/PhonenumberUtils.cs +++ b/src/Tizen.PhonenumberUtils/Tizen.PhonenumberUtils/PhonenumberUtils.cs @@ -45,6 +45,10 @@ namespace Tizen.PhonenumberUtils } } + /// + /// Destructor + /// + /// 4 ~PhonenumberUtils() { Dispose(false); diff --git a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarDatabase.cs b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarDatabase.cs index 3bd2ca9..4bf80f1 100644 --- a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarDatabase.cs +++ b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarDatabase.cs @@ -37,7 +37,7 @@ namespace Tizen.Pims.Calendar internal CalendarDatabase() { - ///To be created in CalendarManager only + /*To be created in CalendarManager only*/ } /// diff --git a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarErrorFactory.cs b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarErrorFactory.cs index 9e97d31..69f2d7a 100644 --- a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarErrorFactory.cs +++ b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarErrorFactory.cs @@ -20,20 +20,20 @@ namespace Tizen.Pims.Calendar { internal enum CalendarError { - None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */ - OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /**< Out of Memory (-12) */ - InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter (-22) */ - FileNoSpace = Tizen.Internals.Errors.ErrorCode.FileNoSpaceOnDevice, /** Thrown when one of the arguments provided to a method is not valid public void SetProjection(uint[] propertyIdArray) { + if (propertyIdArray == null) + { + throw new ArgumentException("Invalid Parameters Provided"); + } + int error = Interop.Query.SetProjection(_queryHandle, propertyIdArray, propertyIdArray.Length); if (CalendarError.None != (CalendarError)error) { diff --git a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarReminder.cs b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarReminder.cs index 486c816..9eb3c1e 100644 --- a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarReminder.cs +++ b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarReminder.cs @@ -93,7 +93,6 @@ namespace Tizen.Pims.Calendar s_reminderAlerted -= value; if (s_reminderAlerted == null) { - /// _reminderAlertedCallback is removed by .Net Core int error = Interop.Reminder.Remove(_reminderAlertedCallback, IntPtr.Zero); if (CalendarError.None != (CalendarError)error) { diff --git a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarViews.cs b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarViews.cs index 6469e75..f9ac9b9 100644 --- a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarViews.cs +++ b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarViews.cs @@ -18,18 +18,19 @@ using System.Diagnostics.CodeAnalysis; namespace Tizen.Pims.Calendar { - /// - /// This namespace provides information about views with properties. - /// - /// 4 - /// - /// s are provided to access and handle entities. A view is a structure, which has property elements. - /// A view is almost the same as a database "VIEW", which limits access and guarantees performance. - /// A "record" represents a single row of the views. - /// A record can have basic properties of five types: integer, string, long, double, CalendarTime. - /// namespace CalendarViews { + /// + /// This namespace provides information about views with properties. + /// + /// 4 + /// + /// s are provided to access and handle entities. A view is a structure, which has property elements. + /// A view is almost the same as a database "VIEW", which limits access and guarantees performance. + /// A "record" represents a single row of the views. + /// A record can have basic properties of five types: integer, string, long, double, CalendarTime. + /// + internal static class Property { /// data type mask 0x0FF00000 diff --git a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/NamespaceDoc.cs b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/NamespaceDoc.cs index 4ca1aac..1e072ca 100644 --- a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/NamespaceDoc.cs +++ b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/NamespaceDoc.cs @@ -14,12 +14,14 @@ * limitations under the License. */ -/// -/// The Tizen.Pims.Calendar namespace provides classes for managing calendar information for schedule. -/// -/// -/// The Tizen.Pims.Calendar namespace provides classes for managing calendar information for schedule. -/// -/// 4 -namespace Tizen.Pims.Calendar {} +namespace Tizen.Pims.Calendar +{ + /// + /// The Tizen.Pims.Calendar namespace provides classes for managing calendar information for schedule. + /// + /// + /// The Tizen.Pims.Calendar namespace provides classes for managing calendar information for schedule. + /// + /// 4 +} diff --git a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsViews.cs b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsViews.cs index b3fd512..97dc02c 100644 --- a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsViews.cs +++ b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/ContactsViews.cs @@ -20,18 +20,19 @@ using System.Diagnostics.CodeAnalysis; namespace Tizen.Pims.Contacts { - /// - /// This namespace provides information about views with properties. - /// - /// - /// Views are provided to access and handle entities. A view is a structure, which has property elements. - /// A view is almost the same as a database "VIEW", which limits access and guarantees performance. - /// A "record" represents a single row of the views. - /// A record can have basic properties of five types: integer, string, boolean, long, double. - /// - /// 4 namespace ContactsViews { + /// + /// This namespace provides information about views with properties. + /// + /// + /// Views are provided to access and handle entities. A view is a structure, which has property elements. + /// A view is almost the same as a database "VIEW", which limits access and guarantees performance. + /// A "record" represents a single row of the views. + /// A record can have basic properties of five types: integer, string, boolean, long, double. + /// + /// 4 + internal static class Property { private const uint AddressBook = 0x00100000; diff --git a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/NamespaceDoc.cs b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/NamespaceDoc.cs index 91a3ded..66a19b7 100644 --- a/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/NamespaceDoc.cs +++ b/src/Tizen.Pims.Contacts/Tizen.Pims.Contacts/NamespaceDoc.cs @@ -14,11 +14,13 @@ * limitations under the License. */ -/// -/// The Tizen.Pims.Contacts namespace provides classes for managing contact information for people. -/// -/// -/// The Tizen.Pims.Contacts namespace provides classes for managing contact information for people. -/// -/// 4 -namespace Tizen.Pims.Contacts {} +namespace Tizen.Pims.Contacts +{ + /// + /// The Tizen.Pims.Contacts namespace provides classes for managing contact information for people. + /// + /// + /// The Tizen.Pims.Contacts namespace provides classes for managing contact information for people. + /// + /// 4 +} \ No newline at end of file diff --git a/src/Tizen.Uix.InputMethod/Interop/Interop.InputMethod.cs b/src/Tizen.Uix.InputMethod/Interop/Interop.InputMethod.cs index 5c7d227..1ec40cf 100755 --- a/src/Tizen.Uix.InputMethod/Interop/Interop.InputMethod.cs +++ b/src/Tizen.Uix.InputMethod/Interop/Interop.InputMethod.cs @@ -35,13 +35,13 @@ internal static partial class Interop internal enum ErrorCode { - None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */ - InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter */ - PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /**< Permission denied */ - NoCallbackFunction = ErrorInputMethod | 0x0001, /**< Necessary callback function is not set */ - NotRunning = ErrorInputMethod | 0x0002, /**< IME main loop isn't started yet */ - OperationFailed = ErrorInputMethod | 0x0010, /**< Operation failed */ - OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory /**< out of memory */ + None = Tizen.Internals.Errors.ErrorCode.None, + InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, + PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, + NoCallbackFunction = ErrorInputMethod | 0x0001, + NotRunning = ErrorInputMethod | 0x0002, + OperationFailed = ErrorInputMethod | 0x0010, + OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory }; [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] diff --git a/src/Tizen.Uix.InputMethod/Tizen.Uix.InputMethod/EditorWindow.cs b/src/Tizen.Uix.InputMethod/Tizen.Uix.InputMethod/EditorWindow.cs index 82153a7..5599186 100755 --- a/src/Tizen.Uix.InputMethod/Tizen.Uix.InputMethod/EditorWindow.cs +++ b/src/Tizen.Uix.InputMethod/Tizen.Uix.InputMethod/EditorWindow.cs @@ -34,11 +34,17 @@ namespace Tizen.Uix.InputMethod _realHandle = _handle; } + /// + /// This API creates handle for editor window. + /// protected override IntPtr CreateHandle(EvasObject parent) { return _handle; } + /// + /// This API gets handle for editor window. + /// public IntPtr GetHandle() { return _handle; diff --git a/src/Tizen.Uix.InputMethod/Tizen.Uix.InputMethod/InputMethodEditor.cs b/src/Tizen.Uix.InputMethod/Tizen.Uix.InputMethod/InputMethodEditor.cs index 532f3a4..3aef83b 100755 --- a/src/Tizen.Uix.InputMethod/Tizen.Uix.InputMethod/InputMethodEditor.cs +++ b/src/Tizen.Uix.InputMethod/Tizen.Uix.InputMethod/InputMethodEditor.cs @@ -24,7 +24,7 @@ namespace Tizen.Uix.InputMethod { /// /// Enumeration of the key codes. - /// If keycode & 0xff000000 == 0x01000000 then this key code is directly encoded 24-bit UCS character.The UCS value is keycode & 0x00ffffff. + /// If keycode & 0xff000000 == 0x01000000 then this key code is directly encoded 24-bit UCS character.The UCS value is keycode & 0x00ffffff. /// Defines the list of keys supported by the system.Note that certain keys may not be available on all devices. /// public enum KeyCode @@ -1034,6 +1034,9 @@ namespace Tizen.Uix.InputMethod private set; } + /// + /// compare whether ContextId are equal + /// public bool Equals(ContextId other) { return this.Id == other.Id; diff --git a/src/Tizen.Uix.InputMethodManager/Interop/Interop.InputMethodManager.cs b/src/Tizen.Uix.InputMethodManager/Interop/Interop.InputMethodManager.cs index d9a4347..fe9598f 100755 --- a/src/Tizen.Uix.InputMethodManager/Interop/Interop.InputMethodManager.cs +++ b/src/Tizen.Uix.InputMethodManager/Interop/Interop.InputMethodManager.cs @@ -34,10 +34,10 @@ internal static partial class Interop internal enum ErrorCode { - None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */ - InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter */ - PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /**< Permission denied */ - OperationFailed = ErrorInputMethodManager | 0x0010, /**< Operation failed */ + None = Tizen.Internals.Errors.ErrorCode.None, + InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, + PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, + OperationFailed = ErrorInputMethodManager | 0x0010, }; [DllImport(Libraries.InputMethodManager, EntryPoint = "ime_manager_show_ime_list")] diff --git a/src/Tizen.Uix.Stt/Interop/Interop.Stt.cs b/src/Tizen.Uix.Stt/Interop/Interop.Stt.cs index f29291c..b2df927 100755 --- a/src/Tizen.Uix.Stt/Interop/Interop.Stt.cs +++ b/src/Tizen.Uix.Stt/Interop/Interop.Stt.cs @@ -34,26 +34,26 @@ internal static partial class Interop internal enum SttError { - None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */ - OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /**< Out of Memory */ - IoError = Tizen.Internals.Errors.ErrorCode.IoError, /**< I/O error */ - InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter */ - TimedOut = Tizen.Internals.Errors.ErrorCode.TimedOut, /**< No answer from the STT service */ - RecorderBusy = Tizen.Internals.Errors.ErrorCode.ResourceBusy, /**< Device or resource busy */ - OutOfNetwork = Tizen.Internals.Errors.ErrorCode.Networkdown, /**< Network is down */ - PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /**< Permission denied */ - NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /**< STT NOT supported */ - InvalidState = ErrorStt | 0x01, /**< Invalid state */ - InvalidLanguage = ErrorStt | 0x02, /**< Invalid language */ - EngineNotFound = ErrorStt | 0x03, /**< No available engine */ - OperationFailed = ErrorStt | 0x04, /**< Operation failed */ - NotSupportedFeature = ErrorStt | 0x05, /**< Not supported feature of current engine */ - RecordingTimedOut = ErrorStt | 0x06, /**< Recording timed out */ - NoSpeech = ErrorStt | 0x07, /**< No speech while recording*/ - InProgressToReady = ErrorStt | 0x08, /**< Progress to ready is not finished*/ - InProgressToRecording = ErrorStt | 0x09, /**< Progress to recording is not finished*/ - InProgressToProcessing = ErrorStt | 0x10, /**< Progress to processing is not finished*/ - ServiceReset = ErrorStt | 0x11 /**< Service reset*/ + None = Tizen.Internals.Errors.ErrorCode.None, /* Successful */ + OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /* Out of Memory */ + IoError = Tizen.Internals.Errors.ErrorCode.IoError, /* I/O error */ + InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /* Invalid parameter */ + TimedOut = Tizen.Internals.Errors.ErrorCode.TimedOut, /* No answer from the STT service */ + RecorderBusy = Tizen.Internals.Errors.ErrorCode.ResourceBusy, /* Device or resource busy */ + OutOfNetwork = Tizen.Internals.Errors.ErrorCode.Networkdown, /* Network is down */ + PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /* Permission denied */ + NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /* STT NOT supported */ + InvalidState = ErrorStt | 0x01, /* Invalid state */ + InvalidLanguage = ErrorStt | 0x02, /* Invalid language */ + EngineNotFound = ErrorStt | 0x03, /* No available engine */ + OperationFailed = ErrorStt | 0x04, /* Operation failed */ + NotSupportedFeature = ErrorStt | 0x05, /* Not supported feature of current engine */ + RecordingTimedOut = ErrorStt | 0x06, /* Recording timed out */ + NoSpeech = ErrorStt | 0x07, /* No speech while recording */ + InProgressToReady = ErrorStt | 0x08, /* Progress to ready is not finished */ + InProgressToRecording = ErrorStt | 0x09, /* Progress to recording is not finished */ + InProgressToProcessing = ErrorStt | 0x10, /* Progress to processing is not finished */ + ServiceReset = ErrorStt | 0x11 /* Service reset */ }; [UnmanagedFunctionPointer(CallingConvention.Cdecl)] diff --git a/src/Tizen.Uix.Stt/Tizen.Uix.Stt/SttClient.cs b/src/Tizen.Uix.Stt/Tizen.Uix.Stt/SttClient.cs old mode 100644 new mode 100755 index 1860270..5f33ed1 --- a/src/Tizen.Uix.Stt/Tizen.Uix.Stt/SttClient.cs +++ b/src/Tizen.Uix.Stt/Tizen.Uix.Stt/SttClient.cs @@ -1492,13 +1492,21 @@ namespace Tizen.Uix.Stt } /// - /// A method to release resources. + /// Method to release resources. /// + /// 3 public void Dispose() { Dispose(true); } + /// + /// Method to release resources. + /// + /// 3 + /// + /// The boolean value for destoying stt handle. + /// protected virtual void Dispose(bool disposing) { if (!disposedValue) diff --git a/src/Tizen.Uix.SttEngine/Interop/Interop.SttEngine.cs b/src/Tizen.Uix.SttEngine/Interop/Interop.SttEngine.cs index dc07ccf..902d487 100755 --- a/src/Tizen.Uix.SttEngine/Interop/Interop.SttEngine.cs +++ b/src/Tizen.Uix.SttEngine/Interop/Interop.SttEngine.cs @@ -36,18 +36,18 @@ internal static partial class Interop public enum ErrorCode { - None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */ - OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /**< Out of Memory */ - IoError = Tizen.Internals.Errors.ErrorCode.IoError, /**< I/O error */ - InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter */ - NetworkDown = Tizen.Internals.Errors.ErrorCode.Networkdown, /**< Network down(Out of network) */ - InvalidState = ErrorStt | 0x01, /**< Invalid state */ - InvalidLanguage = ErrorStt | 0x02, /**< Invalid language */ - OperationFailed = ErrorStt | 0x04, /**< Operation failed */ - NotSupportedFeature = ErrorStt | 0x05, /**< Not supported feature of current engine */ - NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /**< Device or resource busy */ - PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /**< Permission denied */ - RecordingTimedOut = ErrorStt | 0x06, /**< Recording timed out */ + None = Tizen.Internals.Errors.ErrorCode.None, /* Successful */ + OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /* Out of Memory */ + IoError = Tizen.Internals.Errors.ErrorCode.IoError, /* I/O error */ + InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /* Invalid parameter */ + NetworkDown = Tizen.Internals.Errors.ErrorCode.Networkdown, /* Network down(Out of network) */ + InvalidState = ErrorStt | 0x01, /* Invalid state */ + InvalidLanguage = ErrorStt | 0x02, /* Invalid language */ + OperationFailed = ErrorStt | 0x04, /* Operation failed */ + NotSupportedFeature = ErrorStt | 0x05, /* Not supported feature of current engine */ + NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /* Device or resource busy */ + PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /* Permission denied */ + RecordingTimedOut = ErrorStt | 0x06, /* Recording timed out */ }; [UnmanagedFunctionPointer(CallingConvention.Cdecl)] diff --git a/src/Tizen.Uix.Tts/Interop/Interop.Tts.cs b/src/Tizen.Uix.Tts/Interop/Interop.Tts.cs index 32b49ba..21a3a67 100755 --- a/src/Tizen.Uix.Tts/Interop/Interop.Tts.cs +++ b/src/Tizen.Uix.Tts/Interop/Interop.Tts.cs @@ -35,21 +35,21 @@ internal static partial class Interop internal enum TtsError { - None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */ - OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /**< Out of Memory */ - IoError = Tizen.Internals.Errors.ErrorCode.IoError, /**< I/O error */ - InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter */ - OutOfNetwork = Tizen.Internals.Errors.ErrorCode.Networkdown, /**< Network is down */ - TimedOut = Tizen.Internals.Errors.ErrorCode.TimedOut, /**< No answer from the STT service */ - PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /**< Permission denied */ - NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /**< STT NOT supported */ - InvalidState = ErrorTts | 0x01, /**< Invalid state */ - InvalidVoice = ErrorTts | 0x02, /**< Invalid language */ - EngineNotFound = ErrorTts | 0x03, /**< No available engine */ - OperationFailed = ErrorTts | 0x04, /**< Operation failed */ - AudioPolicyBlocked = ErrorTts | 0x05, /**< Audio policy blocked */ - NotSupportedFeature = ErrorTts | 0x06, /**< Not supported feature of current engine*/ - ServiceReset = ErrorTts | 0x07 /**< Service reset*/ + None = Tizen.Internals.Errors.ErrorCode.None, /* Successful */ + OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /* Out of Memory */ + IoError = Tizen.Internals.Errors.ErrorCode.IoError, /* I/O error */ + InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /* Invalid parameter */ + OutOfNetwork = Tizen.Internals.Errors.ErrorCode.Networkdown, /* Network is down */ + TimedOut = Tizen.Internals.Errors.ErrorCode.TimedOut, /* No answer from the STT service */ + PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /* Permission denied */ + NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /* STT NOT supported */ + InvalidState = ErrorTts | 0x01, /* Invalid state */ + InvalidVoice = ErrorTts | 0x02, /* Invalid language */ + EngineNotFound = ErrorTts | 0x03, /* No available engine */ + OperationFailed = ErrorTts | 0x04, /* Operation failed */ + AudioPolicyBlocked = ErrorTts | 0x05, /* Audio policy blocked */ + NotSupportedFeature = ErrorTts | 0x06, /* Not supported feature of current engine*/ + ServiceReset = ErrorTts | 0x07 /* Service reset*/ }; [UnmanagedFunctionPointer(CallingConvention.Cdecl)] diff --git a/src/Tizen.Uix.Tts/Tizen.Uix.Tts/SupportedVoice.cs b/src/Tizen.Uix.Tts/Tizen.Uix.Tts/SupportedVoice.cs index e99108b..eff992e 100755 --- a/src/Tizen.Uix.Tts/Tizen.Uix.Tts/SupportedVoice.cs +++ b/src/Tizen.Uix.Tts/Tizen.Uix.Tts/SupportedVoice.cs @@ -63,6 +63,10 @@ namespace Tizen.Uix.Tts internal set; } + /// + /// A voice type (e.g. #TTS_VOICE_TYPE_MALE, #TTS_VOICE_TYPE_FEMALE). + /// + /// 3 public Voice VoiceType { get; diff --git a/src/Tizen.Uix.Tts/Tizen.Uix.Tts/TtsClient.cs b/src/Tizen.Uix.Tts/Tizen.Uix.Tts/TtsClient.cs index f8af3a1..1d95595 100755 --- a/src/Tizen.Uix.Tts/Tizen.Uix.Tts/TtsClient.cs +++ b/src/Tizen.Uix.Tts/Tizen.Uix.Tts/TtsClient.cs @@ -1049,6 +1049,13 @@ namespace Tizen.Uix.Tts Dispose(true); } + /// + /// Method to release resources. + /// + /// 3 + /// + /// The boolean value for destoying tts handle. + /// protected virtual void Dispose(bool disposing) { if (!disposedValue) diff --git a/src/Tizen.Uix.TtsEngine/Interop/Interop.TtsEngine.cs b/src/Tizen.Uix.TtsEngine/Interop/Interop.TtsEngine.cs index 0a2a962..df37090 100755 --- a/src/Tizen.Uix.TtsEngine/Interop/Interop.TtsEngine.cs +++ b/src/Tizen.Uix.TtsEngine/Interop/Interop.TtsEngine.cs @@ -36,17 +36,17 @@ internal static partial class Interop public enum ErrorCode { - None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */ - OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /**< Out of Memory */ - IoError = Tizen.Internals.Errors.ErrorCode.IoError, /**< I/O error */ - InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter */ - NetworkDown = Tizen.Internals.Errors.ErrorCode.Networkdown, /**< Network down(Out of network) */ - PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /**< Permission denied */ - InvalidState = ErrorTts | 0x01, /**< Invalid state */ - InvalidVoice = ErrorTts | 0x02, /**< Invalid voice */ - OperationFailed = ErrorTts | 0x04, /**< Operation failed */ - NotSupportedFeature = ErrorTts | 0x06, /**< Not supported feature of current engine */ - NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /**< Device or resource busy */ + None = Tizen.Internals.Errors.ErrorCode.None, /* Successful */ + OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /* Out of Memory */ + IoError = Tizen.Internals.Errors.ErrorCode.IoError, /* I/O error */ + InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /* Invalid parameter */ + NetworkDown = Tizen.Internals.Errors.ErrorCode.Networkdown, /* Network down(Out of network) */ + PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /* Permission denied */ + InvalidState = ErrorTts | 0x01, /* Invalid state */ + InvalidVoice = ErrorTts | 0x02, /* Invalid voice */ + OperationFailed = ErrorTts | 0x04, /* Operation failed */ + NotSupportedFeature = ErrorTts | 0x06, /* Not supported feature of current engine */ + NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /* Device or resource busy */ }; [UnmanagedFunctionPointer(CallingConvention.Cdecl)] diff --git a/src/Tizen.Uix.VoiceControl/Interop/Interop.VoiceControl.cs b/src/Tizen.Uix.VoiceControl/Interop/Interop.VoiceControl.cs index f6d386e..e675aee 100755 --- a/src/Tizen.Uix.VoiceControl/Interop/Interop.VoiceControl.cs +++ b/src/Tizen.Uix.VoiceControl/Interop/Interop.VoiceControl.cs @@ -36,25 +36,25 @@ internal static partial class Interop internal enum ErrorCode { - None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */ - OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /**< Out of Memory */ - IoError = Tizen.Internals.Errors.ErrorCode.IoError, /**< I/O error */ - InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter */ - TimedOut = Tizen.Internals.Errors.ErrorCode.TimedOut, /**< No answer from service */ - RecorderBusy = Tizen.Internals.Errors.ErrorCode.ResourceBusy, /**< Busy recorder */ - PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /**< Permission denied */ - NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /**< VC NOT supported */ - InvalidState = ErrorVoiceControl | 0x011, /**< Invalid state */ - InvalidLanguage = ErrorVoiceControl | 0x012, /**< Invalid language */ - EngineNotFound = ErrorVoiceControl | 0x013, /**< No available engine */ - OperationFailed = ErrorVoiceControl | 0x014, /**< Operation failed */ - OperationRejected = ErrorVoiceControl | 0x015, /**< Operation rejected */ - IterationEnd = ErrorVoiceControl | 0x016, /**< List reached end */ - Empty = ErrorVoiceControl | 0x017, /**< List empty */ - ServiceReset = ErrorVoiceControl | 0x018, /**< Service daemon reset (Since 3.0) */ - InProgressToReady = ErrorVoiceControl | 0x019, /**< In progress to ready (Since 3.0) */ - InProgressToRecording = ErrorVoiceControl | 0x020, /**< In progress to recording (Since 3.0) */ - InProgressToProcessing = ErrorVoiceControl | 0x021 /**< In progress to processing (Since 3.0) */ + None = Tizen.Internals.Errors.ErrorCode.None, /* Successful */ + OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /* Out of Memory */ + IoError = Tizen.Internals.Errors.ErrorCode.IoError, /* I/O error */ + InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /* Invalid parameter */ + TimedOut = Tizen.Internals.Errors.ErrorCode.TimedOut, /* No answer from service */ + RecorderBusy = Tizen.Internals.Errors.ErrorCode.ResourceBusy, /* Busy recorder */ + PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /* Permission denied */ + NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /* VC NOT supported */ + InvalidState = ErrorVoiceControl | 0x011, /* Invalid state */ + InvalidLanguage = ErrorVoiceControl | 0x012, /* Invalid language */ + EngineNotFound = ErrorVoiceControl | 0x013, /* No available engine */ + OperationFailed = ErrorVoiceControl | 0x014, /* Operation failed */ + OperationRejected = ErrorVoiceControl | 0x015, /* Operation rejected */ + IterationEnd = ErrorVoiceControl | 0x016, /* List reached end */ + Empty = ErrorVoiceControl | 0x017, /* List empty */ + ServiceReset = ErrorVoiceControl | 0x018, /* Service daemon reset */ + InProgressToReady = ErrorVoiceControl | 0x019, /* In progress to ready */ + InProgressToRecording = ErrorVoiceControl | 0x020, /* In progress to recording */ + InProgressToProcessing = ErrorVoiceControl | 0x021 /* In progress to processing */ }; internal enum VoiceCommandType -- 2.7.4