diff --git a/src/bindings/mono/eldbus_mono/eldbus_pending.cs b/src/bindings/mono/eldbus_mono/eldbus_pending.cs index 3570ca1842..7fbaf62034 100644 --- a/src/bindings/mono/eldbus_mono/eldbus_pending.cs +++ b/src/bindings/mono/eldbus_mono/eldbus_pending.cs @@ -2,12 +2,14 @@ using System; using System.Runtime.InteropServices; +using System.ComponentModel; using static eldbus.EldbusPendingNativeFunctions; namespace eldbus { +[EditorBrowsable(EditorBrowsableState.Never)] public static class EldbusPendingNativeFunctions { [DllImport(efl.Libs.Eldbus)] public static extern void @@ -42,12 +44,15 @@ public static class EldbusPendingNativeFunctions } /// Represents a DBus pending. -/// -/// Since EFL 1.23. +/// Since EFL 1.23. /// public class Pending { + [EditorBrowsable(EditorBrowsableState.Never)] public IntPtr Handle {get;set;} = IntPtr.Zero; + /// Whether this managed list owns the native one. + /// Since EFL 1.23. + /// public bool Own {get;set;} = true; private void InitNew(IntPtr handle, bool own) @@ -65,11 +70,17 @@ public class Pending } } + [EditorBrowsable(EditorBrowsableState.Never)] public Pending(IntPtr handle, bool own) { InitNew(handle, own); } + /// + /// Releases the native handler. + /// Since EFL 1.23. + /// + /// The native handler. public IntPtr Release() { IntPtr h = Handle; @@ -77,12 +88,22 @@ public class Pending return h; } + /// + /// Cancel the pending message. + /// Since EFL 1.23. + /// public void Cancel() { CheckHandle(); eldbus_pending_cancel(Handle); } + /// + /// Get the destination of the pending message. + /// Since EFL 1.23. + /// + /// A string corresponding to the destination of the + /// message public string GetDestination() { CheckHandle(); @@ -90,6 +111,11 @@ public class Pending return Eina.StringConversion.NativeUtf8ToManagedString(ptr); } + /// + /// Get the path of the pending message. + /// Since EFL 1.23. + /// + /// A string corresponding to the path of the message. public string GetPath() { CheckHandle(); @@ -97,6 +123,12 @@ public class Pending return Eina.StringConversion.NativeUtf8ToManagedString(ptr); } + /// + /// Get the interface of the pending message. + /// Since EFL 1.23. + /// + /// A string corresponding to the interface of the + /// message. public string GetInterface() { CheckHandle(); @@ -104,6 +136,11 @@ public class Pending return Eina.StringConversion.NativeUtf8ToManagedString(ptr); } + /// + /// Get the method of the pending message. + /// Since EFL 1.23. + /// + /// A string corresponding to the method of the message. public string GetMethod() { CheckHandle();