* admittedly, the ifdefs for gtk and maemo are rather ugly; still
* this way is probably the easiest to maintain
*/
-#if MODEST_PLATFORM_ID==1 /* gtk */
+#ifdef MODEST_PLATFORM_GNOME
#include <gtk/gtkwindow.h>
typedef GtkWindow ModestWindowParent;
typedef GtkWindowClass ModestWindowParentClass;
-#elif MODEST_PLATFORM_ID==2 /* hildon (maemo) */
+#endif /* MODEST_PLATFORM_GNOME */
+
+#ifdef MODEST_PLATFORM_MAEMO
#include <hildon-widgets/hildon-window.h>
typedef HildonWindow ModestWindowParent;
typedef HildonWindowClass ModestWindowParentClass;
-#endif /*MODEST_PLATFORM_ID*/
+#endif /*MODEST_PLATFORM_MAEMO */
/* convenience macros */
#define MODEST_TYPE_WINDOW (modest_window_get_type())
struct _ModestWindowClass {
ModestWindowParentClass parent_class;
+
+ /* virtual methods */
+ void (*set_zoom_func) (ModestWindow *self, gdouble zoom);
+ gdouble (*get_zoom_func) (ModestWindow *self);
};
-/* member functions */
+/**
+ * modest_window_get_type:
+ *
+ * get the #GType for #ModestWindow
+ *
+ * Returns: the type
+ */
GType modest_window_get_type (void) G_GNUC_CONST;
+
+/**
+ * modest_window_get_active_account:
+ * @self: a modest window instance
+ *
+ * get the name of the active account
+ *
+ * Returns: the active account name as a constant string
+ */
+const gchar* modest_window_get_active_account (ModestWindow *self);
+
+
+
+/**
+ * modest_window_set_active_account:
+ * @self: a modest window instance
+ * @active_account: a new active account name for this window
+ *
+ * set the active account for this window
+ *
+ */
+void modest_window_set_active_account (ModestWindow *self, const gchar *active_account);
+
+/**
+ * modest_window_set_zoom:
+ * @window: a #ModestWindow instance
+ * @zoom: the zoom level (1.0 is no zoom)
+ *
+ * sets the zoom level of the window
+ */
+void modest_window_set_zoom (ModestWindow *window,
+ gdouble value);
+
+/**
+ * modest_window_get_zoom:
+ * @window: a #ModestWindow instance
+ *
+ * gets the zoom of the window
+ *
+ * Returns: the current zoom value (1.0 is no zoom)
+ */
+gdouble modest_window_get_zoom (ModestWindow *window);
+
G_END_DECLS
#endif /* __MODEST_WINDOW_H__ */