16class StorageAreaStateListener {
20 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::Core::FileStorageArea>> mFileStorageArea;
21 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mMutex;
27 virtual ~StorageAreaStateListener();
31 onExtendDiskSpace(
bool const, ::std::weak_ptr<::Core::FileStorageArea>
const&, uint64, ::std::function<
void()>);
33 virtual void onExtendDiskSpace(
35 ::std::weak_ptr<::Core::FileStorageArea>
const& storageAreaWeakPtr,
37 ::std::function<
void()> onHandledEventCallback
41 virtual void onLowDiskSpace(
bool const bSet);
43 virtual void onOutOfDiskSpace(
bool const bSet);
45 virtual void onCriticalDiskError(
bool const bSet, ::Core::LevelStorageState
const& errorCode);
51 MCAPI StorageAreaStateListener();
53 MCAPI
void initListener(::std::shared_ptr<::Core::FileStorageArea> fileStorageArea);
55 MCAPI
void removeListener();
74 $onExtendDiskSpace(
bool const, ::std::weak_ptr<::Core::FileStorageArea>
const&, uint64, ::std::function<
void()>);
76 MCFOLD
void $onLowDiskSpace(
bool const bSet);
78 MCFOLD
void $onOutOfDiskSpace(
bool const bSet);
80 MCFOLD
void $onCriticalDiskError(
bool const bSet, ::Core::LevelStorageState
const& errorCode);