X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmaemo%2Fmodest-maemo-utils.h;h=518f937f15b7ab409faf06bb34e2cda2316cf993;hb=22a35aa7ce92c1f264efbaef53c8e1b11cb49ec4;hp=9f1735f08b5856fc43497a5e4780aa1b6e779cce;hpb=6bab4bfef92fef73852d6acd51d1ebf381a338e4;p=modest diff --git a/src/maemo/modest-maemo-utils.h b/src/maemo/modest-maemo-utils.h index 9f1735f..518f937 100644 --- a/src/maemo/modest-maemo-utils.h +++ b/src/maemo/modest-maemo-utils.h @@ -34,6 +34,15 @@ #include #include +#define MODEST_MAEMO_UTILS_MYDOCS_FOLDER "MyDocs" +#define MODEST_MAEMO_UTILS_DEFAULT_IMAGE_FOLDER ".images" + +typedef enum { + MODEST_MAEMO_UTILS_GET_SUPPORTED_SECURE_AUTHENTICATION_ERROR_CANCELED +} ModestMaemoUtilsGetSupportedSecureAuthenticationError; + +GQuark modest_maemo_utils_get_supported_secure_authentication_error_quark (void); + /** * modest_maemo_utils_menubar_to_menu: * @ui_manager: a ui manager, with the menubar at "/MenuBar" @@ -78,19 +87,21 @@ gboolean modest_maemo_utils_file_exists (const gchar *filename); /** * modest_maemo_utils_create_temp_stream: + * @extension: a string with the extension the file should get, or %NULL * @path: a string with the created file path * * Creates a temporary fs stream * * Returns: a #TnyFsStream, or %NULL if operation failed. */ -TnyFsStream *modest_maemo_utils_create_temp_stream (gchar **path); +TnyFsStream *modest_maemo_utils_create_temp_stream (const gchar *extension, gchar **path); /** - * modest_protocol_info_protocol_is_local_store: + * modest_maemo_utils_get_supported_secure_authentication_methods: * @proto: the protocol * @hostname: hostname of the mail server to check * @port: mail server port + * @username: username of the account to check for * @parent_window: a GtkWindow that can be used a parent for progress indication * * Get a list of supported authentication methods of the server @@ -100,6 +111,15 @@ TnyFsStream *modest_maemo_utils_create_temp_stream (gchar **path); */ GList* modest_maemo_utils_get_supported_secure_authentication_methods (ModestTransportStoreProtocol proto, - const gchar* hostname, gint port, GtkWindow *parent_window); + const gchar* hostname, gint port, const gchar* username, GtkWindow *parent_window, GError** error); + +/** + * modest_maemo_utils_setup_images_filechooser: + * @chooser: a #GtkFileChooser + * + * Configures the default folder, and mime filter of a filechooser + * for images. + */ +void modest_maemo_utils_setup_images_filechooser (GtkFileChooser *chooser); #endif /*__MODEST_MAEMO_UTILS_H__*/