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#include "mc/deps/core/utility/NonOwnerPointer.h"
8#include "mc/platform/brstd/move_only_function.h"
9
10// auto generated forward declare list
11// clang-format off
12class AppPlatform;
13namespace Bedrock { struct DirectoryEntry; }
14// clang-format on
15
16namespace Bedrock {
17
18class UserCacheManager {
19public:
20 // member variables
21 // NOLINTBEGIN
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
28 UserCacheManager& operator=(UserCacheManager const&);
29 UserCacheManager(UserCacheManager const&);
30 UserCacheManager();
31
32public:
33 // member functions
34 // NOLINTBEGIN
35#ifdef LL_PLAT_C
36 MCNAPI UserCacheManager(
37 ::Core::PathBuffer<::std::string> const& cachePath,
39 );
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 // static functions
49 // NOLINTBEGIN
50#ifdef LL_PLAT_C
51 MCNAPI static void _getDirectoryContents(
52 ::std::vector<::Bedrock::DirectoryEntry>& folders,
54 );
55
56 MCNAPI static void _getDirectorySizeAndDeleteDirectoryContents(::Core::PathBuffer<::std::string> const& path);
57#endif
58 // NOLINTEND
59
60public:
61 // constructor thunks
62 // NOLINTBEGIN
63#ifdef LL_PLAT_C
64 MCNAPI void* $ctor(
65 ::Core::PathBuffer<::std::string> const& cachePath,
67 );
68#endif
69 // NOLINTEND
70};
71
72} // namespace Bedrock
Definition AppPlatform.h:78
Definition NonOwnerPointer.h:9
Definition PathBuffer.h:8
Definition move_only_function.h:9
Definition DirectoryEntry.h:7
Definition Alias.h:14