LeviLamina
Loading...
Searching...
No Matches
StorageArea_windows.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/BasicDirectoryStorageArea.h"
7#include "mc/deps/core/file/FileStorageArea.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Core { class FileSystem_windows; }
12namespace Core { class PathView; }
13namespace Core { class Result; }
14// clang-format on
15
16namespace Core {
17
18class StorageArea_windows : public ::Core::BasicDirectoryStorageArea<::Core::FileSystem_windows> {
19public:
20 // member variables
21 // NOLINTBEGIN
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
27 StorageArea_windows& operator=(StorageArea_windows const&);
28 StorageArea_windows(StorageArea_windows const&);
29 StorageArea_windows();
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 virtual bool supportsSizeQuery() const /*override*/;
35
36 virtual uint64 getTotalSize() const /*override*/;
37
38 virtual ::Core::Result getUsedSize(uint64& outUsedSize) /*override*/;
39
40 virtual void setUsedSizeOverride(uint64 fileSize) /*override*/;
41
42 virtual void clearUsedSizeOverride() /*override*/;
43
44 virtual bool supportsExtendSize() const /*override*/;
45
46 virtual bool canExtendSize() const /*override*/;
47
48 virtual void resetCanAttemptExtendSize() /*override*/;
49
50 virtual ::Core::Result getExtendSizeThreshold(uint64& outExtendSizeThreshold) const /*override*/;
51
52 virtual void
53 attemptExtendSize(int64 const& currentFreeSpace, ::std::function<void()> onCompleteCallback) /*override*/;
54
55 virtual void preemptiveExtendSize(
56 uint64 const expectedContentSize,
57 ::std::function<void()> successCallback,
58 ::std::function<void()> failureCallback
59 ) /*override*/;
60
61 virtual uint64 getAvailableUserStorageSize() /*override*/;
62
63 virtual ::Core::FileStorageArea::StorageAreaSpaceInfo getStorageAreaSpaceInfo() /*override*/;
64
65 virtual bool shouldRecordFileError(::Core::PathView path, ::std::error_code error) const /*override*/;
66
67 virtual ~StorageArea_windows() /*override*/ = default;
68 // NOLINTEND
69
70public:
71 // virtual function thunks
72 // NOLINTBEGIN
73 MCNAPI bool $supportsSizeQuery() const;
74
75 MCNAPI uint64 $getTotalSize() const;
76
77 MCNAPI ::Core::Result $getUsedSize(uint64& outUsedSize);
78
79 MCNAPI void $setUsedSizeOverride(uint64 fileSize);
80
82
83 MCNAPI bool $supportsExtendSize() const;
84
85 MCNAPI bool $canExtendSize() const;
86
88
89 MCNAPI ::Core::Result $getExtendSizeThreshold(uint64& outExtendSizeThreshold) const;
90
91 MCNAPI void $attemptExtendSize(int64 const& currentFreeSpace, ::std::function<void()> onCompleteCallback);
92
94 uint64 const expectedContentSize,
95 ::std::function<void()> successCallback,
96 ::std::function<void()> failureCallback
97 );
98
100
101 MCNAPI ::Core::FileStorageArea::StorageAreaSpaceInfo $getStorageAreaSpaceInfo();
102
103 MCNAPI bool $shouldRecordFileError(::Core::PathView path, ::std::error_code error) const;
104
105
106 // NOLINTEND
107
108public:
109 // vftables
110 // NOLINTBEGIN
111 MCNAPI static void** $vftable();
112 // NOLINTEND
113};
114
115} // namespace Core
Definition BasicDirectoryStorageArea.h:8
Definition FileSystem_windows.h:26
Definition PathView.h:17
Definition Result.h:11
MCAPI uint64 $getTotalSize() const
static MCAPI void ** $vftable()
MCAPI void $clearUsedSizeOverride()
MCAPI bool $supportsSizeQuery() const
MCAPI void $resetCanAttemptExtendSize()
MCAPI::Core::Result $getUsedSize(uint64 &outUsedSize)
MCAPI::Core::FileStorageArea::StorageAreaSpaceInfo $getStorageAreaSpaceInfo()
MCAPI::Core::Result $getExtendSizeThreshold(uint64 &outExtendSizeThreshold) const
MCAPI bool $shouldRecordFileError(::Core::PathView path, ::std::error_code error) const
MCAPI bool $canExtendSize() const
MCAPI void $attemptExtendSize(int64 const &currentFreeSpace, ::std::function< void()> onCompleteCallback)
MCAPI void $preemptiveExtendSize(uint64 const expectedContentSize, ::std::function< void()> successCallback, ::std::function< void()> failureCallback)
MCAPI bool $supportsExtendSize() const
MCAPI void $setUsedSizeOverride(uint64 fileSize)
MCAPI uint64 $getAvailableUserStorageSize()
Definition Alias.h:14