summaryrefslogtreecommitdiff
path: root/src/deviceinfo.h
diff options
context:
space:
mode:
authorMateusz Łukasik <mati75@linuxmint.pl>2016-06-15 20:23:58 +0200
committerMateusz Łukasik <mati75@linuxmint.pl>2016-06-15 20:23:58 +0200
commit42be0eb4f1d7a25dca97e8e2eb4ec4d03b7931fb (patch)
treefae3347b0c924378c57862feea2708766d159771 /src/deviceinfo.h
parent1a2f0c9c1087899a00298db8fa70518d3c1e69f8 (diff)
Imported Upstream version 16.6.0~ds0
Diffstat (limited to 'src/deviceinfo.h')
-rw-r--r--src/deviceinfo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/deviceinfo.h b/src/deviceinfo.h
index 0f94447..e8a10cc 100644
--- a/src/deviceinfo.h
+++ b/src/deviceinfo.h
@@ -23,6 +23,10 @@
#include <QVariant>
#include <QList>
+#ifndef Q_OS_WIN
+#define CACHE_DEVICE_INFO
+#endif
+
class QSettings;
class DeviceData {
@@ -59,8 +63,10 @@ public:
#endif
protected:
+#ifdef CACHE_DEVICE_INFO
static void saveList(QSettings * set, const QString & section_name, const DeviceList & list);
static DeviceList loadList(QSettings * set, const QString & section_name);
+#endif
#ifdef Q_OS_WIN
enum DeviceType { Sound = 0, Display = 1 };