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 PackError;
18class PackManifest;
20struct PackContentItem;
21struct PackErrorInfo;
22namespace Core { class Path; }
23// clang-format on
24
26public:
27 // ManifestValidationScreenController inner types define
28 enum class IssueType : int {
29 None = 0,
30 Error = 1,
31 Warning = 2,
32 };
33
34public:
35 // member variables
36 // NOLINTBEGIN
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;
49 // NOLINTEND
50
51public:
52 // prevent constructor by default
53 ManifestValidationScreenController& operator=(ManifestValidationScreenController const&);
54 ManifestValidationScreenController(ManifestValidationScreenController const&);
55 ManifestValidationScreenController();
56
57public:
58 // virtual functions
59 // NOLINTBEGIN
60 virtual ~ManifestValidationScreenController() /*override*/;
61
62 virtual ::ui::DirtyFlag tick() /*override*/;
63
64 virtual void onTerminate() /*override*/;
65 // NOLINTEND
66
67public:
68 // member functions
69 // NOLINTBEGIN
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
78 );
79
80 MCAPI ::std::string
81 _colorLocString(::ManifestValidationScreenController::IssueType issue, ::std::string const& str) const;
82
83 MCAPI void _delete();
84
85 MCAPI void _finishValidation();
86
87 MCAPI ::Core::PathBuffer<::std::string> const _generateBaseIconPath(::PackManifest const& manifest) const;
88
89 MCAPI ::std::string _generateErrorContent(
90 ::ManifestValidationScreenController::IssueType issueType,
91 ::std::string const& header,
92 ::PackError const& error
93 ) const;
94
95 MCAPI ::Core::PathBuffer<::std::string> const _generateIconPath(::PackManifest const& manifest) const;
96
97 MCAPI ::Core::PathBuffer<::std::string> const _getIconPath() const;
98
99 MCAPI ::Core::PathBuffer<::std::string> const _getIconZip() const;
100
101 MCAPI ::std::string _getPackHeaderDescription() const;
102
103 MCAPI ::std::string _getPackHeaderTitle() const;
104
105 MCAPI ::std::string _getPackID() const;
106
107 MCAPI ::std::string _getPackType() const;
108
109 MCAPI ::std::string _getPackVersion() const;
110
111 MCAPI void _registerBindings();
112
113 MCAPI void _registerEventHandlers();
114 // NOLINTEND
115
116public:
117 // constructor thunks
118 // NOLINTBEGIN
119 MCAPI void* $ctor(
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
127 );
128 // NOLINTEND
129
130public:
131 // destructor thunk
132 // NOLINTBEGIN
133 MCAPI void $dtor();
134 // NOLINTEND
135
136public:
137 // virtual function thunks
138 // NOLINTBEGIN
139 MCAPI ::ui::DirtyFlag $tick();
140
141 MCAPI void $onTerminate();
142 // NOLINTEND
143
144public:
145 // vftables
146 // NOLINTBEGIN
147 MCNAPI static void** $vftableForScreenController();
148
150 // NOLINTEND
151};
Definition Path.h:17
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 PackError.h:8
Definition PackManifestFactory.h:20
Definition PackManifest.h:37
Definition PackContentItem.h:5
Definition PackErrorInfo.h:5