LeviLamina
Loading...
Searching...
No Matches
BannerComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/settings/BannerCta.h"
7#include "mc/client/settings/BannerType.h"
8#include "mc/client/settings/Component.h"
9#include "mc/client/settings/ComponentState.h"
10#include "mc/client/settings/ConfirmationRequest.h"
11
12// auto generated forward declare list
13// clang-format off
14namespace Settings { class IDataProvider; }
15// clang-format on
16
17namespace Settings {
18
19class BannerComponent : public ::Settings::Component<::Settings::BannerComponent> {
20public:
21 // BannerComponent inner types define
22 using DataProvider = ::Settings::IDataProvider;
23
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<4, 4, ::Settings::BannerType> mBannerType;
28 ::ll::TypedStorage<8, 104, ::std::optional<::Settings::BannerCta>> mCta;
29 ::ll::TypedStorage<8, 136, ::std::optional<::Settings::ConfirmationRequest>> mConfirmationRequest;
30 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Settings::IDataProvider>> mDataProvider;
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 BannerComponent();
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 virtual ~BannerComponent() /*override*/;
41
42 virtual ::Settings::ComponentState getDefaultState() const /*override*/;
43 // NOLINTEND
44
45public:
46 // member functions
47 // NOLINTBEGIN
48 MCAPI BannerComponent(
49 ::std::string_view id,
50 ::Settings::BannerType bannerType,
51 ::std::string_view bannerText,
52 ::std::optional<::Settings::BannerCta> cta,
53 ::std::optional<::Settings::ConfirmationRequest> confirmationRequest,
54 ::std::unique_ptr<::Settings::IDataProvider> dataProvider
55 );
56
57 MCFOLD ::Settings::BannerType getBannerType() const;
58
59 MCFOLD ::std::optional<::Settings::ConfirmationRequest> const& getConfirmationRequest() const;
60
61 MCAPI ::std::optional<::std::string> getCtaText() const;
62
63 MCAPI bool invokeCtaCallback();
64 // NOLINTEND
65
66public:
67 // constructor thunks
68 // NOLINTBEGIN
69 MCAPI void* $ctor(
70 ::std::string_view id,
71 ::Settings::BannerType bannerType,
72 ::std::string_view bannerText,
73 ::std::optional<::Settings::BannerCta> cta,
74 ::std::optional<::Settings::ConfirmationRequest> confirmationRequest,
75 ::std::unique_ptr<::Settings::IDataProvider> dataProvider
76 );
77 // NOLINTEND
78
79public:
80 // destructor thunk
81 // NOLINTBEGIN
82 MCAPI void $dtor();
83 // NOLINTEND
84
85public:
86 // virtual function thunks
87 // NOLINTBEGIN
88 MCFOLD ::Settings::ComponentState $getDefaultState() const;
89 // NOLINTEND
90
91public:
92 // vftables
93 // NOLINTBEGIN
94 MCNAPI static void** $vftable();
95 // NOLINTEND
96};
97
98} // namespace Settings
Definition BannerComponent.h:7
static MCAPI void ** $vftable()
Definition IDataProvider.h:7