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
}
/// <summary>Represents a DBus pending.
-///
-/// Since EFL 1.23.
+/// <para>Since EFL 1.23.</para>
/// </summary>
public class Pending
{
+ [EditorBrowsable(EditorBrowsableState.Never)]
public IntPtr Handle {get;set;} = IntPtr.Zero;
+ /// <summary>Whether this managed list owns the native one.
+ /// <para>Since EFL 1.23.</para>
+ /// </summary>
public bool Own {get;set;} = true;
private void InitNew(IntPtr handle, bool own)
}
}
+ [EditorBrowsable(EditorBrowsableState.Never)]
public Pending(IntPtr handle, bool own)
{
InitNew(handle, own);
}
+ /// <summary>
+ /// Releases the native handler.
+ /// <para>Since EFL 1.23.</para>
+ /// </summary>
+ /// <returns>The native handler.</returns>
public IntPtr Release()
{
IntPtr h = Handle;
return h;
}
+ /// <summary>
+ /// Cancel the pending message.
+ /// <para>Since EFL 1.23.</para>
+ /// </summary>
public void Cancel()
{
CheckHandle();
eldbus_pending_cancel(Handle);
}
+ /// <summary>
+ /// Get the destination of the pending message.
+ /// <para>Since EFL 1.23.</para>
+ /// </summary>
+ /// <returns>A string corresponding to the destination of the
+ /// message</returns>
public string GetDestination()
{
CheckHandle();
return Eina.StringConversion.NativeUtf8ToManagedString(ptr);
}
+ /// <summary>
+ /// Get the path of the pending message.
+ /// <para>Since EFL 1.23.</para>
+ /// </summary>
+ /// <returns>A string corresponding to the path of the message.</returns>
public string GetPath()
{
CheckHandle();
return Eina.StringConversion.NativeUtf8ToManagedString(ptr);
}
+ /// <summary>
+ /// Get the interface of the pending message.
+ /// <para>Since EFL 1.23.</para>
+ /// </summary>
+ /// <returns>A string corresponding to the interface of the
+ /// message.</returns>
public string GetInterface()
{
CheckHandle();
return Eina.StringConversion.NativeUtf8ToManagedString(ptr);
}
+ /// <summary>
+ /// Get the method of the pending message.
+ /// <para>Since EFL 1.23.</para>
+ /// </summary>
+ /// <returns>A string corresponding to the method of the message.</returns>
public string GetMethod()
{
CheckHandle();