summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruno da Silva Belo <brunodasilvabelo@gmail.com>2019-10-17 15:25:17 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-10-17 15:39:23 -0300
commit62a773c17e71e297b816bb902b560daa1005619a (patch)
tree9e1879e77ba0a35b1bf5d8b0f12ec8fd4e8309cc /src
parent351b9650dfc456ebdf001c08347a65d5d4b70742 (diff)
csharp: updating eldbus_pending docs and hide api.
Summary: ref T8361 Reviewers: lauromoura, felipealmeida, segfaultxavi, woohyun Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8361 Differential Revision: https://phab.enlightenment.org/D10427
Diffstat (limited to 'src')
-rw-r--r--src/bindings/mono/eldbus_mono/eldbus_pending.cs41
1 files changed, 39 insertions, 2 deletions
diff --git a/src/bindings/mono/eldbus_mono/eldbus_pending.cs b/src/bindings/mono/eldbus_mono/eldbus_pending.cs
index 3570ca1..7fbaf62 100644
--- a/src/bindings/mono/eldbus_mono/eldbus_pending.cs
+++ b/src/bindings/mono/eldbus_mono/eldbus_pending.cs
@@ -2,12 +2,14 @@
2 2
3using System; 3using System;
4using System.Runtime.InteropServices; 4using System.Runtime.InteropServices;
5using System.ComponentModel;
5 6
6using static eldbus.EldbusPendingNativeFunctions; 7using static eldbus.EldbusPendingNativeFunctions;
7 8
8namespace eldbus 9namespace eldbus
9{ 10{
10 11
12[EditorBrowsable(EditorBrowsableState.Never)]
11public static class EldbusPendingNativeFunctions 13public static class EldbusPendingNativeFunctions
12{ 14{
13 [DllImport(efl.Libs.Eldbus)] public static extern void 15 [DllImport(efl.Libs.Eldbus)] public static extern void
@@ -42,12 +44,15 @@ public static class EldbusPendingNativeFunctions
42} 44}
43 45
44/// <summary>Represents a DBus pending. 46/// <summary>Represents a DBus pending.
45/// 47/// <para>Since EFL 1.23.</para>
46/// Since EFL 1.23.
47/// </summary> 48/// </summary>
48public class Pending 49public class Pending
49{ 50{
51 [EditorBrowsable(EditorBrowsableState.Never)]
50 public IntPtr Handle {get;set;} = IntPtr.Zero; 52 public IntPtr Handle {get;set;} = IntPtr.Zero;
53 /// <summary>Whether this managed list owns the native one.
54 /// <para>Since EFL 1.23.</para>
55 /// </summary>
51 public bool Own {get;set;} = true; 56 public bool Own {get;set;} = true;
52 57
53 private void InitNew(IntPtr handle, bool own) 58 private void InitNew(IntPtr handle, bool own)
@@ -65,11 +70,17 @@ public class Pending
65 } 70 }
66 } 71 }
67 72
73 [EditorBrowsable(EditorBrowsableState.Never)]
68 public Pending(IntPtr handle, bool own) 74 public Pending(IntPtr handle, bool own)
69 { 75 {
70 InitNew(handle, own); 76 InitNew(handle, own);
71 } 77 }
72 78
79 /// <summary>
80 /// Releases the native handler.
81 /// <para>Since EFL 1.23.</para>
82 /// </summary>
83 /// <returns>The native handler.</returns>
73 public IntPtr Release() 84 public IntPtr Release()
74 { 85 {
75 IntPtr h = Handle; 86 IntPtr h = Handle;
@@ -77,12 +88,22 @@ public class Pending
77 return h; 88 return h;
78 } 89 }
79 90
91 /// <summary>
92 /// Cancel the pending message.
93 /// <para>Since EFL 1.23.</para>
94 /// </summary>
80 public void Cancel() 95 public void Cancel()
81 { 96 {
82 CheckHandle(); 97 CheckHandle();
83 eldbus_pending_cancel(Handle); 98 eldbus_pending_cancel(Handle);
84 } 99 }
85 100
101 /// <summary>
102 /// Get the destination of the pending message.
103 /// <para>Since EFL 1.23.</para>
104 /// </summary>
105 /// <returns>A string corresponding to the destination of the
106 /// message</returns>
86 public string GetDestination() 107 public string GetDestination()
87 { 108 {
88 CheckHandle(); 109 CheckHandle();
@@ -90,6 +111,11 @@ public class Pending
90 return Eina.StringConversion.NativeUtf8ToManagedString(ptr); 111 return Eina.StringConversion.NativeUtf8ToManagedString(ptr);
91 } 112 }
92 113
114 /// <summary>
115 /// Get the path of the pending message.
116 /// <para>Since EFL 1.23.</para>
117 /// </summary>
118 /// <returns>A string corresponding to the path of the message.</returns>
93 public string GetPath() 119 public string GetPath()
94 { 120 {
95 CheckHandle(); 121 CheckHandle();
@@ -97,6 +123,12 @@ public class Pending
97 return Eina.StringConversion.NativeUtf8ToManagedString(ptr); 123 return Eina.StringConversion.NativeUtf8ToManagedString(ptr);
98 } 124 }
99 125
126 /// <summary>
127 /// Get the interface of the pending message.
128 /// <para>Since EFL 1.23.</para>
129 /// </summary>
130 /// <returns>A string corresponding to the interface of the
131 /// message.</returns>
100 public string GetInterface() 132 public string GetInterface()
101 { 133 {
102 CheckHandle(); 134 CheckHandle();
@@ -104,6 +136,11 @@ public class Pending
104 return Eina.StringConversion.NativeUtf8ToManagedString(ptr); 136 return Eina.StringConversion.NativeUtf8ToManagedString(ptr);
105 } 137 }
106 138
139 /// <summary>
140 /// Get the method of the pending message.
141 /// <para>Since EFL 1.23.</para>
142 /// </summary>
143 /// <returns>A string corresponding to the method of the message.</returns>
107 public string GetMethod() 144 public string GetMethod()
108 { 145 {
109 CheckHandle(); 146 CheckHandle();