diff options
author | Dan Winship <danw@src.gnome.org> | 2000-02-22 03:56:49 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-02-22 03:56:49 +0800 |
commit | 8ea1212d992c564a3a7849a41be9000ce50d0f6b (patch) | |
tree | ebc891496db9d1ad04a43153bd79f2b068902c07 /camel/camel-session.h | |
parent | 0eff8e4321d63ef1dce20cceae8314b3628767a4 (diff) | |
download | gsoc2013-evolution-8ea1212d992c564a3a7849a41be9000ce50d0f6b.tar gsoc2013-evolution-8ea1212d992c564a3a7849a41be9000ce50d0f6b.tar.gz gsoc2013-evolution-8ea1212d992c564a3a7849a41be9000ce50d0f6b.tar.bz2 gsoc2013-evolution-8ea1212d992c564a3a7849a41be9000ce50d0f6b.tar.lz gsoc2013-evolution-8ea1212d992c564a3a7849a41be9000ce50d0f6b.tar.xz gsoc2013-evolution-8ea1212d992c564a3a7849a41be9000ce50d0f6b.tar.zst gsoc2013-evolution-8ea1212d992c564a3a7849a41be9000ce50d0f6b.zip |
Add "authenticator" to CamelSession and update things to use it.
svn path=/trunk/; revision=1890
Diffstat (limited to 'camel/camel-session.h')
-rw-r--r-- | camel/camel-session.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/camel/camel-session.h b/camel/camel-session.h index 0b65326323..272417644c 100644 --- a/camel/camel-session.h +++ b/camel/camel-session.h @@ -44,15 +44,19 @@ extern "C" { #define CAMEL_IS_SESSION(o) (GTK_CHECK_TYPE((o), CAMEL_SESSION_TYPE)) +typedef char *(*CamelAuthCallback) (char *prompt, gboolean secret, + CamelService *service, char *item, + CamelException *ex); struct _CamelSession { GtkObject parent_object; + + CamelAuthCallback authenticator; GHashTable *store_provider_list; /* providers are identified by their protocol */ GHashTable *transport_provider_list; - - + }; @@ -71,7 +75,7 @@ typedef struct { GtkType camel_session_get_type (void); -CamelSession *camel_session_new (void); +CamelSession *camel_session_new (CamelAuthCallback authenticator); void camel_session_set_provider (CamelSession *session, CamelProvider *provider); CamelStore *camel_session_get_store_for_protocol (CamelSession *session, const gchar *protocol, @@ -79,7 +83,10 @@ CamelStore *camel_session_get_store_for_protocol (CamelSession *session, CamelStore *camel_session_get_store (CamelSession *session, const char *url_string, CamelException *ex); - +char *camel_session_query_authenticator (CamelSession *session, char *prompt, + gboolean secret, + CamelService *service, char *item, + CamelException *ex); #ifdef __cplusplus } |