In bodystruct support, if there are embedded internal images and they
[modest] / src / widgets / modest-global-settings-dialog.h
index c734faf..cd14357 100644 (file)
@@ -30,8 +30,9 @@
 #ifndef __MODEST_GLOBAL_SETTINGS_DIALOG_H__
 #define __MODEST_GLOBAL_SETTINGS_DIALOG_H__
 
-#include <gtk/gtkdialog.h>
+#include <gtk/gtk.h>
 #include "widgets/modest-global-settings-dialog-priv.h"
+#include "modest-platform.h"
 /* other include files */
 
 G_BEGIN_DECLS
@@ -45,11 +46,6 @@ G_BEGIN_DECLS
 #define MODEST_GLOBAL_SETTINGS_DIALOG_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS((obj),MODEST_TYPE_GLOBAL_SETTINGS_DIALOG,ModestGlobalSettingsDialogClass))
 
 /* Global settings */
-typedef enum _ModestConnectedVia {
-       MODEST_CONNECTED_VIA_WLAN = 1,
-       MODEST_CONNECTED_VIA_ANY,
-} ModestConnectedVia;
-
 typedef enum _ModestUpdateInterval {
        MODEST_UPDATE_INTERVAL_5_MIN = 5,
        MODEST_UPDATE_INTERVAL_10_MIN = 10,
@@ -71,16 +67,13 @@ struct _ModestGlobalSettingsDialogClass {
 
        /* Returns the current connection method. Assumes that the device is online */
        ModestConnectedVia (*current_connection_func) (void);
+       gboolean (*save_settings_func)  (ModestGlobalSettingsDialog *self);
 };
 
 /* member functions */
 GType        modest_global_settings_dialog_get_type    (void) G_GNUC_CONST;
 
-/* Do *NOT* use this functions directly. They must be only used by
-   subclasses. We put them here and not in the -priv header file
-   because recursive dependencies */
-void     _modest_global_settings_dialog_load_conf (ModestGlobalSettingsDialog *self);
-gboolean _modest_global_settings_dialog_save_conf (ModestGlobalSettingsDialog *self);
+gboolean modest_global_settings_dialog_save_settings (ModestGlobalSettingsDialog *self);
 
 
 G_END_DECLS