X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-protocol-info.h;h=dc1d2c0ebdab54c02d95b9d74df5b5f051fcbc61;hp=9ddc12b898604c6df53c589e91ddc980188b4f64;hb=b87242ddd0027d83a5768f2932f9868a93cd29da;hpb=5d50cd32592c4b11955589126a2017e7048e508c diff --git a/src/modest-protocol-info.h b/src/modest-protocol-info.h index 9ddc12b..dc1d2c0 100644 --- a/src/modest-protocol-info.h +++ b/src/modest-protocol-info.h @@ -79,6 +79,23 @@ ModestPairList* modest_protocol_info_get_transport_store_protocol_pair_list (); /** + * modest_protocol_info_get_supported_store_protocol_pair_list: + * + * return the list of -tuples of + * store protocols. + * The elements of the returned list are ModestPairs + * This is a convenience function for use with ModestComboBox + * + * In this case it only returns the UI exposed protocols for + * storage (IMAP, POP3). + * + * Returns: a list of protocols. After use, it should be freed + * with modest_pair_list_free + */ +ModestPairList* +modest_protocol_info_get_supported_store_protocol_pair_list (); + +/** * modest_protocol_info_get_auth_protocol_pair_list: * * return the list of -tupels of protocols. @@ -125,6 +142,16 @@ ModestTransportStoreProtocol modest_protocol_info_get_transport_store_protocol ( ModestAuthProtocol modest_protocol_info_get_auth_protocol (const gchar* name); /** + * modest_protocol_info_get_connection_protocol: + * @name: The name of the #ModestConnectionProtocol + * + * Returns the ID of the protocol with the given name + * + * Returns: The ID of the protocol or MODEST_CONNECTION_PROTOCOL_NORMAL + */ +ModestConnectionProtocol modest_protocol_info_get_connection_protocol (const gchar* name); + +/** * modest_protocol_info_get_transport_store_protocol_name: * @proto: the protocol you are looking for *