X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-platform.h;h=020a2c1159a38480b97df84ad0cf28ef599972d1;hp=f12069e2b68d9d4907d8eacc28c6882736227ac1;hb=3ddc19113ea89a4ec61a855f4856bde2143c4694;hpb=099ca69a75a3131d9eac8670971da057b7b4adda diff --git a/src/modest-platform.h b/src/modest-platform.h index f12069e..020a2c1 100644 --- a/src/modest-platform.h +++ b/src/modest-platform.h @@ -249,6 +249,14 @@ gboolean modest_platform_connect_and_wait_if_network_account (GtkWindow *parent_ gboolean modest_platform_connect_and_wait_if_network_folderstore (GtkWindow *parent_window, TnyFolderStore *folder_store); /** + * modest_platform_is_network_folderstore: + * @folder_store: The folder store (folder or account) that needs to + * decide if need a connection in subsequent operations. + * @return value: Whether a connection is necessary for this folder_store. + */ +gboolean modest_platform_is_network_folderstore (TnyFolderStore *folder_store); + +/** * modest_platform_set_update_interval: * @minutes: The number of minutes between updates, or 0 for no updates. * @@ -320,6 +328,34 @@ modest_platform_animation_banner (GtkWidget *parent, */ gboolean modest_platform_check_and_wait_for_account_is_online(TnyAccount *account); + + +/** + * modest_platform_run_certificate_confirmation_dialog: + * @server_name: name of the server we get this dialog for + * @certificate: the text representation of the certificate + * + * show the unknown-certificate confirmation dialog + * + * Returns: TRUE (Ok-pressed) or FALSE (cancel pressed) + **/ +gboolean modest_platform_run_certificate_conformation_dialog (const gchar* server_name, + const gchar *certificate); + + +/** + * modest_platform_run_alert_dialog: + * @prompt: prompt for the dialog + * @is_question: is it a question dialog? + * + * show the alert dialog for TnyAlerts + * if it's a aquest + * + * Returns: TRUE (Ok-pressed) or FALSE (cancel pressed) + **/ +gboolean modest_platform_run_alert_dialog (const gchar* prompt, gboolean is_question); + + G_END_DECLS #endif /* __MODEST_PLATFORM_UTILS_H__ */