LeviLamina
Loading...
Searching...
No Matches
FileDownloadScreenController.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/util/DownloadState.h"
9
10// auto generated forward declare list
11// clang-format off
13// clang-format on
14
16public:
17 // FileDownloadScreenController inner types declare
18 // clang-format off
19 struct RealmData;
20 // clang-format on
21
22 // FileDownloadScreenController inner types define
23 struct RealmData {
24 public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 32, ::std::string> realmID;
28 ::ll::TypedStorage<8, 32, ::std::string> realmName;
29 ::ll::TypedStorage<8, 32, ::std::string> realmVersion;
30 ::ll::TypedStorage<8, 32, ::std::string> realmVersionName;
31 ::ll::TypedStorage<8, 32, ::std::string> currentUserXuid;
32 ::ll::TypedStorage<4, 4, int> slotIndex;
33 // NOLINTEND
34 };
35
36public:
37 // member variables
38 // NOLINTBEGIN
39 ::ll::TypedStorage<8, 168, ::FileDownloadScreenController::RealmData> mRealmData;
40 ::ll::TypedStorage<4, 4, float> mDownloadProgress;
41 ::ll::TypedStorage<1, 1, bool> mContinueOnWifi;
42 ::ll::TypedStorage<8, 32, ::std::string const> mCorrelationId;
43 ::ll::TypedStorage<1, 1, bool> mWifiWarningDisplaying;
44 ::ll::TypedStorage<1, 1, bool> mDownloadStarted;
45 ::ll::TypedStorage<1, 1, bool> mIsWaitingForCancel;
46 ::ll::TypedStorage<4, 4, ::DownloadState> mDownloadState;
47 ::ll::TypedStorage<8, 64, ::std::function<void(bool)>> mCallback;
48 // NOLINTEND
49
50public:
51 // prevent constructor by default
52 FileDownloadScreenController();
53
54public:
55 // virtual functions
56 // NOLINTBEGIN
57 virtual ~FileDownloadScreenController() /*override*/ = default;
58
59 virtual ::ui::DirtyFlag tick() /*override*/;
60
61 virtual ::std::string getAdditionalScreenInfo() const /*override*/;
62 // NOLINTEND
63
64public:
65 // member functions
66 // NOLINTBEGIN
67 MCAPI FileDownloadScreenController(
68 ::std::shared_ptr<::MainMenuScreenModel> model,
69 ::std::string const& realmID,
70 int slotIndex,
71 ::std::string const& realmName,
72 ::std::string const& realmVersion,
73 ::std::string const& realmVersionName,
74 ::std::function<void(bool)> callback
75 );
76
77 MCAPI void _startDownload();
78 // NOLINTEND
79
80public:
81 // constructor thunks
82 // NOLINTBEGIN
83 MCAPI void* $ctor(
84 ::std::shared_ptr<::MainMenuScreenModel> model,
85 ::std::string const& realmID,
86 int slotIndex,
87 ::std::string const& realmName,
88 ::std::string const& realmVersion,
89 ::std::string const& realmVersionName,
90 ::std::function<void(bool)> callback
91 );
92 // NOLINTEND
93
94public:
95 // virtual function thunks
96 // NOLINTBEGIN
97 MCAPI ::ui::DirtyFlag $tick();
98
99 MCAPI ::std::string $getAdditionalScreenInfo() const;
100 // NOLINTEND
101};
Definition FileDownloadScreenController.h:5
Definition MainMenuScreenController.h:5
Definition MainMenuScreenModel.h:5
Definition FileDownloadScreenController.h:13