blob: 6a581eda0becc6a86c975d5d8ef29339e28f864e (
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);
Q_INVOKABLE virtual QString value(const QString &key, const QString &defaultValue = QString()) const;
private:
QString m_targetDir;
};
Q_DECLARE_METATYPE(FakeInstaller*)
#endif // FAKEINSTALLER_H
|