* src/modest-tny-msg.c:
[modest] / src / modest-utils.h
index a055cc0..64845ba 100644 (file)
@@ -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__*/