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
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
28
29 virtual void onExtendDiskSpace(
30 bool const bSet,
31 ::std::weak_ptr<::Core::FileStorageArea> const& fileStorageAreaWeakPtr,
32 uint64 freeSpace,
33 ::std::function<void()> onHandledEventCallback
34 );
35
36 virtual void onLowDiskSpace(bool const bSet);
37
38 virtual void onOutOfDiskSpace(bool const bSet);
39
40 virtual void onCriticalDiskError(bool const bSet, ::Core::LevelStorageState const& errorCode);
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI void initListener(::std::shared_ptr<::Core::FileStorageArea> fileStorageArea);
47
48 MCAPI void removeListener();
49 // NOLINTEND
50
51public:
52 // destructor thunk
53 // NOLINTBEGIN
54 MCAPI void $dtor();
55 // NOLINTEND
56
57public:
58 // virtual function thunks
59 // NOLINTBEGIN
60 MCAPI void $onExtendDiskSpace(
61 bool const bSet,
62 ::std::weak_ptr<::Core::FileStorageArea> const& fileStorageAreaWeakPtr,
63 uint64 freeSpace,
64 ::std::function<void()> onHandledEventCallback
65 );
66
67 MCFOLD void $onLowDiskSpace(bool const bSet);
68
69 MCFOLD void $onOutOfDiskSpace(bool const bSet);
70
71 MCFOLD void $onCriticalDiskError(bool const bSet, ::Core::LevelStorageState const& errorCode);
72
73
74 // NOLINTEND
75
76public:
77 // vftables
78 // NOLINTBEGIN
79 MCNAPI static void** $vftable();
80 // NOLINTEND
81};
82
83} // namespace Core
Definition FileStorageArea.h:32
Definition StorageAreaStateListener.h:16
static MCAPI void ** $vftable()