Data Fields
_PurpleAccountPrefsUiOps Struct Reference

Account prefs UI operations, to allow the UI to catch account preference changes. More...

#include <account.h>

Collaboration diagram for _PurpleAccountPrefsUiOps:
Collaboration graph

Data Fields

void(* set_int )(PurpleAccount *account, const char *name, int value)
 Notifies the UI that an integer account setting was set.
 
void(* set_string )(PurpleAccount *account, const char *name, const char *value)
 Notifies the UI that a string account setting was set.
 
void(* set_bool )(PurpleAccount *account, const char *name, gboolean value)
 Notifies the UI that a boolean account setting was set.
 
void(* load )(void)
 If this is set, accounts.xml loading will be disabled and this function will be called instead.
 
void(* save )(void)
 If this is set, accounts.xml saving will be disabled and this function will be called instead.
 
void(* schedule_save )(void)
 If this is set, the UI will handle scheduling the timer to call the save function, overriding the default timeout of 5 seconds.
 
void(* _purple_reserved1 )(void)
 
void(* _purple_reserved2 )(void)
 
void(* _purple_reserved3 )(void)
 
void(* _purple_reserved4 )(void)
 

Detailed Description

Account prefs UI operations, to allow the UI to catch account preference changes.

Unlike the PurplePrefsUiOps API, these are always stored internally in a hash table. If the UI wants to handle accounts settings, it must set them to the account on load and handle changes with set_ methods. Implementing load/save/schedule_save disables the built-in accounts.xml code.

Since
2.11.0

Definition at line 135 of file account.h.


The documentation for this struct was generated from the following file: