blob: 7dd6010aee6d92a2a33f77b664df83581b73845c [file] [log] [blame]
Dominik Wenger6e812b12008-05-10 17:55:53 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 *
9 * Copyright (C) 2008 by Dominik Wenger
10 * $Id: rbzip.h 16993 2008-04-06 18:12:56Z bluebrother $
11 *
Daniel Stenberg2acc0ac2008-06-28 18:10:04 +000012 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
Dominik Wenger6e812b12008-05-10 17:55:53 +000016 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
Nicolas Pennequin9c541872008-05-11 17:21:14 +000020 ****************************************************************************/
21
22#ifndef RBZIP_H
23#define RBZIP_H
24
25#include <QtCore>
26#include "zip/zip.h"
Dominik Wenger6e812b12008-05-10 17:55:53 +000027
Nicolas Pennequin9c541872008-05-11 17:21:14 +000028class RbZip : public QObject, public Zip
29{
30 Q_OBJECT
31 public:
Dominik Wengerd24eb9e2008-05-11 18:22:42 +000032 Zip::ErrorCode createZip(QString zip,QString dir);
Nicolas Pennequin9c541872008-05-11 17:21:14 +000033
34 virtual void progress();
Dominik Wengerd24eb9e2008-05-11 18:22:42 +000035
36 signals:
37 void zipProgress(int, int);
38
Dominik Wenger6e812b12008-05-10 17:55:53 +000039 private:
40 int m_curEntry;
Dominik Wengerd24eb9e2008-05-11 18:22:42 +000041 int m_numEntrys;
Nicolas Pennequin9c541872008-05-11 17:21:14 +000042};
43
44#endif
45