Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
Settings::AsyncBooleanDataProvider Class Reference
Inheritance diagram for Settings::AsyncBooleanDataProvider:

Public Types

using ChangeCallback = ::std::function<void()>

Public Member Functions

virtual void setChangeListener (::std::function< void()> callback)
virtual bool canModify () const
virtual bool getValue () const
virtual void setValue (bool value)
virtual bool flush ()
MCAPI AsyncBooleanDataProvider (::std::unique_ptr<::Settings::IBooleanDataProvider > delegateProvider)
MCAPI void * $ctor (::std::unique_ptr<::Settings::IBooleanDataProvider > delegateProvider)
MCAPI void $setChangeListener (::std::function< void()> callback)
MCAPI bool $canModify () const
MCAPI bool $getValue () const
MCAPI void $setValue (bool value)
MCAPI bool $flush ()
MCAPI void $dtor ()

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 16, ::std::shared_ptr<::Settings::IBooleanDataProvider > > mDelegateProvider
::ll::TypedStorage< 8, 64, ::std::function< void()> > mChangeCallback
::ll::TypedStorage< 1, 2, ::std::optional< bool > > mPendingValue
::ll::TypedStorage< 8, 64, ::std::function< void()> > mListener
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::Subscription > mSubscription

Constructor & Destructor Documentation

◆ AsyncBooleanDataProvider()

MCAPI Settings::AsyncBooleanDataProvider::AsyncBooleanDataProvider ( ::std::unique_ptr<::Settings::IBooleanDataProvider > delegateProvider)
explicit
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ setChangeListener()

virtual void Settings::AsyncBooleanDataProvider::setChangeListener ( ::std::function< void()> callback)
virtual

Reimplemented from Settings::IDataProvider.

◆ canModify()

virtual bool Settings::AsyncBooleanDataProvider::canModify ( ) const
virtual

◆ getValue()

virtual bool Settings::AsyncBooleanDataProvider::getValue ( ) const
virtual

◆ setValue()

virtual void Settings::AsyncBooleanDataProvider::setValue ( bool value)
virtual

◆ flush()

virtual bool Settings::AsyncBooleanDataProvider::flush ( )
virtual

Reimplemented from Settings::IBooleanDataProvider.

◆ $ctor()

MCAPI void * Settings::AsyncBooleanDataProvider::$ctor ( ::std::unique_ptr<::Settings::IBooleanDataProvider > delegateProvider)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $setChangeListener()

MCAPI void Settings::AsyncBooleanDataProvider::$setChangeListener ( ::std::function< void()> callback)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $canModify()

MCAPI bool Settings::AsyncBooleanDataProvider::$canModify ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getValue()

MCAPI bool Settings::AsyncBooleanDataProvider::$getValue ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $setValue()

MCAPI void Settings::AsyncBooleanDataProvider::$setValue ( bool value)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $flush()

MCAPI bool Settings::AsyncBooleanDataProvider::$flush ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftable()

MCAPI void ** Settings::AsyncBooleanDataProvider::$vftable ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $dtor()

MCAPI void Settings::IDataProvider::$dtor ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following files: