aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-session.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-05-21 17:08:09 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-05-21 17:08:09 +0800
commit2bc97c08c1ca8057f03b3b3d872eafa306bab22c (patch)
treeb290bc21cafc1b26ac44a5296a58748c0cad439c /camel/camel-session.c
parentcfa1f110a7dabe96457a17f0e42f632f8b111828 (diff)
downloadgsoc2013-evolution-2bc97c08c1ca8057f03b3b3d872eafa306bab22c.tar
gsoc2013-evolution-2bc97c08c1ca8057f03b3b3d872eafa306bab22c.tar.gz
gsoc2013-evolution-2bc97c08c1ca8057f03b3b3d872eafa306bab22c.tar.bz2
gsoc2013-evolution-2bc97c08c1ca8057f03b3b3d872eafa306bab22c.tar.lz
gsoc2013-evolution-2bc97c08c1ca8057f03b3b3d872eafa306bab22c.tar.xz
gsoc2013-evolution-2bc97c08c1ca8057f03b3b3d872eafa306bab22c.tar.zst
gsoc2013-evolution-2bc97c08c1ca8057f03b3b3d872eafa306bab22c.zip
added a 'domain' argument, and rearragned arguments to be prettier and
2004-05-21 Not Zed <NotZed@Ximian.com> * 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
Diffstat (limited to 'camel/camel-session.c')
-rw-r--r--camel/camel-session.c15
1 files changed, 8 insertions, 7 deletions
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);
}