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