summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/packagemanagercore_p.h
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2013-05-27 15:51:42 +0200
committerKarsten Heimrich <karsten.heimrich@digia.com>2013-05-28 11:58:51 +0200
commitb25e8f057e845b8fde2748f65515f993b96261fc (patch)
tree146338e26ba04eeb52cf48445999e2ec85905b94 /src/libs/installer/packagemanagercore_p.h
parentfd98ce97bc44e7efac7c3943fc5756c364afdd75 (diff)
Implement configuration interface.
Task-number: QTIFW-196 Change-Id: I87724252ae4860c2fadc12786c6e588d9c45332f Reviewed-by: Niels Weber <niels.weber@digia.com>
Diffstat (limited to 'src/libs/installer/packagemanagercore_p.h')
-rw-r--r--src/libs/installer/packagemanagercore_p.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/libs/installer/packagemanagercore_p.h b/src/libs/installer/packagemanagercore_p.h
index 80815c252..839497385 100644
--- a/src/libs/installer/packagemanagercore_p.h
+++ b/src/libs/installer/packagemanagercore_p.h
@@ -50,6 +50,7 @@
#include "kdsysinfo.h"
#include "kdupdaterapplication.h"
#include "kdupdaterfiledownloaderfactory.h"
+#include "kdupdaterupdatefinder.h"
#include <QObject>
@@ -69,6 +70,26 @@ class ScriptEngine;
class ComponentModel;
class TempDirDeleter;
+/*
+ The default configuration interface implementation does call QSettings to save files for later deletion,
+ though according to QSettings there should nothing be written if QSettings is not setup properly (which
+ we do not in our case). Still, caused by a broken QSettings implementation at least on Linux we write an
+ empty config file which resulted in QTIFW-196. To workaround the issue we now use this empty dummy class.
+*/
+class DummyConfigurationInterface : public KDUpdater::ConfigurationInterface
+{
+public:
+ QVariant value(const QString &key) const
+ {
+ Q_UNUSED(key)
+ return QVariant();
+ }
+ void setValue(const QString &key, const QVariant &value)
+ {
+ qDebug() << "DummyConfigurationInterface called with key:" << key << "and value:" << value;
+ }
+};
+
class PackageManagerCorePrivate : public QObject
{
Q_OBJECT