summaryrefslogtreecommitdiffstats
path: root/api/logic/net/Download.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-05-03 23:11:52 +0200
committerPetr Mrázek <peterix@gmail.com>2017-05-03 23:13:49 +0200
commite76e6329cdf4f1613c6303debd3ca43493147f7b (patch)
tree69a21f72da050a7c67435eae8850a73942ada1bd /api/logic/net/Download.h
parent0efa714ba55a33ea6dbcbd08b50c0b09675ce83b (diff)
downloadMultiMC-e76e6329cdf4f1613c6303debd3ca43493147f7b.tar
MultiMC-e76e6329cdf4f1613c6303debd3ca43493147f7b.tar.gz
MultiMC-e76e6329cdf4f1613c6303debd3ca43493147f7b.tar.lz
MultiMC-e76e6329cdf4f1613c6303debd3ca43493147f7b.tar.xz
MultiMC-e76e6329cdf4f1613c6303debd3ca43493147f7b.zip
NOISSUE Revert all recent changes to NetAction and NetJob
Diffstat (limited to 'api/logic/net/Download.h')
-rw-r--r--api/logic/net/Download.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/api/logic/net/Download.h b/api/logic/net/Download.h
index fdc83d5e..3347dc96 100644
--- a/api/logic/net/Download.h
+++ b/api/logic/net/Download.h
@@ -27,7 +27,7 @@ class MULTIMC_LOGIC_EXPORT Download : public NetAction
Q_OBJECT
public: /* types */
- typedef shared_qobject_ptr<class Download> Ptr;
+ typedef std::shared_ptr<class Download> Ptr;
enum class Option
{
NoOptions = 0,
@@ -50,10 +50,9 @@ public: /* methods */
}
void addValidator(Validator * v);
bool abort() override;
- bool canAbort() const override;
+ bool canAbort() override;
private: /* methods */
- QString getRedirect();
bool handleRedirect();
protected slots:
@@ -63,7 +62,7 @@ protected slots:
void downloadReadyRead() override;
public slots:
- void executeTask() override;
+ void start() override;
private: /* data */
// FIXME: remove this, it has no business being here.