2007-07-25 Murray Cumming <murrayc@murrayc.com>
[modest] / libmodest-dbus-client / libmodest-dbus-client.h
index 2795f76..484e700 100644 (file)
@@ -35,7 +35,7 @@
 #include <stdio.h>
 
 gboolean
-libmodest_dbus_client_send_mail (osso_context_t *osso_context, const gchar *to, 
+libmodest_dbus_client_compose_mail (osso_context_t *osso_context, const gchar *to, 
        const gchar *cc, const gchar *bcc, const gchar* subject, const gchar* body, 
        GSList *attachments);
        
@@ -50,6 +50,8 @@ libmodest_dbus_client_open_message (osso_context_t *osso_context,
 gboolean 
 libmodest_dbus_client_send_and_receive (osso_context_t *osso_context);
 
+gboolean 
+libmodest_dbus_client_open_default_inbox (osso_context_t *osso_context);
 
 typedef enum {
 
@@ -62,27 +64,42 @@ typedef enum {
 } ModestDBusSearchFlags;
 
 typedef struct {
-
-       gchar     *msgid;
+       gchar     *msgid; /* E.g. the URI of the message. */
        gchar     *subject;
-       gchar     *folder;
+       gchar     *folder; /* The name, not the URI. */
        gchar     *sender;
        guint64    msize;
        gboolean   has_attachment;
        gboolean   is_unread;
        gint64     timestamp;            
-
 } ModestSearchHit;
 
-gboolean
-libmodest_dbus_client_search (osso_context_t          *osso_ctx,
-                             const gchar             *query,
-                             const gchar             *folder,
-                             time_t                   start_date,
-                             time_t                   end_date,
-                             guint32                  min_size,
-                             ModestDBusSearchFlags    flags,
-                             GList                  **hits);
 
+void modest_search_hit_list_free (GList *hits);
+
+
+gboolean libmodest_dbus_client_search            (osso_context_t          *osso_ctx,
+                                                       const gchar             *query,
+                                                       const gchar             *folder,
+                                                       time_t                   start_date,
+                                                       time_t                   end_date,
+                                                       guint32                  min_size,
+                                                       ModestDBusSearchFlags    flags,
+                                                       GList                  **hits);
+
+gboolean libmodest_dbus_client_delete_message   (osso_context_t   *osso_ctx,
+                                                       const char       *msg_uri);
+                                                       
+                                                       
+typedef struct {
+       gchar     *folder_uri;
+       gchar     *folder_name;  
+} ModestFolderResult;
+
+gboolean libmodest_dbus_client_get_folders (osso_context_t *osso_ctx, GList **folders);        
+
+void modest_folder_result_list_free (GList *folders);
 
+                                               
+                                                       
 #endif /* __LIBMODEST_DBUS_CLIENT_H__ */