ELM_CONFIG_VAL(D, T, spinner_min_max_filter_enable, T_UCHAR);
ELM_CONFIG_VAL(D, T, icon_theme, T_STRING);
ELM_CONFIG_VAL(D, T, entry_select_allow, T_UCHAR);
+ ELM_CONFIG_VAL(D, T, offline, T_UCHAR);
+ ELM_CONFIG_VAL(D, T, powersave, T_INT);
#undef T
#undef D
#undef T_INT
return _elm_config->web_backend;
}
+EAPI Eina_Bool
+elm_config_offline_get(void)
+{
+ if (!_elm_config) return EINA_FALSE;
+ return _elm_config->offline;
+}
+
+EAPI void
+elm_config_offline_set(Eina_Bool set)
+{
+ if (!_elm_config) return;
+ _elm_config->offline = !!set;
+}
+
+EAPI int
+elm_config_powersave_get(void)
+{
+ if (!_elm_config) return EINA_FALSE;
+ return _elm_config->powersave;
+}
+
+EAPI void
+elm_config_powersave_set(int set)
+{
+ if (!_elm_config) return;
+ _elm_config->powersave = set;
+}
+
void
_elm_config_profile_set(const char *profile)
{
CONFIG_SETB(atspi_mode);
CONFIG_SETD(transition_duration_factor);
CONFIG_SETS(web_backend);
+ CONFIG_SETB(offline);
+ CONFIG_SETI(powersave);
const size_t len = sizeof("audio_mute") - 1;
if (!strncmp(name, "audio_mute", len))
CONFIG_GETB(atspi_mode);
CONFIG_GETD(transition_duration_factor);
CONFIG_GETS(web_backend);
+ CONFIG_GETB(offline);
+ CONFIG_GETI(powersave);
const size_t len = sizeof("audio_mute") - 1;
if (!strncmp(name, "audio_mute", len))
*/
EAPI const char *elm_config_web_backend_get(void);
+/**
+ * Get whether the system is offline
+ *
+ * @return True only if the system config is set as offline
+ *
+ * @since 1.21
+ * @see elm_config_offline_set()
+ */
+EAPI Eina_Bool elm_config_offline_get(void);
+
+/**
+ * Set whether the system is offline
+ *
+ * @param set True only if the system is offline
+ *
+ * @since 1.21
+ * @see elm_config_offline_get()
+ */
+EAPI void elm_config_offline_set(Eina_Bool set);
+
+/**
+ * Get whether the system should be conserving power
+ *
+ * @return Values greater than 0 if power is being conserved; higher numbers indicate greater conservation
+ *
+ * @since 1.21
+ * @see elm_config_powersave_set()
+ */
+EAPI int elm_config_powersave_get(void);
+
+/**
+ * Set whether the system should be conserving power
+ *
+ * @param set Values greater than 0 if power is being conserved; higher numbers indicate greater conservation
+ *
+ * @since 1.21
+ * @see elm_config_powersave_set()
+ */
+EAPI void elm_config_powersave_set(int set);
+
/* new efl.config interface helpers in C */