X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fhildon2%2Fmodest-maemo-utils.h;h=d5c7f47fe2a42ac634038f2f336bac362d324c5b;hp=3bf1c5b5df292631dc8ac8c34fa240cebd323485;hb=514d7488390a9c4c31a9ca5e44f78dc9329b833d;hpb=2470c15ef83e02a1f15482b35588699ae5762b1c diff --git a/src/hildon2/modest-maemo-utils.h b/src/hildon2/modest-maemo-utils.h index 3bf1c5b..d5c7f47 100644 --- a/src/hildon2/modest-maemo-utils.h +++ b/src/hildon2/modest-maemo-utils.h @@ -39,7 +39,7 @@ #include "widgets/modest-validating-entry.h" #include -#define MODEST_MAEMO_UTILS_MYDOCS_FOLDER "MyDocs" +#define MODEST_MAEMO_UTILS_MYDOCS_ENV "MYDOCSDIR" #define MODEST_MAEMO_UTILS_DEFAULT_IMAGE_FOLDER ".images" @@ -75,25 +75,6 @@ void modest_maemo_utils_setup_images_filechooser (GtkFileChooser *chooser); osso_context_t *modest_maemo_utils_get_osso_context (void); /** - * modest_maemo_open_mcc_mapping_file: - * - * open the mcc mapping file, or NULL if it fails - * - * Returns: file ptr or NULL in case of error - */ -FILE* modest_maemo_open_mcc_mapping_file (void); - -/** - * modest_maemo_set_thumbable_scrollbar: - * @win: a scrollable window - * @thumbable: set it to thumbable (TRUE) or small (FALSE) - * - * changes the thumbability of scrollbars in a scrollable window - */ -void modest_maemo_set_thumbable_scrollbar (GtkScrolledWindow *win, gboolean thumbable); - - -/** * modest_maemo_get_osso_context: * * retrieve the osso context for this application @@ -124,25 +105,31 @@ void modest_maemo_utils_set_osso_context (osso_context_t *osso_context); */ GtkWidget *modest_maemo_utils_get_manager_menubar_as_menu (GtkUIManager *manager, const gchar *item_name); -GtkWidget *modest_maemo_utils_create_captioned (GtkSizeGroup *title_size_group, - GtkSizeGroup *value_size_group, - const gchar *title, - GtkWidget *control); - -GtkWidget *modest_maemo_utils_create_captioned_with_size_type (GtkSizeGroup *title_size_group, - GtkSizeGroup *value_size_group, - const gchar *title, - GtkWidget *control, - HildonSizeType size_type); - -void modest_maemo_utils_set_hbutton_layout (GtkSizeGroup *title_sizegroup, - GtkSizeGroup *value_sizegroup, - const gchar *title, - GtkWidget *button); -void modest_maemo_utils_set_vbutton_layout (GtkSizeGroup *sizegroup, - const gchar *title, - GtkWidget *button); - -GtkWidget *modest_maemo_utils_create_group_box (const gchar *label, GtkWidget *contents); +#ifdef MODEST_PLATFORM_MAEMO +/** + * modest_maemo_utils_in_usb_mode: + * + * Check if the device is working in mass storage mode + * + * Returns: returns TRUE if the internal memory of the device is + * working in mass storage mode + **/ +gboolean modest_maemo_utils_in_usb_mode (); +#endif + +/** + * modest_heartbeat_add: + * @function: function to call + * @userdata: data to pass to @function. + * + * Adds a function to be called when heartbeat is called. If the + * function returns FALSE it is automatically removed from the + * list of event sources and will not be called again. + * + * Returns: the ID (greater than 0) of the event source + */ +guint +modest_heartbeat_add (GSourceFunc function, + gpointer userdata); #endif /*__MODEST_MAEMO_UTILS_H__*/