First stab at porting rbutil to Qt4. Currently only installing a current or archived...
[Rockbox.git] / rbutil / rbutilqt / rbutilqt.h
blob89a3610fba9747b6baa0a2abd3ce873789afca8a
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2007 by Dominik Riebeling
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 QRBUTIL_H
22 #define QRBUTIL_H
24 #include "ui_rbutilqtfrm.h"
25 #include "httpget.h"
26 #include <QSettings>
27 #include <QTemporaryFile>
30 class RbUtilQt : public QMainWindow
32 Q_OBJECT
34 public:
35 RbUtilQt(QWidget *parent = 0);
37 private:
38 Ui::RbUtilQtFrm ui;
39 QSettings *devices;
40 QSettings *userSettings;
41 void initDeviceNames(void);
42 QString deviceName(QString);
43 QString platform;
44 HttpGet *daily;
45 QString absolutePath;
46 QTemporaryFile buildInfo;
48 private slots:
49 void about(void);
50 void configDialog(void);
51 void updateDevice(int);
52 void install(void);
53 void downloadDone(bool);
54 void downloadDone(int, bool);
55 void downloadInfo(void);
58 #endif