summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/rbsettings.h
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2008-02-10 18:25:49 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2008-02-10 18:25:49 +0000
commitee09cb7f0d2635db0f01da1fb9a20dac07f357c9 (patch)
treefa53890548dd5b3bfee7ed609a25358543be4d8e /rbutil/rbutilqt/rbsettings.h
parent7b8f4a534d71e6ca432c3a13bb2b1dd09ad052ed (diff)
downloadrockbox-ee09cb7f0d2635db0f01da1fb9a20dac07f357c9.tar.gz
rockbox-ee09cb7f0d2635db0f01da1fb9a20dac07f357c9.tar.bz2
rockbox-ee09cb7f0d2635db0f01da1fb9a20dac07f357c9.zip
Untie rbutil core logic from QtGui for cli:
- include QtCore instead of QtGui if possible - replace qApp with QCoreApplication::instance(), as qApp is only defined for QtGui - use QCoreApplication instead of QApplication for inherited static members. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16274 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/rbsettings.h')
-rw-r--r--rbutil/rbutilqt/rbsettings.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/rbutil/rbutilqt/rbsettings.h b/rbutil/rbutilqt/rbsettings.h
index 29aa9e8a1d..ad94c63801 100644
--- a/rbutil/rbutilqt/rbsettings.h
+++ b/rbutil/rbutilqt/rbsettings.h
@@ -20,7 +20,8 @@
#ifndef RBSETTINGS_H
#define RBSETTINGS_H
-#include <QtGui>
+#include <QtCore>
+
class QSettings;
class RbSettings : public QObject
@@ -79,7 +80,7 @@ class RbSettings : public QObject
QString name(QString plattform);
QString brand(QString plattform);
QStringList allLanguages();
-
+
bool curNeedsBootloader();
QString curBrand();
QString curName();
@@ -94,9 +95,7 @@ class RbSettings : public QObject
QString curTTS();
QString curResolution();
int curTargetId();
-
-
-
+
void setOfPath(QString path);
void setCachePath(QString path);
void setBuild(QString build);
@@ -123,11 +122,7 @@ class RbSettings : public QObject
void setEncoderComplexity(QString enc, int c);
void setEncoderVolume(QString enc,double v);
void setEncoderNarrowband(QString enc,bool nb);
-
-
-
-
-
+
private:
QSettings *devices;
QSettings *userSettings;