From 37ff199e6e02679b9b2b3ffcea7fe68897fc73e7 Mon Sep 17 00:00:00 2001 From: "chleun.moon" Date: Thu, 28 Sep 2017 16:43:29 +0900 Subject: [PATCH] [Connection] Fix XML documentation warnings Change-Id: Ib0691d34a9ce628c26a1a11af80be4205a66c1e2 Signed-off-by: Cheoleun Moon --- .../Tizen.Network.Connection/CellularProfile.cs | 3 + .../Tizen.Network.Connection/ConnectionManager.cs | 3 - .../Tizen.Network.Connection/ConnectionProfile.cs | 3 + .../Tizen.Network.Connection/ConnectionTypes.cs | 454 +++++++++++++++++---- .../Tizen.Network.Connection/WiFiProfile.cs | 3 + 5 files changed, 374 insertions(+), 92 deletions(-) diff --git a/src/Tizen.Network.Connection/Tizen.Network.Connection/CellularProfile.cs b/src/Tizen.Network.Connection/Tizen.Network.Connection/CellularProfile.cs index ebb3f81..1b26b90 100755 --- a/src/Tizen.Network.Connection/Tizen.Network.Connection/CellularProfile.cs +++ b/src/Tizen.Network.Connection/Tizen.Network.Connection/CellularProfile.cs @@ -34,6 +34,9 @@ namespace Tizen.Network.Connection private CellularAuthInformation _cellularAuthInfo = null; + /// + /// Destroy the CellularProfile object + /// ~CellularProfile() { } diff --git a/src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionManager.cs b/src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionManager.cs index 3636f1d..d8cccca 100755 --- a/src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionManager.cs +++ b/src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionManager.cs @@ -22,9 +22,6 @@ using System.Text; using System.Threading.Tasks; using System.Runtime.InteropServices; -/// -/// The Connection API provides functions and enumerations to get the status of network and current profile and manages profiles. -/// namespace Tizen.Network.Connection { /// diff --git a/src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionProfile.cs b/src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionProfile.cs index e234476..3215777 100755 --- a/src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionProfile.cs +++ b/src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionProfile.cs @@ -107,6 +107,9 @@ namespace Tizen.Network.Connection IPv6 = new ConnectionAddressInformation(ProfileHandle, AddressFamily.IPv6); } + /// + /// Destroy the ConnectionProfile object + /// ~ConnectionProfile() { Dispose(false); diff --git a/src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionTypes.cs b/src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionTypes.cs index 51c613e..15952c4 100755 --- a/src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionTypes.cs +++ b/src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionTypes.cs @@ -29,12 +29,30 @@ namespace Tizen.Network.Connection /// 3 public enum ConnectionType { - Disconnected = 0, /**< Disconnected */ - WiFi = 1, /**< Wi-Fi type */ - Cellular = 2, /**< Cellular type */ - Ethernet = 3, /**< Ethernet type */ - Bluetooth = 4, /**< Bluetooth type */ - NetProxy = 5 /**< Proxy type for internet connection */ + /// + /// Disconnected + /// + Disconnected = 0, + /// + /// Wi-Fi type + /// + WiFi = 1, + /// + /// Cellular type + /// + Cellular = 2, + /// + /// Ethernet type + /// + Ethernet = 3, + /// + /// Bluetooth type + /// + Bluetooth = 4, + /// + /// Proxy type for Internet connection + /// + NetProxy = 5 } /// @@ -43,8 +61,14 @@ namespace Tizen.Network.Connection /// 3 public enum AddressFamily { - IPv4 = 0, /**< IPv4 Address */ - IPv6 = 1 /**< IPv6 Address */ + /// + /// IPv4 Address + /// + IPv4 = 0, + /// + /// IPv6 Address + /// + IPv6 = 1 } /// @@ -53,12 +77,30 @@ namespace Tizen.Network.Connection /// 3 public enum CellularState { - OutOfService = 0, /**< Out of service */ - FlightMode = 1, /**< Flight mode */ - RoamingOff = 2, /**< Roaming is turned off */ - CallOnlyAvailable = 3, /**< Call is only available */ - Available = 4, /**< Available but not connected yet */ - Connected = 5, /**< Connected */ + /// + /// Out of service + /// + OutOfService = 0, + /// + /// Flight mode + /// + FlightMode = 1, + /// + /// Roaming is turned off + /// + RoamingOff = 2, + /// + /// Call is only available + /// + CallOnlyAvailable = 3, + /// + /// Available but not connected yet + /// + Available = 4, + /// + /// Connected + /// + Connected = 5, } /// @@ -67,9 +109,18 @@ namespace Tizen.Network.Connection /// 3 public enum ConnectionState { - Deactivated = 0, /**< Deactivated */ - Disconnected = 1, /**< Disconnected */ - Connected = 2, /**< Connected */ + /// + /// Deactivated + /// + Deactivated = 0, + /// + /// Disconnected + /// + Disconnected = 1, + /// + /// Connected + /// + Connected = 2, } /// @@ -78,8 +129,14 @@ namespace Tizen.Network.Connection /// 3 public enum EthernetCableState { - Detached = 0, /**< Ethernet cable is detached */ - Attached = 1, /**< Ethernet cable is attached */ + /// + /// Ethernet cable is detached + /// + Detached = 0, + /// + /// Ethernet cable is attached + /// + Attached = 1, } /// @@ -88,10 +145,22 @@ namespace Tizen.Network.Connection /// 3 public enum StatisticsType { - LastReceivedData = 0, /**< Last received data */ - LastSentData = 1, /**< Last sent data */ - TotalReceivedData = 2, /**< Total received data */ - TotalSentData = 3, /**< Total sent data */ + /// + /// Last received data + /// + LastReceivedData = 0, + /// + /// Last sent data + /// + LastSentData = 1, + /// + /// Total received data + /// + TotalReceivedData = 2, + /// + /// Total sent data + /// + TotalSentData = 3, } /// @@ -100,10 +169,22 @@ namespace Tizen.Network.Connection /// 3 public enum ConnectionProfileType { - Cellular = 0, /**< Cellular type */ - WiFi = 1, /**< Wi-Fi type */ - Ethernet = 2, /**< Ethernet type */ - Bt = 3, /**< Bluetooth type */ + /// + /// Cellular type + /// + Cellular = 0, + /// + /// Wi-Fi type + /// + WiFi = 1, + /// + /// Ethernet type + /// + Ethernet = 2, + /// + /// Bluetooth type + /// + Bt = 3, } /// @@ -112,10 +193,22 @@ namespace Tizen.Network.Connection /// 3 public enum ProfileState { - Disconnected = 0, /**< Disconnected state */ - Association = 1, /**< Association state */ - Configuration = 2, /**< Configuration state */ - Connected = 3, /**< Connected state */ + /// + /// Disconnected state + /// + Disconnected = 0, + /// + /// Association state + /// + Association = 1, + /// + /// Configuration state + /// + Configuration = 2, + /// + /// Connected state + /// + Connected = 3, } /// @@ -124,9 +217,18 @@ namespace Tizen.Network.Connection /// 3 public enum ProxyType { - Direct = 0, /**< Direct connection */ - Auto = 1, /**< Auto configuration(Use PAC file). If URL property is not set, DHCP/WPAD auto-discover will be tried */ - Manual = 2, /**< Manual configuration */ + /// + /// Direct connection + /// + Direct = 0, + /// + /// Auto configuration(Use PAC file). If URL property is not set, DHCP/WPAD auto-discover will be tried + /// + Auto = 1, + /// + /// Manual configuration + /// + Manual = 2, } /// @@ -135,11 +237,26 @@ namespace Tizen.Network.Connection /// 3 public enum IPConfigType { - None = 0, /**< Not defined */ - Static = 1, /**< Manual IP configuration */ - Dynamic = 2, /**< Config IP using DHCP client*/ - Auto = 3, /**< Config IP from Auto IP pool (169.254/16). Later with DHCP client, if available */ - Fixed = 4, /**< Indicates an IP address that can not be modified */ + /// + /// Not defined + /// + None = 0, + /// + /// Manual IP configuration + /// + Static = 1, + /// + /// COnfig IP using DHCP client + /// + Dynamic = 2, + /// + /// Config IP from Auto IP pool (169.254/16). Later with DHCP client, if available + /// + Auto = 3, + /// + /// Indicates an IP address that can not be modified + /// + Fixed = 4, } /// @@ -148,13 +265,34 @@ namespace Tizen.Network.Connection /// 3 public enum CellularServiceType { - Unknown = 0, /**< Unknown */ - Internet = 1, /**< Internet */ - MMS = 2, /**< MMS */ - PrepaidInternet = 3, /**< Prepaid internet */ - PrepaidMMS = 4, /**< Prepaid MMS */ - Tethering = 5, /**< Tethering */ - Application = 6, /**< Specific application */ + /// + /// Unknown + /// + Unknown = 0, + /// + /// Internet + /// + Internet = 1, + /// + /// MMS + /// + MMS = 2, + /// + /// Prepaid Internet + /// + PrepaidInternet = 3, + /// + /// Prepaid MMS + /// + PrepaidMMS = 4, + /// + /// Tethering + /// + Tethering = 5, + /// + /// Specific application + /// + Application = 6, } /// @@ -163,10 +301,22 @@ namespace Tizen.Network.Connection /// 3 public enum CellularPdnType { - Unknown = 0, /**< Unknown */ - IPv4 = 1, /**< IPv4 */ - IPv6 = 2, /**< IPv6 */ - IPv4_IPv6 = 3, /**< Both IPv4 and IPv6 */ + /// + /// Unknown + /// + Unknown = 0, + /// + /// IPv4 + /// + IPv4 = 1, + /// + /// IPv6 + /// + IPv6 = 2, + /// + /// Both IPv4 and IPv6 + /// + IPv4_IPv6 = 3, } /// @@ -175,9 +325,18 @@ namespace Tizen.Network.Connection /// 3 public enum DnsConfigType { - None = 0, /**< Not defined */ - Static = 1, /**< Manual DNS configuration */ - Dynamic = 2, /**< Config DNS using DHCP client */ + /// + /// Not defined + /// + None = 0, + /// + /// Manual DNS configuration + /// + Static = 1, + /// + /// Config DNS using DHCP client + /// + Dynamic = 2, } static internal class ConnectionErrorValue @@ -193,22 +352,70 @@ namespace Tizen.Network.Connection // To do : have to assign valid error code public enum ConnectionError { - None = ErrorCode.None, /**< Successful */ - InvalidParameter = ErrorCode.InvalidParameter, /**< Invalid parameter */ - OutOfMemoryError = ErrorCode.OutOfMemory, /**< Out of memory error */ - InvalidOperation = ErrorCode.InvalidOperation, /**< Invalid Operation */ - AddressFamilyNotSupported = ErrorCode.AddressFamilyNotSupported, /**< Address family not supported */ - OperationFailed = ConnectionErrorValue.Base | 0x0401, /**< Operation failed */ - EndOfIteration = ConnectionErrorValue.Base | 0x0402, /**< End of iteration */ - NoConnection = ConnectionErrorValue.Base | 0x0403, /**< There is no connection */ - NowInProgress = ErrorCode.NowInProgress, /** Now in progress */ - AlreadyExists = ConnectionErrorValue.Base | 0x0404, /**< Already exists */ - OperationAborted = ConnectionErrorValue.Base | 0x0405, /**< Operation is aborted */ - DhcpFailed = ConnectionErrorValue.Base | 0x0406, /**< DHCP failed */ - InvalidKey = ConnectionErrorValue.Base | 0x0407, /**< Invalid key */ - NoReply = ConnectionErrorValue.Base | 0x0408, /**< No reply */ - PermissionDenied = ErrorCode.PermissionDenied, /**< Permission denied */ - NotSupported = ErrorCode.NotSupported /**< Not Supported */ + /// + /// Successful + /// + None = ErrorCode.None, + /// + /// Invalid parameter + /// + InvalidParameter = ErrorCode.InvalidParameter, + /// + /// Out of memory error + /// + OutOfMemoryError = ErrorCode.OutOfMemory, + /// + /// Invalid operation + /// + InvalidOperation = ErrorCode.InvalidOperation, + /// + /// Addrss family not supported + /// + AddressFamilyNotSupported = ErrorCode.AddressFamilyNotSupported, + /// + /// Operation failed + /// + OperationFailed = ConnectionErrorValue.Base | 0x0401, + /// + /// End of iteration + /// + EndOfIteration = ConnectionErrorValue.Base | 0x0402, + /// + /// There is no connection + /// + NoConnection = ConnectionErrorValue.Base | 0x0403, + /// + /// Now in progress + /// + NowInProgress = ErrorCode.NowInProgress, + /// + /// Already exists + /// + AlreadyExists = ConnectionErrorValue.Base | 0x0404, + /// + /// Operation is aborted + /// + OperationAborted = ConnectionErrorValue.Base | 0x0405, + /// + /// DHCP failed + /// + DhcpFailed = ConnectionErrorValue.Base | 0x0406, + /// + /// Invalid key + /// + InvalidKey = ConnectionErrorValue.Base | 0x0407, + /// + /// No reply + /// + NoReply = ConnectionErrorValue.Base | 0x0408, + /// + /// Permission denied + /// + PermissionDenied = ErrorCode.PermissionDenied, + /// + /// Not supported + /// + NotSupported = ErrorCode.NotSupported } /// @@ -217,9 +424,18 @@ namespace Tizen.Network.Connection /// 3 public enum ProfileListType { - Registered = 0, /**< The iterator of the registered profile */ - Connected = 1, /**< The iterator of the connected profile */ - Default = 2, /**< The iterator of the default profile */ + /// + /// The iterator of the registered profile + /// + Registered = 0, + /// + /// The iterator of the connected profile + /// + Connected = 1, + /// + /// The iterator of the default profile + /// + Default = 2, } /// @@ -228,11 +444,26 @@ namespace Tizen.Network.Connection /// 3 public enum WiFiSecurityType { - None = 0, /**< Security disabled */ - Wep = 1, /**< WEP */ - WpaPsk = 2, /**< WPA-PSK */ - Wpa2Psk = 3, /**< WPA2-PSK */ - Eap = 4, /**< EAP */ + /// + /// Security disabled + /// + None = 0, + /// + /// WEP + /// + Wep = 1, + /// + /// WPA-PSK + /// + WpaPsk = 2, + /// + /// WPA2-PSK + /// + Wpa2Psk = 3, + /// + /// EAP + /// + Eap = 4, } /// @@ -241,11 +472,26 @@ namespace Tizen.Network.Connection /// 3 public enum WiFiEncryptionType { - None = 0, /**< Encryption disabled */ - Wep = 1, /**< WEP */ - Tkip = 2, /**< TKIP */ - Aes = 3, /**< AES */ - TkipAesMixed = 4, /**< TKIP and AES are both supported */ + /// + /// Encryption disabled + /// + None = 0, + /// + /// WEP + /// + Wep = 1, + /// + /// TKIP + /// + Tkip = 2, + /// + /// AES + /// + Aes = 3, + /// + /// TKIP and AES are both supported + /// + TkipAesMixed = 4, } /// @@ -254,10 +500,22 @@ namespace Tizen.Network.Connection /// 3 public enum ConnectionProfileState { - Disconnected = 0, /**< Disconnected state */ - Association = 1, /**< Association state */ - Configuration = 2, /**< Configuration state */ - Connected = 3, /**< Connected state */ + /// + /// Disconnected state + /// + Disconnected = 0, + /// + /// Association state + /// + Association = 1, + /// + /// Configuration state + /// + Configuration = 2, + /// + /// Connected state + /// + Connected = 3, } /// @@ -266,14 +524,32 @@ namespace Tizen.Network.Connection /// 3 public enum CellularAuthType { - None = 0, /**< No authentication */ - Pap = 1, /**< PAP authentication */ - Chap = 2, /**< CHAP authentication */ + /// + /// No authentication + /// + None = 0, + /// + /// PAP authentication + /// + Pap = 1, + /// + /// CHAP authentication + /// + Chap = 2, } + /// + /// Enumeration for the address information type + /// public enum AddressInformationType { + /// + /// Connection type + /// Connection = 0, + /// + /// Wi-Fi type + /// WiFi = 1 } diff --git a/src/Tizen.Network.Connection/Tizen.Network.Connection/WiFiProfile.cs b/src/Tizen.Network.Connection/Tizen.Network.Connection/WiFiProfile.cs index 21f9258..6cfbc33 100755 --- a/src/Tizen.Network.Connection/Tizen.Network.Connection/WiFiProfile.cs +++ b/src/Tizen.Network.Connection/Tizen.Network.Connection/WiFiProfile.cs @@ -32,6 +32,9 @@ namespace Tizen.Network.Connection { } + /// + /// Destroy the WiFiProfile object + /// ~WiFiProfile() { } -- 2.7.4