diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2008-04-06 18:12:56 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2008-04-06 18:12:56 +0000 |
commit | c3969ed4c58d9c153bb95f6f70ad94dff1887495 (patch) | |
tree | 0bb9e820c55f16c7b8aac4eddb553c7fb0261341 /rbutil/rbutilqt/rbunzip.h | |
parent | 5076dca58e40fe0f70620f43ac6e43120038d3cb (diff) | |
download | rockbox-c3969ed4c58d9c153bb95f6f70ad94dff1887495.tar.gz rockbox-c3969ed4c58d9c153bb95f6f70ad94dff1887495.zip |
create an UnZip derived class for zip file extraction to allow showing progress while unzipping. Makes the unzip process somewhat interruptable and the UI more responsible.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16993 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/rbunzip.h')
-rw-r--r-- | rbutil/rbutilqt/rbunzip.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/rbunzip.h b/rbutil/rbutilqt/rbunzip.h new file mode 100644 index 0000000000..074d145a97 --- /dev/null +++ b/rbutil/rbutilqt/rbunzip.h | |||
@@ -0,0 +1,44 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * | ||
9 | * Copyright (C) 2008 by Dominik Riebeling | ||
10 | * $Id$ | ||
11 | * | ||
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. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | #ifndef RBUNZIP_H | ||
21 | #define RBUNZIP_H | ||
22 | |||
23 | #include <QtCore> | ||
24 | #include "zip/unzip.h" | ||
25 | #include "zip/zip.h" | ||
26 | |||
27 | class RbUnZip : public QObject, public UnZip | ||
28 | { | ||
29 | Q_OBJECT | ||
30 | public: | ||
31 | UnZip::ErrorCode extractArchive(const QString&); | ||
32 | |||
33 | signals: | ||
34 | void unzipProgress(int, int); | ||
35 | |||
36 | public slots: | ||
37 | void abortUnzip(void); | ||
38 | |||
39 | private: | ||
40 | bool m_abortunzip; | ||
41 | }; | ||
42 | |||
43 | #endif | ||
44 | |||