LeviLamina
Loading...
Searching...
No Matches
FileUploadScreenController.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/deps/core/file/FileUploadType.h"
9#include "mc/util/UploadError.h"
10#include "mc/util/UploadState.h"
11
12// auto generated forward declare list
13// clang-format off
16namespace Realms { struct World; }
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 32, ::std::string> mRealmID;
24 ::ll::TypedStorage<4, 4, int> mSlotIndex;
25 ::ll::TypedStorage<8, 32, ::std::string> mFileID;
26 ::ll::TypedStorage<1, 1, bool> mNeedArchiving;
27 ::ll::TypedStorage<4, 4, float> mUploadProgress;
28 ::ll::TypedStorage<1, 1, bool> mContinueOnWifi;
29 ::ll::TypedStorage<8, 32, ::std::string const> mCorrelationId;
30 ::ll::TypedStorage<1, 1, bool> mWifiWarningDisplaying;
31 ::ll::TypedStorage<1, 1, bool> mUploadStarted;
32 ::ll::TypedStorage<4, 4, ::UploadState> mUploadState;
33 ::ll::TypedStorage<1, 1, bool> mPostUploadRefreshCompleted;
34 ::ll::TypedStorage<4, 4, ::Core::FileUploadType> mFileUploadType;
35 ::ll::TypedStorage<8, 64, ::std::function<void(::UploadState, ::Realms::World)>> mCallback;
36 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::FileUploadManager>> mFileUploadManager;
37 // NOLINTEND
38
39public:
40 // prevent constructor by default
41 FileUploadScreenController();
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46 virtual ~FileUploadScreenController() /*override*/;
47
48 virtual void onOpen() /*override*/;
49
50 virtual ::ui::DirtyFlag tick() /*override*/;
51
52 virtual ::std::string getAdditionalScreenInfo() const /*override*/;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCAPI FileUploadScreenController(
59 ::std::shared_ptr<::MainMenuScreenModel> model,
60 ::std::string const& realmID,
61 ::std::string const& fileID,
62 int slotIndex,
63 bool needArchiving,
64 ::Core::FileUploadType fileUploadType,
65 ::std::function<void(::UploadState, ::Realms::World)> callback
66 );
67
68 MCAPI void _displayPostUploadErrorPopup();
69
70 MCAPI void _displayUploadErrorPopup(::UploadError uploadError);
71
72 MCAPI void _registerBindings();
73
74 MCAPI void _registerEventHandlers();
75
76 MCAPI void _startUpload();
77
78 MCAPI ::std::string getTitleLabel() const;
79 // NOLINTEND
80
81public:
82 // constructor thunks
83 // NOLINTBEGIN
84 MCAPI void* $ctor(
85 ::std::shared_ptr<::MainMenuScreenModel> model,
86 ::std::string const& realmID,
87 ::std::string const& fileID,
88 int slotIndex,
89 bool needArchiving,
90 ::Core::FileUploadType fileUploadType,
91 ::std::function<void(::UploadState, ::Realms::World)> callback
92 );
93 // NOLINTEND
94
95public:
96 // destructor thunk
97 // NOLINTBEGIN
98 MCAPI void $dtor();
99 // NOLINTEND
100
101public:
102 // virtual function thunks
103 // NOLINTBEGIN
104 MCAPI void $onOpen();
105
106 MCAPI ::ui::DirtyFlag $tick();
107
108 MCAPI ::std::string $getAdditionalScreenInfo() const;
109 // NOLINTEND
110
111public:
112 // vftables
113 // NOLINTBEGIN
114 MCNAPI static void** $vftableForScreenController();
115
117 // NOLINTEND
118};
Definition FileUploadManager.h:22
Definition FileUploadScreenController.h:5
static MCAPI void ** $vftableForScreenController()
static MCAPI void ** $vftableForEnableNonOwnerReferences()
Definition MainMenuScreenController.h:5
Definition MainMenuScreenModel.h:5
Definition World.h:7