LeviLamina
Loading...
Searching...
No Matches
StorageAreaState.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
8// auto generated forward declare list
9// clang-format off
10namespace Core { class FileStorageArea; }
11namespace Core { class PathView; }
12namespace Core { class StorageAreaStateListener; }
13// clang-format on
14
15namespace Core {
16
17class StorageAreaState {
18public:
19 // member variables
20 // NOLINTBEGIN
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
32 StorageAreaState& operator=(StorageAreaState const&);
33 StorageAreaState(StorageAreaState const&);
34 StorageAreaState();
35
36public:
37 // member functions
38 // NOLINTBEGIN
39 MCNAPI explicit StorageAreaState(::Core::PathView storageAreaRootPath);
40
41#ifdef LL_PLAT_C
42 MCNAPI void _fireExtendDiskSpaceEvent(
43 bool const bSet,
44 ::std::weak_ptr<::Core::FileStorageArea> const& fileStorageAreaWeakPtr,
45 uint64 freeSpace,
46 ::std::function<void()> onHandledEventCallback
47 );
48#endif
49
51
52 MCNAPI void checkUserStorage(
53 ::std::shared_ptr<::Core::FileStorageArea> const& fileStorageArea,
54 uint64 freeSpace,
55 uint64 usedSpace,
56 uint64 totalCapacity,
57 bool canExtendSize
58 );
59
60#ifdef LL_PLAT_C
61 MCNAPI void notifyCriticalDiskError(::Core::LevelStorageState const& errorCode);
62#endif
63
65 // NOLINTEND
66
67public:
68 // constructor thunks
69 // NOLINTBEGIN
70 MCNAPI void* $ctor(::Core::PathView storageAreaRootPath);
71 // NOLINTEND
72
73public:
74 // destructor thunk
75 // NOLINTBEGIN
76 MCNAPI void $dtor();
77 // NOLINTEND
78};
79
80} // namespace Core
Definition FileStorageArea.h:31
Definition PathView.h:19
Definition StorageAreaStateListener.h:16
MCAPI void addListener(::Core::StorageAreaStateListener *l)
MCAPI StorageAreaState(::Core::PathView storageAreaRootPath)
MCAPI void * $ctor(::Core::PathView storageAreaRootPath)
MCAPI void checkUserStorage(::std::shared_ptr<::Core::FileStorageArea > const &fileStorageArea, uint64 freeSpace, uint64 usedSpace, uint64 totalCapacity, bool canExtendSize)
Definition Alias.h:14