diff options
author | Dan Winship <danw@src.gnome.org> | 2000-07-14 01:17:56 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-07-14 01:17:56 +0800 |
commit | e3970d1396c10d10dda0653f117fda97d6fddac8 (patch) | |
tree | ac96656fafaa5555d9c9fe40006fbcbdd467b5ce /camel/camel-service.h | |
parent | 2aaffa25607cd6aa97319a9212697af78c7b53e3 (diff) | |
download | gsoc2013-evolution-e3970d1396c10d10dda0653f117fda97d6fddac8.tar.gz gsoc2013-evolution-e3970d1396c10d10dda0653f117fda97d6fddac8.tar.zst gsoc2013-evolution-e3970d1396c10d10dda0653f117fda97d6fddac8.zip |
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
Diffstat (limited to 'camel/camel-service.h')
-rw-r--r-- | camel/camel-service.h | 24 |
1 files changed, 19 insertions, 5 deletions
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 */ |