summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/install.h
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2008-01-25 00:12:25 +0000
committerDominik Wenger <domonoky@googlemail.com>2008-01-25 00:12:25 +0000
commit3a54c9b58d05e29343eef2044cf3d3cbce47ca50 (patch)
tree66c0ba1f872af0af3e3c02ec8580ba697353cbf8 /rbutil/rbutilqt/install.h
parenta665d99d3a1e37c3fa7e1a5f79f9dbb82dd3686d (diff)
downloadrockbox-3a54c9b58d05e29343eef2044cf3d3cbce47ca50.tar.gz
rockbox-3a54c9b58d05e29343eef2044cf3d3cbce47ca50.tar.bz2
rockbox-3a54c9b58d05e29343eef2044cf3d3cbce47ca50.zip
rbtutil: introduce a RbSettings class help code reuse, and minimises duplicated code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16159 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/install.h')
-rw-r--r--rbutil/rbutilqt/install.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/rbutil/rbutilqt/install.h b/rbutil/rbutilqt/install.h
index 17c4ba1086..4d102a0e65 100644
--- a/rbutil/rbutilqt/install.h
+++ b/rbutil/rbutilqt/install.h
@@ -22,11 +22,10 @@
#include <QtGui>
-#include <QSettings>
-
#include "ui_installfrm.h"
#include "installzip.h"
#include "progressloggergui.h"
+#include "rbsettings.h"
class Install : public QDialog
{
@@ -34,8 +33,7 @@ class Install : public QDialog
public:
Install(QWidget *parent = 0);
void setProxy(QUrl);
- void setUserSettings(QSettings*);
- void setDeviceSettings(QSettings*);
+ void setSettings(RbSettings* sett);
void setVersionStrings(QMap<QString, QString>);
public slots:
@@ -45,8 +43,7 @@ class Install : public QDialog
Ui::InstallFrm ui;
ProgressLoggerGui* logger;
QUrl proxy;
- QSettings *devices;
- QSettings *userSettings;
+ RbSettings* settings;
QHttp *download;
QFile *target;
QString file;