Struct

PurplePrefsUiOps

Description [src]

struct PurplePrefsUiOps {
  void (* add_none) (
    const char* name
  );
  void (* add_bool) (
    const char* name,
    gboolean value
  );
  void (* add_int) (
    const char* name,
    int value
  );
  void (* add_string) (
    const char* name,
    const char* value
  );
  void (* add_string_list) (
    const char* name,
    GList* value
  );
  void (* set_bool) (
    const char* name,
    gboolean value
  );
  void (* set_int) (
    const char* name,
    int value
  );
  void (* set_string) (
    const char* name,
    const char* value
  );
  void (* set_string_list) (
    const char* name,
    GList* value
  );
  gboolean (* get_bool) (
    const char* name
  );
  int (* get_int) (
    const char* name
  );
  const char* (* get_string) (
    const char* name
  );
  GList* (* get_string_list) (
    const char* name
  );
  PurplePrefType (* get_type) (
    const char* name
  );
  GList* (* get_children_names) (
    const char* name
  );
  gboolean (* exists) (
    const char* name
  );
  void (* remove) (
    const char* name
  );
  void (* rename) (
    const char* oldname,
    const char* newname
  );
  void (* rename_boolean_toggle) (
    const char* oldname,
    const char* newname
  );
  gboolean (* load) (
void
  );
  void (* save) (
void
  );
  void (* schedule_save) (
void
  );
  void* (* connect_callback) (
    const char* name,
    PurplePrefCallbackData* data
  );
  void (* disconnect_callback) (
    const char* name,
    void* ui_data
  );
  void (* _purple_reserved1) (
void
  );
  void (* _purple_reserved2) (
void
  );
  void (* _purple_reserved3) (
void
  );
  void (* _purple_reserved4) (
void
  );
}

Prefs UI operations. This allows overriding the prefs.xml storage with anything else.

Unless specified otherwise, each entry provides an implementation for the corresponding purple_prefs_* method, and disables the prefs.xml code for it. This means that to do anything useful, all the methods must be implemented.

Structure members
add_none No description available.
add_bool No description available.
add_int No description available.
add_string No description available.
add_string_list No description available.
set_bool No description available.
set_int No description available.
set_string No description available.
set_string_list No description available.
get_bool No description available.
get_int No description available.
get_string No description available.
get_string_list No description available.
get_type No description available.
get_children_names No description available.
exists No description available.
remove No description available.
rename No description available.
rename_boolean_toggle No description available.
load No description available.
save No description available.
schedule_save No description available.
connect_callback No description available.
disconnect_callback No description available.
_purple_reserved1 No description available.
_purple_reserved2 No description available.
_purple_reserved3 No description available.
_purple_reserved4 No description available.
Available since:2.11.0