X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmaemo%2Fmodest-maemo-utils.h;h=f2661cb4d52a12a644b09a29bc910bbc8fadb588;hp=42cef66c7b264224553637296cf6edfec0a06337;hb=09dfe9998a95da74c29035fd1a19332be0737cad;hpb=58a56ec81a7a1821f581acc9a67e53cc88ecbba5 diff --git a/src/maemo/modest-maemo-utils.h b/src/maemo/modest-maemo-utils.h index 42cef66..f2661cb 100644 --- a/src/maemo/modest-maemo-utils.h +++ b/src/maemo/modest-maemo-utils.h @@ -35,6 +35,8 @@ #include /* for FILE* */ #include #include +#include + #define MODEST_MAEMO_UTILS_MYDOCS_FOLDER "MyDocs" #define MODEST_MAEMO_UTILS_DEFAULT_IMAGE_FOLDER ".images" @@ -126,6 +128,18 @@ GList* modest_maemo_utils_get_supported_secure_authentication_methods (ModestTra */ void modest_maemo_utils_setup_images_filechooser (GtkFileChooser *chooser); + +/** + * modest_maemo_utils_get_osso_context: + * + * get the osso_context pointer for this application + * + * Return: the osso context pointer + */ +osso_context_t *modest_maemo_utils_get_osso_context (void); + + + /** modest_maemo_show_information_note_in_main_context_and_forget: * @parent_window: The window for which the note should be transient. * @message: The text to show. @@ -175,4 +189,24 @@ void modest_maemo_set_thumbable_scrollbar (GtkScrolledWindow *win, gboolean thum */ void modest_maemo_toggle_action_set_active_block_notify (GtkToggleAction *action, gboolean value); + +/** + * modest_maemo_get_osso_context: + * + * retrieve the osso context for this application + * + * Returns: the current osso_context_t ptr + */ +osso_context_t* modest_maemo_utils_get_osso_context (void); + +/** + * modest_maemo_set_osso_context: + * + * remember the osso-context for this application + * + * @osso_context: a valid osso_context_t pointer + * + */ +void modest_maemo_utils_set_osso_context (osso_context_t *osso_context); + #endif /*__MODEST_MAEMO_UTILS_H__*/