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 public interface IFile :
14 Efl.Eo.IWrapper, IDisposable
16 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
17 /// (Since EFL 1.22)</summary>
18 /// <returns>The handle to the <see cref="Eina.File"/> that will be used</returns>
20 /// <summary>Set the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
21 /// If mmap is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
22 /// (Since EFL 1.22)</summary>
23 /// <param name="f">The handle to the <see cref="Eina.File"/> that will be used</param>
24 /// <returns>0 on success, error code otherwise</returns>
25 Eina.Error SetMmap(Eina.File f);
26 /// <summary>Retrieve the file path from where an object is to fetch the data.
27 /// You must not modify the strings on the returned pointers.
28 /// (Since EFL 1.22)</summary>
29 /// <returns>The file path.</returns>
30 System.String GetFile();
31 /// <summary>Set the file path from where an object will fetch the data.
32 /// If file is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
33 /// (Since EFL 1.22)</summary>
34 /// <param name="file">The file path.</param>
35 /// <returns>0 on success, error code otherwise</returns>
36 Eina.Error SetFile(System.String file);
37 /// <summary>Get the previously-set key which corresponds to the target data within a file.
38 /// 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"/>).
40 /// You must not modify the strings on the returned pointers.
41 /// (Since EFL 1.22)</summary>
42 /// <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>
43 System.String GetKey();
44 /// <summary>Set the key which corresponds to the target data within a file.
45 /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases.
46 /// (Since EFL 1.22)</summary>
47 /// <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>
48 void SetKey(System.String key);
49 /// <summary>Get the load state of the object.
50 /// (Since EFL 1.22)</summary>
51 /// <returns><c>true</c> if the object is loaded, <c>false</c> otherwise.</returns>
53 /// <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.
54 /// 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.
56 /// 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.
57 /// (Since EFL 1.22)</summary>
58 /// <returns>0 on success, error code otherwise</returns>
60 /// <summary>Perform all necessary operations to unload file data from the object.
61 /// 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.
63 /// Calling <see cref="Efl.IFile.Unload"/> on an object which is not currently loaded will have no effect.
64 /// (Since EFL 1.22)</summary>
66 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
67 /// (Since EFL 1.22)</summary>
68 /// <value>The handle to the <see cref="Eina.File"/> that will be used</value>
73 /// <summary>Retrieve the file path from where an object is to fetch the data.
74 /// You must not modify the strings on the returned pointers.
75 /// (Since EFL 1.22)</summary>
76 /// <value>The file path.</value>
81 /// <summary>Get the previously-set key which corresponds to the target data within a file.
82 /// 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"/>).
84 /// You must not modify the strings on the returned pointers.
85 /// (Since EFL 1.22)</summary>
86 /// <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>
91 /// <summary>Get the load state of the object.
92 /// (Since EFL 1.22)</summary>
93 /// <value><c>true</c> if the object is loaded, <c>false</c> otherwise.</value>
98 /// <summary>Efl file interface
99 /// (Since EFL 1.22)</summary>
100 sealed public class IFileConcrete :
105 ///<summary>Pointer to the native class description.</summary>
106 public override System.IntPtr NativeClass
110 if (((object)this).GetType() == typeof(IFileConcrete))
112 return GetEflClassStatic();
116 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
121 [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr
122 efl_file_mixin_get();
123 /// <summary>Initializes a new instance of the <see cref="IFile"/> class.
124 /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
125 private IFileConcrete(System.IntPtr raw) : base(raw)
129 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
130 /// (Since EFL 1.22)</summary>
131 /// <returns>The handle to the <see cref="Eina.File"/> that will be used</returns>
132 public Eina.File GetMmap() {
133 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_get_ptr.Value.Delegate(this.NativeHandle);
134 Eina.Error.RaiseIfUnhandledException();
137 /// <summary>Set the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
138 /// If mmap is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
139 /// (Since EFL 1.22)</summary>
140 /// <param name="f">The handle to the <see cref="Eina.File"/> that will be used</param>
141 /// <returns>0 on success, error code otherwise</returns>
142 public Eina.Error SetMmap(Eina.File f) {
143 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_set_ptr.Value.Delegate(this.NativeHandle,f);
144 Eina.Error.RaiseIfUnhandledException();
147 /// <summary>Retrieve the file path from where an object is to fetch the data.
148 /// You must not modify the strings on the returned pointers.
149 /// (Since EFL 1.22)</summary>
150 /// <returns>The file path.</returns>
151 public System.String GetFile() {
152 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_get_ptr.Value.Delegate(this.NativeHandle);
153 Eina.Error.RaiseIfUnhandledException();
156 /// <summary>Set the file path from where an object will fetch the data.
157 /// If file is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
158 /// (Since EFL 1.22)</summary>
159 /// <param name="file">The file path.</param>
160 /// <returns>0 on success, error code otherwise</returns>
161 public Eina.Error SetFile(System.String file) {
162 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_set_ptr.Value.Delegate(this.NativeHandle,file);
163 Eina.Error.RaiseIfUnhandledException();
166 /// <summary>Get the previously-set key which corresponds to the target data within a file.
167 /// 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"/>).
169 /// You must not modify the strings on the returned pointers.
170 /// (Since EFL 1.22)</summary>
171 /// <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>
172 public System.String GetKey() {
173 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_key_get_ptr.Value.Delegate(this.NativeHandle);
174 Eina.Error.RaiseIfUnhandledException();
177 /// <summary>Set the key which corresponds to the target data within a file.
178 /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases.
179 /// (Since EFL 1.22)</summary>
180 /// <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>
181 public void SetKey(System.String key) {
182 Efl.IFileConcrete.NativeMethods.efl_file_key_set_ptr.Value.Delegate(this.NativeHandle,key);
183 Eina.Error.RaiseIfUnhandledException();
185 /// <summary>Get the load state of the object.
186 /// (Since EFL 1.22)</summary>
187 /// <returns><c>true</c> if the object is loaded, <c>false</c> otherwise.</returns>
188 public bool GetLoaded() {
189 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_loaded_get_ptr.Value.Delegate(this.NativeHandle);
190 Eina.Error.RaiseIfUnhandledException();
193 /// <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.
194 /// 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.
196 /// 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.
197 /// (Since EFL 1.22)</summary>
198 /// <returns>0 on success, error code otherwise</returns>
199 public Eina.Error Load() {
200 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_load_ptr.Value.Delegate(this.NativeHandle);
201 Eina.Error.RaiseIfUnhandledException();
204 /// <summary>Perform all necessary operations to unload file data from the object.
205 /// 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.
207 /// Calling <see cref="Efl.IFile.Unload"/> on an object which is not currently loaded will have no effect.
208 /// (Since EFL 1.22)</summary>
209 public void Unload() {
210 Efl.IFileConcrete.NativeMethods.efl_file_unload_ptr.Value.Delegate(this.NativeHandle);
211 Eina.Error.RaiseIfUnhandledException();
213 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
214 /// (Since EFL 1.22)</summary>
215 /// <value>The handle to the <see cref="Eina.File"/> that will be used</value>
216 public Eina.File Mmap {
217 get { return GetMmap(); }
218 set { SetMmap(value); }
220 /// <summary>Retrieve the file path from where an object is to fetch the data.
221 /// You must not modify the strings on the returned pointers.
222 /// (Since EFL 1.22)</summary>
223 /// <value>The file path.</value>
224 public System.String File {
225 get { return GetFile(); }
226 set { SetFile(value); }
228 /// <summary>Get the previously-set key which corresponds to the target data within a file.
229 /// 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"/>).
231 /// You must not modify the strings on the returned pointers.
232 /// (Since EFL 1.22)</summary>
233 /// <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>
234 public System.String Key {
235 get { return GetKey(); }
236 set { SetKey(value); }
238 /// <summary>Get the load state of the object.
239 /// (Since EFL 1.22)</summary>
240 /// <value><c>true</c> if the object is loaded, <c>false</c> otherwise.</value>
242 get { return GetLoaded(); }
244 private static IntPtr GetEflClassStatic()
246 return Efl.IFileConcrete.efl_file_mixin_get();
248 /// <summary>Wrapper for native methods and virtual method delegates.
249 /// For internal use by generated code only.</summary>
250 public class NativeMethods : Efl.Eo.NativeClass
252 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl);
253 /// <summary>Gets the list of Eo operations to override.</summary>
254 /// <returns>The list of Eo operations to be overload.</returns>
255 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
257 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
258 var methods = Efl.Eo.Globals.GetUserMethods(type);
260 if (efl_file_mmap_get_static_delegate == null)
262 efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get);
265 if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null)
267 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) });
270 if (efl_file_mmap_set_static_delegate == null)
272 efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set);
275 if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null)
277 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) });
280 if (efl_file_get_static_delegate == null)
282 efl_file_get_static_delegate = new efl_file_get_delegate(file_get);
285 if (methods.FirstOrDefault(m => m.Name == "GetFile") != null)
287 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) });
290 if (efl_file_set_static_delegate == null)
292 efl_file_set_static_delegate = new efl_file_set_delegate(file_set);
295 if (methods.FirstOrDefault(m => m.Name == "SetFile") != null)
297 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) });
300 if (efl_file_key_get_static_delegate == null)
302 efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get);
305 if (methods.FirstOrDefault(m => m.Name == "GetKey") != null)
307 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) });
310 if (efl_file_key_set_static_delegate == null)
312 efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set);
315 if (methods.FirstOrDefault(m => m.Name == "SetKey") != null)
317 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) });
320 if (efl_file_loaded_get_static_delegate == null)
322 efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get);
325 if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null)
327 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) });
330 if (efl_file_load_static_delegate == null)
332 efl_file_load_static_delegate = new efl_file_load_delegate(load);
335 if (methods.FirstOrDefault(m => m.Name == "Load") != null)
337 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) });
340 if (efl_file_unload_static_delegate == null)
342 efl_file_unload_static_delegate = new efl_file_unload_delegate(unload);
345 if (methods.FirstOrDefault(m => m.Name == "Unload") != null)
347 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) });
352 /// <summary>Returns the Eo class for the native methods of this class.</summary>
353 /// <returns>The native class pointer.</returns>
354 public override IntPtr GetEflClass()
356 return Efl.IFileConcrete.efl_file_mixin_get();
359 #pragma warning disable CA1707, CS1591, SA1300, SA1600
362 private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd);
365 public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj);
367 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");
369 private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd)
371 Eina.Log.Debug("function efl_file_mmap_get was called");
372 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
375 Eina.File _ret_var = default(Eina.File);
378 _ret_var = ((IFile)ws.Target).GetMmap();
382 Eina.Log.Warning($"Callback error: {e.ToString()}");
383 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
391 return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
395 private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate;
398 private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f);
401 public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f);
403 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");
405 private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f)
407 Eina.Log.Debug("function efl_file_mmap_set was called");
408 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
411 Eina.Error _ret_var = default(Eina.Error);
414 _ret_var = ((IFile)ws.Target).SetMmap(f);
418 Eina.Log.Warning($"Callback error: {e.ToString()}");
419 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
427 return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f);
431 private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate;
433 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
434 private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd);
436 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
437 public delegate System.String efl_file_get_api_delegate(System.IntPtr obj);
439 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");
441 private static System.String file_get(System.IntPtr obj, System.IntPtr pd)
443 Eina.Log.Debug("function efl_file_get was called");
444 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
447 System.String _ret_var = default(System.String);
450 _ret_var = ((IFile)ws.Target).GetFile();
454 Eina.Log.Warning($"Callback error: {e.ToString()}");
455 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
463 return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
467 private static efl_file_get_delegate efl_file_get_static_delegate;
470 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);
473 public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file);
475 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");
477 private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file)
479 Eina.Log.Debug("function efl_file_set was called");
480 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
483 Eina.Error _ret_var = default(Eina.Error);
486 _ret_var = ((IFile)ws.Target).SetFile(file);
490 Eina.Log.Warning($"Callback error: {e.ToString()}");
491 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
499 return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file);
503 private static efl_file_set_delegate efl_file_set_static_delegate;
505 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
506 private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd);
508 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
509 public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj);
511 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");
513 private static System.String key_get(System.IntPtr obj, System.IntPtr pd)
515 Eina.Log.Debug("function efl_file_key_get was called");
516 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
519 System.String _ret_var = default(System.String);
522 _ret_var = ((IFile)ws.Target).GetKey();
526 Eina.Log.Warning($"Callback error: {e.ToString()}");
527 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
535 return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
539 private static efl_file_key_get_delegate efl_file_key_get_static_delegate;
542 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);
545 public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key);
547 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");
549 private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key)
551 Eina.Log.Debug("function efl_file_key_set was called");
552 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
558 ((IFile)ws.Target).SetKey(key);
562 Eina.Log.Warning($"Callback error: {e.ToString()}");
563 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
570 efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key);
574 private static efl_file_key_set_delegate efl_file_key_set_static_delegate;
576 [return: MarshalAs(UnmanagedType.U1)]
577 private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd);
579 [return: MarshalAs(UnmanagedType.U1)]
580 public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj);
582 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");
584 private static bool loaded_get(System.IntPtr obj, System.IntPtr pd)
586 Eina.Log.Debug("function efl_file_loaded_get was called");
587 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
590 bool _ret_var = default(bool);
593 _ret_var = ((IFile)ws.Target).GetLoaded();
597 Eina.Log.Warning($"Callback error: {e.ToString()}");
598 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
606 return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
610 private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate;
613 private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd);
616 public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj);
618 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");
620 private static Eina.Error load(System.IntPtr obj, System.IntPtr pd)
622 Eina.Log.Debug("function efl_file_load was called");
623 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
626 Eina.Error _ret_var = default(Eina.Error);
629 _ret_var = ((IFile)ws.Target).Load();
633 Eina.Log.Warning($"Callback error: {e.ToString()}");
634 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
642 return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
646 private static efl_file_load_delegate efl_file_load_static_delegate;
649 private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd);
652 public delegate void efl_file_unload_api_delegate(System.IntPtr obj);
654 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");
656 private static void unload(System.IntPtr obj, System.IntPtr pd)
658 Eina.Log.Debug("function efl_file_unload was called");
659 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
665 ((IFile)ws.Target).Unload();
669 Eina.Log.Warning($"Callback error: {e.ToString()}");
670 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
677 efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
681 private static efl_file_unload_delegate efl_file_unload_static_delegate;
683 #pragma warning restore CA1707, CS1591, SA1300, SA1600