* Full implementation of the Global settings dialogs UI with all the notifications...
[modest] / src / gnome / modest-platform.c
index 462c422..c0a9a21 100644 (file)
@@ -34,6 +34,7 @@
 #include "modest-platform.h"
 #include "modest-mail-operation-queue.h"
 #include "modest-runtime.h"
+#include "gnome/modest-gnome-global-settings-dialog.h"
 
 gboolean
 modest_platform_init (void)
@@ -89,6 +90,13 @@ modest_platform_activate_uri (const gchar *uri)
 }
 
 gboolean 
+modest_platform_activate_file (const gchar *path)
+{
+       modest_runtime_not_implemented (NULL);
+       return FALSE;
+}
+
+gboolean 
 modest_platform_show_uri_popup (const gchar *uri)
 {
        modest_runtime_not_implemented (NULL);
@@ -128,10 +136,7 @@ modest_platform_run_new_folder_dialog (GtkWindow *parent_window,
                                       gchar **folder_name)
 {
        GtkWidget *dialog, *entry;
-       gboolean finished = FALSE;
        gint result;
-       TnyFolder *new_folder;
-       ModestMailOperation *mail_op;
 
        /* Ask the user for the folder name */
        dialog = gtk_dialog_new_with_buttons (_("New Folder Name"),
@@ -173,15 +178,8 @@ modest_platform_run_confirmation_dialog (GtkWindow *parent_window,
 
 void
 modest_platform_run_information_dialog (GtkWindow *parent_window,
-                                       ModestInformationDialogType type)
+                                       const gchar *message)
 {
-       switch (type) {
-       case MODEST_INFORMATION_CREATE_FOLDER:
-               break;
-       case MODEST_INFORMATION_DELETE_FOLDER:
-               break;
-       };
-
        /* TODO: implement a information dialog */
 }
 
@@ -192,3 +190,21 @@ gboolean modest_platform_connect_and_wait (GtkWindow *parent_window)
        return TRUE;
 }
 
+gboolean modest_platform_set_update_interval (guint minutes)
+{
+       /* TODO. */
+       return FALSE;
+}
+
+void
+modest_platform_run_sort_dialog (GtkWindow *parent_window,
+                                ModestSortDialogType type)
+{
+       /* TODO */
+}
+
+GtkWidget *
+modest_platform_get_global_settings_dialog ()
+{
+       return modest_gnome_global_settings_dialog_new ();
+}