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
16class PackError;
17class 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
30public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<8, 56, ::ResourceLocation> mResourceLocation;
34 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mOriginalPath;
35 ::ll::TypedStorage<8, 24, ::std::vector<::PackErrorInfo>> mErrorContent;
36 ::ll::TypedStorage<1, 1, bool> mIsDeleting;
37 ::ll::TypedStorage<1, 1, bool> mIsDoneValidating;
38 ::ll::TypedStorage<1, 1, bool> mPackInUserDataPath;
39 ::ll::TypedStorage<1, 1, bool> mShowCopyClipboard;
40 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::PackContentItem const>> mContentItem;
41 ::ll::TypedStorage<8, 8, ::PackManifestFactory&> mManifestFactory;
42 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>> mKeyProvider;
43 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PackManifest>> mManifest;
44 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::FileDeleteProgressHandler>> mDeleteProgressHandler;
45 // NOLINTEND
46
47public:
48 // prevent constructor by default
49 ManifestValidationScreenController& operator=(ManifestValidationScreenController const&);
50 ManifestValidationScreenController(ManifestValidationScreenController const&);
51 ManifestValidationScreenController();
52
53public:
54 // virtual functions
55 // NOLINTBEGIN
56 virtual ~ManifestValidationScreenController() /*override*/;
57
58 virtual ::ui::DirtyFlag tick() /*override*/;
59
60 virtual void onTerminate() /*override*/;
61 // NOLINTEND
62
63public:
64 // member functions
65 // NOLINTBEGIN
66 MCAPI ManifestValidationScreenController(
67 ::std::shared_ptr<::MinecraftScreenModel> model,
68 ::PackManifestFactory& manifestFactory,
69 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> const& keyProvider,
70 ::ResourceLocation const& resourceLocation,
71 ::Core::Path const& originalPath,
72 bool packInUserDataPath,
73 ::std::shared_ptr<::PackContentItem const> const& item
74 );
75
76 MCAPI ::std::string
77 _colorLocString(::ManifestValidationScreenController::IssueType issue, ::std::string const& str) const;
78
79 MCAPI void _delete();
80
81 MCAPI void _finishValidation();
82
83 MCAPI ::Core::PathBuffer<::std::string> const _generateBaseIconPath(::PackManifest const& manifest) const;
84
85 MCAPI ::std::string _generateErrorContent(
86 ::ManifestValidationScreenController::IssueType issueType,
87 ::std::string const& header,
88 ::PackError const& error
89 ) const;
90
91 MCAPI ::Core::PathBuffer<::std::string> const _generateIconPath(::PackManifest const& manifest) const;
92
93 MCAPI ::Core::PathBuffer<::std::string> const _getIconPath() const;
94
95 MCAPI ::Core::PathBuffer<::std::string> const _getIconZip() const;
96
97 MCAPI ::std::string _getPackHeaderDescription() const;
98
99 MCAPI ::std::string _getPackHeaderTitle() const;
100
101 MCAPI ::std::string _getPackID() const;
102
103 MCAPI ::std::string _getPackType() const;
104
105 MCAPI ::std::string _getPackVersion() const;
106
107 MCAPI void _registerBindings();
108
109 MCAPI void _registerEventHandlers();
110 // NOLINTEND
111
112public:
113 // constructor thunks
114 // NOLINTBEGIN
115 MCAPI void* $ctor(
116 ::std::shared_ptr<::MinecraftScreenModel> model,
117 ::PackManifestFactory& manifestFactory,
118 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> const& keyProvider,
119 ::ResourceLocation const& resourceLocation,
120 ::Core::Path const& originalPath,
121 bool packInUserDataPath,
122 ::std::shared_ptr<::PackContentItem const> const& item
123 );
124 // NOLINTEND
125
126public:
127 // destructor thunk
128 // NOLINTBEGIN
129 MCAPI void $dtor();
130 // NOLINTEND
131
132public:
133 // virtual function thunks
134 // NOLINTBEGIN
135 MCAPI ::ui::DirtyFlag $tick();
136
137 MCAPI void $onTerminate();
138 // NOLINTEND
139
140public:
141 // vftables
142 // NOLINTBEGIN
143 MCNAPI static void** $vftableForScreenController();
144
146 // NOLINTEND
147};
Definition Path.h:10
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 FileDeleteProgressHandler.h:5
Definition PackContentItem.h:5
Definition PackErrorInfo.h:5