support image/x-eps format via pdf_viewer
[claws.git] / src / plugins / archive / archiver.h
blob2d561271b7b8ad1a6d440726ac173be0c47a3184
1 /* vim: set textwidth=80 tabstop=4: */
3 /*
4 * Claws Mail -- a GTK based, lightweight, and fast e-mail client
5 * Copyright (C) 1999-2018 Michael Rasmussen and the Claws Mail Team
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef __ARCHIVER_H__
23 #define __ARCHIVER_H__
25 #include <glib.h>
26 #include <gtk/gtk.h>
28 static const char INVALID_UNIX_CHARS[] = {
29 '?', '%', '*', ':', '"', '|', '<', '>',
30 '(', ')', '#', ',', '\0'};
32 struct ArchivePage {
33 gchar* path;
34 gchar* name;
35 gboolean response;
36 gboolean force_overwrite;
37 gboolean md5;
38 gboolean rename;
39 GtkWidget* folder;
40 GtkWidget* file;
41 guint files;
42 guint total_size;
43 GSList* compress_methods;
44 GSList* archive_formats;
45 GtkWidget* recursive;
46 GtkWidget* md5sum;
47 GtkWidget* rename_files;
48 gboolean cancelled;
49 GtkWidget* isoDate;
50 gboolean unlink;
51 GtkWidget* unlink_files;
54 void archiver_gtk_show(void);
55 void archiver_gtk_done(struct ArchivePage* page, GtkWidget* widget);
56 void set_progress_file_label(const gchar* file);
57 void set_progress_print_all(guint fraction, guint total, guint step);
58 void stop_archiving(void);
60 #endif