2022-03-07 19:46:08 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "modplatform/ModAPI.h"
|
|
|
|
|
|
|
|
class NetworkModAPI : public ModAPI {
|
|
|
|
public:
|
|
|
|
void searchMods(CallerType* caller, SearchArgs&& args) const override;
|
2022-05-24 13:38:48 +01:00
|
|
|
void getModInfo(CallerType* caller, ModPlatform::IndexedPack& pack) override;
|
2022-03-24 21:39:53 +00:00
|
|
|
void getVersions(CallerType* caller, VersionSearchArgs&& args) const override;
|
2022-03-07 19:46:08 +00:00
|
|
|
|
2022-06-19 18:29:21 +01:00
|
|
|
auto getProject(QString addonId, QByteArray* response) const -> NetJob::Ptr override;
|
|
|
|
|
2022-03-07 19:46:08 +00:00
|
|
|
protected:
|
2022-03-08 14:12:35 +00:00
|
|
|
virtual auto getModSearchURL(SearchArgs& args) const -> QString = 0;
|
2022-05-24 13:38:48 +01:00
|
|
|
virtual auto getModInfoURL(QString& id) const -> QString = 0;
|
2022-03-24 21:39:53 +00:00
|
|
|
virtual auto getVersionsURL(VersionSearchArgs& args) const -> QString = 0;
|
2022-03-07 19:46:08 +00:00
|
|
|
};
|