#include <glib-object.h>
#include <tny-account-store.h>
-#include "modest-widget-factory.h"
G_BEGIN_DECLS
* 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())
ModestWindowParentClass parent_class;
};
-/* 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);
+
+
G_END_DECLS
#endif /* __MODEST_WINDOW_H__ */