Fix some quotation marks. Thanks to Alexander Levin for pointing it out.
[Rockbox.git] / rbutil / rbutilqt / installzip.h
blobece5d88072ca1b6c33786bb962c07dd29d8dfb59
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2007 by Dominik Wenger
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 ****************************************************************************/
21 #ifndef INSTALLZIP_H
22 #define INSTALLZIP_H
26 #include <QtCore>
27 #include <QtNetwork>
29 #include "progressloggerinterface.h"
30 #include "httpget.h"
32 class ZipInstaller : public QObject
34 Q_OBJECT
35 public:
36 ZipInstaller(QObject* parent) ;
37 ~ZipInstaller(){}
38 void install(ProgressloggerInterface* dp);
39 void setMountPoint(QString mountpoint) {m_mountpoint = mountpoint;}
40 void setUrl(QString url){m_urllist = QStringList(url);}
41 void setUrl(QStringList url) { m_urllist = url; }
42 void setLogSection(QString name) {m_loglist = QStringList(name);}
43 void setLogSection(QStringList name) { m_loglist = name; }
44 void setLogVersion(QString v) { m_verlist = QStringList(v); qDebug() << m_verlist;}
45 void setLogVersion(QStringList v) { m_verlist = v; qDebug() << m_verlist;}
46 void setUnzip(bool i) { m_unzip = i; }
47 void setTarget(QString t) { m_target = t; }
48 void setCache(QDir c) { m_cache = c; };
49 void setCache(bool c) { m_usecache = c; };
50 void setCache(QString c) { m_cache = QDir(c);}
52 signals:
53 void done(bool error);
54 void cont();
56 private slots:
57 void updateDataReadProgress(int, int);
58 void downloadDone(bool);
59 void installStart(void);
60 void installContinue(void);
62 private:
63 void installSingle(ProgressloggerInterface *dp);
64 QString m_url, m_file, m_mountpoint, m_logsection, m_logver;
65 QStringList m_urllist, m_loglist, m_verlist;
66 bool m_unzip;
67 QString m_target;
68 int runner;
69 QDir m_cache;
70 bool m_usecache;
72 HttpGet *getter;
73 QTemporaryFile *downloadFile;
75 ProgressloggerInterface* m_dp;
80 #endif