Refactoring sort dialog code to be able to implement easier a gnome
[modest] / src / modest-platform.h
index 9098084..c22d839 100644 (file)
@@ -33,6 +33,7 @@
 #include <tny-device.h>
 #include "widgets/modest-window.h"
 #include "widgets/modest-folder-view.h"
+#include "widgets/modest-sort-criterium-view.h"
 
 G_BEGIN_DECLS
 
@@ -40,10 +41,6 @@ typedef enum _ModestConfirmationDialogType {
        MODEST_CONFIRMATION_DELETE_FOLDER,
 } ModestConfirmationDialogType;
 
-typedef enum _ModestSortDialogType {
-       MODEST_SORT_HEADERS,
-} ModestSortDialogType;
-
 typedef enum _ModestConnectedVia {
        MODEST_CONNECTED_VIA_WLAN_OR_WIMAX = 1,
        MODEST_CONNECTED_VIA_ANY,
@@ -239,14 +236,14 @@ void      modest_platform_run_information_dialog       (GtkWindow *parent_window
                                                        gboolean block);
 
 /**
- * modest_platform_run_sort_dialog:
+ * modest_platform_create_sort_dialog:
  * @parent_window: the parent #GtkWindow of the dialog
- * @type: the sort dialog type.
  * 
- * shows a sort dialog
+ * creates a proper sort dialog for the platform
+ *
+ * Returns: a #GtkDialog implementing #ModestSortCriteriumView interface
  **/
-void      modest_platform_run_sort_dialog       (GtkWindow *parent_window, 
-                                                ModestSortDialogType type);
+GtkWidget *modest_platform_create_sort_dialog       (GtkWindow *parent_window);
                
 /*
  * modest_platform_connect_and_wait: