summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/tts.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/tts.h
parenta665d99d3a1e37c3fa7e1a5f79f9dbb82dd3686d (diff)
downloadrockbox-3a54c9b58d05e29343eef2044cf3d3cbce47ca50.tar.gz
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/tts.h')
-rw-r--r--rbutil/rbutilqt/tts.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/rbutil/rbutilqt/tts.h b/rbutil/rbutilqt/tts.h
index d792f077e0..90c402d8cc 100644
--- a/rbutil/rbutilqt/tts.h
+++ b/rbutil/rbutilqt/tts.h
@@ -23,6 +23,7 @@
#include "ui_ttsexescfgfrm.h"
#include "ui_sapicfgfrm.h"
+#include "rbsettings.h"
#include <QtGui>
@@ -47,7 +48,7 @@ public:
virtual void showCfg(){}
virtual bool configOk(){return false;}
- void setCfg(QSettings *uSettings, QSettings *dSettings){userSettings = uSettings;deviceSettings = dSettings;}
+ void setCfg(RbSettings* sett){settings = sett;}
public slots:
virtual void accept(void){}
@@ -55,9 +56,7 @@ public slots:
virtual void reset(void){}
protected:
- QSettings *userSettings;
- QSettings *deviceSettings;
-
+ RbSettings* settings;
};
class TTSSapi : public TTSBase