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/UploadState.h"
10
11// auto generated forward declare list
12// clang-format off
15namespace Realms { struct World; }
16// clang-format on
17
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 32, ::std::string> mRealmID;
23 ::ll::TypedStorage<4, 4, int> mSlotIndex;
24 ::ll::TypedStorage<8, 32, ::std::string> mFileID;
25 ::ll::TypedStorage<1, 1, bool> mNeedArchiving;
26 ::ll::TypedStorage<4, 4, float> mUploadProgress;
27 ::ll::TypedStorage<1, 1, bool> mContinueOnWifi;
28 ::ll::TypedStorage<8, 32, ::std::string const> mCorrelationId;
29 ::ll::TypedStorage<1, 1, bool> mWifiWarningDisplaying;
30 ::ll::TypedStorage<1, 1, bool> mUploadStarted;
31 ::ll::TypedStorage<4, 4, ::UploadState> mUploadState;
32 ::ll::TypedStorage<1, 1, bool> mPostUploadRefreshCompleted;
33 ::ll::TypedStorage<4, 4, ::Core::FileUploadType> mFileUploadType;
34 ::ll::TypedStorage<8, 64, ::std::function<void(::UploadState, ::Realms::World)>> mCallback;
35 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::FileUploadManager>> mFileUploadManager;
36 // NOLINTEND
37
38public:
39 // prevent constructor by default
40 FileUploadScreenController();
41
42public:
43 // virtual functions
44 // NOLINTBEGIN
45 virtual ~FileUploadScreenController() /*override*/ = default;
46
47 virtual void onOpen() /*override*/;
48
49 virtual ::ui::DirtyFlag tick() /*override*/;
50
51 virtual ::std::string getAdditionalScreenInfo() const /*override*/;
52 // NOLINTEND
53
54public:
55 // member functions
56 // NOLINTBEGIN
57 MCAPI FileUploadScreenController(
58 ::std::shared_ptr<::MainMenuScreenModel> model,
59 ::std::string const& realmID,
60 ::std::string const& fileID,
61 int slotIndex,
62 bool needArchiving,
63 ::Core::FileUploadType fileUploadType,
64 ::std::function<void(::UploadState, ::Realms::World)> callback
65 );
66
67 MCAPI void _displayPostUploadErrorPopup();
68
69 MCAPI void _startUpload();
70 // NOLINTEND
71
72public:
73 // constructor thunks
74 // NOLINTBEGIN
75 MCAPI void* $ctor(
76 ::std::shared_ptr<::MainMenuScreenModel> model,
77 ::std::string const& realmID,
78 ::std::string const& fileID,
79 int slotIndex,
80 bool needArchiving,
81 ::Core::FileUploadType fileUploadType,
82 ::std::function<void(::UploadState, ::Realms::World)> callback
83 );
84 // NOLINTEND
85
86public:
87 // virtual function thunks
88 // NOLINTBEGIN
89 MCAPI void $onOpen();
90
91 MCAPI ::ui::DirtyFlag $tick();
92
93 MCAPI ::std::string $getAdditionalScreenInfo() const;
94 // NOLINTEND
95};
Definition FileUploadManager.h:22
Definition FileUploadScreenController.h:5
Definition MainMenuScreenController.h:5
Definition MainMenuScreenModel.h:5
Definition World.h:7