diff options
author | Dan Winship <danw@src.gnome.org> | 2000-03-23 05:47:21 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-03-23 05:47:21 +0800 |
commit | 425b07fa747e1bd02a5bb86e207de172e65d580c (patch) | |
tree | 0eb7a3f97d59982a30e92adbcd14c4be3c1e8b2c /camel/camel-service.h | |
parent | 175fcc0ed5505da062bae09d6f3ce77f5b179536 (diff) | |
download | gsoc2013-evolution-425b07fa747e1bd02a5bb86e207de172e65d580c.tar gsoc2013-evolution-425b07fa747e1bd02a5bb86e207de172e65d580c.tar.gz gsoc2013-evolution-425b07fa747e1bd02a5bb86e207de172e65d580c.tar.bz2 gsoc2013-evolution-425b07fa747e1bd02a5bb86e207de172e65d580c.tar.lz gsoc2013-evolution-425b07fa747e1bd02a5bb86e207de172e65d580c.tar.xz gsoc2013-evolution-425b07fa747e1bd02a5bb86e207de172e65d580c.tar.zst gsoc2013-evolution-425b07fa747e1bd02a5bb86e207de172e65d580c.zip |
New function to query a service for the authentication protocols it
* camel-service.c (camel_service_query_auth_types): New function
to query a service for the authentication protocols it supports.
* providers/pop3/camel-pop3-store.c (query_auth_types): implement
svn path=/trunk/; revision=2147
Diffstat (limited to 'camel/camel-service.h')
-rw-r--r-- | camel/camel-service.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/camel/camel-service.h b/camel/camel-service.h index 5e81e6a80e..d09524c8c4 100644 --- a/camel/camel-service.h +++ b/camel/camel-service.h @@ -70,16 +70,25 @@ typedef struct { gboolean (*is_connected) (CamelService *service); + GList * (*query_auth_types) (CamelService *service); + } CamelServiceClass; /* flags for url_flags. (others can be added if needed) */ #define CAMEL_SERVICE_URL_NEED_USER (1 << 1) +#define CAMEL_SERVICE_URL_NEED_AUTH (1 << 2) #define CAMEL_SERVICE_URL_NEED_HOST (1 << 4) #define CAMEL_SERVICE_URL_NEED_PATH (1 << 6) +/* query_auth_types returns a GList of these */ +typedef struct { + char *name, *description, *authproto; + gboolean need_password; +} CamelServiceAuthType; + /* public methods */ CamelService * camel_service_new (GtkType type, @@ -99,6 +108,8 @@ gboolean camel_service_is_connected (CamelService *service); char * camel_service_get_url (CamelService *service); CamelSession * camel_service_get_session (CamelService *service); +GList * camel_service_query_auth_types (CamelService *service); + /* Standard Gtk function */ GtkType camel_service_get_type (void); |