summaryrefslogtreecommitdiffstats
path: root/tools/operationrunner/fakeinstaller.h
blob: e623a1487fed11ff31653b8fcdf23077b40854be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef FAKEINSTALLER_H
#define FAKEINSTALLER_H

#include <qinstaller.h>

#include <QObject>
#include <QMetaType>
#include <QString>

class FakeInstaller : public QInstaller::Installer
{
    Q_OBJECT
public:
    FakeInstaller() : QInstaller::Installer() {}
    void setTargetDir(const QString &targetDir);
    virtual Q_INVOKABLE QString value(const QString &key, const QString &defaultValue = QString()) const;

private:
    QString m_targetDir;
};

Q_DECLARE_METATYPE(FakeInstaller*)

#endif // FAKEINSTALLER_H