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>This class is a singleton representing the global configuration for the running application.</summary>
11 [Efl.ConfigGlobal.NativeMethods]
12 public class ConfigGlobal : Efl.Object, Efl.Eo.IWrapper,Efl.IConfig
14 ///<summary>Pointer to the native class description.</summary>
15 public override System.IntPtr NativeClass
19 if (((object)this).GetType() == typeof(ConfigGlobal))
21 return GetEflClassStatic();
25 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
30 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
31 efl_config_global_class_get();
32 /// <summary>Initializes a new instance of the <see cref="ConfigGlobal"/> class.</summary>
33 /// <param name="parent">Parent instance.</param>
34 public ConfigGlobal(Efl.Object parent= null
35 ) : base(efl_config_global_class_get(), typeof(ConfigGlobal), parent)
37 FinishInstantiation();
40 /// <summary>Initializes a new instance of the <see cref="ConfigGlobal"/> class.
41 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
42 /// <param name="raw">The native pointer to be wrapped.</param>
43 protected ConfigGlobal(System.IntPtr raw) : base(raw)
47 /// <summary>Initializes a new instance of the <see cref="ConfigGlobal"/> class.
48 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
49 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
50 /// <param name="managedType">The managed type of the public constructor that originated this call.</param>
51 /// <param name="parent">The Efl.Object parent of this instance.</param>
52 protected ConfigGlobal(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
56 /// <summary>Verifies if the given object is equal to this one.</summary>
57 /// <param name="instance">The object to compare to.</param>
58 /// <returns>True if both objects point to the same native object.</returns>
59 public override bool Equals(object instance)
61 var other = instance as Efl.Object;
66 return this.NativeHandle == other.NativeHandle;
69 /// <summary>Gets the hash code for this object based on the native pointer it points to.</summary>
70 /// <returns>The value of the pointer, to be used as the hash code of this object.</returns>
71 public override int GetHashCode()
73 return this.NativeHandle.ToInt32();
76 /// <summary>Turns the native pointer into a string representation.</summary>
77 /// <returns>A string with the type and the native pointer for this object.</returns>
78 public override String ToString()
80 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
83 /// <summary>The profile for the running application.
84 /// Profiles are pre-set options that affect the whole look-and-feel of Elementary-based applications. There are, for example, profiles aimed at desktop computer applications and others aimed at mobile, touchscreen-based ones. You most probably don't want to use the functions in this group unless you're writing an elementary configuration manager.
86 /// This gets or sets the global profile that is applied to all Elementary applications.</summary>
87 /// <returns>Profile name</returns>
88 virtual public System.String GetProfile() {
89 var _ret_var = Efl.ConfigGlobal.NativeMethods.efl_config_profile_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
90 Eina.Error.RaiseIfUnhandledException();
93 /// <summary>The profile for the running application.
94 /// Profiles are pre-set options that affect the whole look-and-feel of Elementary-based applications. There are, for example, profiles aimed at desktop computer applications and others aimed at mobile, touchscreen-based ones. You most probably don't want to use the functions in this group unless you're writing an elementary configuration manager.
96 /// This gets or sets the global profile that is applied to all Elementary applications.</summary>
97 /// <param name="profile">Profile name</param>
98 virtual public void SetProfile(System.String profile) {
99 Efl.ConfigGlobal.NativeMethods.efl_config_profile_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),profile);
100 Eina.Error.RaiseIfUnhandledException();
102 /// <summary>Saves Elementary configuration to disk.
103 /// This function will take effect (does I/O) immediately. Use it when you want to save all configuration changes at once. The current configuration set will get saved onto the current profile configuration file.
105 /// If <c>profile</c> is <c>null</c>, this will flush all settings to all applications running on the same profile.
107 /// If <c>profile</c> is not <c>null</c>, this will take the current in-memory config and write it out to the named <c>profile</c>. This will not change profile for the application or make other processes switch profile.</summary>
108 /// <param name="profile">The profile name.</param>
109 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
110 virtual public bool Save(System.String profile) {
111 var _ret_var = Efl.ConfigGlobal.NativeMethods.efl_config_save_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),profile);
112 Eina.Error.RaiseIfUnhandledException();
115 /// <summary>Returns the list of available profiles.</summary>
116 /// <param name="hidden">If <c>true</c>, gets the full list of profiles, including those stored in hidden files.</param>
117 /// <returns>Iterator to profiles</returns>
118 virtual public Eina.Iterator<System.String> ProfileIterate(bool hidden) {
119 var _ret_var = Efl.ConfigGlobal.NativeMethods.efl_config_profile_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hidden);
120 Eina.Error.RaiseIfUnhandledException();
121 return new Eina.Iterator<System.String>(_ret_var, true, false);
123 /// <summary>Returns whether a profile exists or not.</summary>
124 /// <param name="profile">Profile name</param>
125 /// <returns><c>true</c> if profile exists, <c>false</c> otherwise</returns>
126 virtual public bool ProfileExists(System.String profile) {
127 var _ret_var = Efl.ConfigGlobal.NativeMethods.efl_config_profile_exists_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),profile);
128 Eina.Error.RaiseIfUnhandledException();
131 /// <summary>Returns the directory where a profile is stored.</summary>
132 /// <param name="profile">Profile name</param>
133 /// <param name="is_user"><c>true</c> to lookup for a user profile or <c>false</c> for a system one.</param>
134 /// <returns>Directory of the profile, free after use.</returns>
135 virtual public System.String GetProfileDir(System.String profile, bool is_user) {
136 var _ret_var = Efl.ConfigGlobal.NativeMethods.efl_config_profile_dir_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),profile, is_user);
137 Eina.Error.RaiseIfUnhandledException();
140 /// <summary>Add a new profile of the given name to be derived from the current profile.
141 /// This creates a new profile of name <c>profile</c> that will be derived from the currently used profile using the modification commands encoded in the <c>options</c> string.
143 /// At this point it is not expected that anyone would generally use this API except if you are a desktop environment and so the user base of this API will be enlightenment itself.</summary>
144 /// <param name="profile">The new profile's name.</param>
145 /// <param name="options">Derive options detailing how to modify.</param>
146 virtual public void AddProfileDerived(System.String profile, System.String options) {
147 Efl.ConfigGlobal.NativeMethods.efl_config_profile_derived_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),profile, options);
148 Eina.Error.RaiseIfUnhandledException();
150 /// <summary>Deletes a profile that is derived from the current one.
151 /// This deletes a derived profile added by <see cref="Efl.ConfigGlobal.AddProfileDerived"/>. This will delete the profile of the given name <c>profile</c> that is derived from the current profile.
153 /// At this point it is not expected that anyone would generally use this API except if you are a desktop environment and so the user base of this API will be enlightenment itself.</summary>
154 /// <param name="profile">The name of the profile that is to be deleted.</param>
155 virtual public void DelProfileDerived(System.String profile) {
156 Efl.ConfigGlobal.NativeMethods.efl_config_profile_derived_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),profile);
157 Eina.Error.RaiseIfUnhandledException();
159 /// <summary>A generic configuration value, referred to by name.</summary>
160 /// <param name="name">Configuration option name.</param>
161 /// <returns>The value. It will be empty if it doesn't exist. The caller must free it after use (using <c>eina_value_free</c>() in C).</returns>
162 virtual public Eina.Value GetConfig(System.String name) {
163 var _ret_var = Efl.IConfigConcrete.NativeMethods.efl_config_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name);
164 Eina.Error.RaiseIfUnhandledException();
167 /// <summary>A generic configuration value, referred to by name.</summary>
168 /// <param name="name">Configuration option name.</param>
169 /// <param name="value">Configuration option value. May be <c>null</c> if not found.</param>
170 /// <returns><c>false</c> in case of error: value type was invalid, the config can't be changed, config does not exist...</returns>
171 virtual public bool SetConfig(System.String name, Eina.Value value) {
172 var _ret_var = Efl.IConfigConcrete.NativeMethods.efl_config_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name, value);
173 Eina.Error.RaiseIfUnhandledException();
176 /// <summary>The profile for the running application.
177 /// Profiles are pre-set options that affect the whole look-and-feel of Elementary-based applications. There are, for example, profiles aimed at desktop computer applications and others aimed at mobile, touchscreen-based ones. You most probably don't want to use the functions in this group unless you're writing an elementary configuration manager.
179 /// This gets or sets the global profile that is applied to all Elementary applications.</summary>
180 /// <value>Profile name</value>
181 public System.String Profile {
182 get { return GetProfile(); }
183 set { SetProfile(value); }
185 private static IntPtr GetEflClassStatic()
187 return Efl.ConfigGlobal.efl_config_global_class_get();
189 /// <summary>Wrapper for native methods and virtual method delegates.
190 /// For internal use by generated code only.</summary>
191 public new class NativeMethods : Efl.Object.NativeMethods
193 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary);
194 /// <summary>Gets the list of Eo operations to override.</summary>
195 /// <returns>The list of Eo operations to be overload.</returns>
196 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
198 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
199 var methods = Efl.Eo.Globals.GetUserMethods(type);
201 if (efl_config_profile_get_static_delegate == null)
203 efl_config_profile_get_static_delegate = new efl_config_profile_get_delegate(profile_get);
206 if (methods.FirstOrDefault(m => m.Name == "GetProfile") != null)
208 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_profile_get"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_get_static_delegate) });
211 if (efl_config_profile_set_static_delegate == null)
213 efl_config_profile_set_static_delegate = new efl_config_profile_set_delegate(profile_set);
216 if (methods.FirstOrDefault(m => m.Name == "SetProfile") != null)
218 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_profile_set"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_set_static_delegate) });
221 if (efl_config_save_static_delegate == null)
223 efl_config_save_static_delegate = new efl_config_save_delegate(save);
226 if (methods.FirstOrDefault(m => m.Name == "Save") != null)
228 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_save"), func = Marshal.GetFunctionPointerForDelegate(efl_config_save_static_delegate) });
231 if (efl_config_profile_iterate_static_delegate == null)
233 efl_config_profile_iterate_static_delegate = new efl_config_profile_iterate_delegate(profile_iterate);
236 if (methods.FirstOrDefault(m => m.Name == "ProfileIterate") != null)
238 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_profile_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_iterate_static_delegate) });
241 if (efl_config_profile_exists_static_delegate == null)
243 efl_config_profile_exists_static_delegate = new efl_config_profile_exists_delegate(profile_exists);
246 if (methods.FirstOrDefault(m => m.Name == "ProfileExists") != null)
248 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_profile_exists"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_exists_static_delegate) });
251 if (efl_config_profile_dir_get_static_delegate == null)
253 efl_config_profile_dir_get_static_delegate = new efl_config_profile_dir_get_delegate(profile_dir_get);
256 if (methods.FirstOrDefault(m => m.Name == "GetProfileDir") != null)
258 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_profile_dir_get"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_dir_get_static_delegate) });
261 if (efl_config_profile_derived_add_static_delegate == null)
263 efl_config_profile_derived_add_static_delegate = new efl_config_profile_derived_add_delegate(profile_derived_add);
266 if (methods.FirstOrDefault(m => m.Name == "AddProfileDerived") != null)
268 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_profile_derived_add"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_derived_add_static_delegate) });
271 if (efl_config_profile_derived_del_static_delegate == null)
273 efl_config_profile_derived_del_static_delegate = new efl_config_profile_derived_del_delegate(profile_derived_del);
276 if (methods.FirstOrDefault(m => m.Name == "DelProfileDerived") != null)
278 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_profile_derived_del"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_derived_del_static_delegate) });
281 if (efl_config_get_static_delegate == null)
283 efl_config_get_static_delegate = new efl_config_get_delegate(config_get);
286 if (methods.FirstOrDefault(m => m.Name == "GetConfig") != null)
288 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_get"), func = Marshal.GetFunctionPointerForDelegate(efl_config_get_static_delegate) });
291 if (efl_config_set_static_delegate == null)
293 efl_config_set_static_delegate = new efl_config_set_delegate(config_set);
296 if (methods.FirstOrDefault(m => m.Name == "SetConfig") != null)
298 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_set"), func = Marshal.GetFunctionPointerForDelegate(efl_config_set_static_delegate) });
301 descs.AddRange(base.GetEoOps(type));
304 /// <summary>Returns the Eo class for the native methods of this class.</summary>
305 /// <returns>The native class pointer.</returns>
306 public override IntPtr GetEflClass()
308 return Efl.ConfigGlobal.efl_config_global_class_get();
311 #pragma warning disable CA1707, SA1300, SA1600
313 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
314 private delegate System.String efl_config_profile_get_delegate(System.IntPtr obj, System.IntPtr pd);
316 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
317 public delegate System.String efl_config_profile_get_api_delegate(System.IntPtr obj);
319 public static Efl.Eo.FunctionWrapper<efl_config_profile_get_api_delegate> efl_config_profile_get_ptr = new Efl.Eo.FunctionWrapper<efl_config_profile_get_api_delegate>(Module, "efl_config_profile_get");
321 private static System.String profile_get(System.IntPtr obj, System.IntPtr pd)
323 Eina.Log.Debug("function efl_config_profile_get was called");
324 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
327 System.String _ret_var = default(System.String);
330 _ret_var = ((ConfigGlobal)wrapper).GetProfile();
334 Eina.Log.Warning($"Callback error: {e.ToString()}");
335 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
343 return efl_config_profile_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
347 private static efl_config_profile_get_delegate efl_config_profile_get_static_delegate;
350 private delegate void efl_config_profile_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile);
353 public delegate void efl_config_profile_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile);
355 public static Efl.Eo.FunctionWrapper<efl_config_profile_set_api_delegate> efl_config_profile_set_ptr = new Efl.Eo.FunctionWrapper<efl_config_profile_set_api_delegate>(Module, "efl_config_profile_set");
357 private static void profile_set(System.IntPtr obj, System.IntPtr pd, System.String profile)
359 Eina.Log.Debug("function efl_config_profile_set was called");
360 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
366 ((ConfigGlobal)wrapper).SetProfile(profile);
370 Eina.Log.Warning($"Callback error: {e.ToString()}");
371 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
378 efl_config_profile_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), profile);
382 private static efl_config_profile_set_delegate efl_config_profile_set_static_delegate;
384 [return: MarshalAs(UnmanagedType.U1)]
385 private delegate bool efl_config_save_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile);
387 [return: MarshalAs(UnmanagedType.U1)]
388 public delegate bool efl_config_save_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile);
390 public static Efl.Eo.FunctionWrapper<efl_config_save_api_delegate> efl_config_save_ptr = new Efl.Eo.FunctionWrapper<efl_config_save_api_delegate>(Module, "efl_config_save");
392 private static bool save(System.IntPtr obj, System.IntPtr pd, System.String profile)
394 Eina.Log.Debug("function efl_config_save was called");
395 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
398 bool _ret_var = default(bool);
401 _ret_var = ((ConfigGlobal)wrapper).Save(profile);
405 Eina.Log.Warning($"Callback error: {e.ToString()}");
406 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
414 return efl_config_save_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), profile);
418 private static efl_config_save_delegate efl_config_save_static_delegate;
421 private delegate System.IntPtr efl_config_profile_iterate_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hidden);
424 public delegate System.IntPtr efl_config_profile_iterate_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hidden);
426 public static Efl.Eo.FunctionWrapper<efl_config_profile_iterate_api_delegate> efl_config_profile_iterate_ptr = new Efl.Eo.FunctionWrapper<efl_config_profile_iterate_api_delegate>(Module, "efl_config_profile_iterate");
428 private static System.IntPtr profile_iterate(System.IntPtr obj, System.IntPtr pd, bool hidden)
430 Eina.Log.Debug("function efl_config_profile_iterate was called");
431 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
434 Eina.Iterator<System.String> _ret_var = default(Eina.Iterator<System.String>);
437 _ret_var = ((ConfigGlobal)wrapper).ProfileIterate(hidden);
441 Eina.Log.Warning($"Callback error: {e.ToString()}");
442 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
445 _ret_var.Own = false; return _ret_var.Handle;
450 return efl_config_profile_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hidden);
454 private static efl_config_profile_iterate_delegate efl_config_profile_iterate_static_delegate;
456 [return: MarshalAs(UnmanagedType.U1)]
457 private delegate bool efl_config_profile_exists_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile);
459 [return: MarshalAs(UnmanagedType.U1)]
460 public delegate bool efl_config_profile_exists_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile);
462 public static Efl.Eo.FunctionWrapper<efl_config_profile_exists_api_delegate> efl_config_profile_exists_ptr = new Efl.Eo.FunctionWrapper<efl_config_profile_exists_api_delegate>(Module, "efl_config_profile_exists");
464 private static bool profile_exists(System.IntPtr obj, System.IntPtr pd, System.String profile)
466 Eina.Log.Debug("function efl_config_profile_exists was called");
467 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
470 bool _ret_var = default(bool);
473 _ret_var = ((ConfigGlobal)wrapper).ProfileExists(profile);
477 Eina.Log.Warning($"Callback error: {e.ToString()}");
478 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
486 return efl_config_profile_exists_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), profile);
490 private static efl_config_profile_exists_delegate efl_config_profile_exists_static_delegate;
492 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringsharePassOwnershipMarshaler))]
493 private delegate System.String efl_config_profile_dir_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile, [MarshalAs(UnmanagedType.U1)] bool is_user);
495 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringsharePassOwnershipMarshaler))]
496 public delegate System.String efl_config_profile_dir_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile, [MarshalAs(UnmanagedType.U1)] bool is_user);
498 public static Efl.Eo.FunctionWrapper<efl_config_profile_dir_get_api_delegate> efl_config_profile_dir_get_ptr = new Efl.Eo.FunctionWrapper<efl_config_profile_dir_get_api_delegate>(Module, "efl_config_profile_dir_get");
500 private static System.String profile_dir_get(System.IntPtr obj, System.IntPtr pd, System.String profile, bool is_user)
502 Eina.Log.Debug("function efl_config_profile_dir_get was called");
503 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
506 System.String _ret_var = default(System.String);
509 _ret_var = ((ConfigGlobal)wrapper).GetProfileDir(profile, is_user);
513 Eina.Log.Warning($"Callback error: {e.ToString()}");
514 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
522 return efl_config_profile_dir_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), profile, is_user);
526 private static efl_config_profile_dir_get_delegate efl_config_profile_dir_get_static_delegate;
529 private delegate void efl_config_profile_derived_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String options);
532 public delegate void efl_config_profile_derived_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String options);
534 public static Efl.Eo.FunctionWrapper<efl_config_profile_derived_add_api_delegate> efl_config_profile_derived_add_ptr = new Efl.Eo.FunctionWrapper<efl_config_profile_derived_add_api_delegate>(Module, "efl_config_profile_derived_add");
536 private static void profile_derived_add(System.IntPtr obj, System.IntPtr pd, System.String profile, System.String options)
538 Eina.Log.Debug("function efl_config_profile_derived_add was called");
539 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
545 ((ConfigGlobal)wrapper).AddProfileDerived(profile, options);
549 Eina.Log.Warning($"Callback error: {e.ToString()}");
550 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
557 efl_config_profile_derived_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), profile, options);
561 private static efl_config_profile_derived_add_delegate efl_config_profile_derived_add_static_delegate;
564 private delegate void efl_config_profile_derived_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile);
567 public delegate void efl_config_profile_derived_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile);
569 public static Efl.Eo.FunctionWrapper<efl_config_profile_derived_del_api_delegate> efl_config_profile_derived_del_ptr = new Efl.Eo.FunctionWrapper<efl_config_profile_derived_del_api_delegate>(Module, "efl_config_profile_derived_del");
571 private static void profile_derived_del(System.IntPtr obj, System.IntPtr pd, System.String profile)
573 Eina.Log.Debug("function efl_config_profile_derived_del was called");
574 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
580 ((ConfigGlobal)wrapper).DelProfileDerived(profile);
584 Eina.Log.Warning($"Callback error: {e.ToString()}");
585 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
592 efl_config_profile_derived_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), profile);
596 private static efl_config_profile_derived_del_delegate efl_config_profile_derived_del_static_delegate;
598 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshalerOwn))]
599 private delegate Eina.Value efl_config_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name);
601 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshalerOwn))]
602 public delegate Eina.Value efl_config_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name);
604 public static Efl.Eo.FunctionWrapper<efl_config_get_api_delegate> efl_config_get_ptr = new Efl.Eo.FunctionWrapper<efl_config_get_api_delegate>(Module, "efl_config_get");
606 private static Eina.Value config_get(System.IntPtr obj, System.IntPtr pd, System.String name)
608 Eina.Log.Debug("function efl_config_get was called");
609 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
612 Eina.Value _ret_var = default(Eina.Value);
615 _ret_var = ((ConfigGlobal)wrapper).GetConfig(name);
619 Eina.Log.Warning($"Callback error: {e.ToString()}");
620 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
628 return efl_config_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name);
632 private static efl_config_get_delegate efl_config_get_static_delegate;
634 [return: MarshalAs(UnmanagedType.U1)]
635 private delegate bool efl_config_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value);
637 [return: MarshalAs(UnmanagedType.U1)]
638 public delegate bool efl_config_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value);
640 public static Efl.Eo.FunctionWrapper<efl_config_set_api_delegate> efl_config_set_ptr = new Efl.Eo.FunctionWrapper<efl_config_set_api_delegate>(Module, "efl_config_set");
642 private static bool config_set(System.IntPtr obj, System.IntPtr pd, System.String name, Eina.Value value)
644 Eina.Log.Debug("function efl_config_set was called");
645 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
648 bool _ret_var = default(bool);
651 _ret_var = ((ConfigGlobal)wrapper).SetConfig(name, value);
655 Eina.Log.Warning($"Callback error: {e.ToString()}");
656 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
664 return efl_config_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, value);
668 private static efl_config_set_delegate efl_config_set_static_delegate;
670 #pragma warning restore CA1707, SA1300, SA1600