X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-folder-view.h;h=4cffc5d235bae59ad4879b3a2b888804a57e1273;hb=ec47f9c9669fccab54927a49c3c0f4233df2f180;hp=76186ce2f894e712ddfef051aec5f831da4a103c;hpb=c5637dfb0beccca9e090c874336a387277433ab6;p=modest diff --git a/src/widgets/modest-folder-view.h b/src/widgets/modest-folder-view.h index 76186ce..4cffc5d 100644 --- a/src/widgets/modest-folder-view.h +++ b/src/widgets/modest-folder-view.h @@ -45,6 +45,11 @@ G_BEGIN_DECLS #define MODEST_IS_FOLDER_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),MODEST_TYPE_FOLDER_VIEW)) #define MODEST_FOLDER_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),MODEST_TYPE_FOLDER_VIEW,ModestFolderViewClass)) +typedef enum _ModestFolderViewStyle { + MODEST_FOLDER_VIEW_STYLE_SHOW_ALL, + MODEST_FOLDER_VIEW_STYLE_SHOW_ONE +} ModestFolderViewStyle; + typedef struct _ModestFolderView ModestFolderView; typedef struct _ModestFolderViewClass ModestFolderViewClass; @@ -138,6 +143,22 @@ gboolean modest_folder_view_update_model (ModestFolderView *self, **/ const gchar* modest_folder_view_get_selected_display_name (ModestFolderView *self); + +/** + * modest_folder_view_set_style: + * @self: a #ModestFolderView + * @style: a #ModestFolderViewStyle + * + * Sets the folder view style. There are currently two available, + * MODEST_FOLDER_VIEW_STYLE_SHOW_ALL shows all the active accounts, + * and MODEST_FOLDER_VIEW_STYLE_SHOW_ONE (Maemo style) shows the local + * account the mmc and only one of the available active server + * accounts + + **/ +void modest_folder_view_set_style (ModestFolderView *self, + ModestFolderViewStyle style); + G_END_DECLS #endif /* __MODEST_FOLDER_VIEW_H__ */