Remove Tizen.Convergence 55/152055/1
authorWonyoung Choi <wy80.choi@samsung.com>
Mon, 25 Sep 2017 02:29:30 +0000 (11:29 +0900)
committerWonyoung Choi <wy80.choi@samsung.com>
Mon, 25 Sep 2017 02:29:44 +0000 (11:29 +0900)
Change-Id: I9630563044b22d9488d300a3c8a59ae455dab98f

22 files changed:
pkg/PlatformFileList.txt
pkg/PublicModuleList.txt
src/Tizen.Convergence/Interop/Interop.Common.cs [deleted file]
src/Tizen.Convergence/Interop/Interop.Internal.Conv.Channel.cs [deleted file]
src/Tizen.Convergence/Interop/Interop.Internal.Conv.Device.cs [deleted file]
src/Tizen.Convergence/Interop/Interop.Internal.Conv.Manager.cs [deleted file]
src/Tizen.Convergence/Interop/Interop.Internal.Conv.Payload.cs [deleted file]
src/Tizen.Convergence/Interop/Interop.Internal.Conv.Service.cs [deleted file]
src/Tizen.Convergence/Interop/Interop.Libc.cs [deleted file]
src/Tizen.Convergence/Interop/Interop.Libraries.cs [deleted file]
src/Tizen.Convergence/Tizen.Convergence.csproj [deleted file]
src/Tizen.Convergence/Tizen.Convergence.sln [deleted file]
src/Tizen.Convergence/Tizen.Convergence/InternalAppCommunicationService.cs [deleted file]
src/Tizen.Convergence/Tizen.Convergence/InternalChannel.cs [deleted file]
src/Tizen.Convergence/Tizen.Convergence/InternalDevice.cs [deleted file]
src/Tizen.Convergence/Tizen.Convergence/InternalDeviceFinder.cs [deleted file]
src/Tizen.Convergence/Tizen.Convergence/InternalDeviceFoundEventArgs.cs [deleted file]
src/Tizen.Convergence/Tizen.Convergence/InternalErrorFactory.cs [deleted file]
src/Tizen.Convergence/Tizen.Convergence/InternalPayload.cs [deleted file]
src/Tizen.Convergence/Tizen.Convergence/InternalService.cs [deleted file]
src/Tizen.Convergence/Tizen.Convergence/InternalServiceErrorOccuredEventArgs.cs [deleted file]
src/Tizen.Convergence/Tizen.Convergence/InternalServiceEventOccuredEventArgs.cs [deleted file]

index 4ce840b..8aaa14f 100644 (file)
@@ -30,7 +30,6 @@ Tizen.Content.Download.dll                         #common #mobile #mobile-emul
 Tizen.Content.MediaContent.dll                     #common #mobile #mobile-emul #tv #ivi #wearable
 Tizen.Content.MimeType.dll                         #common #mobile #mobile-emul #tv #ivi #wearable
 Tizen.Context.dll                                  #mobile #mobile-emul #wearable
-Tizen.Convergence.dll                              #common #mobile #mobile-emul #ivi #wearable
 Tizen.dll                                          #common #mobile #mobile-emul #tv #ivi #wearable
 Tizen.Location.dll                                 #mobile #mobile-emul #tv #ivi #wearable
 Tizen.Location.Geofence.dll                        #mobile #mobile-emul
index 0327770..2e9e56b 100755 (executable)
@@ -27,7 +27,6 @@ Tizen.Content.Download
 Tizen.Content.MediaContent
 Tizen.Content.MimeType
 Tizen.Context
-Tizen.Convergence
 Tizen.Location
 Tizen.Location.Geofence
 Tizen.Log
diff --git a/src/Tizen.Convergence/Interop/Interop.Common.cs b/src/Tizen.Convergence/Interop/Interop.Common.cs
deleted file mode 100755 (executable)
index bad120b..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2016 by Samsung Electronics, Inc.,
-//
-// This software is the confidential and proprietary information
-// of Samsung Electronics, Inc. ("Confidential Information"). You
-// shall not disclose such Confidential Information and shall use
-// it only in accordance with the terms of the license agreement
-// you entered into with Samsung.
-
-using System;
-using System.Runtime.InteropServices;
-
-internal static partial class Interop
-{
-    internal abstract class TizenSafeHandle : SafeHandle
-    {
-        public abstract void Destroy();
-
-        public TizenSafeHandle() : base(IntPtr.Zero, true)
-        {
-        }
-
-        public TizenSafeHandle(IntPtr handle) : base(handle, true)
-        {
-        }
-
-        public override bool IsInvalid
-        {
-            get
-            {
-                return handle == IntPtr.Zero;
-            }
-        }
-
-        protected override bool ReleaseHandle()
-        {
-            Destroy();
-            SetHandle(IntPtr.Zero);
-            return true;
-        }
-    }
-}
diff --git a/src/Tizen.Convergence/Interop/Interop.Internal.Conv.Channel.cs b/src/Tizen.Convergence/Interop/Interop.Internal.Conv.Channel.cs
deleted file mode 100755 (executable)
index 4a8a282..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright 2016 by Samsung Electronics, Inc.,
-//
-// This software is the confidential and proprietary information
-// of Samsung Electronics, Inc. ("Confidential Information"). You
-// shall not disclose such Confidential Information and shall use
-// it only in accordance with the terms of the license agreement
-// you entered into with Samsung.
-
-using System;
-using System.Runtime.InteropServices;
-using Tizen;
-using Tizen.Convergence;
-
-internal static partial class Interop
-{
-    internal static partial class Internal
-    {
-        internal static partial class ConvChannel
-        {
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_channel_create")]
-            internal static extern int Create(out ConvChannelHandle /* conv_channel_h */ handle);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_channel_destroy")]
-            internal static extern int Destroy(IntPtr /* conv_channel_h */ handle);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_channel_get_string")]
-            internal static extern int GetString(ConvChannelHandle /* conv_channel_h */ handle, string key, out IntPtr value);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_channel_set_string")]
-            internal static extern int SetString(ConvChannelHandle /* conv_channel_h */ handle, string key, string value);
-        }
-
-        internal class ConvChannelHandle : TizenSafeHandle
-        {
-            private bool _ownsHandle = true;
-
-            public ConvChannelHandle(): base()
-            {
-
-            }
-
-            public ConvChannelHandle(IntPtr handle)
-                : base(handle)
-            {
-            }
-
-            public ConvChannelHandle(IntPtr handle, bool ownsHandle)
-                : base(handle)
-            {
-                _ownsHandle = ownsHandle;
-            }
-
-            public override void Destroy()
-            {
-                if (_ownsHandle && handle != IntPtr.Zero)
-                {
-                    var err = ConvChannel.Destroy(this.handle);
-                    if (err != (int)ConvErrorCode.None)
-                    {
-                        Log.Error(ErrorFactory.LogTag, "Failed to destroy conv channel handle");
-                        throw ErrorFactory.GetException(err);
-                    }
-                }
-            }
-        }
-    }
-}
diff --git a/src/Tizen.Convergence/Interop/Interop.Internal.Conv.Device.cs b/src/Tizen.Convergence/Interop/Interop.Internal.Conv.Device.cs
deleted file mode 100755 (executable)
index cbee849..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2016 by Samsung Electronics, Inc.,
-//
-// This software is the confidential and proprietary information
-// of Samsung Electronics, Inc. ("Confidential Information"). You
-// shall not disclose such Confidential Information and shall use
-// it only in accordance with the terms of the license agreement
-// you entered into with Samsung.
-
-using System;
-using System.Runtime.InteropServices;
-using Tizen;
-using Tizen.Convergence;
-
-internal static partial class Interop
-{
-    internal static partial class Internal
-    {
-        internal static partial class ConvDevice
-        {
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_device_clone")]
-            internal static extern int Clone(IntPtr /* conv_device_h */ originalHandle, out ConvDeviceHandle /* conv_device_h */ targetHandle);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_device_destroy")]
-            internal static extern int Destroy(IntPtr /* conv_device_h */ handle);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_device_get_property_string")]
-            internal static extern int GetPropertyString(ConvDeviceHandle /* conv_device_h */ handle, string key, out IntPtr value);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_device_foreach_service")]
-            internal static extern int ForeachService(ConvDeviceHandle /* conv_device_h */ handle, ConvServiceForeachCallback cb, IntPtr /* void */ userData);
-
-            [UnmanagedFunctionPointerAttribute(CallingConvention.Cdecl)]
-            internal delegate void ConvServiceForeachCallback(IntPtr serviceHandle, IntPtr /* void */ userData);
-        }
-
-        internal class ConvDeviceHandle : TizenSafeHandle
-        {
-            public ConvDeviceHandle() : base()
-            {
-
-            }
-
-            public ConvDeviceHandle(IntPtr handle)
-                : base(handle)
-            {
-            }
-
-            public override void Destroy()
-            {
-                if (handle != IntPtr.Zero)
-                {
-                    var err = ConvDevice.Destroy(this.handle);
-                    if (err != (int)ConvErrorCode.None)
-                    {
-                        Log.Error(ErrorFactory.LogTag, "Failed to destroy conv device handle");
-                        throw ErrorFactory.GetException(err);
-                    }
-                }
-            }
-        }
-    }
-}
diff --git a/src/Tizen.Convergence/Interop/Interop.Internal.Conv.Manager.cs b/src/Tizen.Convergence/Interop/Interop.Internal.Conv.Manager.cs
deleted file mode 100755 (executable)
index cfdc9e5..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright 2016 by Samsung Electronics, Inc.,
-//
-// This software is the confidential and proprietary information
-// of Samsung Electronics, Inc. ("Confidential Information"). You
-// shall not disclose such Confidential Information and shall use
-// it only in accordance with the terms of the license agreement
-// you entered into with Samsung.
-
-using System;
-using System.Runtime.InteropServices;
-using Tizen;
-using Tizen.Convergence;
-
-internal static partial class Interop
-{
-    internal static partial class Internal
-    {
-        public enum ConvDiscoveryResult
-        {
-            /// <summary>
-            /// Discovery Error
-            /// </summary>
-            Error = -1,
-            /// <summary>
-            /// Discovery Success
-            /// </summary>
-            Success = 0,
-            /// <summary>
-            /// Discovery finished
-            /// </summary>
-            Finished,
-            /// <summary>
-            /// Discovery lost
-            /// </summary>
-            Lost,
-        }
-
-        internal static partial class ConvManager
-        {
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_create")]
-            internal static extern int ConvCreate(out ConvManagerHandle /* conv_h */ handle);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_destroy")]
-            internal static extern int ConvDestroy(IntPtr /* conv_h */ handle);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_discovery_start")]
-            internal static extern int ConvDiscoveryStart(ConvManagerHandle /* conv_h */ handle, int timeoutSeconds, ConvDiscoveryCallback callback, IntPtr /* void */ userData);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_discovery_stop")]
-            internal static extern int ConvDiscoveryStop(ConvManagerHandle /* conv_h */ handle);
-
-            [UnmanagedFunctionPointerAttribute(CallingConvention.Cdecl)]
-            internal delegate void ConvDiscoveryCallback(IntPtr /* conv_device_h */ deviceHandle, ConvDiscoveryResult /* conv_discovery_result_e */ result, IntPtr /* void */ userData);
-        }
-
-        internal class ConvManagerHandle : TizenSafeHandle
-        {
-            public ConvManagerHandle() : base()
-            {
-
-            }
-
-            public ConvManagerHandle(IntPtr handle)
-                : base(handle)
-            {
-            }
-
-            public override void Destroy()
-            {
-                var err = ConvManager.ConvDestroy(this.handle);
-                if (err != (int)ConvErrorCode.None)
-                {
-                    Log.Error(ErrorFactory.LogTag, "Failed to destroy conv manager handle");
-                    throw ErrorFactory.GetException(err);
-                }
-            }
-        }
-    }
-}
\ No newline at end of file
diff --git a/src/Tizen.Convergence/Interop/Interop.Internal.Conv.Payload.cs b/src/Tizen.Convergence/Interop/Interop.Internal.Conv.Payload.cs
deleted file mode 100755 (executable)
index 902e5e0..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright 2016 by Samsung Electronics, Inc.,
-//
-// This software is the confidential and proprietary information
-// of Samsung Electronics, Inc. ("Confidential Information"). You
-// shall not disclose such Confidential Information and shall use
-// it only in accordance with the terms of the license agreement
-// you entered into with Samsung.
-
-using System;
-using System.Runtime.InteropServices;
-using Tizen;
-using Tizen.Convergence;
-
-internal static partial class Interop
-{
-    internal static partial class Internal
-    {
-        internal static partial class ConvPayload
-        {
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_payload_create")]
-            internal static extern int Create(out ConvPayloadHandle /* conv_payload_h */ handle);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_payload_destroy")]
-            internal static extern int Destroy(IntPtr /* conv_payload_h */ handle);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_payload_set_string")]
-            internal static extern int SetString(ConvPayloadHandle /* conv_payload_h */ handle, string key, string value);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_payload_get_string")]
-            internal static extern int GetString(ConvPayloadHandle /* conv_payload_h */ handle, string key, out IntPtr value);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_payload_set_byte")]
-            internal static extern int SetByte(ConvPayloadHandle /* conv_payload_h */ handle, string key, int length, byte[] value);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_payload_get_byte")]
-            internal static extern int GetByte(ConvPayloadHandle /* conv_payload_h */ handle, string key, out int length, out IntPtr value);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_payload_set_binary")]
-            internal static extern int SetBinary(ConvPayloadHandle /* conv_payload_h */ handle, int length, byte[] value);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_payload_get_binary")]
-            internal static extern int GetBinary(ConvPayloadHandle /* conv_payload_h */ handle, out int length, out IntPtr value);
-        }
-
-        internal class ConvPayloadHandle : TizenSafeHandle
-        {
-            private bool _ownsHandle = true;
-
-            public ConvPayloadHandle(): base()
-            {
-
-            }
-
-            public ConvPayloadHandle(IntPtr handle)
-                : base(handle)
-            {
-            }
-
-            public ConvPayloadHandle(IntPtr handle, bool ownsHandle)
-                : base(handle)
-            {
-                _ownsHandle = ownsHandle;
-            }
-
-            public override void Destroy()
-            {
-                if (_ownsHandle && handle != IntPtr.Zero)
-                {
-                    var err = ConvPayload.Destroy(this.handle);
-                    if (err != (int)ConvErrorCode.None)
-                    {
-                        Log.Error(ErrorFactory.LogTag, "Failed to destroy conv payload handle");
-                        throw ErrorFactory.GetException(err);
-                    }
-                }
-            }
-        }
-    }
-}
\ No newline at end of file
diff --git a/src/Tizen.Convergence/Interop/Interop.Internal.Conv.Service.cs b/src/Tizen.Convergence/Interop/Interop.Internal.Conv.Service.cs
deleted file mode 100755 (executable)
index e99233a..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-// Copyright 2016 by Samsung Electronics, Inc.,
-//
-// This software is the confidential and proprietary information
-// of Samsung Electronics, Inc. ("Confidential Information"). You
-// shall not disclose such Confidential Information and shall use
-// it only in accordance with the terms of the license agreement
-// you entered into with Samsung.
-
-using System;
-using System.Runtime.InteropServices;
-using Tizen;
-using Tizen.Convergence;
-
-internal static partial class Interop
-{
-    internal static partial class Internal
-    {
-        internal enum ServiceType
-        {
-            /// <summary>
-            /// Undefined service
-            /// </summary>
-            None = -1,
-
-            /// <summary>
-            /// App-to-app communication service
-            /// </summary>
-            AppCommunication = 0,
-
-            /// <summary>
-            /// Remote app-control service
-            /// </summary>
-            RemoteAppControl,
-        }
-
-        internal static partial class ConvService
-        {
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_service_create")]
-            internal static extern int Create(out ConvServiceHandle /* conv_service_h */ handle);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_service_clone")]
-            internal static extern int Clone(IntPtr /* conv_service_h */ originalHandle, out ConvServiceHandle /* conv_service_h */ targetHandle);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_service_destroy")]
-            internal static extern int Destroy(IntPtr /* conv_service_h */ handle);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_service_get_property_string")]
-            internal static extern int GetPropertyString(ConvServiceHandle /* conv_service_h */ handle, string key, out IntPtr value);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_service_set_property_string")]
-            internal static extern int SetPropertyString(ConvServiceHandle /* conv_service_h */ handle, string key, string value);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_service_get_type")]
-            internal static extern int GetType(IntPtr /* conv_service_h */ handle, out int /* conv_service_e */ value);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_service_set_type")]
-            internal static extern int SetType(ConvServiceHandle /* conv_service_h */ handle, int /* conv_service_e */ value);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_service_start")]
-            internal static extern int Start(ConvServiceHandle /* conv_service_h */ handle, ConvChannelHandle channel, ConvPayloadHandle payload);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_service_read")]
-            internal static extern int Read(ConvServiceHandle /* conv_service_h */ handle, ConvChannelHandle channel, ConvPayloadHandle payload);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_service_publish")]
-            internal static extern int Publish(ConvServiceHandle /* conv_service_h */ handle, ConvChannelHandle channel, ConvPayloadHandle payload);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_service_stop")]
-            internal static extern int Stop(ConvServiceHandle /* conv_service_h */ handle, ConvChannelHandle channel, ConvPayloadHandle payload);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_service_set_listener_cb")]
-            internal static extern int SetListenerCb(ConvServiceHandle /* conv_service_h */ handle, ConvServiceListenerCallback callback, IntPtr /* void */ userData);
-
-            [DllImport(Libraries.Convergence, EntryPoint = "conv_service_unset_listener_cb")]
-            internal static extern int UnsetListenerCb(ConvServiceHandle /* conv_service_h */ handle);
-
-            [UnmanagedFunctionPointerAttribute(CallingConvention.Cdecl)]
-            internal delegate void ConvServiceListenerCallback(IntPtr /* conv_service_h */ serviceHandle, IntPtr channelHandle, int error, IntPtr result, IntPtr /* void */ userData);
-        }
-
-        internal class ConvServiceHandle : TizenSafeHandle
-        {
-            public ConvServiceHandle(): base()
-            {
-
-            }
-
-            public ConvServiceHandle(IntPtr handle)
-                : base(handle)
-            {
-            }
-
-            public override void Destroy()
-            {
-                if (handle != IntPtr.Zero)
-                {
-                    var err = ConvService.Destroy(this.handle);
-                    if (err != (int)ConvErrorCode.None)
-                    {
-                        Log.Error(ErrorFactory.LogTag, "Failed to destroy conv service handle");
-                        throw ErrorFactory.GetException(err);
-                    }
-                }
-            }
-        }
-    }
-}
\ No newline at end of file
diff --git a/src/Tizen.Convergence/Interop/Interop.Libc.cs b/src/Tizen.Convergence/Interop/Interop.Libc.cs
deleted file mode 100755 (executable)
index 13c7170..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-using System;
-using System.Runtime.InteropServices;
-
-internal static partial class Interop
-{
-    internal static partial class Libc
-    {
-        [DllImport(Libraries.Libc, EntryPoint = "free", CallingConvention = CallingConvention.Cdecl)]
-        internal static extern int Free(IntPtr ptr);
-    }
-}
diff --git a/src/Tizen.Convergence/Interop/Interop.Libraries.cs b/src/Tizen.Convergence/Interop/Interop.Libraries.cs
deleted file mode 100755 (executable)
index 072ed2f..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * 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.
- */
-
-internal static partial class Interop
-{
-    /// <summary>
-    /// Wrapper class for maintaining names of dependent native libraries.
-    /// </summary>
-    internal static partial class Libraries
-    {
-        public const string Convergence = "libd2d-conv-manager.so.0";
-        public const string Glib = "libglib-2.0.so.0";
-        public const string Libc = "libc.so.6";
-    }
-}
diff --git a/src/Tizen.Convergence/Tizen.Convergence.csproj b/src/Tizen.Convergence/Tizen.Convergence.csproj
deleted file mode 100644 (file)
index 7f4584f..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<Project Sdk="Microsoft.NET.Sdk">
-
-  <PropertyGroup>
-    <TargetFramework>netstandard2.0</TargetFramework>
-  </PropertyGroup>
-
-  <ItemGroup>
-    <ProjectReference Include="..\Tizen\Tizen.csproj" />
-    <ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
-  </ItemGroup>
-
-</Project>
diff --git a/src/Tizen.Convergence/Tizen.Convergence.sln b/src/Tizen.Convergence/Tizen.Convergence.sln
deleted file mode 100755 (executable)
index 6468f53..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 15
-VisualStudioVersion = 15.0.26430.12
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Convergence", "Tizen.Convergence.csproj", "{2678DBBD-A00B-45EC-970B-10177D421F37}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen", "..\Tizen\Tizen.csproj", "{7E7B653C-4119-43C6-A753-7FF659836862}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Log", "..\Tizen.Log\Tizen.Log.csproj", "{0860A84B-7FAD-434F-9EEB-D59D0FEC145E}"
-EndProject
-Global
-       GlobalSection(SolutionConfigurationPlatforms) = preSolution
-               Debug|Any CPU = Debug|Any CPU
-               Release|Any CPU = Release|Any CPU
-       EndGlobalSection
-       GlobalSection(ProjectConfigurationPlatforms) = postSolution
-               {2678DBBD-A00B-45EC-970B-10177D421F37}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-               {2678DBBD-A00B-45EC-970B-10177D421F37}.Debug|Any CPU.Build.0 = Debug|Any CPU
-               {2678DBBD-A00B-45EC-970B-10177D421F37}.Release|Any CPU.ActiveCfg = Release|Any CPU
-               {2678DBBD-A00B-45EC-970B-10177D421F37}.Release|Any CPU.Build.0 = Release|Any CPU
-               {7E7B653C-4119-43C6-A753-7FF659836862}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-               {7E7B653C-4119-43C6-A753-7FF659836862}.Debug|Any CPU.Build.0 = Debug|Any CPU
-               {7E7B653C-4119-43C6-A753-7FF659836862}.Release|Any CPU.ActiveCfg = Release|Any CPU
-               {7E7B653C-4119-43C6-A753-7FF659836862}.Release|Any CPU.Build.0 = Release|Any CPU
-               {0860A84B-7FAD-434F-9EEB-D59D0FEC145E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-               {0860A84B-7FAD-434F-9EEB-D59D0FEC145E}.Debug|Any CPU.Build.0 = Debug|Any CPU
-               {0860A84B-7FAD-434F-9EEB-D59D0FEC145E}.Release|Any CPU.ActiveCfg = Release|Any CPU
-               {0860A84B-7FAD-434F-9EEB-D59D0FEC145E}.Release|Any CPU.Build.0 = Release|Any CPU
-       EndGlobalSection
-       GlobalSection(SolutionProperties) = preSolution
-               HideSolutionNode = FALSE
-       EndGlobalSection
-EndGlobal
diff --git a/src/Tizen.Convergence/Tizen.Convergence/InternalAppCommunicationService.cs b/src/Tizen.Convergence/Tizen.Convergence/InternalAppCommunicationService.cs
deleted file mode 100755 (executable)
index 64b5658..0000000
+++ /dev/null
@@ -1,163 +0,0 @@
-/*
-* Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the License);
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an AS IS BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-using System;
-using System.ComponentModel;
-using Tizen.Internals.Errors;
-
-namespace Tizen.Convergence
-{
-    /// <summary>
-    /// The class provides APIs to support App to App communication service which relies on a remote server.
-    /// The initialization and execution of a server app (the app on the side with the Remote Server, e.g. TV) and a client app (e.g. the app on the mobile or wearable device) are slightly different.
-    /// On the server side an instance of the App Communication Service should be created and started by the app. Note, on the client side the service handle shouldn’t be created, but obtained during discovery.
-    /// For more information, refer Tizen D2D convergence specification
-    /// </summary>
-    [EditorBrowsable(EditorBrowsableState.Never)]
-    public class InternalAppCommunicationService : InternalService
-    {
-        /// <summary>
-        /// The constructor
-        /// </summary>
-        /// <feature>http://tizen.org/feature/convergence.d2d</feature>
-        /// <exception cref="NotSupportedException">Thrown if the required feature is not supported.</exception>
-        public InternalAppCommunicationService() :
-                base(Interop.Internal.ServiceType.AppCommunication)
-        {
-
-        }
-
-        internal InternalAppCommunicationService(IntPtr serviceHandle) :
-                    base(serviceHandle)
-        {
-
-        }
-
-        /// <summary>
-        /// Starts and initiates the service
-        /// </summary>
-        /// <param name="channel">Channel to specify a logical session for the service</param>
-        /// <param name="payload">Contains additional data for start request. Refer D2D Convergence specification for more information</param>
-        /// <privilege>http://tizen.org/privilege/internet</privilege>
-        /// <privilege>http://tizen.org/privilege/bluetooth</privilege>
-        /// <privilege>http://tizen.org/privilege/d2d.datasharing</privilege>
-        /// <feature>http://tizen.org/feature/convergence.d2d</feature>
-        /// <exception cref="NotSupportedException">Thrown if the required feature is not supported.</exception>
-        /// <exception cref="InvalidOperationException">Thrown when the request is not supported as per Tizen D2D convergence specification </exception>
-        /// <exception cref="ArgumentNullException">Thrown when any of the arugments are null</exception>
-        /// <seealso cref="Service.ServiceEventOccurred"> The result of the request is delivered through this event</seealso>
-        public void Start(InternalChannel channel, InternalPayload payload)
-        {
-            if (channel == null)
-            {
-                throw new ArgumentNullException();
-            }
-
-            Interop.Internal.ConvPayloadHandle handle = (payload == null) ? new Interop.Internal.ConvPayloadHandle() : payload._payloadHandle;
-            int ret = Interop.Internal.ConvService.Start(_serviceHandle, channel._channelHandle, handle);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Interop: Failed to start app communication service:" + ErrorFacts.GetErrorMessage(ret));
-                throw ErrorFactory.GetException(ret);
-            }
-        }
-
-        /// <summary>
-        /// Reads data from the channel opened on the service
-        /// </summary>
-        /// <param name="channel">Channel representing a logical session on the service</param>
-        /// <param name="payload">Contains additional data for start request. Refer D2D Convergence specification for more information</param>
-        /// <privilege>http://tizen.org/privilege/internet</privilege>
-        /// <privilege>http://tizen.org/privilege/bluetooth</privilege>
-        /// <feature>http://tizen.org/feature/convergence.d2d</feature>
-        /// <exception cref="NotSupportedException">Thrown if the required feature is not supported.</exception>
-        /// <exception cref="InvalidOperationException">Thrown when the request is not supported as per Tizen D2D convergence specification </exception>
-        /// <exception cref="ArgumentNullException">Thrown when any of the arugments are null</exception>
-        /// <seealso cref="Service.ServiceEventOccurred"> The result of the request is delivered through this event</seealso>
-        public void Read(InternalChannel channel, InternalPayload payload)
-        {
-            if (channel == null)
-            {
-                throw new ArgumentNullException();
-            }
-
-            Interop.Internal.ConvPayloadHandle handle = (payload == null) ? new Interop.Internal.ConvPayloadHandle() : payload._payloadHandle;
-            int ret = Interop.Internal.ConvService.Read(_serviceHandle, channel._channelHandle, handle);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Interop: Failed to read app communication service:" + ErrorFacts.GetErrorMessage(ret));
-                throw ErrorFactory.GetException(ret);
-            }
-        }
-
-        /// <summary>
-        /// Publishes a message to the remote server application
-        /// </summary>
-        /// <param name="channel">Channel representing a logical session on the service</param>
-        /// <param name="payload">Contains additional data for start request. Refer D2D Convergence specification for more information</param>
-        /// <privilege>http://tizen.org/privilege/internet</privilege>
-        /// <privilege>http://tizen.org/privilege/bluetooth</privilege>
-        /// <privilege>http://tizen.org/privilege/d2d.datasharing</privilege>
-        /// <feature>http://tizen.org/feature/convergence.d2d</feature>
-        /// <exception cref="NotSupportedException">Thrown if the required feature is not supported.</exception>
-        /// <exception cref="InvalidOperationException">Thrown when the request is not supported as per Tizen D2D convergence specification </exception>
-        /// <exception cref="ArgumentNullException">Thrown when any of the arugments are null</exception>
-        /// <seealso cref="Service.ServiceEventOccurred"> The result of the request is delivered through this event</seealso>
-        public void Publish(InternalChannel channel, InternalPayload payload)
-        {
-            if (channel == null)
-            {
-                throw new ArgumentNullException();
-            }
-
-            Interop.Internal.ConvPayloadHandle handle = (payload == null) ? new Interop.Internal.ConvPayloadHandle() : payload._payloadHandle;
-            int ret = Interop.Internal.ConvService.Publish(_serviceHandle, channel._channelHandle, handle);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Interop: Failed to publish app communication service:" + ErrorFacts.GetErrorMessage(ret));
-                throw ErrorFactory.GetException(ret);
-            }
-        }
-
-        /// <summary>
-        /// Stops the channel opened on the remote server application
-        /// </summary>
-        /// <param name="channel">Channel representing a logical session on the service</param>
-        /// <param name="payload">Contains additional data for start request. Refer D2D Convergence specification for more information</param>
-        /// <privilege>http://tizen.org/privilege/internet</privilege>
-        /// <privilege>http://tizen.org/privilege/bluetooth</privilege>
-        /// <feature>http://tizen.org/feature/convergence.d2d</feature>
-        /// <exception cref="NotSupportedException">Thrown if the required feature is not supported.</exception>
-        /// <exception cref="InvalidOperationException">Thrown when the request is not supported as per Tizen D2D convergence specification </exception>
-        /// <exception cref="ArgumentNullException">Thrown when any of the arugments are null</exception>
-        /// <seealso cref="Service.ServiceEventOccurred"> The result of the request is delivered through this event</seealso>
-        public void Stop(InternalChannel channel, InternalPayload payload)
-        {
-            if (channel == null)
-            {
-                throw new ArgumentNullException();
-            }
-
-            Interop.Internal.ConvPayloadHandle handle = (payload == null) ? new Interop.Internal.ConvPayloadHandle() : payload._payloadHandle;
-            int ret = Interop.Internal.ConvService.Stop(_serviceHandle, channel._channelHandle, handle);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Interop: Failed to start stop communication service:" + ErrorFacts.GetErrorMessage(ret));
-                throw ErrorFactory.GetException(ret);
-            }
-        }
-    }
-}
diff --git a/src/Tizen.Convergence/Tizen.Convergence/InternalChannel.cs b/src/Tizen.Convergence/Tizen.Convergence/InternalChannel.cs
deleted file mode 100755 (executable)
index 72b00ec..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-/*
-* Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the License);
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an AS IS BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-using System;
-using System.Runtime.InteropServices;
-using System.ComponentModel;
-
-namespace Tizen.Convergence
-{
-    /// <summary>
-    /// The Channel class provies a logical session for communicating with AppCommunicationService.
-    /// </summary>
-    [EditorBrowsable(EditorBrowsableState.Never)]
-    public class InternalChannel : IDisposable
-    {
-        internal Interop.Internal.ConvChannelHandle _channelHandle;
-        internal const string ChannelUriKey = "uri";
-        internal const string ChannelIdKey = "channel_id";
-
-        /// <summary>
-        /// The constructor
-        /// </summary>
-        /// <param name="uri">Uri of the server side app</param>
-        /// <param name="id">Unique identifier</param>
-        /// <feature>http://tizen.org/feature/convergence.d2d</feature>
-        /// <exception cref="NotSupportedException">Thrown if the required feature is not supported.</exception>
-        /// <exception cref="ArgumentNullException">Throws when the arguments passed are null</exception>
-        public InternalChannel(string uri, string id)
-        {
-            if (uri == null || id == null)
-            {
-                throw new ArgumentNullException();
-            }
-
-            int ret = Interop.Internal.ConvChannel.Create(out _channelHandle);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to create channel");
-                throw ErrorFactory.GetException(ret);
-            }
-
-            ret = Interop.Internal.ConvChannel.SetString(_channelHandle, ChannelUriKey, uri);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to create channel");
-                throw ErrorFactory.GetException(ret);
-            }
-
-            ret = Interop.Internal.ConvChannel.SetString(_channelHandle, ChannelIdKey, id);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to create channel");
-                throw ErrorFactory.GetException(ret);
-            }
-
-            Uri = uri;
-            Id = id;
-        }
-
-        internal InternalChannel(IntPtr channelHandle)
-        {
-            _channelHandle = new Interop.Internal.ConvChannelHandle(channelHandle, false);
-
-            IntPtr stringPtr = IntPtr.Zero;
-            int ret = Interop.Internal.ConvChannel.GetString(_channelHandle, ChannelUriKey, out stringPtr);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to create channel");
-                throw ErrorFactory.GetException(ret);
-            }
-            Uri = Marshal.PtrToStringAnsi(stringPtr);
-            Interop.Libc.Free(stringPtr);
-
-            ret = Interop.Internal.ConvChannel.GetString(_channelHandle, ChannelIdKey, out stringPtr);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to create channel");
-                throw ErrorFactory.GetException(ret);
-            }
-
-            Id = Marshal.PtrToStringAnsi(stringPtr);
-            Interop.Libc.Free(stringPtr);
-        }
-
-        /// <summary>
-        /// Uri of the server side app
-        /// </summary>
-        public string Uri { get; }
-
-        /// <summary>
-        /// Unique identifier
-        /// </summary>
-        public string Id { get; }
-
-        /// <summary>
-        /// The dispose method
-        /// </summary>
-        public void Dispose()
-        {
-            _channelHandle.Dispose();
-        }
-    }
-}
diff --git a/src/Tizen.Convergence/Tizen.Convergence/InternalDevice.cs b/src/Tizen.Convergence/Tizen.Convergence/InternalDevice.cs
deleted file mode 100755 (executable)
index 0676fca..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-/*
-* Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the License);
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an AS IS BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-using System;
-using System.Collections.Generic;
-using System.Runtime.InteropServices;
-using System.ComponentModel;
-
-namespace Tizen.Convergence
-{
-    /// <summary>
-    /// The class encapsulates a D2D convergence compliant device information
-    /// </summary>
-    [EditorBrowsable(EditorBrowsableState.Never)]
-    public class InternalDevice : IDisposable
-    {
-        internal const string DeviceIdKey = "device_id";
-        internal const string DeviceNameKey = "device_name";
-        internal const string DeviceTypeKey = "device_type";
-        internal Interop.Internal.ConvDeviceHandle _deviceHandle;
-        internal List<InternalService> _services = new List<InternalService>();
-
-        /// <summary>
-        /// The Unique ID of the device
-        /// </summary>
-        public string Id { get;}
-
-        /// <summary>
-        /// Name of the device
-        /// </summary>
-        public string Name { get;}
-
-        /// <summary>
-        /// The profile of the device
-        /// </summary>
-        public string Type { get; }
-
-        /// <summary>
-        /// List of services supported by the device
-        /// </summary>
-        public IEnumerable<InternalService> Services
-        {
-            get
-            {
-                return _services;
-            }
-        }
-
-        internal InternalDevice(IntPtr deviceHandle)
-        {
-            int ret = Interop.Internal.ConvDevice.Clone(deviceHandle, out _deviceHandle);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to clone device");
-                throw ErrorFactory.GetException(ret);
-            }
-
-            IntPtr stringPtr = IntPtr.Zero;
-            ret = Interop.Internal.ConvDevice.GetPropertyString(_deviceHandle, DeviceIdKey, out stringPtr);
-            if (ret == (int)ConvErrorCode.None)
-            {
-                Id = Marshal.PtrToStringAnsi(stringPtr);
-                Interop.Libc.Free(stringPtr);
-            }
-
-            ret = Interop.Internal.ConvDevice.GetPropertyString(_deviceHandle, DeviceNameKey, out stringPtr);
-            if (ret == (int)ConvErrorCode.None)
-            {
-                Name = Marshal.PtrToStringAnsi(stringPtr);
-                Interop.Libc.Free(stringPtr);
-            }
-
-            ret = Interop.Internal.ConvDevice.GetPropertyString(_deviceHandle, DeviceTypeKey, out stringPtr);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Type = Marshal.PtrToStringAnsi(stringPtr);
-                Interop.Libc.Free(stringPtr);
-            }
-
-            Log.Debug(ErrorFactory.LogTag, "Device ID ,Name, and Type:[" + Id +"," + Name +"," + Type +"]");
-
-            Interop.Internal.ConvDevice.ConvServiceForeachCallback cb = (IntPtr serviceHandle, IntPtr userData) =>
-            {
-                    _services.Add(InternalService.GetService(serviceHandle));
-            };
-
-            ret = Interop.Internal.ConvDevice.ForeachService(_deviceHandle, cb, IntPtr.Zero);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to get device services");
-                throw ErrorFactory.GetException(ret);
-            }
-        }
-
-        /// <summary>
-        /// The dispose method
-        /// </summary>
-        public void Dispose()
-        {
-            _deviceHandle.Dispose();
-        }
-    }
-}
diff --git a/src/Tizen.Convergence/Tizen.Convergence/InternalDeviceFinder.cs b/src/Tizen.Convergence/Tizen.Convergence/InternalDeviceFinder.cs
deleted file mode 100755 (executable)
index aea5f89..0000000
+++ /dev/null
@@ -1,133 +0,0 @@
-/*
-* Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the License);
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an AS IS BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-using System;
-using Tizen;
-using System.Threading;
-using System.Threading.Tasks;
-using System.ComponentModel;
-
-namespace Tizen.Convergence
-{
-    /// <summary>
-    /// DeviceFinder provides API to find all nearby Tizen D2D convergence compliant devices
-    /// </summary>
-    [EditorBrowsable(EditorBrowsableState.Never)]
-    public class InternalDeviceFinder : IDisposable
-    {
-        internal Interop.Internal.ConvManagerHandle _convManagerHandle;
-
-        /// <summary>
-        /// The constructor
-        /// </summary>
-        /// <feature>http://tizen.org/feature/convergence.d2d</feature>
-        /// <exception cref="NotSupportedException">Thrown if the required feature is not supported.</exception>
-        public InternalDeviceFinder()
-        {
-            int ret = Interop.Internal.ConvManager.ConvCreate(out _convManagerHandle);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to create conv manager handle");
-                throw ErrorFactory.GetException(ret);
-            }
-
-        }
-
-        /// <summary>
-        /// DeviceFound event is triggered when a device is found during discovery procedure
-        /// </summary>
-        public event EventHandler<InternalDeviceFoundEventArgs> DeviceFound;
-
-        /// <summary>
-        /// Starts the discovery of nearby devices
-        /// </summary>
-        /// <param name="timeOut">Seconds for discovery timeout. 0 will use default timeout value</param>
-        /// <param name="cancellationToken">Cancellation token required to cancel the current discovery</param>
-        /// <privilege>http://tizen.org/privilege/internet</privilege>
-        /// <privilege>http://tizen.org/privilege/bluetooth</privilege>
-        /// <feature>http://tizen.org/feature/convergence.d2d</feature>
-        /// <exception cref="NotSupportedException">Thrown if the required feature is not supported.</exception>
-        /// <exception cref="InvalidOperationException">Thrown when the request is not supported as per Tizen D2D convergence specification </exception>
-        /// <seealso cref="DeviceFound"> Devices found are delivered through this event</seealso>
-        /// <returns>Task with discovery result</returns>
-        public async Task StartFindingAsync(int timeOut, CancellationToken cancellationToken = default(CancellationToken))
-        {
-            var task = new TaskCompletionSource<bool>();
-            Interop.Internal.ConvManager.ConvDiscoveryCallback discoveredCb = (IntPtr deviceHandle, Interop.Internal.ConvDiscoveryResult result, IntPtr userData) =>
-            {
-                Log.Debug(ErrorFactory.LogTag, "discovery callback called with result:[" + result + "]");
-                switch (result)
-                {
-                    case Interop.Internal.ConvDiscoveryResult.Success:
-                        {
-                            InternalDevice device = new InternalDevice(deviceHandle);
-                            InternalDeviceFoundEventArgs deviceFoundEventArgs = new InternalDeviceFoundEventArgs()
-                            {
-                                Device = device
-                            };
-                            DeviceFound?.Invoke(this, deviceFoundEventArgs);
-                            break;
-                        }
-                    case Interop.Internal.ConvDiscoveryResult.Error:
-                        {
-                            task.TrySetException(new InvalidOperationException("Discovery error occured"));
-                            break;
-                        }
-                    case Interop.Internal.ConvDiscoveryResult.Lost:
-                        {
-                            task.TrySetException(new InvalidOperationException("Discovery Lost"));
-                            break;
-                        }
-                    case Interop.Internal.ConvDiscoveryResult.Finished:
-                        {
-                            Log.Debug(ErrorFactory.LogTag, "discovery process finished");
-                            task.TrySetResult(true);
-                            break;
-                        }
-                }
-            };
-            int ret = Interop.Internal.ConvManager.ConvDiscoveryStart(_convManagerHandle, timeOut, discoveredCb, IntPtr.Zero);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to start finding devices");
-                throw ErrorFactory.GetException(ret);
-            }
-
-            if (cancellationToken != CancellationToken.None)
-            {
-                cancellationToken.Register(() =>
-                {
-                    int error = Interop.Internal.ConvManager.ConvDiscoveryStop(_convManagerHandle);
-                    if (error != (int)ConvErrorCode.None)
-                    {
-                        Log.Error(ErrorFactory.LogTag, "Failed to stop finding devices" + Internals.Errors.ErrorFacts.GetErrorMessage(error));
-                        throw ErrorFactory.GetException(error);
-                    }
-                    task.TrySetCanceled();
-                });
-            }
-            await task.Task;
-        }
-
-        /// <summary>
-        /// The dispose method
-        /// </summary>
-        public void Dispose()
-        {
-            _convManagerHandle.Dispose();
-        }
-    }
-}
diff --git a/src/Tizen.Convergence/Tizen.Convergence/InternalDeviceFoundEventArgs.cs b/src/Tizen.Convergence/Tizen.Convergence/InternalDeviceFoundEventArgs.cs
deleted file mode 100755 (executable)
index 60c3df0..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
-* Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the License);
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an AS IS BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-using System;
-using System.ComponentModel;
-
-namespace Tizen.Convergence
-{
-    /// <summary>
-    /// Contains arguments for the event DeviceFound.
-    /// </summary>
-    [EditorBrowsable(EditorBrowsableState.Never)]
-    public class InternalDeviceFoundEventArgs : EventArgs
-    {
-        internal InternalDeviceFoundEventArgs() { }
-
-        /// <summary>
-        /// The device found
-        /// </summary>
-        public InternalDevice Device { get; internal set; }
-    }
-}
diff --git a/src/Tizen.Convergence/Tizen.Convergence/InternalErrorFactory.cs b/src/Tizen.Convergence/Tizen.Convergence/InternalErrorFactory.cs
deleted file mode 100755 (executable)
index 8954997..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-using System;
-using Tizen.Internals.Errors;
-using System.Threading.Tasks;
-using System.Threading;
-
-namespace Tizen.Convergence
-{
-    internal enum ConvErrorCode
-    {
-        None = ErrorCode.None,
-        OutOfMemory = ErrorCode.OutOfMemory,
-        InvalidParameter = ErrorCode.InvalidParameter,
-        InvalidOperation = ErrorCode.InvalidOperation,
-        NoData = ErrorCode.NoData,
-        NotSupported = ErrorCode.NotSupported,
-        PermissionDenied = ErrorCode.PermissionDenied,
-    }
-
-    internal class ErrorFactory
-    {
-        internal static string LogTag = "Tizen.Convergence";
-
-        internal static Exception GetException(int error)
-        {
-            if ((ConvErrorCode)error == ConvErrorCode.OutOfMemory)
-            {
-                return new OutOfMemoryException("Out of memory");
-            }
-            else if ((ConvErrorCode)error == ConvErrorCode.InvalidParameter)
-            {
-                return new ArgumentException("Invalid parameter");
-            }
-            else if ((ConvErrorCode)error == ConvErrorCode.InvalidOperation)
-            {
-                return new InvalidOperationException("Invalid operation");
-            }
-            else if ((ConvErrorCode)error == ConvErrorCode.NotSupported)
-            {
-                return new NotSupportedException("Unsupported feature http://tizen.org/feature/convergence.d2d");
-            }
-            else if ((ConvErrorCode)error == ConvErrorCode.PermissionDenied)
-            {
-                return new UnauthorizedAccessException("Permission denied. (http://tizen.org/privilege/internet, http://tizen.org/privilege/bluetooth, http://tizen.org/privilege/d2d.datasharing)");
-            }
-            else if ((ConvErrorCode)error == ConvErrorCode.NoData)
-            {
-                return new InvalidOperationException("The payload is empty");
-            }
-            else
-            {
-                return new Exception("Unknown error");
-            }
-        }
-    }
-}
diff --git a/src/Tizen.Convergence/Tizen.Convergence/InternalPayload.cs b/src/Tizen.Convergence/Tizen.Convergence/InternalPayload.cs
deleted file mode 100755 (executable)
index d5df0a8..0000000
+++ /dev/null
@@ -1,219 +0,0 @@
-/*
-* Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the License);
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an AS IS BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-using System;
-using System.Runtime.InteropServices;
-using System.ComponentModel;
-
-namespace Tizen.Convergence
-{
-    /// <summary>
-    /// Represents a payload used in Tizen D2D convergence
-    /// </summary>
-    [EditorBrowsable(EditorBrowsableState.Never)]
-    public class InternalPayload : IDisposable
-    {
-        internal Interop.Internal.ConvPayloadHandle _payloadHandle;
-
-        /// <summary>
-        /// The constructor
-        /// </summary>
-        /// <feature>http://tizen.org/feature/convergence.d2d</feature>
-        /// <exception cref="NotSupportedException">Thrown if the required feature is not supported.</exception>
-        public InternalPayload()
-        {
-            int ret = Interop.Internal.ConvPayload.Create(out _payloadHandle);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to create payload");
-                throw ErrorFactory.GetException(ret);
-            }
-        }
-
-        internal InternalPayload(IntPtr payloadHandle)
-        {
-            _payloadHandle = new Interop.Internal.ConvPayloadHandle(payloadHandle, false);
-        }
-
-        /// <summary>
-        /// Adds a key-value pair to payload
-        /// </summary>
-        /// <param name="key">The key of the attribute</param>
-        /// <param name="value">The value of the attribute</param>
-        /// <feature>http://tizen.org/feature/convergence.d2d</feature>
-        /// <exception cref="NotSupportedException">Thrown if the required feature is not supported.</exception>
-        /// <exception cref="ArgumentNullException">Thrown if the arguments passed are null </exception>
-        public void Set(string key, string value)
-        {
-            if(key == null || value == null)
-            {
-                throw new ArgumentNullException();
-            }
-
-            int ret = 0;
-            if (value is string)
-            {
-                ret = Interop.Internal.ConvPayload.SetString(_payloadHandle, key, value);
-                if (ret != (int)ConvErrorCode.None)
-                {
-                    Log.Error(ErrorFactory.LogTag, "Failed to add string to payload");
-                    throw ErrorFactory.GetException(ret);
-                }
-            }
-        }
-
-        /// <summary>
-        /// Adds a key-value pair to payload
-        /// </summary>
-        /// <param name="key">The key of the attribute</param>
-        /// <param name="value">The value of the attribute</param>
-        /// <feature>http://tizen.org/feature/convergence.d2d</feature>
-        /// <exception cref="NotSupportedException">Thrown if the required feature is not supported.</exception>
-        /// <exception cref="ArgumentNullException">Thrown if the arguments passed are null </exception>
-        public void Set(string key, byte[] value)
-        {
-            if (key == null || value == null)
-            {
-                throw new ArgumentNullException();
-            }
-
-            int ret = 0;
-            ret = Interop.Internal.ConvPayload.SetByte(_payloadHandle, key, value.Length, value);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to add string to payload");
-                throw ErrorFactory.GetException(ret);
-            }
-        }
-
-
-        /// <summary>
-        /// Sets binary to payload.
-        /// </summary>
-        /// <param name="value">The binary to set</param>
-        /// <feature>http://tizen.org/feature/convergence.d2d</feature>
-        /// <exception cref="NotSupportedException">Thrown if the required feature is not supported.</exception>
-        /// <exception cref="ArgumentNullException">Thrown if the arguments passed are null </exception>
-        public void Set(byte[] value)
-        {
-            if (value == null)
-            {
-                throw new ArgumentNullException();
-            }
-
-            int ret = 0;
-            ret = Interop.Internal.ConvPayload.SetBinary(_payloadHandle, value.Length, value);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to add binary to payload");
-                throw ErrorFactory.GetException(ret);
-            }
-        }
-
-        /// <summary>
-        /// Gets the value of the key from payload
-        /// </summary>
-        /// <param name="key">The key of the attribute</param>
-        /// <param name="value">The value of the attribute</param>
-        /// <feature>http://tizen.org/feature/convergence.d2d</feature>
-        /// <exception cref="NotSupportedException">Thrown if the required feature is not supported.</exception>
-        /// <exception cref="ArgumentNullException">Thrown if the arguments passed are null </exception>
-        /// <exception cref="ArgumentException">Thrown if the key is not found </exception>
-        public void Get(string key, out string value)
-        {
-            if (key == null)
-            {
-                throw new ArgumentNullException();
-            }
-
-            IntPtr stringPtr = IntPtr.Zero;
-            int ret = 0;
-            ret = Interop.Internal.ConvPayload.GetString(_payloadHandle, key, out stringPtr);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to add string to payload");
-                throw ErrorFactory.GetException(ret);
-            }
-
-            value = Marshal.PtrToStringAnsi(stringPtr);
-            Interop.Libc.Free(stringPtr);
-        }
-
-        /// <summary>
-        /// Gets the value of the key from payload
-        /// </summary>
-        /// <param name="key">The key of the attribute</param>
-        /// <param name="value">The value of the attribute</param>
-        /// <feature>http://tizen.org/feature/convergence.d2d</feature>
-        /// <exception cref="NotSupportedException">Thrown if the required feature is not supported.</exception>
-        /// <exception cref="ArgumentNullException">Thrown if the arguments passed are null </exception>
-        /// <exception cref="ArgumentException">Thrown if the key is not found </exception>
-        public void Get(string key, out byte[] value)
-        {
-            if (key == null)
-            {
-                throw new ArgumentNullException();
-            }
-
-            int ret = 0;
-            IntPtr byteArrayPtr;
-            int byteArraySize;
-            ret = Interop.Internal.ConvPayload.GetByte(_payloadHandle, key, out byteArraySize, out byteArrayPtr);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to add string to payload");
-                throw ErrorFactory.GetException(ret);
-            }
-
-            byte[] byteArray = new byte[byteArraySize];
-            Marshal.Copy(byteArrayPtr, byteArray, 0, byteArraySize);
-            value = byteArray;
-            Interop.Libc.Free(byteArrayPtr);
-        }
-
-        /// <summary>
-        /// Gets binary from payload
-        /// </summary>
-        /// <param name="value">The result value</param>
-        /// <feature>http://tizen.org/feature/convergence.d2d</feature>
-        /// <exception cref="NotSupportedException">Thrown if the required feature is not supported.</exception>
-        public void Get(out byte[] value)
-        {
-            int ret = 0;
-            IntPtr byteArrayPtr;
-            int byteArraySize;
-            ret = Interop.Internal.ConvPayload.GetBinary(_payloadHandle, out byteArraySize, out byteArrayPtr);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to get binary from payload");
-                throw ErrorFactory.GetException(ret);
-            }
-
-            byte[] byteArray = new byte[byteArraySize];
-            Marshal.Copy(byteArrayPtr, byteArray, 0, byteArraySize);
-            value = byteArray;
-            Interop.Libc.Free(byteArrayPtr);
-        }
-
-        /// <summary>
-        /// The dispose method
-        /// </summary>
-        public void Dispose()
-        {
-            _payloadHandle.Dispose();
-        }
-    }
-}
diff --git a/src/Tizen.Convergence/Tizen.Convergence/InternalService.cs b/src/Tizen.Convergence/Tizen.Convergence/InternalService.cs
deleted file mode 100755 (executable)
index 6740231..0000000
+++ /dev/null
@@ -1,192 +0,0 @@
-/*
-* Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the License);
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an AS IS BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-using System;
-using System.Runtime.InteropServices;
-using System.ComponentModel;
-
-namespace Tizen.Convergence
-{
-    /// <summary>
-    /// The class abstracts the features provided by Tizen D2D Convergence.
-    /// </summary>
-    /// <seealso cref="AppCommunicationService"/>
-    [EditorBrowsable(EditorBrowsableState.Never)]
-    public abstract class InternalService : IDisposable
-    {
-        internal Interop.Internal.ConvServiceHandle _serviceHandle;
-        internal const string ServiceIdKey = "service_id";
-        internal const string ServiceVersionKey = "service_version";
-
-        private event EventHandler<InternalServiceEventOccuredEventArgs> _serviceEventOccured;
-
-        internal InternalService(Interop.Internal.ServiceType type)
-        {
-            int ret = Interop.Internal.ConvService.Create(out _serviceHandle);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to create service handle");
-                throw ErrorFactory.GetException(ret);
-            }
-
-            ret = Interop.Internal.ConvService.SetType(_serviceHandle, (int)type);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to create service handle");
-                throw ErrorFactory.GetException(ret);
-            }
-        }
-
-        internal InternalService(IntPtr existingServiceHandle)
-        {
-            int ret = Interop.Internal.ConvService.Clone(existingServiceHandle, out _serviceHandle);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to clone device");
-                throw ErrorFactory.GetException(ret);
-            }
-
-            IntPtr stringPtr = IntPtr.Zero;
-            ret = Interop.Internal.ConvService.GetPropertyString(_serviceHandle, ServiceIdKey, out stringPtr);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to get service Id");
-                throw ErrorFactory.GetException(ret);
-            }
-
-            Id = Marshal.PtrToStringAnsi(stringPtr);
-            Interop.Libc.Free(stringPtr);
-
-            ret = Interop.Internal.ConvService.GetPropertyString(_serviceHandle, ServiceVersionKey, out stringPtr);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to get service version");
-                throw ErrorFactory.GetException(ret);
-            }
-
-            Version = Marshal.PtrToStringAnsi(stringPtr);
-            Interop.Libc.Free(stringPtr);
-        }
-
-        /// <summary>
-        /// The ID of the service
-        /// </summary>
-        public string Id { get; }
-
-        /// <summary>
-        /// The Version of the service
-        /// </summary>
-        public string Version { get; }
-
-        /// <summary>
-        /// The event handler for Service Events(Start/Publish/Read/Stop)
-        /// </summary>
-        public event EventHandler<InternalServiceEventOccuredEventArgs> ServiceEventOccurred
-        {
-            add
-            {
-                if (_serviceEventOccured == null)
-                {
-                    RegisterServiceEventListener();
-                }
-                _serviceEventOccured += value;
-            }
-            remove
-            {
-                _serviceEventOccured -= value;
-                if (_serviceEventOccured == null)
-                {
-                    UnregisterServiceEventListener();
-                }
-            }
-        }
-
-        /// <summary>
-        /// The event handler for service error events
-        /// </summary>
-        public event EventHandler<InternalServiceErrorOccuredEventArgs> ServiceErrorOccured;
-
-        /// <summary>
-        /// The dispose method
-        /// </summary>
-        public void Dispose()
-        {
-            _serviceHandle.Dispose();
-        }
-
-        internal static InternalService GetService(IntPtr serviceHandle)
-        {
-            InternalService service = null;
-            int serviceType;
-            int ret = Interop.Internal.ConvService.GetType(serviceHandle, out serviceType);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to get service version");
-                throw ErrorFactory.GetException(ret);
-            }
-            if (serviceType == (int)Interop.Internal.ServiceType.AppCommunication)
-            {
-                service = new InternalAppCommunicationService(serviceHandle);
-            }
-
-            return service;
-        }
-
-        private void RegisterServiceEventListener()
-        {
-            int ret = Interop.Internal.ConvService.SetListenerCb(_serviceHandle, serviceEventsCb, IntPtr.Zero);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to set listener for service events");
-                throw ErrorFactory.GetException(ret);
-            }
-        }
-
-        private void UnregisterServiceEventListener()
-        {
-            int ret = Interop.Internal.ConvService.UnsetListenerCb(_serviceHandle);
-            if (ret != (int)ConvErrorCode.None)
-            {
-                Log.Error(ErrorFactory.LogTag, "Failed to unset listener for service events");
-                throw ErrorFactory.GetException(ret);
-            }
-        }
-
-        private void serviceEventsCb(IntPtr serviceHandle, IntPtr channelHandle, int error, IntPtr resultPayloadHandle, IntPtr userData)
-        {
-            Log.Debug(ErrorFactory.LogTag, "service event occured. error code :[" + error + "]");
-
-            if (error == (int)ConvErrorCode.None)
-            {
-                var channel = (channelHandle == IntPtr.Zero) ? null : new InternalChannel(channelHandle);
-                var payload = (resultPayloadHandle == IntPtr.Zero) ? null : new InternalPayload(resultPayloadHandle);
-                _serviceEventOccured?.Invoke(this, new InternalServiceEventOccuredEventArgs()
-                {
-                    Payload = payload,
-                    Channel = channel
-                });
-            }
-            else
-            {
-                var eventArgs = new InternalServiceErrorOccuredEventArgs()
-                {
-                    Exception = ErrorFactory.GetException(error)
-                };
-                ServiceErrorOccured?.Invoke(this, eventArgs);
-            }
-        }
-    }
-}
diff --git a/src/Tizen.Convergence/Tizen.Convergence/InternalServiceErrorOccuredEventArgs.cs b/src/Tizen.Convergence/Tizen.Convergence/InternalServiceErrorOccuredEventArgs.cs
deleted file mode 100755 (executable)
index 104a05b..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
-* Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the License);
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an AS IS BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-using System;
-using System.ComponentModel;
-
-namespace Tizen.Convergence
-{
-    /// <summary>
-    /// Contains arguments for the event ServiceErrorOccured.
-    /// </summary>
-    [EditorBrowsable(EditorBrowsableState.Never)]
-    public class InternalServiceErrorOccuredEventArgs : EventArgs
-    {
-        internal InternalServiceErrorOccuredEventArgs() { }
-
-        /// <summary>
-        /// The exception
-        /// </summary>
-        public Exception Exception { get; internal set; }
-    }
-}
diff --git a/src/Tizen.Convergence/Tizen.Convergence/InternalServiceEventOccuredEventArgs.cs b/src/Tizen.Convergence/Tizen.Convergence/InternalServiceEventOccuredEventArgs.cs
deleted file mode 100755 (executable)
index e07c9e3..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
-* Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the License);
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an AS IS BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-using System;
-using System.ComponentModel;
-
-namespace Tizen.Convergence
-{
-    /// <summary>
-    /// Contains arguments for ServiceEventOccured
-    /// </summary>
-    [EditorBrowsable(EditorBrowsableState.Never)]
-    public class InternalServiceEventOccuredEventArgs : EventArgs
-    {
-        internal InternalServiceEventOccuredEventArgs() { }
-
-        /// <summary>
-        /// The channel on which the event occured
-        /// </summary>
-        public InternalChannel Channel { get; internal set; }
-
-        /// <summary>
-        /// The payload containing the result
-        /// </summary>
-        public InternalPayload Payload { get; internal set; }
-    }
-}