X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-protocol-info.h;h=523eef39c1d851209c14233ddf89bb836def5a97;hb=7dd43ed0b3b827799299291a53300db93d9b2711;hp=d4b2a852f96fe925415c4e6170049b5c9c4f6df6;hpb=ad5b9c325eeefcabb682ad025ddd47f25801acd9;p=modest diff --git a/src/modest-protocol-info.h b/src/modest-protocol-info.h index d4b2a85..523eef3 100644 --- a/src/modest-protocol-info.h +++ b/src/modest-protocol-info.h @@ -39,35 +39,37 @@ G_BEGIN_DECLS typedef enum { MODEST_PROTOCOL_UNKNOWN, - MODEST_PROTOCOL_TRANSPORT_SENDMAIL, + MODEST_PROTOCOL_TRANSPORT_SENDMAIL, MODEST_PROTOCOL_TRANSPORT_SMTP, MODEST_PROTOCOL_STORE_POP, MODEST_PROTOCOL_STORE_IMAP, MODEST_PROTOCOL_STORE_MAILDIR, - MODEST_PROTOCOL_STORE_MBOX, - - MODEST_PROTOCOL_SECURITY_SSL, - MODEST_PROTOCOL_SECURITY_TLS, - - MODEST_PROTOCOL_AUTH_NONE, - MODEST_PROTOCOL_AUTH_PASSWORD, - - MODEST_PROTOCOL_NUM + MODEST_PROTOCOL_STORE_MBOX } ModestProtocol; typedef enum { MODEST_PROTOCOL_TYPE_UNKNOWN, MODEST_PROTOCOL_TYPE_TRANSPORT, - MODEST_PROTOCOL_TYPE_STORE, - MODEST_PROTOCOL_TYPE_SECURITY, - MODEST_PROTOCOL_TYPE_AUTH, - - MODEST_PROTOCOL_TYPE_NUM + MODEST_PROTOCOL_TYPE_STORE } ModestProtocolType; - +typedef enum { + MODEST_PROTOCOL_SECURITY_NONE, + MODEST_PROTOCOL_SECURITY_SSL, + MODEST_PROTOCOL_SECURITY_TLS, + MODEST_PROTOCOL_SECURITY_TLS_OP +} ModestSecureConnection; + +typedef enum { + MODEST_PROTOCOL_AUTH_NONE, + MODEST_PROTOCOL_AUTH_PASSWORD, + MODEST_PROTOCOL_AUTH_CRAMMD5 +} ModestSecureAuthentication; + + +#if 0 /** * modest_protocol_info_get_list: * @type: the type of list you want, it should NOT be MODEST_PROTOCOL_TYPE_UNKNOWN @@ -80,20 +82,44 @@ typedef enum { * for them. */ GSList* modest_protocol_info_get_protocol_list (ModestProtocolType type); +#endif /** - * modest_protocol_info_get_list: - * @type: the type of list you want, it should NOT be MODEST_PROTOCOL_TYPE_UNKNOWN + * modest_protocol_info_get_protocol_pair_list: * - * return the list of -tupels of the given @type. - * the elements of the returned list are ModestPairs - * this is a convenience function for use with ModestComboBox + * return the list of -tupels of protocols. + * The elements of the returned list are ModestPairs + * This is a convenience function for use with ModestComboBox * - * Returns: a list of protocols of the given @type; after use, it should be freed + * Returns: a list of protocols. After use, it should be freed + * with modest_pair_list_free + */ +ModestPairList* modest_protocol_info_get_protocol_pair_list (); + +/** + * modest_protocol_info_get_protocol_security_pair_list: + * + * return the list of -tupels of protocol secure connection methods. + * The elements of the returned list are ModestPairs + * This is a convenience function for use with ModestComboBox + * + * Returns: a list of secure connection methods. After use, it should be freed + * with modest_pair_list_free + */ +ModestPairList* modest_protocol_info_get_protocol_security_pair_list (); + +/** + * modest_protocol_info_get_protocol_auth_pair_list: + * + * return the list of -tupels of protocol secure authentication methods. + * The elements of the returned list are ModestPairs + * This is a convenience function for use with ModestComboBox + * + * Returns: a list of secure authentication methods. After use, it should be freed * with modest_pair_list_free */ -ModestPairList* modest_protocol_info_get_protocol_pair_list (ModestProtocolType type); +ModestPairList* modest_protocol_info_get_protocol_auth_pair_list (); /**