aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/helpers/NetworkResourceAPI.h
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-07-02 13:14:19 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-07-02 13:14:19 +0300
commit7ac2a23bc8083f0320d73af32f62ad97a407557b (patch)
treefc4004dacb288ebefce9420099cc29f67383d41a /launcher/modplatform/helpers/NetworkResourceAPI.h
parentf8adb508ab0152af76829e0fdee92b451dcc1acf (diff)
parentb51f1f1d41a6153c37b1d61a04df8ece5004cc27 (diff)
downloadPrismLauncher-7ac2a23bc8083f0320d73af32f62ad97a407557b.tar.gz
PrismLauncher-7ac2a23bc8083f0320d73af32f62ad97a407557b.tar.bz2
PrismLauncher-7ac2a23bc8083f0320d73af32f62ad97a407557b.zip
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into catpacks
Diffstat (limited to 'launcher/modplatform/helpers/NetworkResourceAPI.h')
-rw-r--r--launcher/modplatform/helpers/NetworkResourceAPI.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/launcher/modplatform/helpers/NetworkResourceAPI.h b/launcher/modplatform/helpers/NetworkResourceAPI.h
index 94813bec..b72e8253 100644
--- a/launcher/modplatform/helpers/NetworkResourceAPI.h
+++ b/launcher/modplatform/helpers/NetworkResourceAPI.h
@@ -4,19 +4,22 @@
#pragma once
+#include <memory>
#include "modplatform/ResourceAPI.h"
class NetworkResourceAPI : public ResourceAPI {
public:
Task::Ptr searchProjects(SearchArgs&&, SearchCallbacks&&) const override;
- Task::Ptr getProject(QString addonId, QByteArray* response) const override;
+ Task::Ptr getProject(QString addonId, std::shared_ptr<QByteArray> response) const override;
Task::Ptr getProjectInfo(ProjectInfoArgs&&, ProjectInfoCallbacks&&) const override;
Task::Ptr getProjectVersions(VersionSearchArgs&&, VersionSearchCallbacks&&) const override;
+ Task::Ptr getDependencyVersion(DependencySearchArgs&&, DependencySearchCallbacks&&) const override;
protected:
[[nodiscard]] virtual auto getSearchURL(SearchArgs const& args) const -> std::optional<QString> = 0;
[[nodiscard]] virtual auto getInfoURL(QString const& id) const -> std::optional<QString> = 0;
[[nodiscard]] virtual auto getVersionsURL(VersionSearchArgs const& args) const -> std::optional<QString> = 0;
+ [[nodiscard]] virtual auto getDependencyURL(DependencySearchArgs const& args) const -> std::optional<QString> = 0;
};