X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-protocol-info.h;h=523eef39c1d851209c14233ddf89bb836def5a97;hp=51e5791a9add63054d3f76e9b5bf8c2d73f88e09;hb=7dd43ed0b3b827799299291a53300db93d9b2711;hpb=88d695f41147927b058fd6f6c6867da8382af7a2 diff --git a/src/modest-protocol-info.h b/src/modest-protocol-info.h index 51e5791..523eef3 100644 --- a/src/modest-protocol-info.h +++ b/src/modest-protocol-info.h @@ -39,38 +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_STORE_MBOX +} ModestProtocol; + + +typedef enum { + MODEST_PROTOCOL_TYPE_UNKNOWN, + MODEST_PROTOCOL_TYPE_TRANSPORT, + MODEST_PROTOCOL_TYPE_STORE +} ModestProtocolType; +typedef enum { MODEST_PROTOCOL_SECURITY_NONE, MODEST_PROTOCOL_SECURITY_SSL, MODEST_PROTOCOL_SECURITY_TLS, - MODEST_PROTOCOL_SECURITY_TLS_OP, + MODEST_PROTOCOL_SECURITY_TLS_OP +} ModestSecureConnection; +typedef enum { MODEST_PROTOCOL_AUTH_NONE, MODEST_PROTOCOL_AUTH_PASSWORD, - MODEST_PROTOCOL_AUTH_CRAMMD5, + MODEST_PROTOCOL_AUTH_CRAMMD5 +} ModestSecureAuthentication; - MODEST_PROTOCOL_NUM -} 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 -} ModestProtocolType; - +#if 0 /** * modest_protocol_info_get_list: * @type: the type of list you want, it should NOT be MODEST_PROTOCOL_TYPE_UNKNOWN @@ -83,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 (); /**