X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-protocol-registry.h;h=3bf3aa933acd600d835e37579dd964fa9993a716;hp=50dba24e0ba62272e84ed170340a87d6f6d0091e;hb=a97791ec68e7d15593080049399bda9366517b1e;hpb=627c4af6ac85444cc3256fa568baf4a8d62178ae diff --git a/src/modest-protocol-registry.h b/src/modest-protocol-registry.h index 50dba24..3bf3aa9 100644 --- a/src/modest-protocol-registry.h +++ b/src/modest-protocol-registry.h @@ -34,8 +34,8 @@ #define __MODEST_PROTOCOL_REGISTRY_H__ #include -#include -#include +#include "modest-protocol.h" +#include "modest-pair.h" G_BEGIN_DECLS @@ -49,9 +49,15 @@ G_BEGIN_DECLS #define MODEST_PROTOCOL_REGISTRY_SECURE_PROTOCOLS "secure" #define MODEST_PROTOCOL_REGISTRY_HAS_LEAVE_ON_SERVER_PROTOCOLS "leave-on-server-available" #define MODEST_PROTOCOL_REGISTRY_PROVIDER_PROTOCOLS "providers" +#define MODEST_PROTOCOL_REGISTRY_SINGLETON_PROVIDER_PROTOCOLS "singleton-providers" +#define MODEST_PROTOCOL_REGISTRY_MULTI_MAILBOX_PROVIDER_PROTOCOLS "multi-mailbox-providers" #define MODEST_PROTOCOL_REGISTRY_USE_ALTERNATE_PORT "use-alternate-port" #define MODEST_PROTOCOL_REGISTRY_STORE_HAS_FOLDERS "store-has-folders" -#define MODEST_PROTOCOL_REGISTRY_STORE_FORBID_MESSAGE_ADD "store-forbid-message-add" +/* Accounts that cannot be the destination of messages or folders transfers */ +#define MODEST_PROTOCOL_REGISTRY_STORE_FORBID_INCOMING_XFERS "store-forbid-incoming-xfers" +/* Accounts that do not allow to move messages or folders from */ +#define MODEST_PROTOCOL_REGISTRY_STORE_FORBID_OUTGOING_XFERS "store-forbid-outgoing-xfers" +#define MODEST_PROTOCOL_REGISTRY_NO_AUTO_UPDATE_PROTOCOLS "no-auto-update" /* convenience macros */ #define MODEST_TYPE_PROTOCOL_REGISTRY (modest_protocol_registry_get_type()) @@ -212,6 +218,10 @@ gboolean modest_protocol_registry_protocol_type_has_tag (ModestProtocolRegistry modest_protocol_registry_protocol_type_has_tag ((registry), (protocol_type), \ MODEST_PROTOCOL_REGISTRY_PROVIDER_PROTOCOLS) +#define modest_protocol_registry_protocol_type_is_singleton_provider(registry,protocol_type) \ + modest_protocol_registry_protocol_type_has_tag ((registry), (protocol_type), \ + MODEST_PROTOCOL_REGISTRY_SINGLETON_PROVIDER_PROTOCOLS) + #define modest_protocol_registry_protocol_type_has_leave_on_server(registry,protocol_type) \ modest_protocol_registry_protocol_type_has_tag ((registry), (protocol_type), \ MODEST_PROTOCOL_REGISTRY_HAS_LEAVE_ON_SERVER_PROTOCOLS)