X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-window.h;h=890235537367e934b164ed46b870170c162c2e44;hp=fa574fe35f02b3a8afa8de65641578864aa7ae35;hb=bb790bd8b50e81a1e965341d010864d6000c5b38;hpb=2ded5c8d7b2fc0b7fad127294e997939fe8d6a8e diff --git a/src/widgets/modest-window.h b/src/widgets/modest-window.h index fa574fe..8902355 100644 --- a/src/widgets/modest-window.h +++ b/src/widgets/modest-window.h @@ -32,7 +32,6 @@ #include #include -#include "modest-widget-factory.h" G_BEGIN_DECLS @@ -44,15 +43,17 @@ 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 typedef GtkWindow ModestWindowParent; typedef GtkWindowClass ModestWindowParentClass; -#elif MODEST_PLATFORM_ID==2 /* hildon (maemo) */ +#endif /* MODEST_PLATFORM_GNOME */ + +#ifdef MODEST_PLATFORM_MAEMO #include typedef HildonWindow ModestWindowParent; typedef HildonWindowClass ModestWindowParentClass; -#endif /*MODEST_PLATFORM_ID*/ +#endif /*MODEST_PLATFORM_MAEMO */ /* convenience macros */ #define MODEST_TYPE_WINDOW (modest_window_get_type()) @@ -73,30 +74,37 @@ struct _ModestWindowClass { 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_account_store: - * @window: a #ModestWindow + * modest_window_get_active_account: + * @self: a modest window instance * - * gets a new reference to the account store associated with the main - * window. The caller must free the returned instance + * get the name of the active account * - * Returns: the account store - **/ -TnyAccountStore* modest_window_get_account_store (ModestWindow *window); + * Returns: the active account name as a constant string + */ +const gchar* modest_window_get_active_account (ModestWindow *self); + + /** - * modest_window_get_widget_factory: - * @window: a #ModestWindow + * modest_window_set_active_account: + * @self: a modest window instance + * @active_account: a new active account name for this window * - * gets a reference to the #ModestWidgetFactory associated with the - * Modest Window. The caller must free the returned instance + * set the active account for this window * - * Returns: the widget factory - **/ -ModestWidgetFactory* modest_window_get_widget_factory (ModestWindow *window); + */ +void modest_window_set_active_account (ModestWindow *self, const gchar *active_account); G_END_DECLS