2 * This file is a part of QComicBook.
4 * Copyright (C) 2005-2006 Pawel Stolowski <yogin@linux.bydg.org>
6 * QComicBook is free software; you can redestribute it and/or modify it
7 * under terms of GNU General Public License by Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY. See GPL for more details.
16 /*! \file imgarchiver.h */
18 #include "imgarchivesink.h"
19 #include <qvaluelist.h>
23 class ImgArchiver: public ImgArchiveSink
28 void createProgress(int current, int total);
30 void createError(int code);
33 QProcess *pomp; ///< archiving process
35 QStringList newfiles; ///< list of new archive files
36 int newfilesnum; ///< newfiles count
37 int cmpcnt; ///< archiver output counter
39 virtual void doCleanup();
42 void compressExited();
43 void compressStdoutReady();
46 ImgArchiver(const ImgDirSink &sink);
47 virtual ~ImgArchiver();
49 virtual void create(const QString &destname, ArchiveType type, QValueList<int> pages);