ckb-next  v0.2.8 at branch master
ckb-next driver for corsair devices
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ckbsettingswriter.h
Go to the documentation of this file.
1 #ifndef CKBSETTINGSWRITER_H
2 #define CKBSETTINGSWRITER_H
3 
4 #include <QObject>
5 #include <QMap>
6 #include <QSettings>
7 #include <QStringList>
8 
9 // Setting de-cacher for CkbSettings
10 // It has to be declared in its own header or else Q_OBJECT doesn't work
11 
12 class CkbSettingsWriter : public QObject {
13  Q_OBJECT
14 public:
15  CkbSettingsWriter(QSettings* backing, const QStringList& removals, const QMap<QString, QVariant>& updates);
17 
18  Q_SLOT void run();
19 
20 private:
21  QSettings* _backing;
22  QStringList _removals;
23  QMap<QString, QVariant> _updates;
24 };
25 
26 #endif // CKBSETTINGSWRITER_H
CkbSettingsWriter(QSettings *backing, const QStringList &removals, const QMap< QString, QVariant > &updates)
QMap< QString, QVariant > _updates