diff options
Diffstat (limited to 'rbutil/rbutilqt/installrb.h')
-rw-r--r-- | rbutil/rbutilqt/installrb.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/installrb.h b/rbutil/rbutilqt/installrb.h new file mode 100644 index 0000000000..91268d5a97 --- /dev/null +++ b/rbutil/rbutilqt/installrb.h | |||
@@ -0,0 +1,60 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * | ||
9 | * Copyright (C) 2007 by Dominik Riebeling | ||
10 | * $Id: installrb.h 13990 2007-07-25 22:26:10Z Dominik Wenger $ | ||
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 | |||
21 | #ifndef INSTALLRB_H | ||
22 | #define INSTALLRB_H | ||
23 | |||
24 | |||
25 | |||
26 | #include <QtGui> | ||
27 | #include <QtNetwork> | ||
28 | |||
29 | #include "ui_installprogressfrm.h" | ||
30 | #include "httpget.h" | ||
31 | |||
32 | class RBInstaller : public QObject | ||
33 | { | ||
34 | Q_OBJECT | ||
35 | public: | ||
36 | RBInstaller(QObject* parent) ; | ||
37 | ~RBInstaller(){} | ||
38 | void install(QString url,QString filename,QString mountpoint, QUrl proxy,Ui::InstallProgressFrm* dp); | ||
39 | |||
40 | signals: | ||
41 | void done(bool error); | ||
42 | |||
43 | private slots: | ||
44 | void updateDataReadProgress(int, int); | ||
45 | void downloadDone(bool); | ||
46 | void downloadRequestFinished(int, bool); | ||
47 | |||
48 | private: | ||
49 | QString m_url,m_file,m_mountpoint; | ||
50 | |||
51 | HttpGet *getter; | ||
52 | QTemporaryFile downloadFile; | ||
53 | |||
54 | Ui::InstallProgressFrm* m_dp; | ||
55 | }; | ||
56 | |||
57 | |||
58 | |||
59 | #endif | ||
60 | |||