From e3970d1396c10d10dda0653f117fda97d6fddac8 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 13 Jul 2000 17:17:56 +0000 Subject: define a set of CAMEL_SERVICE_URL_ALLOW_* flags parallel to the _NEED_* * camel-service.h: define a set of CAMEL_SERVICE_URL_ALLOW_* flags parallel to the _NEED_* flags, and make the _NEED_* flags imply the _ALLOW_* ones. * providers/imap/camel-imap-store.c (camel_imap_store_init): imap urls ALLOW_PATH svn path=/trunk/; revision=4147 --- camel/camel-service.h | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'camel/camel-service.h') diff --git a/camel/camel-service.h b/camel/camel-service.h index a4e69ed6f3..1541e32e4a 100644 --- a/camel/camel-service.h +++ b/camel/camel-service.h @@ -76,11 +76,25 @@ typedef struct { -/* 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) +/* Flags for url_flags. "ALLOW" means the config dialog will let + * the user configure it. "NEED" implies "ALLOW" but means the user + * must configure it. Service code can assume that any url part + * for which it has set the NEED flag will be set when the service + * is created. + */ +#define CAMEL_SERVICE_URL_ALLOW_USER (1 << 0) +#define CAMEL_SERVICE_URL_ALLOW_AUTH (1 << 1) +#define CAMEL_SERVICE_URL_ALLOW_PASSWORD (1 << 2) +#define CAMEL_SERVICE_URL_ALLOW_HOST (1 << 3) +#define CAMEL_SERVICE_URL_ALLOW_PORT (1 << 4) +#define CAMEL_SERVICE_URL_ALLOW_PATH (1 << 5) + +#define CAMEL_SERVICE_URL_NEED_USER (1 << 6 | 1 << 0) +#define CAMEL_SERVICE_URL_NEED_AUTH (1 << 7 | 1 << 1) +#define CAMEL_SERVICE_URL_NEED_PASSWORD (1 << 8 | 1 << 2) +#define CAMEL_SERVICE_URL_NEED_HOST (1 << 9 | 1 << 3) +#define CAMEL_SERVICE_URL_NEED_PORT (1 << 10 | 1 << 4) +#define CAMEL_SERVICE_URL_NEED_PATH (1 << 11 | 1 << 5) /* query_auth_types returns a GList of these */ -- cgit v1.2.3