1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
10 /// <summary>Efl file interface
11 /// (Since EFL 1.22)</summary>
12 [Efl.IFileConcrete.NativeMethods]
13 [Efl.Eo.BindingEntity]
14 public interface IFile :
15 Efl.Eo.IWrapper, IDisposable
17 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
18 /// (Since EFL 1.22)</summary>
19 /// <returns>The handle to the <see cref="Eina.File"/> that will be used</returns>
21 /// <summary>Set the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
22 /// If mmap is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
23 /// (Since EFL 1.22)</summary>
24 /// <param name="f">The handle to the <see cref="Eina.File"/> that will be used</param>
25 /// <returns>0 on success, error code otherwise</returns>
26 Eina.Error SetMmap(Eina.File f);
27 /// <summary>Retrieve the file path from where an object is to fetch the data.
28 /// You must not modify the strings on the returned pointers.
29 /// (Since EFL 1.22)</summary>
30 /// <returns>The file path.</returns>
31 System.String GetFile();
32 /// <summary>Set the file path from where an object will fetch the data.
33 /// If file is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
34 /// (Since EFL 1.22)</summary>
35 /// <param name="file">The file path.</param>
36 /// <returns>0 on success, error code otherwise</returns>
37 Eina.Error SetFile(System.String file);
38 /// <summary>Get the previously-set key which corresponds to the target data within a file.
39 /// 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"/>).
41 /// You must not modify the strings on the returned pointers.
42 /// (Since EFL 1.22)</summary>
43 /// <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>
44 System.String GetKey();
45 /// <summary>Set the key which corresponds to the target data within a file.
46 /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases.
47 /// (Since EFL 1.22)</summary>
48 /// <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>
49 void SetKey(System.String key);
50 /// <summary>Get the load state of the object.
51 /// (Since EFL 1.22)</summary>
52 /// <returns><c>true</c> if the object is loaded, <c>false</c> otherwise.</returns>
54 /// <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.
55 /// 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.
57 /// 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.
58 /// (Since EFL 1.22)</summary>
59 /// <returns>0 on success, error code otherwise</returns>
61 /// <summary>Perform all necessary operations to unload file data from the object.
62 /// 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.
64 /// Calling <see cref="Efl.IFile.Unload"/> on an object which is not currently loaded will have no effect.
65 /// (Since EFL 1.22)</summary>
67 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
68 /// (Since EFL 1.22)</summary>
69 /// <value>The handle to the <see cref="Eina.File"/> that will be used</value>
74 /// <summary>Retrieve the file path from where an object is to fetch the data.
75 /// You must not modify the strings on the returned pointers.
76 /// (Since EFL 1.22)</summary>
77 /// <value>The file path.</value>
82 /// <summary>Get the previously-set key which corresponds to the target data within a file.
83 /// 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"/>).
85 /// You must not modify the strings on the returned pointers.
86 /// (Since EFL 1.22)</summary>
87 /// <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>
92 /// <summary>Get the load state of the object.
93 /// (Since EFL 1.22)</summary>
94 /// <value><c>true</c> if the object is loaded, <c>false</c> otherwise.</value>
99 /// <summary>Efl file interface
100 /// (Since EFL 1.22)</summary>
101 sealed public class IFileConcrete :
106 ///<summary>Pointer to the native class description.</summary>
107 public override System.IntPtr NativeClass
111 if (((object)this).GetType() == typeof(IFileConcrete))
113 return GetEflClassStatic();
117 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
122 /// <summary>Constructor to be used when objects are expected to be constructed from native code.</summary>
123 /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
124 private IFileConcrete(ConstructingHandle ch) : base(ch)
128 [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr
129 efl_file_mixin_get();
130 /// <summary>Initializes a new instance of the <see cref="IFile"/> class.
131 /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
132 /// <param name="wh">The native pointer to be wrapped.</param>
133 private IFileConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
137 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
138 /// (Since EFL 1.22)</summary>
139 /// <returns>The handle to the <see cref="Eina.File"/> that will be used</returns>
140 public Eina.File GetMmap() {
141 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_get_ptr.Value.Delegate(this.NativeHandle);
142 Eina.Error.RaiseIfUnhandledException();
145 /// <summary>Set the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
146 /// If mmap is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
147 /// (Since EFL 1.22)</summary>
148 /// <param name="f">The handle to the <see cref="Eina.File"/> that will be used</param>
149 /// <returns>0 on success, error code otherwise</returns>
150 public Eina.Error SetMmap(Eina.File f) {
151 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_set_ptr.Value.Delegate(this.NativeHandle,f);
152 Eina.Error.RaiseIfUnhandledException();
155 /// <summary>Retrieve the file path from where an object is to fetch the data.
156 /// You must not modify the strings on the returned pointers.
157 /// (Since EFL 1.22)</summary>
158 /// <returns>The file path.</returns>
159 public System.String GetFile() {
160 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_get_ptr.Value.Delegate(this.NativeHandle);
161 Eina.Error.RaiseIfUnhandledException();
164 /// <summary>Set the file path from where an object will fetch the data.
165 /// If file is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
166 /// (Since EFL 1.22)</summary>
167 /// <param name="file">The file path.</param>
168 /// <returns>0 on success, error code otherwise</returns>
169 public Eina.Error SetFile(System.String file) {
170 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_set_ptr.Value.Delegate(this.NativeHandle,file);
171 Eina.Error.RaiseIfUnhandledException();
174 /// <summary>Get the previously-set key which corresponds to the target data within a file.
175 /// 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"/>).
177 /// You must not modify the strings on the returned pointers.
178 /// (Since EFL 1.22)</summary>
179 /// <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>
180 public System.String GetKey() {
181 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_key_get_ptr.Value.Delegate(this.NativeHandle);
182 Eina.Error.RaiseIfUnhandledException();
185 /// <summary>Set the key which corresponds to the target data within a file.
186 /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases.
187 /// (Since EFL 1.22)</summary>
188 /// <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>
189 public void SetKey(System.String key) {
190 Efl.IFileConcrete.NativeMethods.efl_file_key_set_ptr.Value.Delegate(this.NativeHandle,key);
191 Eina.Error.RaiseIfUnhandledException();
193 /// <summary>Get the load state of the object.
194 /// (Since EFL 1.22)</summary>
195 /// <returns><c>true</c> if the object is loaded, <c>false</c> otherwise.</returns>
196 public bool GetLoaded() {
197 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_loaded_get_ptr.Value.Delegate(this.NativeHandle);
198 Eina.Error.RaiseIfUnhandledException();
201 /// <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.
202 /// 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.
204 /// 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.
205 /// (Since EFL 1.22)</summary>
206 /// <returns>0 on success, error code otherwise</returns>
207 public Eina.Error Load() {
208 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_load_ptr.Value.Delegate(this.NativeHandle);
209 Eina.Error.RaiseIfUnhandledException();
212 /// <summary>Perform all necessary operations to unload file data from the object.
213 /// 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.
215 /// Calling <see cref="Efl.IFile.Unload"/> on an object which is not currently loaded will have no effect.
216 /// (Since EFL 1.22)</summary>
217 public void Unload() {
218 Efl.IFileConcrete.NativeMethods.efl_file_unload_ptr.Value.Delegate(this.NativeHandle);
219 Eina.Error.RaiseIfUnhandledException();
221 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
222 /// (Since EFL 1.22)</summary>
223 /// <value>The handle to the <see cref="Eina.File"/> that will be used</value>
224 public Eina.File Mmap {
225 get { return GetMmap(); }
226 set { SetMmap(value); }
228 /// <summary>Retrieve the file path from where an object is to fetch the data.
229 /// You must not modify the strings on the returned pointers.
230 /// (Since EFL 1.22)</summary>
231 /// <value>The file path.</value>
232 public System.String File {
233 get { return GetFile(); }
234 set { SetFile(value); }
236 /// <summary>Get the previously-set key which corresponds to the target data within a file.
237 /// 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"/>).
239 /// You must not modify the strings on the returned pointers.
240 /// (Since EFL 1.22)</summary>
241 /// <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>
242 public System.String Key {
243 get { return GetKey(); }
244 set { SetKey(value); }
246 /// <summary>Get the load state of the object.
247 /// (Since EFL 1.22)</summary>
248 /// <value><c>true</c> if the object is loaded, <c>false</c> otherwise.</value>
250 get { return GetLoaded(); }
252 private static IntPtr GetEflClassStatic()
254 return Efl.IFileConcrete.efl_file_mixin_get();
256 /// <summary>Wrapper for native methods and virtual method delegates.
257 /// For internal use by generated code only.</summary>
258 public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods
260 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl);
261 /// <summary>Gets the list of Eo operations to override.</summary>
262 /// <returns>The list of Eo operations to be overload.</returns>
263 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
265 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
266 var methods = Efl.Eo.Globals.GetUserMethods(type);
268 if (efl_file_mmap_get_static_delegate == null)
270 efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get);
273 if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null)
275 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) });
278 if (efl_file_mmap_set_static_delegate == null)
280 efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set);
283 if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null)
285 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) });
288 if (efl_file_get_static_delegate == null)
290 efl_file_get_static_delegate = new efl_file_get_delegate(file_get);
293 if (methods.FirstOrDefault(m => m.Name == "GetFile") != null)
295 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) });
298 if (efl_file_set_static_delegate == null)
300 efl_file_set_static_delegate = new efl_file_set_delegate(file_set);
303 if (methods.FirstOrDefault(m => m.Name == "SetFile") != null)
305 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) });
308 if (efl_file_key_get_static_delegate == null)
310 efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get);
313 if (methods.FirstOrDefault(m => m.Name == "GetKey") != null)
315 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) });
318 if (efl_file_key_set_static_delegate == null)
320 efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set);
323 if (methods.FirstOrDefault(m => m.Name == "SetKey") != null)
325 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) });
328 if (efl_file_loaded_get_static_delegate == null)
330 efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get);
333 if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null)
335 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) });
338 if (efl_file_load_static_delegate == null)
340 efl_file_load_static_delegate = new efl_file_load_delegate(load);
343 if (methods.FirstOrDefault(m => m.Name == "Load") != null)
345 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) });
348 if (efl_file_unload_static_delegate == null)
350 efl_file_unload_static_delegate = new efl_file_unload_delegate(unload);
353 if (methods.FirstOrDefault(m => m.Name == "Unload") != null)
355 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) });
360 /// <summary>Returns the Eo class for the native methods of this class.</summary>
361 /// <returns>The native class pointer.</returns>
362 public override IntPtr GetEflClass()
364 return Efl.IFileConcrete.efl_file_mixin_get();
367 #pragma warning disable CA1707, CS1591, SA1300, SA1600
370 private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd);
373 public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj);
375 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");
377 private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd)
379 Eina.Log.Debug("function efl_file_mmap_get was called");
380 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
383 Eina.File _ret_var = default(Eina.File);
386 _ret_var = ((IFile)ws.Target).GetMmap();
390 Eina.Log.Warning($"Callback error: {e.ToString()}");
391 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
399 return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
403 private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate;
406 private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f);
409 public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f);
411 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");
413 private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f)
415 Eina.Log.Debug("function efl_file_mmap_set was called");
416 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
419 Eina.Error _ret_var = default(Eina.Error);
422 _ret_var = ((IFile)ws.Target).SetMmap(f);
426 Eina.Log.Warning($"Callback error: {e.ToString()}");
427 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
435 return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f);
439 private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate;
441 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
442 private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd);
444 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
445 public delegate System.String efl_file_get_api_delegate(System.IntPtr obj);
447 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");
449 private static System.String file_get(System.IntPtr obj, System.IntPtr pd)
451 Eina.Log.Debug("function efl_file_get was called");
452 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
455 System.String _ret_var = default(System.String);
458 _ret_var = ((IFile)ws.Target).GetFile();
462 Eina.Log.Warning($"Callback error: {e.ToString()}");
463 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
471 return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
475 private static efl_file_get_delegate efl_file_get_static_delegate;
478 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);
481 public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file);
483 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");
485 private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file)
487 Eina.Log.Debug("function efl_file_set was called");
488 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
491 Eina.Error _ret_var = default(Eina.Error);
494 _ret_var = ((IFile)ws.Target).SetFile(file);
498 Eina.Log.Warning($"Callback error: {e.ToString()}");
499 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
507 return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file);
511 private static efl_file_set_delegate efl_file_set_static_delegate;
513 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
514 private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd);
516 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
517 public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj);
519 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");
521 private static System.String key_get(System.IntPtr obj, System.IntPtr pd)
523 Eina.Log.Debug("function efl_file_key_get was called");
524 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
527 System.String _ret_var = default(System.String);
530 _ret_var = ((IFile)ws.Target).GetKey();
534 Eina.Log.Warning($"Callback error: {e.ToString()}");
535 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
543 return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
547 private static efl_file_key_get_delegate efl_file_key_get_static_delegate;
550 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);
553 public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key);
555 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");
557 private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key)
559 Eina.Log.Debug("function efl_file_key_set was called");
560 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
566 ((IFile)ws.Target).SetKey(key);
570 Eina.Log.Warning($"Callback error: {e.ToString()}");
571 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
578 efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key);
582 private static efl_file_key_set_delegate efl_file_key_set_static_delegate;
584 [return: MarshalAs(UnmanagedType.U1)]
585 private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd);
587 [return: MarshalAs(UnmanagedType.U1)]
588 public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj);
590 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");
592 private static bool loaded_get(System.IntPtr obj, System.IntPtr pd)
594 Eina.Log.Debug("function efl_file_loaded_get was called");
595 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
598 bool _ret_var = default(bool);
601 _ret_var = ((IFile)ws.Target).GetLoaded();
605 Eina.Log.Warning($"Callback error: {e.ToString()}");
606 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
614 return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
618 private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate;
621 private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd);
624 public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj);
626 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");
628 private static Eina.Error load(System.IntPtr obj, System.IntPtr pd)
630 Eina.Log.Debug("function efl_file_load was called");
631 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
634 Eina.Error _ret_var = default(Eina.Error);
637 _ret_var = ((IFile)ws.Target).Load();
641 Eina.Log.Warning($"Callback error: {e.ToString()}");
642 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
650 return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
654 private static efl_file_load_delegate efl_file_load_static_delegate;
657 private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd);
660 public delegate void efl_file_unload_api_delegate(System.IntPtr obj);
662 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");
664 private static void unload(System.IntPtr obj, System.IntPtr pd)
666 Eina.Log.Debug("function efl_file_unload was called");
667 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
673 ((IFile)ws.Target).Unload();
677 Eina.Log.Warning($"Callback error: {e.ToString()}");
678 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
685 efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
689 private static efl_file_unload_delegate efl_file_unload_static_delegate;
691 #pragma warning restore CA1707, CS1591, SA1300, SA1600