aboutsummaryrefslogtreecommitdiff
path: root/installer/process/installworker.h
diff options
context:
space:
mode:
authorVictor Tran <vicr12345@gmail.com>2018-07-12 18:12:14 +1000
committerVictor Tran <vicr12345@gmail.com>2018-07-12 18:12:14 +1000
commit2adcd4f24eca2fa529c42fc1165319bcc4ea179e (patch)
tree1c1c8292e9e864640b19c7ff1ae4acaeb90244be /installer/process/installworker.h
downloadtheInstaller-2adcd4f24eca2fa529c42fc1165319bcc4ea179e.tar.gz
theInstaller-2adcd4f24eca2fa529c42fc1165319bcc4ea179e.tar.bz2
theInstaller-2adcd4f24eca2fa529c42fc1165319bcc4ea179e.zip
Initial commit
Diffstat (limited to 'installer/process/installworker.h')
-rw-r--r--installer/process/installworker.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/installer/process/installworker.h b/installer/process/installworker.h
new file mode 100644
index 0000000..84cbc48
--- /dev/null
+++ b/installer/process/installworker.h
@@ -0,0 +1,35 @@
+#ifndef INSTALLWORKER_H
+#define INSTALLWORKER_H
+
+#include <QObject>
+#include <QTextStream>
+#include <QLocalSocket>
+#include <QDebug>
+#include <QApplication>
+#include <QThread>
+#include <QNetworkAccessManager>
+#include <QNetworkRequest>
+#include <QNetworkReply>
+#include <QTemporaryFile>
+#include <QTemporaryDir>
+
+#include <iostream>
+
+class InstallWorker : public QObject
+{
+ Q_OBJECT
+public:
+ explicit InstallWorker(QObject *parent = nullptr);
+
+signals:
+
+public slots:
+ bool startWork();
+
+private:
+ QNetworkAccessManager mgr;
+ QTemporaryFile packageFile;
+ QTemporaryDir packageTemporaryDir;
+};
+
+#endif // INSTALLWORKER_H