Evolution API Reference: libedataserver, utility library | ||||
---|---|---|---|---|
EAccountIdentity; EAccountService; 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); void e_account_import (EAccount *dest, EAccount *src); char* e_account_to_xml (EAccount *account); char* e_account_uid_from_xml (const char *xml);
typedef struct { char *name; char *address; char *reply_to; char *organization; char *sig_uid; } EAccountIdentity;
typedef struct { char *url; gboolean keep_on_server; gboolean auto_check; int auto_check_time; gboolean save_passwd; gboolean get_password_canceled; } EAccountService;
EAccount* e_account_new (void);
Returns : | a blank new account which can be filled in and added to an EAccountList. |
EAccount* e_account_new_from_xml (const char *xml);
xml : |
an XML account description |
Returns : | a new EAccount based on the data in xml , or NULL
if xml could not be parsed as valid account data.
|
gboolean e_account_set_from_xml (EAccount *account, const char *xml);
Changes account
to match xml
.
account : |
an EAccount |
xml : |
an XML account description. |
Returns : | TRUE if account was changed, FALSE if account
already matched xml or xml could not be parsed
|
void e_account_import (EAccount *dest, EAccount *src);
Import the settings from src
to dest
.
dest : |
destination account object |
src : |
source account object |
char* e_account_to_xml (EAccount *account);
account : |
an EAccount |
Returns : | an XML representation of account , which the caller
must free.
|