X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fhildon2%2Fmodest-maemo-utils.h;h=00667a51693d2a925bf5306fa1b2a119c3222c0f;hp=bd679c7e0fb807eaf484b32a68b878b2938af10f;hb=2bca28dca2c6aa234f8297eab0dc9cb6affdc50f;hpb=00ae0c2e5c1602c2f8b83efbb753a7c174e0e19a diff --git a/src/hildon2/modest-maemo-utils.h b/src/hildon2/modest-maemo-utils.h index bd679c7..00667a5 100644 --- a/src/hildon2/modest-maemo-utils.h +++ b/src/hildon2/modest-maemo-utils.h @@ -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 @@ -141,6 +122,8 @@ void modest_maemo_utils_captioned_set_label (GtkWidget *captioned, const gchar *new_label, gboolean use_markup); +GtkWidget *modest_maemo_utils_captioned_get_label_widget (GtkWidget *captioned); + void modest_maemo_utils_set_hbutton_layout (GtkSizeGroup *title_sizegroup, GtkSizeGroup *value_sizegroup, const gchar *title, @@ -151,4 +134,33 @@ void modest_maemo_utils_set_vbutton_layout (GtkSizeGroup *sizegroup, GtkWidget *modest_maemo_utils_create_group_box (const gchar *label, GtkWidget *contents); +gboolean modest_maemo_utils_select_attachments (GtkWindow *window, TnyList *att_list, gboolean include_msgs); + +#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__*/