From dff5d5bfe95e3a5f7ba918af59393445a018608e Mon Sep 17 00:00:00 2001 From: "jh8801.jung" Date: Thu, 12 Oct 2017 14:30:08 +0900 Subject: [PATCH] Fix XML Doc Build Warning for Mtp Signed-off-by: jh8801.jung Change-Id: I899eafa20b9d4f579cdb8502de656802f48c2110 --- .../Tizen.Network.Mtp/MtpDevice.cs | 6 +++ .../Tizen.Network.Mtp/MtpErrorFactory.cs | 40 ++++++++++++++++++- .../Tizen.Network.Mtp/MtpObject.cs | 6 +++ .../Tizen.Network.Mtp/MtpStorage.cs | 6 +++ 4 files changed, 57 insertions(+), 1 deletion(-) diff --git a/src/Tizen.Network.Mtp/Tizen.Network.Mtp/MtpDevice.cs b/src/Tizen.Network.Mtp/Tizen.Network.Mtp/MtpDevice.cs index 778069449..ab2430ac2 100644 --- a/src/Tizen.Network.Mtp/Tizen.Network.Mtp/MtpDevice.cs +++ b/src/Tizen.Network.Mtp/Tizen.Network.Mtp/MtpDevice.cs @@ -115,11 +115,17 @@ namespace Tizen.Network.Mtp _deviceHandle = handle; } + /// + /// MtpDevice destructor. + /// ~MtpDevice() { Dispose(false); } + /// + /// Dispose + /// public void Dispose() { Dispose(true); diff --git a/src/Tizen.Network.Mtp/Tizen.Network.Mtp/MtpErrorFactory.cs b/src/Tizen.Network.Mtp/Tizen.Network.Mtp/MtpErrorFactory.cs index 5362b1eeb..06d318b23 100644 --- a/src/Tizen.Network.Mtp/Tizen.Network.Mtp/MtpErrorFactory.cs +++ b/src/Tizen.Network.Mtp/Tizen.Network.Mtp/MtpErrorFactory.cs @@ -30,19 +30,57 @@ namespace Tizen.Network.Mtp /// 5 public enum MtpError { + /// + /// Successful. + /// None = ErrorCode.None, + /// + /// I/O Error. + /// IoError = ErrorCode.IoError, + /// + /// Invalid Parameter. + /// InvalidParameterError = ErrorCode.InvalidParameter, + /// + /// Out of memory. + /// OutOfMemoryError = ErrorCode.OutOfMemory, + /// + /// Permission Denied. + /// PermissionDeniedError = ErrorCode.PermissionDenied, + /// + /// Not Supported. + /// NotSupportedError = ErrorCode.NotSupported, - + /// + /// Not available communication with Mtp framework. + /// CommunicationError = MtpErrorValue.Base | 0x01, + /// + /// Controller Error. + /// ControllerError = MtpErrorValue.Base | 0x02, + /// + /// No device. + /// NoDeviceError = MtpErrorValue.Base | 0x03, + /// + /// Not Initialized. + /// NotInitializedError = MtpErrorValue.Base | 0x04, + /// + /// Not Activated. + /// NotActivatedError = MtpErrorValue.Base | 0x05, + /// + /// Not Activated Communication. + /// NotActivatedCommunicationError = MtpErrorValue.Base | 0x06, + /// + /// Plugin Fail. + /// PluginFailError = MtpErrorValue.Base | 0x07 } diff --git a/src/Tizen.Network.Mtp/Tizen.Network.Mtp/MtpObject.cs b/src/Tizen.Network.Mtp/Tizen.Network.Mtp/MtpObject.cs index 6607e13ef..d8209c4ca 100644 --- a/src/Tizen.Network.Mtp/Tizen.Network.Mtp/MtpObject.cs +++ b/src/Tizen.Network.Mtp/Tizen.Network.Mtp/MtpObject.cs @@ -361,11 +361,17 @@ namespace Tizen.Network.Mtp _objectHandle = objectHandle; } + /// + /// MtpObject destructor. + /// ~MtpObject() { Dispose(false); } + /// + /// Dispose + /// public void Dispose() { Dispose(true); diff --git a/src/Tizen.Network.Mtp/Tizen.Network.Mtp/MtpStorage.cs b/src/Tizen.Network.Mtp/Tizen.Network.Mtp/MtpStorage.cs index c6e38b42c..df192e619 100644 --- a/src/Tizen.Network.Mtp/Tizen.Network.Mtp/MtpStorage.cs +++ b/src/Tizen.Network.Mtp/Tizen.Network.Mtp/MtpStorage.cs @@ -136,11 +136,17 @@ namespace Tizen.Network.Mtp _storageHandle = storageHandle; } + /// + /// MtpStorage destructor. + /// ~MtpStorage() { Dispose(false); } + /// + /// Dispose + /// public void Dispose() { Dispose(true); -- 2.34.1