X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-utils.h;h=64845ba19281d9ec001ea69c9f0557743df130a2;hp=a055cc000f6d474dd9d082fa55d27fb81e9ab885;hb=d8de27fbff3a72a581ddf32c6c868b6dd80ee4cb;hpb=7929406e046ed92142ff337bd9161e6a16e1d04e;ds=sidebyside diff --git a/src/modest-utils.h b/src/modest-utils.h index a055cc0..64845ba 100644 --- a/src/modest-utils.h +++ b/src/modest-utils.h @@ -124,4 +124,26 @@ void modest_utils_show_dialog_and_forget (GtkWindow *parent_window, GtkDialog *d */ void modest_utils_toggle_action_set_active_block_notify (GtkToggleAction *action, gboolean value); +/** + * modest_list_index: + * @list: a #TnyList + * @object: a #GObject + * + * finds the index of @object in @list + * + * Returns: the index of @object, or -1 if @object is not in @list + */ +gint modest_list_index (TnyList *list, GObject *object); + +/** + * modest_folder_available_space: + * @maildir_path: the path of the maildir folder, or %NULL to + * get the space available in local folders + * + * Obtains the space available in the local folder. + * + * Returns: a #guint64 + */ +guint64 modest_folder_available_space (const gchar *maildir_path); + #endif /*__MODEST_MAEMO_UTILS_H__*/