summaryrefslogtreecommitdiffstats
path: root/tools/operationrunner/fakeinstaller.cpp
blob: e58aa12581138e95f20b9144000968413ee74894 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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();
}