-
Notifications
You must be signed in to change notification settings - Fork 16
/
wkinstaller.h
31 lines (29 loc) · 1005 Bytes
/
wkinstaller.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "libwololokingdoms/wkconverter.h"
#include "libwololokingdoms/wksettings.h"
#include <QObject>
#include <fs.h>
#include <memory>
#include <string>
class WKInstaller : public QObject, public WKConvertListener {
Q_OBJECT
private:
WKSettings settings;
std::unique_ptr<WKConverter> converter;
public slots:
void process();
signals:
void finished() override;
void log(std::string logMessage) override;
void setInfo(std::string info) override;
void createDialog(std::string info) override;
void createDialog(std::string info, std::string title) override;
void createDialog(std::string info, std::string toReplace,
std::string replaceWith) override;
void setProgress(int i) override;
void increaseProgress(int i) override;
public:
WKInstaller(WKSettings& settings);
void error(std::exception const& err, bool showDialog = false) override;
void installUserPatch(fs::path exePath,
std::vector<std::string> cliFlags) override;
};