From 2bc97c08c1ca8057f03b3b3d872eafa306bab22c Mon Sep 17 00:00:00 2001 From: Not Zed Date: Fri, 21 May 2004 09:08:09 +0000 Subject: added a 'domain' argument, and rearragned arguments to be prettier and 2004-05-21 Not Zed * camel-session.c (camel_session_get_password): added a 'domain' argument, and rearragned arguments to be prettier and more consistent. Fixed all callers. (camel_session_forget_password): added a domain argument. Fixed all callers. ** See #58376. * camel-folder.c (set_message_flags): if system flags change, then don't trigger a folder changed event. * camel-folder-summary.h (CAMEL_MESSAGE_SYSTEM_MASK): added this to indicate which flags are internal/apps not interested in. * camel-folder.c (filter_free): rearrange and use some helpers. (folder_changed): if we're frozen, dont go firing off threads to do any processing on each change, wait until we're called unfrozen. Slight code rearragnement. (filter_filter): add progress to junk learn/unlearn, and separate them. svn path=/trunk/; revision=26029 --- camel/camel-session.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'camel/camel-session.c') diff --git a/camel/camel-session.c b/camel/camel-session.c index 59d6be649c..5a1b8799f1 100644 --- a/camel/camel-session.c +++ b/camel/camel-session.c @@ -317,12 +317,13 @@ camel_session_get_storage_path (CamelSession *session, CamelService *service, /** * camel_session_get_password: * @session: session object + * @service: the service this query is being made by + * @domain: domain of password request. May be null to use the default. * @prompt: prompt to provide to user + * @item: an identifier, unique within this service, for the information * @flags: CAMEL_SESSION_PASSWORD_REPROMPT, the prompt should force a reprompt * CAMEL_SESSION_PASSWORD_SECRET, whether the password is secret * CAMEL_SESSION_PASSWORD_STATIC, the password is remembered externally - * @service: the service this query is being made by - * @item: an identifier, unique within this service, for the information * @ex: a CamelException * * This function is used by a CamelService to ask the application and @@ -347,16 +348,16 @@ camel_session_get_storage_path (CamelSession *session, CamelService *service, * Return value: the authentication information or %NULL. **/ char * -camel_session_get_password (CamelSession *session, const char *prompt, +camel_session_get_password (CamelSession *session, CamelService *service, + const char *domain, const char *prompt, const char *item, guint32 flags, - CamelService *service, const char *item, CamelException *ex) { g_return_val_if_fail (CAMEL_IS_SESSION (session), NULL); g_return_val_if_fail (prompt != NULL, NULL); g_return_val_if_fail (item != NULL, NULL); - return CS_CLASS (session)->get_password (session, prompt, flags, service, item, ex); + return CS_CLASS (session)->get_password (session, service, domain, prompt, item, flags, ex); } @@ -378,12 +379,12 @@ camel_session_get_password (CamelSession *session, const char *prompt, **/ void camel_session_forget_password (CamelSession *session, CamelService *service, - const char *item, CamelException *ex) + const char *domain, const char *item, CamelException *ex) { g_return_if_fail (CAMEL_IS_SESSION (session)); g_return_if_fail (item != NULL); - CS_CLASS (session)->forget_password (session, service, item, ex); + CS_CLASS (session)->forget_password (session, service, domain, item, ex); } -- cgit v1.2.3