-
Notifications
You must be signed in to change notification settings - Fork 1
/
DLLHandler.h
47 lines (40 loc) · 948 Bytes
/
DLLHandler.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#pragma once
#include <QObject>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QProcess>
#include <QFile>
#include <QFileInfo>
#include <QMessageBox>
#include <QSettings>
#include <QList>
#include <QJsonDocument>
#include <QJsonObject>
#include <QDir>
#include "LXDQApp.h"
class DLLHandler : public QObject
{
Q_OBJECT
public:
DLLHandler();
~DLLHandler();
private:
QTime downloadclock;
qint64 lastrec;
QString sessionkey;
QNetworkAccessManager *accessmanager;
bool Inject(QString path, QByteArray xpr);
void DLLDownload(QString id);
public slots:
void doDLLget(QString id, QString sessionkey);
private slots:
void on_dll_downloaded(QNetworkReply *rep);
void on_progress_reported(qint64 rec, qint64 tot);
signals:
void statusreport(wchar_t *status);
void showerr(QString err);
void statusreport(QString msg, int ms);
void DLLfilereport(QString DLLpath);
void finished(bool);
};