pidgin 2.14.14dev
_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. More...
 
void(* set_string )(PurpleAccount *account, const char *name, const char *value)
 Notifies the UI that a string account setting was set. More...
 
void(* set_bool )(PurpleAccount *account, const char *name, gboolean value)
 Notifies the UI that a boolean account setting was set. More...
 
void(* load )(void)
 If this is set, accounts.xml loading will be disabled and this function will be called instead. More...
 
void(* save )(void)
 If this is set, accounts.xml saving will be disabled and this function will be called instead. More...
 
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. More...
 
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.

Field Documentation

◆ _purple_reserved1

void(* _PurpleAccountPrefsUiOps::_purple_reserved1) (void)

Definition at line 161 of file account.h.

◆ _purple_reserved2

void(* _PurpleAccountPrefsUiOps::_purple_reserved2) (void)

Definition at line 162 of file account.h.

◆ _purple_reserved3

void(* _PurpleAccountPrefsUiOps::_purple_reserved3) (void)

Definition at line 163 of file account.h.

◆ _purple_reserved4

void(* _PurpleAccountPrefsUiOps::_purple_reserved4) (void)

Definition at line 164 of file account.h.

◆ load

void(* _PurpleAccountPrefsUiOps::load) (void)

If this is set, accounts.xml loading will be disabled and this function will be called instead.

Definition at line 149 of file account.h.

◆ save

void(* _PurpleAccountPrefsUiOps::save) (void)

If this is set, accounts.xml saving will be disabled and this function will be called instead.

Definition at line 154 of file account.h.

◆ schedule_save

void(* _PurpleAccountPrefsUiOps::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.

Definition at line 159 of file account.h.

◆ set_bool

void(* _PurpleAccountPrefsUiOps::set_bool) (PurpleAccount *account, const char *name, gboolean value)

Notifies the UI that a boolean account setting was set.

Definition at line 144 of file account.h.

◆ set_int

void(* _PurpleAccountPrefsUiOps::set_int) (PurpleAccount *account, const char *name, int value)

Notifies the UI that an integer account setting was set.

Definition at line 138 of file account.h.

◆ set_string

void(* _PurpleAccountPrefsUiOps::set_string) (PurpleAccount *account, const char *name, const char *value)

Notifies the UI that a string account setting was set.

Definition at line 141 of file account.h.


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