2 #pragma warning disable CS1591
4 using System.Runtime.InteropServices;
5 using System.Collections.Generic;
7 using System.Threading;
8 using System.ComponentModel;
11 /// <summary>Efl file interface
12 /// (Since EFL 1.22)</summary>
13 [Efl.IFileConcrete.NativeMethods]
14 [Efl.Eo.BindingEntity]
15 public interface IFile :
16 Efl.Eo.IWrapper, IDisposable
18 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
19 /// (Since EFL 1.22)</summary>
20 /// <returns>The handle to the <see cref="Eina.File"/> that will be used</returns>
22 /// <summary>Set the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
23 /// If mmap is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
24 /// (Since EFL 1.22)</summary>
25 /// <param name="f">The handle to the <see cref="Eina.File"/> that will be used</param>
26 /// <returns>0 on success, error code otherwise</returns>
27 Eina.Error SetMmap(Eina.File f);
28 /// <summary>Retrieve the file path from where an object is to fetch the data.
29 /// You must not modify the strings on the returned pointers.
30 /// (Since EFL 1.22)</summary>
31 /// <returns>The file path.</returns>
32 System.String GetFile();
33 /// <summary>Set the file path from where an object will fetch the data.
34 /// If file is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
35 /// (Since EFL 1.22)</summary>
36 /// <param name="file">The file path.</param>
37 /// <returns>0 on success, error code otherwise</returns>
38 Eina.Error SetFile(System.String file);
39 /// <summary>Get the previously-set key which corresponds to the target data within a file.
40 /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases (See for example <see cref="Efl.Ui.Image"/> or <see cref="Efl.Ui.Layout"/>).
42 /// You must not modify the strings on the returned pointers.
43 /// (Since EFL 1.22)</summary>
44 /// <returns>The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used.</returns>
45 System.String GetKey();
46 /// <summary>Set the key which corresponds to the target data within a file.
47 /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases.
48 /// (Since EFL 1.22)</summary>
49 /// <param name="key">The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used.</param>
50 void SetKey(System.String key);
51 /// <summary>Get the load state of the object.
52 /// (Since EFL 1.22)</summary>
53 /// <returns><c>true</c> if the object is loaded, <c>false</c> otherwise.</returns>
55 /// <summary>Perform all necessary operations to open and load file data into the object using the <see cref="Efl.IFile.File"/> (or <see cref="Efl.IFile.Mmap"/>) and <see cref="Efl.IFile.Key"/> properties.
56 /// In the case where <see cref="Efl.IFile.SetFile"/> has been called on an object, this will internally open the file and call <see cref="Efl.IFile.SetMmap"/> on the object using the opened file handle.
58 /// Calling <see cref="Efl.IFile.Load"/> on an object which has already performed file operations based on the currently set properties will have no effect.
59 /// (Since EFL 1.22)</summary>
60 /// <returns>0 on success, error code otherwise</returns>
62 /// <summary>Perform all necessary operations to unload file data from the object.
63 /// In the case where <see cref="Efl.IFile.SetMmap"/> has been externally called on an object, the file handle stored in the object will be preserved.
65 /// Calling <see cref="Efl.IFile.Unload"/> on an object which is not currently loaded will have no effect.
66 /// (Since EFL 1.22)</summary>
68 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
69 /// (Since EFL 1.22)</summary>
70 /// <value>The handle to the <see cref="Eina.File"/> that will be used</value>
75 /// <summary>Retrieve the file path from where an object is to fetch the data.
76 /// You must not modify the strings on the returned pointers.
77 /// (Since EFL 1.22)</summary>
78 /// <value>The file path.</value>
83 /// <summary>Get the previously-set key which corresponds to the target data within a file.
84 /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases (See for example <see cref="Efl.Ui.Image"/> or <see cref="Efl.Ui.Layout"/>).
86 /// You must not modify the strings on the returned pointers.
87 /// (Since EFL 1.22)</summary>
88 /// <value>The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used.</value>
93 /// <summary>Get the load state of the object.
94 /// (Since EFL 1.22)</summary>
95 /// <value><c>true</c> if the object is loaded, <c>false</c> otherwise.</value>
100 /// <summary>Efl file interface
101 /// (Since EFL 1.22)</summary>
102 sealed public class IFileConcrete :
107 /// <summary>Pointer to the native class description.</summary>
108 public override System.IntPtr NativeClass
112 if (((object)this).GetType() == typeof(IFileConcrete))
114 return GetEflClassStatic();
118 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
123 /// <summary>Subclasses should override this constructor if they are expected to be instantiated from native code.
124 /// Do not call this constructor directly.</summary>
125 /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
126 private IFileConcrete(ConstructingHandle ch) : base(ch)
130 [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr
131 efl_file_mixin_get();
132 /// <summary>Initializes a new instance of the <see cref="IFile"/> class.
133 /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
134 /// <param name="wh">The native pointer to be wrapped.</param>
135 private IFileConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
139 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
140 /// (Since EFL 1.22)</summary>
141 /// <returns>The handle to the <see cref="Eina.File"/> that will be used</returns>
142 public Eina.File GetMmap() {
143 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_get_ptr.Value.Delegate(this.NativeHandle);
144 Eina.Error.RaiseIfUnhandledException();
147 /// <summary>Set the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
148 /// If mmap is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
149 /// (Since EFL 1.22)</summary>
150 /// <param name="f">The handle to the <see cref="Eina.File"/> that will be used</param>
151 /// <returns>0 on success, error code otherwise</returns>
152 public Eina.Error SetMmap(Eina.File f) {
153 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_set_ptr.Value.Delegate(this.NativeHandle,f);
154 Eina.Error.RaiseIfUnhandledException();
157 /// <summary>Retrieve the file path from where an object is to fetch the data.
158 /// You must not modify the strings on the returned pointers.
159 /// (Since EFL 1.22)</summary>
160 /// <returns>The file path.</returns>
161 public System.String GetFile() {
162 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_get_ptr.Value.Delegate(this.NativeHandle);
163 Eina.Error.RaiseIfUnhandledException();
166 /// <summary>Set the file path from where an object will fetch the data.
167 /// If file is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
168 /// (Since EFL 1.22)</summary>
169 /// <param name="file">The file path.</param>
170 /// <returns>0 on success, error code otherwise</returns>
171 public Eina.Error SetFile(System.String file) {
172 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_set_ptr.Value.Delegate(this.NativeHandle,file);
173 Eina.Error.RaiseIfUnhandledException();
176 /// <summary>Get the previously-set key which corresponds to the target data within a file.
177 /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases (See for example <see cref="Efl.Ui.Image"/> or <see cref="Efl.Ui.Layout"/>).
179 /// You must not modify the strings on the returned pointers.
180 /// (Since EFL 1.22)</summary>
181 /// <returns>The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used.</returns>
182 public System.String GetKey() {
183 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_key_get_ptr.Value.Delegate(this.NativeHandle);
184 Eina.Error.RaiseIfUnhandledException();
187 /// <summary>Set the key which corresponds to the target data within a file.
188 /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases.
189 /// (Since EFL 1.22)</summary>
190 /// <param name="key">The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used.</param>
191 public void SetKey(System.String key) {
192 Efl.IFileConcrete.NativeMethods.efl_file_key_set_ptr.Value.Delegate(this.NativeHandle,key);
193 Eina.Error.RaiseIfUnhandledException();
195 /// <summary>Get the load state of the object.
196 /// (Since EFL 1.22)</summary>
197 /// <returns><c>true</c> if the object is loaded, <c>false</c> otherwise.</returns>
198 public bool GetLoaded() {
199 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_loaded_get_ptr.Value.Delegate(this.NativeHandle);
200 Eina.Error.RaiseIfUnhandledException();
203 /// <summary>Perform all necessary operations to open and load file data into the object using the <see cref="Efl.IFile.File"/> (or <see cref="Efl.IFile.Mmap"/>) and <see cref="Efl.IFile.Key"/> properties.
204 /// In the case where <see cref="Efl.IFile.SetFile"/> has been called on an object, this will internally open the file and call <see cref="Efl.IFile.SetMmap"/> on the object using the opened file handle.
206 /// Calling <see cref="Efl.IFile.Load"/> on an object which has already performed file operations based on the currently set properties will have no effect.
207 /// (Since EFL 1.22)</summary>
208 /// <returns>0 on success, error code otherwise</returns>
209 public Eina.Error Load() {
210 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_load_ptr.Value.Delegate(this.NativeHandle);
211 Eina.Error.RaiseIfUnhandledException();
214 /// <summary>Perform all necessary operations to unload file data from the object.
215 /// In the case where <see cref="Efl.IFile.SetMmap"/> has been externally called on an object, the file handle stored in the object will be preserved.
217 /// Calling <see cref="Efl.IFile.Unload"/> on an object which is not currently loaded will have no effect.
218 /// (Since EFL 1.22)</summary>
219 public void Unload() {
220 Efl.IFileConcrete.NativeMethods.efl_file_unload_ptr.Value.Delegate(this.NativeHandle);
221 Eina.Error.RaiseIfUnhandledException();
223 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
224 /// (Since EFL 1.22)</summary>
225 /// <value>The handle to the <see cref="Eina.File"/> that will be used</value>
226 public Eina.File Mmap {
227 get { return GetMmap(); }
228 set { SetMmap(value); }
230 /// <summary>Retrieve the file path from where an object is to fetch the data.
231 /// You must not modify the strings on the returned pointers.
232 /// (Since EFL 1.22)</summary>
233 /// <value>The file path.</value>
234 public System.String File {
235 get { return GetFile(); }
236 set { SetFile(value); }
238 /// <summary>Get the previously-set key which corresponds to the target data within a file.
239 /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases (See for example <see cref="Efl.Ui.Image"/> or <see cref="Efl.Ui.Layout"/>).
241 /// You must not modify the strings on the returned pointers.
242 /// (Since EFL 1.22)</summary>
243 /// <value>The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used.</value>
244 public System.String Key {
245 get { return GetKey(); }
246 set { SetKey(value); }
248 /// <summary>Get the load state of the object.
249 /// (Since EFL 1.22)</summary>
250 /// <value><c>true</c> if the object is loaded, <c>false</c> otherwise.</value>
252 get { return GetLoaded(); }
254 private static IntPtr GetEflClassStatic()
256 return Efl.IFileConcrete.efl_file_mixin_get();
258 /// <summary>Wrapper for native methods and virtual method delegates.
259 /// For internal use by generated code only.</summary>
260 public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods
262 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl);
263 /// <summary>Gets the list of Eo operations to override.</summary>
264 /// <returns>The list of Eo operations to be overload.</returns>
265 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
267 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
268 var methods = Efl.Eo.Globals.GetUserMethods(type);
270 if (efl_file_mmap_get_static_delegate == null)
272 efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get);
275 if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null)
277 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate) });
280 if (efl_file_mmap_set_static_delegate == null)
282 efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set);
285 if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null)
287 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate) });
290 if (efl_file_get_static_delegate == null)
292 efl_file_get_static_delegate = new efl_file_get_delegate(file_get);
295 if (methods.FirstOrDefault(m => m.Name == "GetFile") != null)
297 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate) });
300 if (efl_file_set_static_delegate == null)
302 efl_file_set_static_delegate = new efl_file_set_delegate(file_set);
305 if (methods.FirstOrDefault(m => m.Name == "SetFile") != null)
307 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate) });
310 if (efl_file_key_get_static_delegate == null)
312 efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get);
315 if (methods.FirstOrDefault(m => m.Name == "GetKey") != null)
317 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate) });
320 if (efl_file_key_set_static_delegate == null)
322 efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set);
325 if (methods.FirstOrDefault(m => m.Name == "SetKey") != null)
327 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate) });
330 if (efl_file_loaded_get_static_delegate == null)
332 efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get);
335 if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null)
337 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate) });
340 if (efl_file_load_static_delegate == null)
342 efl_file_load_static_delegate = new efl_file_load_delegate(load);
345 if (methods.FirstOrDefault(m => m.Name == "Load") != null)
347 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate) });
350 if (efl_file_unload_static_delegate == null)
352 efl_file_unload_static_delegate = new efl_file_unload_delegate(unload);
355 if (methods.FirstOrDefault(m => m.Name == "Unload") != null)
357 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate) });
362 /// <summary>Returns the Eo class for the native methods of this class.</summary>
363 /// <returns>The native class pointer.</returns>
364 public override IntPtr GetEflClass()
366 return Efl.IFileConcrete.efl_file_mixin_get();
369 #pragma warning disable CA1707, CS1591, SA1300, SA1600
372 private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd);
375 public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj);
377 public static Efl.Eo.FunctionWrapper<efl_file_mmap_get_api_delegate> efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper<efl_file_mmap_get_api_delegate>(Module, "efl_file_mmap_get");
379 private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd)
381 Eina.Log.Debug("function efl_file_mmap_get was called");
382 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
385 Eina.File _ret_var = default(Eina.File);
388 _ret_var = ((IFile)ws.Target).GetMmap();
392 Eina.Log.Warning($"Callback error: {e.ToString()}");
393 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
401 return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
405 private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate;
408 private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f);
411 public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f);
413 public static Efl.Eo.FunctionWrapper<efl_file_mmap_set_api_delegate> efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper<efl_file_mmap_set_api_delegate>(Module, "efl_file_mmap_set");
415 private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f)
417 Eina.Log.Debug("function efl_file_mmap_set was called");
418 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
421 Eina.Error _ret_var = default(Eina.Error);
424 _ret_var = ((IFile)ws.Target).SetMmap(f);
428 Eina.Log.Warning($"Callback error: {e.ToString()}");
429 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
437 return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f);
441 private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate;
443 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
444 private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd);
446 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
447 public delegate System.String efl_file_get_api_delegate(System.IntPtr obj);
449 public static Efl.Eo.FunctionWrapper<efl_file_get_api_delegate> efl_file_get_ptr = new Efl.Eo.FunctionWrapper<efl_file_get_api_delegate>(Module, "efl_file_get");
451 private static System.String file_get(System.IntPtr obj, System.IntPtr pd)
453 Eina.Log.Debug("function efl_file_get was called");
454 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
457 System.String _ret_var = default(System.String);
460 _ret_var = ((IFile)ws.Target).GetFile();
464 Eina.Log.Warning($"Callback error: {e.ToString()}");
465 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
473 return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
477 private static efl_file_get_delegate efl_file_get_static_delegate;
480 private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file);
483 public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file);
485 public static Efl.Eo.FunctionWrapper<efl_file_set_api_delegate> efl_file_set_ptr = new Efl.Eo.FunctionWrapper<efl_file_set_api_delegate>(Module, "efl_file_set");
487 private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file)
489 Eina.Log.Debug("function efl_file_set was called");
490 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
493 Eina.Error _ret_var = default(Eina.Error);
496 _ret_var = ((IFile)ws.Target).SetFile(file);
500 Eina.Log.Warning($"Callback error: {e.ToString()}");
501 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
509 return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file);
513 private static efl_file_set_delegate efl_file_set_static_delegate;
515 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
516 private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd);
518 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
519 public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj);
521 public static Efl.Eo.FunctionWrapper<efl_file_key_get_api_delegate> efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper<efl_file_key_get_api_delegate>(Module, "efl_file_key_get");
523 private static System.String key_get(System.IntPtr obj, System.IntPtr pd)
525 Eina.Log.Debug("function efl_file_key_get was called");
526 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
529 System.String _ret_var = default(System.String);
532 _ret_var = ((IFile)ws.Target).GetKey();
536 Eina.Log.Warning($"Callback error: {e.ToString()}");
537 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
545 return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
549 private static efl_file_key_get_delegate efl_file_key_get_static_delegate;
552 private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key);
555 public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key);
557 public static Efl.Eo.FunctionWrapper<efl_file_key_set_api_delegate> efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper<efl_file_key_set_api_delegate>(Module, "efl_file_key_set");
559 private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key)
561 Eina.Log.Debug("function efl_file_key_set was called");
562 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
568 ((IFile)ws.Target).SetKey(key);
572 Eina.Log.Warning($"Callback error: {e.ToString()}");
573 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
580 efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key);
584 private static efl_file_key_set_delegate efl_file_key_set_static_delegate;
586 [return: MarshalAs(UnmanagedType.U1)]
587 private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd);
589 [return: MarshalAs(UnmanagedType.U1)]
590 public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj);
592 public static Efl.Eo.FunctionWrapper<efl_file_loaded_get_api_delegate> efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper<efl_file_loaded_get_api_delegate>(Module, "efl_file_loaded_get");
594 private static bool loaded_get(System.IntPtr obj, System.IntPtr pd)
596 Eina.Log.Debug("function efl_file_loaded_get was called");
597 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
600 bool _ret_var = default(bool);
603 _ret_var = ((IFile)ws.Target).GetLoaded();
607 Eina.Log.Warning($"Callback error: {e.ToString()}");
608 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
616 return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
620 private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate;
623 private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd);
626 public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj);
628 public static Efl.Eo.FunctionWrapper<efl_file_load_api_delegate> efl_file_load_ptr = new Efl.Eo.FunctionWrapper<efl_file_load_api_delegate>(Module, "efl_file_load");
630 private static Eina.Error load(System.IntPtr obj, System.IntPtr pd)
632 Eina.Log.Debug("function efl_file_load was called");
633 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
636 Eina.Error _ret_var = default(Eina.Error);
639 _ret_var = ((IFile)ws.Target).Load();
643 Eina.Log.Warning($"Callback error: {e.ToString()}");
644 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
652 return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
656 private static efl_file_load_delegate efl_file_load_static_delegate;
659 private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd);
662 public delegate void efl_file_unload_api_delegate(System.IntPtr obj);
664 public static Efl.Eo.FunctionWrapper<efl_file_unload_api_delegate> efl_file_unload_ptr = new Efl.Eo.FunctionWrapper<efl_file_unload_api_delegate>(Module, "efl_file_unload");
666 private static void unload(System.IntPtr obj, System.IntPtr pd)
668 Eina.Log.Debug("function efl_file_unload was called");
669 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
675 ((IFile)ws.Target).Unload();
679 Eina.Log.Warning($"Callback error: {e.ToString()}");
680 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
687 efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
691 private static efl_file_unload_delegate efl_file_unload_static_delegate;
693 #pragma warning restore CA1707, CS1591, SA1300, SA1600
700 #pragma warning disable CS1591
701 public static class EflIFileConcrete_ExtensionMethods {
702 public static Efl.BindableProperty<Eina.File> Mmap<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.IFile, T>magic = null) where T : Efl.IFile {
703 return new Efl.BindableProperty<Eina.File>("mmap", fac);
706 public static Efl.BindableProperty<System.String> File<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.IFile, T>magic = null) where T : Efl.IFile {
707 return new Efl.BindableProperty<System.String>("file", fac);
710 public static Efl.BindableProperty<System.String> Key<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.IFile, T>magic = null) where T : Efl.IFile {
711 return new Efl.BindableProperty<System.String>("key", fac);
716 #pragma warning restore CS1591