aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/modplatform/TexturePackModel.h
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-03-02 10:08:45 +0000
committerGitHub <noreply@github.com>2023-03-02 10:08:45 +0000
commit9265c319a96b3dd5681767c196a397fbbae9164a (patch)
tree2f2602a604d64201f1d626dc8655d6edfa0b3e0d /launcher/ui/pages/modplatform/TexturePackModel.h
parent9f202caf9356ebaf5fd845210adea5e935d4350f (diff)
parent89255e34bd0651ab226518090667bef92066d80c (diff)
downloadPrismLauncher-9265c319a96b3dd5681767c196a397fbbae9164a.tar.gz
PrismLauncher-9265c319a96b3dd5681767c196a397fbbae9164a.tar.bz2
PrismLauncher-9265c319a96b3dd5681767c196a397fbbae9164a.zip
Merge pull request #788 from flowln/other_resource_downloaders_two
Add resource pack, texture pack and shader pack downloaders
Diffstat (limited to 'launcher/ui/pages/modplatform/TexturePackModel.h')
-rw-r--r--launcher/ui/pages/modplatform/TexturePackModel.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/launcher/ui/pages/modplatform/TexturePackModel.h b/launcher/ui/pages/modplatform/TexturePackModel.h
new file mode 100644
index 00000000..bb2db5cf
--- /dev/null
+++ b/launcher/ui/pages/modplatform/TexturePackModel.h
@@ -0,0 +1,27 @@
+// SPDX-FileCopyrightText: 2023 flowln <flowlnlnln@gmail.com>
+//
+// SPDX-License-Identifier: GPL-3.0-only
+
+#pragma once
+
+#include "meta/VersionList.h"
+#include "ui/pages/modplatform/ResourcePackModel.h"
+
+namespace ResourceDownload {
+
+class TexturePackResourceModel : public ResourcePackResourceModel {
+ Q_OBJECT
+
+ public:
+ TexturePackResourceModel(BaseInstance const& inst, ResourceAPI* api);
+
+ [[nodiscard]] inline ::Version maximumTexturePackVersion() const { return { "1.6" }; }
+
+ ResourceAPI::SearchArgs createSearchArguments() override;
+ ResourceAPI::VersionSearchArgs createVersionsArguments(QModelIndex&) override;
+
+ protected:
+ Meta::VersionList::Ptr m_version_list;
+};
+
+} // namespace ResourceDownload