* modest-outside-scratchbox patch 2:
[modest] / src / modest-search.h
index 0db1a31..3a01424 100644 (file)
@@ -59,12 +59,31 @@ typedef enum {
 } ModestSearchFlags;
 
 typedef struct {
-       gchar *subject, *from, *recipient, *body;
-       time_t before, after;
+       gchar     *msgid; /* E.g. the URI of the message. */
+       gchar     *subject;
+       gchar     *folder; /* The name, not the URI. */
+       gchar     *sender;
+       guint64    msize;
+       gboolean   has_attachment;
+       gboolean   is_unread;
+       gint64     timestamp;            
+} ModestSearchResultHit;
+
+typedef struct {
+       const gchar *folder; /* The folder to search in */
+       
+       /* Text to search for in various parts: */
+       const gchar *subject;
+       const gchar *from;
+       const gchar *recipient;
+       const gchar *body;
+       
+       /* Other criteria: */
+       time_t start_date, end_date;
        guint32 minsize;
        ModestSearchFlags flags;
 #ifdef MODEST_HAVE_OGS
-       const gchar     *query;
+       const gchar     *query; /* The text to search for. */
        OgsTextSearcher *text_searcher; 
 #endif
 } ModestSearch;