refactor: put resource downloading classes in common namespace

Puts them all inside the 'ResourceDownload' namespace, so that it's a
bit clearer from the outside that those belong to the same 'module'.

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow
2022-12-16 19:03:52 -03:00
parent 6a18079953
commit 433a802c6e
21 changed files with 156 additions and 81 deletions

View File

@ -7,16 +7,17 @@
#include "ui/pages/modplatform/ResourceModel.h"
class ModPage;
class Version;
namespace ModPlatform {
namespace ResourceDownload {
class ListModel : public ResourceModel {
class ModPage;
class ModModel : public ResourceModel {
Q_OBJECT
public:
ListModel(ModPage* parent, ResourceAPI* api);
ModModel(ModPage* parent, ResourceAPI* api);
/* Ask the API for more information */
void searchWithTerm(const QString& term, const int sort, const bool filter_changed);
@ -51,4 +52,5 @@ class ListModel : public ResourceModel {
protected:
int currentSort = 0;
};
} // namespace ModPlatform
} // namespace ResourceDownload