diff options
Diffstat (limited to 'tools/operationrunner/fakeinstaller.cpp')
-rw-r--r-- | tools/operationrunner/fakeinstaller.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/operationrunner/fakeinstaller.cpp b/tools/operationrunner/fakeinstaller.cpp new file mode 100644 index 000000000..e58aa1258 --- /dev/null +++ b/tools/operationrunner/fakeinstaller.cpp @@ -0,0 +1,16 @@ +#include "fakeinstaller.h" + +void FakeInstaller::setTargetDir(const QString &targetDir) +{ + m_targetDir = targetDir; +} + +QString FakeInstaller::value(const QString &key, const QString &/*defaultValue*/) const +{ + if(key == QLatin1String("TargetDir")) { + return m_targetDir; + } else { + qFatal("This is only a fake installer and it can only handle \"TargetDir\" value."); + } + return QString(); +} |