summaryrefslogtreecommitdiffstats
path: root/tools/operationrunner/fakeinstaller.cpp
blob: e80dbb2a5bf9ba2eead63091e961f9ec95e8aa42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "fakeinstaller.h"

#include <QFileInfo>

void FakeInstaller::setTargetDir(const QString &targetDir)
{
    m_targetDir = QFileInfo(targetDir).absoluteFilePath();
}

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();
}