[Connection][TCSACR-86] Modify event type 30/145330/4
authorchleun.moon <chleun.moon@samsung.com>
Tue, 22 Aug 2017 05:38:06 +0000 (14:38 +0900)
committerchleun.moon <chleun.moon@samsung.com>
Thu, 31 Aug 2017 09:59:58 +0000 (18:59 +0900)
Specify the EventArgs

Change-Id: If6d59403010d2cfb07b02b38485bc4a11bee4e95
Signed-off-by: cheoleun <chleun.moon@samsung.com>
src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionInternalManager.cs
src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionManager.cs
src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionProfile.cs

index cad51a7..3563334 100755 (executable)
@@ -88,10 +88,10 @@ namespace Tizen.Network.Connection
         private bool disposed = false;
         private static ConnectionInternalManager s_instance = null;
 
-        private EventHandler _ConnectionTypeChanged = null;
-        private EventHandler _IPAddressChanged = null;
-        private EventHandler _EthernetCableStateChanged = null;
-        private EventHandler _ProxyAddressChanged = null;
+        private EventHandler<ConnectionTypeEventArgs> _ConnectionTypeChanged = null;
+        private EventHandler<AddressEventArgs> _IPAddressChanged = null;
+        private EventHandler<EthernetCableStateEventArgs> _EthernetCableStateChanged = null;
+        private EventHandler<AddressEventArgs> _ProxyAddressChanged = null;
 
         private Interop.Connection.ConnectionAddressChangedCallback _connectionAddressChangedCallback;
         private Interop.Connection.ConnectionTypeChangedCallback _connectionTypeChangedCallback;
@@ -153,7 +153,7 @@ namespace Tizen.Network.Connection
             return s_threadName.Value.GetHandle();
         }
 
-        internal event EventHandler ConnectionTypeChanged
+        internal event EventHandler<ConnectionTypeEventArgs> ConnectionTypeChanged
         {
             add
             {
@@ -202,7 +202,7 @@ namespace Tizen.Network.Connection
             }
         }
 
-        internal event EventHandler EthernetCableStateChanged
+        internal event EventHandler<EthernetCableStateEventArgs> EthernetCableStateChanged
         {
             add
             {
@@ -250,7 +250,7 @@ namespace Tizen.Network.Connection
             }
         }
 
-        internal event EventHandler IPAddressChanged
+        internal event EventHandler<AddressEventArgs> IPAddressChanged
         {
             add
             {
@@ -303,7 +303,7 @@ namespace Tizen.Network.Connection
             }
         }
 
-        internal event EventHandler ProxyAddressChanged
+        internal event EventHandler<AddressEventArgs> ProxyAddressChanged
         {
             add
             {
index 2d37dab..9fa8b86 100755 (executable)
@@ -77,7 +77,9 @@ namespace Tizen.Network.Connection
         /// <feature>http://tizen.org/feature/network.telephony</feature>
         /// <feature>http://tizen.org/feature/network.tethering.bluetooth</feature>
         /// <feature>http://tizen.org/feature/network.wifi</feature>
-        public static event EventHandler ConnectionTypeChanged
+        /// <exception cref="System.NotSupportedException">Thrown when a feature is not supported.</exception>
+        /// <exception cref="System.UnauthorizedAccessException">Thrown when a permission is denied.</exception>
+        public static event EventHandler<ConnectionTypeEventArgs> ConnectionTypeChanged
         {
             add
             {
@@ -96,7 +98,9 @@ namespace Tizen.Network.Connection
         /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/network.get</privilege>
         /// <feature>http://tizen.org/feature/network.ethernet</feature>
-        public static event EventHandler EthernetCableStateChanged
+        /// <exception cref="System.NotSupportedException">Thrown when a feature is not supported.</exception>
+        /// <exception cref="System.UnauthorizedAccessException">Thrown when a permission is denied.</exception>
+        public static event EventHandler<EthernetCableStateEventArgs> EthernetCableStateChanged
         {
             add
             {
@@ -118,7 +122,9 @@ namespace Tizen.Network.Connection
         /// <feature>http://tizen.org/feature/network.telephony</feature>
         /// <feature>http://tizen.org/feature/network.tethering.bluetooth</feature>
         /// <feature>http://tizen.org/feature/network.wifi</feature>
-        public static event EventHandler IPAddressChanged
+        /// <exception cref="System.NotSupportedException">Thrown when a feature is not supported.</exception>
+        /// <exception cref="System.UnauthorizedAccessException">Thrown when a permission is denied.</exception>
+        public static event EventHandler<AddressEventArgs> IPAddressChanged
         {
             add
             {
@@ -140,7 +146,9 @@ namespace Tizen.Network.Connection
         /// <feature>http://tizen.org/feature/network.telephony</feature>
         /// <feature>http://tizen.org/feature/network.tethering.bluetooth</feature>
         /// <feature>http://tizen.org/feature/network.wifi</feature>
-        public static event EventHandler ProxyAddressChanged
+        /// <exception cref="System.NotSupportedException">Thrown when a feature is not supported.</exception>
+        /// <exception cref="System.UnauthorizedAccessException">Thrown when a permission is denied.</exception>
+        public static event EventHandler<AddressEventArgs> ProxyAddressChanged
         {
             add
             {
index e7ceabd..e234476 100755 (executable)
@@ -23,7 +23,7 @@ using System.Runtime.InteropServices;
 namespace Tizen.Network.Connection
 {
     /// <summary>
-    /// This is the ConnectionProfile class. It provides event and propeties of the connection profile.
+    /// This is the ConnectionProfile class. It provides event and properties of the connection profile.
     /// </summary>
     /// <since_tizen> 3 </since_tizen>
     public class ConnectionProfile : IDisposable
@@ -32,7 +32,7 @@ namespace Tizen.Network.Connection
         private IAddressInformation IPv4;
         private IAddressInformation IPv6;
         private bool disposed = false;
-        private EventHandler _ProfileStateChanged = null;
+        private EventHandler<ProfileStateEventArgs> _ProfileStateChanged = null;
 
         private Interop.ConnectionProfile.ProfileStateChangedCallback _profileChangedCallback;
 
@@ -49,7 +49,8 @@ namespace Tizen.Network.Connection
         /// <feature>http://tizen.org/feature/network.telephony</feature>
         /// <feature>http://tizen.org/feature/network.tethering.bluetooth</feature>
         /// <feature>http://tizen.org/feature/network.wifi</feature>
-        public event EventHandler ProfileStateChanged
+        /// <exception cref="System.NotSupportedException">Thrown when a feature is not supported.</exception>
+        public event EventHandler<ProfileStateEventArgs> ProfileStateChanged
         {
             add
             {