LeviLamina
Loading...
Searching...
No Matches
UserCacheManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/PathBuffer.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace Bedrock { struct DirectoryEntry; }
11// clang-format on
12
13namespace Bedrock {
14
15class UserCacheManager {
16public:
17 // member variables
18 // NOLINTBEGIN
20 // NOLINTEND
21
22public:
23 // prevent constructor by default
24 UserCacheManager& operator=(UserCacheManager const&);
25 UserCacheManager(UserCacheManager const&);
26 UserCacheManager();
27
28public:
29 // member functions
30 // NOLINTBEGIN
31#ifdef LL_PLAT_C
32 MCNAPI explicit UserCacheManager(::Core::PathBuffer<::std::string> const& cachePath);
33
34 MCNAPI void _getDirectoryContents(
35 ::std::vector<::Bedrock::DirectoryEntry>& folders,
37 ) const;
38
39 MCNAPI void _getDirectorySizeAndDeleteDirectoryContents(::Core::PathBuffer<::std::string> const& path) const;
40
41 MCNAPI bool clearDownloadStorageIfFull(::std::vector<::Bedrock::DirectoryEntry>& folders);
42
43 MCNAPI bool clearUserStorageIfFull(::std::vector<::Bedrock::DirectoryEntry>& folders);
44#endif
45 // NOLINTEND
46
47public:
48 // constructor thunks
49 // NOLINTBEGIN
50#ifdef LL_PLAT_C
51 MCNAPI void* $ctor(::Core::PathBuffer<::std::string> const& cachePath);
52#endif
53 // NOLINTEND
54};
55
56} // namespace Bedrock
Definition PathBuffer.h:8
Definition DirectoryEntry.h:7
Definition Alias.h:14