diff options
author | Not Zed <NotZed@Ximian.com> | 2003-02-24 10:51:01 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2003-02-24 10:51:01 +0800 |
commit | 9491a06552c8c095132750aa505573d1315ca73f (patch) | |
tree | 966873787945d7ed4040b0df5afe57a9698102d5 /e-util/e-account-list.h | |
parent | 87f2abd1f0327a8fbd459ae90fbc6b50ab83a625 (diff) | |
download | gsoc2013-evolution-9491a06552c8c095132750aa505573d1315ca73f.tar.gz gsoc2013-evolution-9491a06552c8c095132750aa505573d1315ca73f.tar.zst gsoc2013-evolution-9491a06552c8c095132750aa505573d1315ca73f.zip |
helper to get the dfault account. (e_account_list_set_default): helper to
2003-02-20 Not Zed <NotZed@Ximian.com>
* e-account-list.c (e_account_list_get_default): helper to get the
dfault account.
(e_account_list_set_default): helper to set the default account.
(e_account_list_find): Helper to find accounts based on differnet
key types.
(e_account_list_add): helper to add account + emit added event.
(e_account_list_change): helper to emit changed event.
(e_account_list_remove): herlper to remove account + emit changed event.
svn path=/trunk/; revision=20015
Diffstat (limited to 'e-util/e-account-list.h')
-rw-r--r-- | e-util/e-account-list.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/e-util/e-account-list.h b/e-util/e-account-list.h index 6a8a1c7505..2ad0896307 100644 --- a/e-util/e-account-list.h +++ b/e-util/e-account-list.h @@ -32,6 +32,13 @@ typedef struct EAccountListPrivate EAccountListPrivate; +/* search options for the find command */ +typedef enum _e_account_find_t { + E_ACCOUNT_FIND_NAME, + E_ACCOUNT_FIND_ID_NAME, + E_ACCOUNT_FIND_ID_ADDRESS, +} e_account_find_t; + typedef struct { EList parent_object; @@ -48,12 +55,20 @@ typedef struct { } EAccountListClass; -GType e_account_list_get_type (void); +GType e_account_list_get_type (void); + +EAccountList *e_account_list_new (GConfClient *gconf); +void e_account_list_construct (EAccountList *account_list, + GConfClient *gconf); + +void e_account_list_save (EAccountList *account_list); -EAccountList *e_account_list_new (GConfClient *gconf); -void e_account_list_construct (EAccountList *account_list, - GConfClient *gconf); +void e_account_list_add (EAccountList *, EAccount *); +void e_account_list_change (EAccountList *, EAccount *); +void e_account_list_remove (EAccountList *, EAccount *); -void e_account_list_save (EAccountList *account_list); +const EAccount *e_account_list_get_default(EAccountList *); +void e_account_list_set_default(EAccountList *, EAccount *); +const EAccount *e_account_list_find (EAccountList *, e_account_find_t type, const char *key); #endif /* __E_ACCOUNT_LIST__ */ |