Make addItem() a slot to be able adding items using a signal.
[Rockbox.git] / rbutil / rbutilqt / rbzip.h
blobda535fdfda2165c84d0bf3dc927c22fc2035bf66
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2008 by Dominik Wenger
10 * $Id: rbzip.h 16993 2008-04-06 18:12:56Z bluebrother $
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 RBZIP_H
21 #define RBZIP_H
23 #include <QtCore>
24 #include "zip/zip.h"
26 class RbZip : public QObject, public Zip
28 Q_OBJECT
29 public:
30 Zip::ErrorCode createZip(QString zip,QString dir);
32 virtual void progress();
34 signals:
35 void zipProgress(int, int);
37 private:
38 int m_curEntry;
39 int m_numEntrys;
42 #endif