summaryrefslogtreecommitdiffstats
path: root/api/logic/modplatform/flame/UrlResolvingTask.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2019-11-18 00:38:36 +0100
committerPetr Mrázek <peterix@gmail.com>2019-11-18 00:38:36 +0100
commitaf5120c828831dfe41482ebaff79608ba8531ede (patch)
tree2e308ff3f356f8af94ce9bf7635a2884471ae5db /api/logic/modplatform/flame/UrlResolvingTask.h
parent47ed2f48d4a118876263f37b9fe2ab8911c2a8fe (diff)
downloadMultiMC-af5120c828831dfe41482ebaff79608ba8531ede.tar
MultiMC-af5120c828831dfe41482ebaff79608ba8531ede.tar.gz
MultiMC-af5120c828831dfe41482ebaff79608ba8531ede.tar.lz
MultiMC-af5120c828831dfe41482ebaff79608ba8531ede.tar.xz
MultiMC-af5120c828831dfe41482ebaff79608ba8531ede.zip
GH-2859 remove twitch page and modpack import from URL
The functionality was broken, beyond repair and an ongoing maintenance nightmare.
Diffstat (limited to 'api/logic/modplatform/flame/UrlResolvingTask.h')
-rw-r--r--api/logic/modplatform/flame/UrlResolvingTask.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/api/logic/modplatform/flame/UrlResolvingTask.h b/api/logic/modplatform/flame/UrlResolvingTask.h
deleted file mode 100644
index 98b78f67..00000000
--- a/api/logic/modplatform/flame/UrlResolvingTask.h
+++ /dev/null
@@ -1,43 +0,0 @@
-#pragma once
-
-#include "tasks/Task.h"
-#include "net/NetJob.h"
-#include "PackManifest.h"
-
-#include "multimc_logic_export.h"
-
-namespace Flame
-{
-class MULTIMC_LOGIC_EXPORT UrlResolvingTask : public Task
-{
- Q_OBJECT
-public:
- explicit UrlResolvingTask(const QString &toProcess);
- virtual ~UrlResolvingTask() {};
-
- const Flame::File &getResults() const
- {
- return m_result;
- }
-
-protected:
- virtual void executeTask() override;
-
-protected slots:
- void processCCIP();
- void processHTML();
- void processCursemeta();
-
-private:
- void resolveUrl();
- void resolveIDs();
-
-private: /* data */
- QString m_url;
- QString needle;
- Flame::File m_result;
- QByteArray results;
- NetJobPtr m_dljob;
-};
-}
-