diff options
author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-06-01 20:15:39 -0700 |
---|---|---|
committer | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-06-25 11:09:25 -0700 |
commit | 418677ef310ebde9e2ce6fa98e224b6d4d1aa9f4 (patch) | |
tree | 77a13e01c91575bced101f6b899577d6294d5596 /launcher/net/Download.h | |
parent | 9c10965997d873b0de56deef5d5ec5e768db1d8f (diff) | |
download | PrismLauncher-418677ef310ebde9e2ce6fa98e224b6d4d1aa9f4.tar.gz PrismLauncher-418677ef310ebde9e2ce6fa98e224b6d4d1aa9f4.tar.bz2 PrismLauncher-418677ef310ebde9e2ce6fa98e224b6d4d1aa9f4.zip |
refactor: override / mask static `make` functions for ApiDownload
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/net/Download.h')
-rw-r--r-- | launcher/net/Download.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/launcher/net/Download.h b/launcher/net/Download.h index 920164a3..fee04feb 100644 --- a/launcher/net/Download.h +++ b/launcher/net/Download.h @@ -63,6 +63,8 @@ class Download : public NetAction { static auto makeByteArray(QUrl url, QByteArray* output, Options options = Option::NoOptions) -> Download::Ptr; static auto makeFile(QUrl url, QString path, Options options = Option::NoOptions) -> Download::Ptr; + void init() override {}; + public: void addValidator(Validator* v); auto abort() -> bool override; @@ -81,7 +83,7 @@ class Download : public NetAction { public slots: void executeTask() override; - private: + protected: std::unique_ptr<Sink> m_sink; Options m_options; |