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 bool _canCancelUpload() const;
69
70 MCAPI void _displayPostUploadErrorPopup();
71
72 MCAPI void _displayUploadErrorPopup(::UploadError uploadError);
73
74 MCAPI void _registerBindings();
75
76 MCAPI void _registerEventHandlers();
77
78 MCAPI void _startUpload();
79
80 MCAPI ::std::string getTitleLabel() const;
81 // NOLINTEND
82
83public:
84 // constructor thunks
85 // NOLINTBEGIN
86 MCAPI void* $ctor(
87 ::std::shared_ptr<::MainMenuScreenModel> model,
88 ::std::string const& realmID,
89 ::std::string const& fileID,
90 int slotIndex,
91 bool needArchiving,
92 ::Core::FileUploadType fileUploadType,
93 ::std::function<void(::UploadState, ::Realms::World)> callback
94 );
95 // NOLINTEND
96
97public:
98 // destructor thunk
99 // NOLINTBEGIN
100 MCAPI void $dtor();
101 // NOLINTEND
102
103public:
104 // virtual function thunks
105 // NOLINTBEGIN
106 MCAPI void $onOpen();
107
108 MCAPI ::ui::DirtyFlag $tick();
109
110 MCAPI ::std::string $getAdditionalScreenInfo() const;
111 // NOLINTEND
112
113public:
114 // vftables
115 // NOLINTBEGIN
116 MCNAPI static void** $vftableForScreenController();
117
119 // NOLINTEND
120};
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