Dominik Wenger | 6e812b1 | 2008-05-10 17:55:53 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 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 Stenberg | 2acc0ac | 2008-06-28 18:10:04 +0000 | [diff] [blame^] | 12 | * 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 Wenger | 6e812b1 | 2008-05-10 17:55:53 +0000 | [diff] [blame] | 16 | * |
| 17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
| 18 | * KIND, either express or implied. |
| 19 | * |
Nicolas Pennequin | 9c54187 | 2008-05-11 17:21:14 +0000 | [diff] [blame] | 20 | ****************************************************************************/ |
| 21 | |
| 22 | #ifndef RBZIP_H |
| 23 | #define RBZIP_H |
| 24 | |
| 25 | #include <QtCore> |
| 26 | #include "zip/zip.h" |
Dominik Wenger | 6e812b1 | 2008-05-10 17:55:53 +0000 | [diff] [blame] | 27 | |
Nicolas Pennequin | 9c54187 | 2008-05-11 17:21:14 +0000 | [diff] [blame] | 28 | class RbZip : public QObject, public Zip |
| 29 | { |
| 30 | Q_OBJECT |
| 31 | public: |
Dominik Wenger | d24eb9e | 2008-05-11 18:22:42 +0000 | [diff] [blame] | 32 | Zip::ErrorCode createZip(QString zip,QString dir); |
Nicolas Pennequin | 9c54187 | 2008-05-11 17:21:14 +0000 | [diff] [blame] | 33 | |
| 34 | virtual void progress(); |
Dominik Wenger | d24eb9e | 2008-05-11 18:22:42 +0000 | [diff] [blame] | 35 | |
| 36 | signals: |
| 37 | void zipProgress(int, int); |
| 38 | |
Dominik Wenger | 6e812b1 | 2008-05-10 17:55:53 +0000 | [diff] [blame] | 39 | private: |
| 40 | int m_curEntry; |
Dominik Wenger | d24eb9e | 2008-05-11 18:22:42 +0000 | [diff] [blame] | 41 | int m_numEntrys; |
Nicolas Pennequin | 9c54187 | 2008-05-11 17:21:14 +0000 | [diff] [blame] | 42 | }; |
| 43 | |
| 44 | #endif |
| 45 | |