LeviLamina
Loading...
Searching...
No Matches
StorageManagementScreenController.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/MainMenuScreenController.h"
8#include "mc/client/gui/screens/controllers/StorageManagementScreenData.h"
9#include "mc/client/gui/screens/controllers/StorageManagementViews.h"
10#include "mc/world/actor/player/LoadingState.h"
11
12// auto generated forward declare list
13// clang-format off
14class IContentManager;
20struct ContentItem;
21struct LegacyWorldInfo;
22// clang-format on
23
25public:
26 // StorageManagementScreenController inner types define
27 enum class ConvertProgressState : int {
28 Closed = 0,
29 Active = 1,
30 TryClose = 2,
31 };
32
33 using ContentItemPtr = ::std::shared_ptr<::ContentItem>;
34
35 using ConstContentItemPtr = ::std::shared_ptr<::ContentItem const>;
36
37 using ConvertProgressHandlerCallback = ::std::function<float()>;
38
39 using ConvertStateCallback = ::std::function<::LoadingState()>;
40
41public:
42 // member variables
43 // NOLINTBEGIN
44 ::ll::TypedStorage<8, 8, ::IContentManager*> mContentManager;
45 ::ll::TypedStorage<4, 4, ::ui::DirtyFlag> mReloadFlag;
46 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::StorageDependencyScreenController>> mDependencyScreenController;
47 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::StorageManagementScreenControllerProxy>> mProxy;
48 ::ll::TypedStorage<1, 1, bool> mShowDeleteModal;
49 ::ll::TypedStorage<1, 1, bool> mShowDeleteLocalScreenshotsModal;
50 ::ll::TypedStorage<1, 1, bool> mIsLegacyWorldTabExpanded;
51 ::ll::TypedStorage<1, 1, bool> mLegacySyncOnly;
52 ::ll::TypedStorage<4, 4, ::StorageManagementScreenController::ConvertProgressState> mProgressScreenState;
53 ::ll::TypedStorage<8, 8, ::LegacyWorldConverter&> mLegacyWorldConverter;
54 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::IStorageManagementModel>>> mModel;
55 ::ll::TypedStorage<8, 144, ::StorageManagementViews> mViews;
56 ::ll::TypedStorage<1, 5, ::StorageManagementScreenData> mData;
57 // NOLINTEND
58
59public:
60 // prevent constructor by default
61 StorageManagementScreenController& operator=(StorageManagementScreenController const&);
62 StorageManagementScreenController(StorageManagementScreenController const&);
63 StorageManagementScreenController();
64
65public:
66 // virtual functions
67 // NOLINTBEGIN
68 virtual ~StorageManagementScreenController() /*override*/ = default;
69
70 virtual ::ui::DirtyFlag tick() /*override*/;
71 // NOLINTEND
72
73public:
74 // member functions
75 // NOLINTBEGIN
76 MCAPI StorageManagementScreenController(
77 ::std::shared_ptr<::MainMenuScreenModel> model,
78 ::IContentManager& manager,
79 bool legacySyncOnly
80 );
81
82 MCAPI void _convertLegacyWorld(::LegacyWorldInfo const& world);
83
84 MCAPI ::LegacyWorldInfo _getLegacyWorld(int worldIndex);
85
86 MCAPI ::std::string _getLegacyWorldsSize(uint numberElements, uint64 size);
87
88 MCAPI ::LegacyWorldInfo _getRetailToPreviewWorld(int worldIndex);
89 // NOLINTEND
90
91public:
92 // constructor thunks
93 // NOLINTBEGIN
94 MCAPI void* $ctor(::std::shared_ptr<::MainMenuScreenModel> model, ::IContentManager& manager, bool legacySyncOnly);
95 // NOLINTEND
96
97public:
98 // virtual function thunks
99 // NOLINTBEGIN
100 MCAPI ::ui::DirtyFlag $tick();
101 // NOLINTEND
102};
Definition IContentManager.h:5
Definition IStorageManagementModel.h:5
Definition LegacyWorldConverter.h:5
Definition MainMenuScreenController.h:5
Definition MainMenuScreenModel.h:5
Definition StorageDependencyScreenController.h:5
Definition StorageManagementScreenControllerProxy.h:5
Definition StorageManagementScreenController.h:5
Definition ContentItem.h:5
Definition LegacyWorldInfo.h:5