diff options
author | Dan Winship <danw@src.gnome.org> | 2003-01-17 03:38:44 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2003-01-17 03:38:44 +0800 |
commit | 2596671b8712915820d2590c86a429257ee2d8f7 (patch) | |
tree | 0fdcbb0484eca5ad23f4d52c00dcf1a445e362e1 /e-util/e-account.h | |
parent | 96b653ff426ddf7c683db4f15a7cee062a2f33c7 (diff) | |
download | gsoc2013-evolution-2596671b8712915820d2590c86a429257ee2d8f7.tar.gz gsoc2013-evolution-2596671b8712915820d2590c86a429257ee2d8f7.tar.zst gsoc2013-evolution-2596671b8712915820d2590c86a429257ee2d8f7.zip |
New class, based on MailConfigAccount, for describing an evolution (mail)
* e-account.c: New class, based on MailConfigAccount, for
describing an evolution (mail) account.
* e-account-list.c: New class for tracking the list of configured
accounts. (Also uses some code from mail-config.)
* e-list.c (e_list_construct, e_list_remove): New
svn path=/trunk/; revision=19495
Diffstat (limited to 'e-util/e-account.h')
-rw-r--r-- | e-util/e-account.h | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/e-util/e-account.h b/e-util/e-account.h new file mode 100644 index 0000000000..f20588a0ea --- /dev/null +++ b/e-util/e-account.h @@ -0,0 +1,102 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * Copyright (C) 2003 Ximian, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of version 2 of the GNU General Public + * License as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __E_ACCOUNT__ +#define __E_ACCOUNT__ + +#include <glib-object.h> + +#define E_TYPE_ACCOUNT (e_account_get_type ()) +#define E_ACCOUNT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_ACCOUNT, EAccount)) +#define E_ACCOUNT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), E_TYPE_ACCOUNT, EAccountClass)) +#define E_IS_ACCOUNT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_ACCOUNT)) +#define E_IS_ACCOUNT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), E_TYPE_ACCOUNT)) + +typedef struct { + char *name; + char *address; + char *reply_to; + char *organization; + + int def_signature; + gboolean auto_signature; +} EAccountIdentity; + +typedef struct { + char *url; + gboolean keep_on_server; + gboolean auto_check; + int auto_check_time; + gboolean save_passwd; +} EAccountService; + + +typedef struct { + GObject parent_object; + + char *name; + char *uid; + + gboolean enabled; + + EAccountIdentity *id; + EAccountService *source; + EAccountService *transport; + + char *drafts_folder_uri, *sent_folder_uri; + + gboolean always_cc; + char *cc_addrs; + gboolean always_bcc; + char *bcc_addrs; + + char *pgp_key; + gboolean pgp_encrypt_to_self; + gboolean pgp_always_sign; + gboolean pgp_no_imip_sign; + gboolean pgp_always_trust; + + char *smime_key; + gboolean smime_encrypt_to_self; + gboolean smime_always_sign; +} EAccount; + +typedef struct { + GObjectClass parent_class; + +} EAccountClass; + + +GType e_account_get_type (void); + +EAccount *e_account_new (void); + +EAccount *e_account_new_from_xml (const char *xml); + +gboolean e_account_set_from_xml (EAccount *account, + const char *xml); + +char *e_account_to_xml (EAccount *account); + + +char *e_account_uid_from_xml (const char *xml); + +char *e_account_gen_uid (void); + +#endif /* __E_ACCOUNT__ */ |