X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-account-mgr-priv.h;h=18a298183830c8abfd32b75b1f8933bc8f4e2f10;hb=9a1ac69017248d65568c6e7df3a22431d09b7639;hp=aadc41eab6049d5d51a9d09b0d145b3a9718c959;hpb=5024de84b7959b0b3373176d8c1f91a73427ff88;p=modest diff --git a/src/modest-account-mgr-priv.h b/src/modest-account-mgr-priv.h index aadc41e..18a2981 100644 --- a/src/modest-account-mgr-priv.h +++ b/src/modest-account-mgr-priv.h @@ -31,6 +31,7 @@ #define __MODEST_ACCOUNT_MGR_PRIV_H__ #include +#include /* * private functions, only for use in modest-account-mgr and @@ -44,5 +45,24 @@ gchar* _modest_account_mgr_account_from_key (const gchar *key, gboolean *is_acco gchar * _modest_account_mgr_get_account_keyname (const gchar *account_name, const gchar * name, gboolean server_account); +/* below is especially very _private_ stuff */ +typedef struct _ModestAccountMgrPrivate ModestAccountMgrPrivate; +struct _ModestAccountMgrPrivate { + ModestConf *modest_conf; + + /* We store these as they change, and send notifications every X seconds: */ + gulong key_changed_handler_uid; + GSList* busy_accounts; + + GSList* change_queue; /* list with all accounts that are changed */ + guint timeout; + + GHashTable *notification_id_accounts; +}; + +#define MODEST_ACCOUNT_MGR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), \ + MODEST_TYPE_ACCOUNT_MGR, \ + ModestAccountMgrPrivate)) + G_END_DECLS #endif /* __MODEST_ACCOUNT_MGR_PRIV_H__ */