X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-protocol-info.h;h=c358d1d527ebc59afc665355d68b4ccde9b78186;hb=69919988cc084f8dd70d17cdd11988386359922b;hp=52e97375b0b3151e96e074ed5d416d0df82cc73d;hpb=1807d0ffbcc503686889d878c8a37b5c31f30b23;p=modest diff --git a/src/modest-protocol-info.h b/src/modest-protocol-info.h index 52e9737..c358d1d 100644 --- a/src/modest-protocol-info.h +++ b/src/modest-protocol-info.h @@ -140,6 +140,18 @@ modest_protocol_info_get_transport_store_protocol_name (ModestTransportStoreProt const gchar* modest_protocol_info_get_auth_protocol_name (ModestAuthProtocol proto); +/* + * modest_protocol_get_auth_protocol_pair_list: + * + * Get the list of support authentication methods supported by modest including + * the display names of those. + * + * Returns: List of method/display name pairs + */ + +ModestPairList* +modest_protocol_info_get_auth_protocol_pair_list (); + /** * modest_protocol_info_get_auth_protocol_name: * @proto: the protocol you are looking for @@ -176,6 +188,29 @@ gboolean modest_protocol_info_protocol_is_store (ModestTransportStoreProtocol pr gboolean modest_protocol_info_protocol_is_local_store (ModestTransportStoreProtocol proto); +/** + * modest_protocol_info_is_secure: + * @protocol + * + * is the protocol connection secure (e.g encrypted)? + * + * Returns: TRUE if it is secure, FALSE otherwise + * + */ +gboolean modest_protocol_info_is_secure(ModestConnectionProtocol protocol); + +/** + * modest_protocol_info_auth_is_secure: + * @protocol + * + * is the protocol authentication secure (e.g encrypted)? + * + * Returns: TRUE if it is secure, FALSE otherwise + * + */ +gboolean modest_protocol_info_auth_is_secure(ModestAuthProtocol protocol); + + G_END_DECLS #endif /* __MODEST_PROTOCOL_INFO_H__ */