create an UnZip derived class for zip file extraction to allow showing progress while...
[Rockbox.git] / rbutil / rbutilqt / rbunzip.h
blob074d145a979051d39b50390fc74bd1527cafe122
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2008 by Dominik Riebeling
10 * $Id$
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
20 #ifndef RBUNZIP_H
21 #define RBUNZIP_H
23 #include <QtCore>
24 #include "zip/unzip.h"
25 #include "zip/zip.h"
27 class RbUnZip : public QObject, public UnZip
29 Q_OBJECT
30 public:
31 UnZip::ErrorCode extractArchive(const QString&);
33 signals:
34 void unzipProgress(int, int);
36 public slots:
37 void abortUnzip(void);
39 private:
40 bool m_abortunzip;
43 #endif