3#include "mc/_HeaderOutputPredefine.h"
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"
22namespace Core {
class Path; }
28 enum class IssueType :
int {
37 ::ll::TypedStorage<8, 56, ::ResourceLocation> mResourceLocation;
38 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mOriginalPath;
39 ::ll::TypedStorage<8, 24, ::std::vector<::PackErrorInfo>> mErrorContent;
40 ::ll::TypedStorage<1, 1, bool> mIsDeleting;
41 ::ll::TypedStorage<1, 1, bool> mIsDoneValidating;
42 ::ll::TypedStorage<1, 1, bool> mPackInUserDataPath;
43 ::ll::TypedStorage<1, 1, bool> mShowCopyClipboard;
44 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::PackContentItem const>> mContentItem;
45 ::ll::TypedStorage<8, 8, ::PackManifestFactory&> mManifestFactory;
46 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>> mKeyProvider;
47 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PackManifest>> mManifest;
48 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::FileDeleteProgressHandler>> mDeleteProgressHandler;
53 ManifestValidationScreenController& operator=(ManifestValidationScreenController
const&);
54 ManifestValidationScreenController(ManifestValidationScreenController
const&);
55 ManifestValidationScreenController();
60 virtual ~ManifestValidationScreenController() ;
62 virtual ::ui::DirtyFlag tick() ;
64 virtual void onTerminate() ;
70 MCAPI ManifestValidationScreenController(
71 ::std::shared_ptr<::MinecraftScreenModel> model,
72 ::PackManifestFactory& manifestFactory,
73 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>
const& keyProvider,
74 ::ResourceLocation
const& resourceLocation,
75 ::Core::Path
const& originalPath,
76 bool packInUserDataPath,
77 ::std::shared_ptr<::PackContentItem const>
const& item
81 _colorLocString(::ManifestValidationScreenController::IssueType issue, ::std::string
const& str)
const;
85 MCAPI
void _finishValidation();
87 MCAPI ::Core::PathBuffer<::std::string>
const _generateBaseIconPath(::PackManifest
const& manifest)
const;
89 MCAPI ::std::string _generateErrorContent(
90 ::ManifestValidationScreenController::IssueType issueType,
91 ::std::string
const& header,
92 ::PackError
const& error
95 MCAPI ::Core::PathBuffer<::std::string>
const _generateIconPath(::PackManifest
const& manifest)
const;
97 MCAPI ::Core::PathBuffer<::std::string>
const _getIconPath()
const;
99 MCAPI ::Core::PathBuffer<::std::string>
const _getIconZip()
const;
101 MCAPI ::std::string _getPackHeaderDescription()
const;
103 MCAPI ::std::string _getPackHeaderTitle()
const;
105 MCAPI ::std::string _getPackID()
const;
107 MCAPI ::std::string _getPackType()
const;
109 MCAPI ::std::string _getPackVersion()
const;
111 MCAPI
void _registerBindings();
113 MCAPI
void _registerEventHandlers();
120 ::std::shared_ptr<::MinecraftScreenModel> model,
121 ::PackManifestFactory& manifestFactory,
122 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>
const& keyProvider,
123 ::ResourceLocation
const& resourceLocation,
124 ::Core::Path
const& originalPath,
125 bool packInUserDataPath,
126 ::std::shared_ptr<::PackContentItem const>
const& item
139 MCAPI ::ui::DirtyFlag $tick();
141 MCAPI
void $onTerminate();
Definition FileDeleteProgressHandler.h:5
Definition IContentKeyProvider.h:13
Definition ManifestValidationScreenController.h:5
static MCAPI void ** $vftableForScreenController()
static MCAPI void ** $vftableForEnableNonOwnerReferences()
Definition MinecraftScreenController.h:5
Definition MinecraftScreenModel.h:5
Definition PackManifestFactory.h:20
Definition PackManifest.h:37
Definition PackContentItem.h:5
Definition PackErrorInfo.h:5