summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2020-02-04 17:17:27 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2020-02-04 17:17:27 +0900
commitdd4bad3037f052b5b3cc56c7715d7b89bfe3636d (patch)
tree622655ec4159073afe762167b9d17c75c51e9d5f
parenta92f8c210bb6d224300a069fce5d7f65f0a8e059 (diff)
csharp: implement GetChildrenIndex for GenericModel
Summary: This patch will fix EFL# build error. Reviewers: felipealmeida, woohyun, Jaehyun_Cho Reviewed By: Jaehyun_Cho Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11269
-rw-r--r--src/bindings/mono/efl_mono/GenericModel.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/bindings/mono/efl_mono/GenericModel.cs b/src/bindings/mono/efl_mono/GenericModel.cs
index 8d7cc813a2..ae1b69cf3e 100644
--- a/src/bindings/mono/efl_mono/GenericModel.cs
+++ b/src/bindings/mono/efl_mono/GenericModel.cs
@@ -167,6 +167,28 @@ public class GenericModel<T> : Efl.Object, Efl.IModel
167 return model.GetChildrenSliceAsync(start, count, token); 167 return model.GetChildrenSliceAsync(start, count, token);
168 } 168 }
169 169
170 /// <summary>Get children as specified by iterator.
171 ///
172 /// Provided index have to be between 0 and <see cref="Efl.IModel.GetChildrenCount"/>.
173 ///
174 /// This function might rely on <see cref="Efl.IModel.GetChildrenSlice"/> as a fallback.</summary>
175 /// <param name="indices">Indices of the requested children.</param>
176 /// <returns>Array of children</returns>
177 public Eina.Future GetChildrenIndex(IEnumerable<uint> indices)
178 {
179 return model.GetChildrenIndex(indices);
180 }
181
182 /// <summary>Async wrapper for <see cref="GetChildrenIndex" />.
183 /// </summary>
184 /// <param name="indices">Indices of the requested children.</param>
185 /// <param name="token">Token to notify the async operation of external request to cancel.</param>
186 /// <returns>An async task wrapping the result of the operation.</returns>
187 public System.Threading.Tasks.Task<Eina.Value> GetChildrenIndexAsync(IEnumerable<uint> indices, System.Threading.CancellationToken token = default(System.Threading.CancellationToken))
188 {
189 return model.GetChildrenIndexAsync(indices, token);
190 }
191
170 /// <summary>Event triggered when properties on the wrapped model changes.</summary> 192 /// <summary>Event triggered when properties on the wrapped model changes.</summary>
171 public event EventHandler<Efl.ModelPropertiesChangedEventArgs> PropertiesChangedEvent 193 public event EventHandler<Efl.ModelPropertiesChangedEventArgs> PropertiesChangedEvent
172 { 194 {