Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ManifestValidationScreenController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/DirtyFlag.h"
7#include "mc/client/gui/screens/controllers/MinecraftScreenController.h"
8#include "mc/deps/core/file/PathBuffer.h"
9#include "mc/deps/core/resource/ResourceLocation.h"
10#include "mc/deps/core/utility/NonOwnerPointer.h"
11
12// auto generated forward declare list
13// clang-format off
17class PackManifest;
19struct PackContentItem;
20struct PackErrorInfo;
21namespace Core { class Path; }
22// clang-format on
23
25public:
26 // ManifestValidationScreenController inner types define
27 enum class IssueType : int {
28 None = 0,
29 Error = 1,
30 Warning = 2,
31 };
32
33public:
34 // member variables
35 // NOLINTBEGIN
36 ::ll::TypedStorage<8, 56, ::ResourceLocation> mResourceLocation;
37 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mOriginalPath;
38 ::ll::TypedStorage<8, 24, ::std::vector<::PackErrorInfo>> mErrorContent;
39 ::ll::TypedStorage<1, 1, bool> mIsDeleting;
40 ::ll::TypedStorage<1, 1, bool> mIsDoneValidating;
41 ::ll::TypedStorage<1, 1, bool> mPackInUserDataPath;
42 ::ll::TypedStorage<1, 1, bool> mShowCopyClipboard;
43 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::PackContentItem const>> mContentItem;
44 ::ll::TypedStorage<8, 8, ::PackManifestFactory&> mManifestFactory;
45 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>> mKeyProvider;
46 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PackManifest>> mManifest;
47 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::FileDeleteProgressHandler>> mDeleteProgressHandler;
48 // NOLINTEND
49
50public:
51 // prevent constructor by default
52 ManifestValidationScreenController& operator=(ManifestValidationScreenController const&);
53 ManifestValidationScreenController(ManifestValidationScreenController const&);
54 ManifestValidationScreenController();
55
56public:
57 // virtual functions
58 // NOLINTBEGIN
59 virtual ~ManifestValidationScreenController() /*override*/ = default;
60
61 virtual ::ui::DirtyFlag tick() /*override*/;
62
63 virtual void onTerminate() /*override*/;
64 // NOLINTEND
65
66public:
67 // member functions
68 // NOLINTBEGIN
70 ::std::shared_ptr<::MinecraftScreenModel> model,
71 ::PackManifestFactory& manifestFactory,
72 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> const& keyProvider,
73 ::ResourceLocation const& resourceLocation,
74 ::Core::Path const& originalPath,
75 bool packInUserDataPath,
76 ::std::shared_ptr<::PackContentItem const> const& item
77 );
78
79 MCNAPI ::std::string
80 _colorLocString(::ManifestValidationScreenController::IssueType issue, ::std::string const& str) const;
81
82 MCNAPI void _finishValidation();
83
84 MCNAPI ::Core::PathBuffer<::std::string> const _generateBaseIconPath(::PackManifest const& manifest) const;
85 // NOLINTEND
86
87public:
88 // constructor thunks
89 // NOLINTBEGIN
90 MCNAPI void* $ctor(
91 ::std::shared_ptr<::MinecraftScreenModel> model,
92 ::PackManifestFactory& manifestFactory,
93 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> const& keyProvider,
94 ::ResourceLocation const& resourceLocation,
95 ::Core::Path const& originalPath,
96 bool packInUserDataPath,
97 ::std::shared_ptr<::PackContentItem const> const& item
98 );
99 // NOLINTEND
100
101public:
102 // virtual function thunks
103 // NOLINTBEGIN
104 MCNAPI ::ui::DirtyFlag $tick();
105
106 MCNAPI void $onTerminate();
107 // NOLINTEND
108};
Definition Path.h:10
Definition FileDeleteProgressHandler.h:5
Definition IContentKeyProvider.h:13
Definition ManifestValidationScreenController.h:5
MCAPI void * $ctor(::std::shared_ptr<::MinecraftScreenModel > model, ::PackManifestFactory &manifestFactory, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const > const &keyProvider, ::ResourceLocation const &resourceLocation, ::Core::Path const &originalPath, bool packInUserDataPath, ::std::shared_ptr<::PackContentItem const > const &item)
MCAPI::std::string _colorLocString(::ManifestValidationScreenController::IssueType issue, ::std::string const &str) const
MCAPI ManifestValidationScreenController(::std::shared_ptr<::MinecraftScreenModel > model, ::PackManifestFactory &manifestFactory, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const > const &keyProvider, ::ResourceLocation const &resourceLocation, ::Core::Path const &originalPath, bool packInUserDataPath, ::std::shared_ptr<::PackContentItem const > const &item)
MCAPI ::Core::PathBuffer<::std::string > const _generateBaseIconPath(::PackManifest const &manifest) const
MCAPI::ui::DirtyFlag $tick()
Definition MinecraftScreenController.h:5
Definition MinecraftScreenModel.h:5
Definition PackManifestFactory.h:21
Definition PackManifest.h:39
Definition ResourceLocation.h:15
Definition PackContentItem.h:5
Definition PackErrorInfo.h:5