2013-02-17 [colin] 3.9.0cvs75
[claws.git] / src / plugins / archive / archiver_prefs.h
1 /*
2  * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999-2008 Michael Rasmussen and the Claws Mail Team
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  * 
18  */
19
20 #ifndef __ARCHIVERPREFS__
21 #define __ARCHIVERPREFS__
22
23 #include <glib.h>
24
25 typedef struct _ArchiverPrefs   ArchiverPrefs;
26
27 typedef enum {
28         COMPRESSION_ZIP,
29         COMPRESSION_BZIP,
30 #if NEW_ARCHIVE_API
31         COMPRESSION_COMPRESS,
32 #endif
33         COMPRESSION_NONE
34 } CompressionType;
35
36 typedef enum {
37         FORMAT_TAR,
38         FORMAT_SHAR,
39         FORMAT_CPIO,
40         FORMAT_PAX
41 } ArchiveFormat;
42
43 struct _ArchiverPrefs
44 {
45         gchar           *save_folder;
46         CompressionType compression;
47         ArchiveFormat   format;
48         gint            recursive;
49         gint            md5sum;
50         gint            rename;
51         gint            unlink;
52 };
53
54 extern ArchiverPrefs archiver_prefs;
55 void archiver_prefs_init(void);
56 void archiver_prefs_done(void);
57
58 #endif
59