LeviLamina
Loading...
Searching...
No Matches
StorageAreaStateListener.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/LevelStorageState.h"
7#include "mc/platform/threading/Mutex.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Core { class FileStorageArea; }
12// clang-format on
13
14namespace Core {
15
16class StorageAreaStateListener {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::Core::FileStorageArea>> mFileStorageArea;
21 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mMutex;
22 // NOLINTEND
23
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 virtual ~StorageAreaStateListener();
28
29#ifdef LL_PLAT_S
30 virtual void
31 onExtendDiskSpace(bool const, ::std::weak_ptr<::Core::FileStorageArea> const&, uint64, ::std::function<void()>);
32#else // LL_PLAT_C
33 virtual void onExtendDiskSpace(
34 bool const bSet,
35 ::std::weak_ptr<::Core::FileStorageArea> const& storageAreaWeakPtr,
36 uint64 freeSpace,
37 ::std::function<void()> onHandledEventCallback
38 );
39#endif
40
41 virtual void onLowDiskSpace(bool const bSet);
42
43 virtual void onOutOfDiskSpace(bool const bSet);
44
45 virtual void onCriticalDiskError(bool const bSet, ::Core::LevelStorageState const& errorCode);
46 // NOLINTEND
47
48public:
49 // member functions
50 // NOLINTBEGIN
51 MCAPI StorageAreaStateListener();
52
53 MCAPI void initListener(::std::shared_ptr<::Core::FileStorageArea> fileStorageArea);
54
55 MCAPI void removeListener();
56 // NOLINTEND
57
58public:
59 // constructor thunks
60 // NOLINTBEGIN
61 MCAPI void* $ctor();
62 // NOLINTEND
63
64public:
65 // destructor thunk
66 // NOLINTBEGIN
67 MCAPI void $dtor();
68 // NOLINTEND
69
70public:
71 // virtual function thunks
72 // NOLINTBEGIN
73 MCAPI void
74 $onExtendDiskSpace(bool const, ::std::weak_ptr<::Core::FileStorageArea> const&, uint64, ::std::function<void()>);
75
76 MCFOLD void $onLowDiskSpace(bool const bSet);
77
78 MCFOLD void $onOutOfDiskSpace(bool const bSet);
79
80 MCFOLD void $onCriticalDiskError(bool const bSet, ::Core::LevelStorageState const& errorCode);
81
82
83 // NOLINTEND
84
85public:
86 // vftables
87 // NOLINTBEGIN
88 MCNAPI static void** $vftable();
89 // NOLINTEND
90};
91
92} // namespace Core
Definition FileStorageArea.h:31
static MCAPI void ** $vftable()