3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/settings/Component.h"
7#include "mc/client/settings/ComponentState.h"
17class BooleanComponent :
public ::Settings::Component<::Settings::BooleanComponent> {
20 using DataProvider = ::Settings::IBooleanDataProvider;
22 using ConfirmationRequestsProvider = ::std::function<::std::vector<::Settings::BooleanConfirmationRequest>()>;
27 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Settings::IBooleanDataProvider>> mDataProvider;
28 ::ll::TypedStorage<8, 64, ::std::function<::std::vector<::Settings::BooleanConfirmationRequest>()>>
29 mConfirmationRequestsProvider;
39 virtual ~BooleanComponent() =
default;
41 virtual ::Settings::ComponentState getDefaultState() const ;
47 MCAPI BooleanComponent(
48 ::std::string_view
id,
49 ::std::string_view name,
50 ::std::optional<::std::
string> description,
51 ::std::unique_ptr<::Settings::IBooleanDataProvider> dataProvider
56 MCFOLD ::std::vector<::Settings::BooleanConfirmationRequest> getConfirmationRequests() const;
58 MCAPI
bool getValue() const;
60 MCAPI
bool updateValue(
bool value);
67 ::std::string_view
id,
68 ::std::string_view name,
69 ::std::optional<::std::
string> description,
70 ::std::unique_ptr<::Settings::IBooleanDataProvider> dataProvider
77 MCFOLD ::Settings::ComponentState $getDefaultState() const;
Definition BooleanComponent.h:7
static MCAPI void ** $vftable()
Definition IBooleanDataProvider.h:7
Definition BooleanConfirmationRequest.h:7