summaryrefslogtreecommitdiffstats
path: root/logic/trans/TranslationDownloader.h
diff options
context:
space:
mode:
Diffstat (limited to 'logic/trans/TranslationDownloader.h')
-rw-r--r--logic/trans/TranslationDownloader.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/logic/trans/TranslationDownloader.h b/logic/trans/TranslationDownloader.h
new file mode 100644
index 00000000..450b714b
--- /dev/null
+++ b/logic/trans/TranslationDownloader.h
@@ -0,0 +1,30 @@
+#pragma once
+
+#include <QList>
+#include <QUrl>
+#include <memory>
+#include <QObject>
+
+class ByteArrayDownload;
+class NetJob;
+
+class TranslationDownloader : public QObject
+{
+ Q_OBJECT
+
+public:
+ TranslationDownloader();
+
+ void downloadTranslations();
+
+private slots:
+ void indexRecieved();
+ void indexFailed();
+ void dlFailed();
+ void dlGood();
+
+private:
+ std::shared_ptr<ByteArrayDownload> m_index_task;
+ std::shared_ptr<NetJob> m_dl_job;
+ std::shared_ptr<NetJob> m_index_job;
+}; \ No newline at end of file