scoring / expression matcher
[claws.git] / src / prefs_folder_item.h
1 #ifndef PREFS_FOLDER_ITEM_H
2
3 #define PREFS_FOLDER_ITEM_H
4
5 #include "folder.h"
6 #include <glib.h>
7
8 struct _PrefsFolderItem {
9         gchar * directory;
10
11         gboolean sort_by_number;
12         gboolean sort_by_size;
13         gboolean sort_by_date;
14         gboolean sort_by_from;
15         gboolean sort_by_subject;
16         gboolean sort_by_score;
17
18         gboolean sort_descending;
19
20         GSList * scoring;
21 };
22
23 typedef struct _PrefsFolderItem PrefsFolderItem;
24
25 void prefs_folder_item_read_config(FolderItem * item);
26 void prefs_folder_item_save_config(FolderItem * item);
27 void prefs_folder_item_set_config(FolderItem * item,
28                                   int sort_type, gint sort_mode);
29 PrefsFolderItem * prefs_folder_item_new(void);
30 void prefs_folder_item_free(PrefsFolderItem * prefs);
31
32 #endif