X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-account-mgr-priv.h;h=ffb33a7e3a75c00d86ede0a8ce6c7fe202bb126d;hp=8dda66a667af2d79dd87e20309e5fbf1ea8519de;hb=d6c0ce729e5b3ac9eccf3ee838fe32aa3e982497;hpb=a2f971fd9378912d99ca8ce97c514bba81a3c4e2 diff --git a/src/modest-account-mgr-priv.h b/src/modest-account-mgr-priv.h index 8dda66a..ffb33a7 100644 --- a/src/modest-account-mgr-priv.h +++ b/src/modest-account-mgr-priv.h @@ -51,21 +51,24 @@ 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; GHashTable *server_account_key_hash; GHashTable *account_key_hash; + + /* cache whether we have accounts; if this is TRUE, we have accounts, if + * it's FALSE we _don't know_ if we have account and need to check + */ + gboolean has_accounts; + gboolean has_enabled_accounts; }; - #define MODEST_ACCOUNT_MGR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), \ - MODEST_TYPE_ACCOUNT_MGR, \ + MODEST_TYPE_ACCOUNT_MGR, \ ModestAccountMgrPrivate)) - + /** * modest_account_mgr_set_bool: * @self: a ModestAccountMgr instance