More work on default pixmaps theme, few details in corners to get
[claws.git] / src / partial_download.h
1 /*
2  * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999-2012 Colin Leroy <colin@colino.net> 
4  * and the Claws Mail team
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  * 
19  */
20 #ifndef __PARTIAL_DOWNLOAD_H__
21 #define __PARTIAL_DOWNLOAD_H__
22
23 #ifdef HAVE_CONFIG_H
24 #include "claws-features.h"
25 #endif
26
27 #include <glib.h>
28 #include <time.h>
29
30 #include "procmsg.h"
31
32 typedef enum {
33         POP3_PARTIAL_DLOAD_UNKN = 0,
34         POP3_PARTIAL_DLOAD_DLOAD= 1,
35         POP3_PARTIAL_DLOAD_DELE = 2
36 } PartialDownloadAction;
37
38 typedef enum {
39         POP3_TOTALLY_RECEIVED   = 0,
40         POP3_PARTIALLY_RECEIVED = 1,
41         POP3_MUST_COMPLETE_RECV = 2
42 } PartialDownloadStatus;
43
44 gint   partial_msg_in_uidl_list (MsgInfo        *msginfo);
45 int    partial_mark_for_download(MsgInfo        *msginfo);
46 int    partial_mark_for_delete  (MsgInfo        *msginfo);
47 int    partial_unmark           (MsgInfo        *msginfo);
48 gchar *partial_get_filename     (const gchar    *server,
49                                  const gchar    *login, 
50                                  const gchar    *muidl);
51 void   partial_delete_old       (const gchar    *file);
52
53 #endif /* __PARTIAL_DOWNLOAD_H__ */