[EflSharp] Update Circle and efl cs files (#916)
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_file.eo.cs
1 #pragma warning disable CS1591
2 using System;
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
5 using System.Linq;
6 using System.Threading;
7 using System.ComponentModel;
8 namespace Efl {
9
10 /// <summary>Efl file interface
11 /// (Since EFL 1.22)</summary>
12 [Efl.IFileConcrete.NativeMethods]
13 public interface IFile : 
14     Efl.Eo.IWrapper, IDisposable
15 {
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>
19 Eina.File GetMmap();
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"/>).
39 /// 
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>
52 bool GetLoaded();
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.
55 /// 
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>
59 Eina.Error Load();
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.
62 /// 
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>
65 void Unload();
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>
69     Eina.File Mmap {
70         get ;
71         set ;
72     }
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>
77     System.String File {
78         get ;
79         set ;
80     }
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"/>).
83     /// 
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>
87     System.String Key {
88         get ;
89         set ;
90     }
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>
94     bool Loaded {
95         get ;
96     }
97 }
98 /// <summary>Efl file interface
99 /// (Since EFL 1.22)</summary>
100 sealed public class IFileConcrete :
101     Efl.Eo.EoWrapper
102     , IFile
103     
104 {
105     ///<summary>Pointer to the native class description.</summary>
106     public override System.IntPtr NativeClass
107     {
108         get
109         {
110             if (((object)this).GetType() == typeof(IFileConcrete))
111             {
112                 return GetEflClassStatic();
113             }
114             else
115             {
116                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
117             }
118         }
119     }
120
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)
126     {
127     }
128
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();
135         return _ret_var;
136  }
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();
145                         return _ret_var;
146  }
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();
154         return _ret_var;
155  }
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();
164                         return _ret_var;
165  }
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"/>).
168     /// 
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();
175         return _ret_var;
176  }
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();
184                          }
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();
191         return _ret_var;
192  }
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.
195     /// 
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();
202         return _ret_var;
203  }
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.
206     /// 
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();
212          }
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); }
219     }
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); }
227     }
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"/>).
230     /// 
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); }
237     }
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>
241     public bool Loaded {
242         get { return GetLoaded(); }
243     }
244     private static IntPtr GetEflClassStatic()
245     {
246         return Efl.IFileConcrete.efl_file_mixin_get();
247     }
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
251     {
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)
256         {
257             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
258             var methods = Efl.Eo.Globals.GetUserMethods(type);
259
260             if (efl_file_mmap_get_static_delegate == null)
261             {
262                 efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get);
263             }
264
265             if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null)
266             {
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) });
268             }
269
270             if (efl_file_mmap_set_static_delegate == null)
271             {
272                 efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set);
273             }
274
275             if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null)
276             {
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) });
278             }
279
280             if (efl_file_get_static_delegate == null)
281             {
282                 efl_file_get_static_delegate = new efl_file_get_delegate(file_get);
283             }
284
285             if (methods.FirstOrDefault(m => m.Name == "GetFile") != null)
286             {
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) });
288             }
289
290             if (efl_file_set_static_delegate == null)
291             {
292                 efl_file_set_static_delegate = new efl_file_set_delegate(file_set);
293             }
294
295             if (methods.FirstOrDefault(m => m.Name == "SetFile") != null)
296             {
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) });
298             }
299
300             if (efl_file_key_get_static_delegate == null)
301             {
302                 efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get);
303             }
304
305             if (methods.FirstOrDefault(m => m.Name == "GetKey") != null)
306             {
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) });
308             }
309
310             if (efl_file_key_set_static_delegate == null)
311             {
312                 efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set);
313             }
314
315             if (methods.FirstOrDefault(m => m.Name == "SetKey") != null)
316             {
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) });
318             }
319
320             if (efl_file_loaded_get_static_delegate == null)
321             {
322                 efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get);
323             }
324
325             if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null)
326             {
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) });
328             }
329
330             if (efl_file_load_static_delegate == null)
331             {
332                 efl_file_load_static_delegate = new efl_file_load_delegate(load);
333             }
334
335             if (methods.FirstOrDefault(m => m.Name == "Load") != null)
336             {
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) });
338             }
339
340             if (efl_file_unload_static_delegate == null)
341             {
342                 efl_file_unload_static_delegate = new efl_file_unload_delegate(unload);
343             }
344
345             if (methods.FirstOrDefault(m => m.Name == "Unload") != null)
346             {
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) });
348             }
349
350             return descs;
351         }
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()
355         {
356             return Efl.IFileConcrete.efl_file_mixin_get();
357         }
358
359         #pragma warning disable CA1707, CS1591, SA1300, SA1600
360
361         
362         private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd);
363
364         
365         public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj);
366
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");
368
369         private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd)
370         {
371             Eina.Log.Debug("function efl_file_mmap_get was called");
372             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
373             if (ws != null)
374             {
375             Eina.File _ret_var = default(Eina.File);
376                 try
377                 {
378                     _ret_var = ((IFile)ws.Target).GetMmap();
379                 }
380                 catch (Exception e)
381                 {
382                     Eina.Log.Warning($"Callback error: {e.ToString()}");
383                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
384                 }
385
386         return _ret_var;
387
388             }
389             else
390             {
391                 return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
392             }
393         }
394
395         private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate;
396
397         
398         private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd,  Eina.File f);
399
400         
401         public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj,  Eina.File f);
402
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");
404
405         private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f)
406         {
407             Eina.Log.Debug("function efl_file_mmap_set was called");
408             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
409             if (ws != null)
410             {
411                                     Eina.Error _ret_var = default(Eina.Error);
412                 try
413                 {
414                     _ret_var = ((IFile)ws.Target).SetMmap(f);
415                 }
416                 catch (Exception e)
417                 {
418                     Eina.Log.Warning($"Callback error: {e.ToString()}");
419                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
420                 }
421
422                         return _ret_var;
423
424             }
425             else
426             {
427                 return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f);
428             }
429         }
430
431         private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate;
432
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);
435
436         [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
437         public delegate System.String efl_file_get_api_delegate(System.IntPtr obj);
438
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");
440
441         private static System.String file_get(System.IntPtr obj, System.IntPtr pd)
442         {
443             Eina.Log.Debug("function efl_file_get was called");
444             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
445             if (ws != null)
446             {
447             System.String _ret_var = default(System.String);
448                 try
449                 {
450                     _ret_var = ((IFile)ws.Target).GetFile();
451                 }
452                 catch (Exception e)
453                 {
454                     Eina.Log.Warning($"Callback error: {e.ToString()}");
455                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
456                 }
457
458         return _ret_var;
459
460             }
461             else
462             {
463                 return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
464             }
465         }
466
467         private static efl_file_get_delegate efl_file_get_static_delegate;
468
469         
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);
471
472         
473         public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file);
474
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");
476
477         private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file)
478         {
479             Eina.Log.Debug("function efl_file_set was called");
480             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
481             if (ws != null)
482             {
483                                     Eina.Error _ret_var = default(Eina.Error);
484                 try
485                 {
486                     _ret_var = ((IFile)ws.Target).SetFile(file);
487                 }
488                 catch (Exception e)
489                 {
490                     Eina.Log.Warning($"Callback error: {e.ToString()}");
491                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
492                 }
493
494                         return _ret_var;
495
496             }
497             else
498             {
499                 return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file);
500             }
501         }
502
503         private static efl_file_set_delegate efl_file_set_static_delegate;
504
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);
507
508         [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
509         public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj);
510
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");
512
513         private static System.String key_get(System.IntPtr obj, System.IntPtr pd)
514         {
515             Eina.Log.Debug("function efl_file_key_get was called");
516             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
517             if (ws != null)
518             {
519             System.String _ret_var = default(System.String);
520                 try
521                 {
522                     _ret_var = ((IFile)ws.Target).GetKey();
523                 }
524                 catch (Exception e)
525                 {
526                     Eina.Log.Warning($"Callback error: {e.ToString()}");
527                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
528                 }
529
530         return _ret_var;
531
532             }
533             else
534             {
535                 return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
536             }
537         }
538
539         private static efl_file_key_get_delegate efl_file_key_get_static_delegate;
540
541         
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);
543
544         
545         public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key);
546
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");
548
549         private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key)
550         {
551             Eina.Log.Debug("function efl_file_key_set was called");
552             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
553             if (ws != null)
554             {
555                                     
556                 try
557                 {
558                     ((IFile)ws.Target).SetKey(key);
559                 }
560                 catch (Exception e)
561                 {
562                     Eina.Log.Warning($"Callback error: {e.ToString()}");
563                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
564                 }
565
566                         
567             }
568             else
569             {
570                 efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key);
571             }
572         }
573
574         private static efl_file_key_set_delegate efl_file_key_set_static_delegate;
575
576         [return: MarshalAs(UnmanagedType.U1)]
577         private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd);
578
579         [return: MarshalAs(UnmanagedType.U1)]
580         public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj);
581
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");
583
584         private static bool loaded_get(System.IntPtr obj, System.IntPtr pd)
585         {
586             Eina.Log.Debug("function efl_file_loaded_get was called");
587             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
588             if (ws != null)
589             {
590             bool _ret_var = default(bool);
591                 try
592                 {
593                     _ret_var = ((IFile)ws.Target).GetLoaded();
594                 }
595                 catch (Exception e)
596                 {
597                     Eina.Log.Warning($"Callback error: {e.ToString()}");
598                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
599                 }
600
601         return _ret_var;
602
603             }
604             else
605             {
606                 return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
607             }
608         }
609
610         private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate;
611
612         
613         private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd);
614
615         
616         public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj);
617
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");
619
620         private static Eina.Error load(System.IntPtr obj, System.IntPtr pd)
621         {
622             Eina.Log.Debug("function efl_file_load was called");
623             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
624             if (ws != null)
625             {
626             Eina.Error _ret_var = default(Eina.Error);
627                 try
628                 {
629                     _ret_var = ((IFile)ws.Target).Load();
630                 }
631                 catch (Exception e)
632                 {
633                     Eina.Log.Warning($"Callback error: {e.ToString()}");
634                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
635                 }
636
637         return _ret_var;
638
639             }
640             else
641             {
642                 return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
643             }
644         }
645
646         private static efl_file_load_delegate efl_file_load_static_delegate;
647
648         
649         private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd);
650
651         
652         public delegate void efl_file_unload_api_delegate(System.IntPtr obj);
653
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");
655
656         private static void unload(System.IntPtr obj, System.IntPtr pd)
657         {
658             Eina.Log.Debug("function efl_file_unload was called");
659             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
660             if (ws != null)
661             {
662             
663                 try
664                 {
665                     ((IFile)ws.Target).Unload();
666                 }
667                 catch (Exception e)
668                 {
669                     Eina.Log.Warning($"Callback error: {e.ToString()}");
670                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
671                 }
672
673         
674             }
675             else
676             {
677                 efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
678             }
679         }
680
681         private static efl_file_unload_delegate efl_file_unload_static_delegate;
682
683         #pragma warning restore CA1707, CS1591, SA1300, SA1600
684
685 }
686 }
687 }
688