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 Result; }
13// clang-format on
14
15namespace Core {
16
17class StorageArea_windows : public ::Core::BasicDirectoryStorageArea<::Core::FileSystem_windows> {
18public:
19 // member variables
20 // NOLINTBEGIN
22 // NOLINTEND
23
24public:
25 // prevent constructor by default
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 // vIndex: 3
34 virtual bool supportsSizeQuery() const /*override*/;
35
36 // vIndex: 4
37 virtual uint64 getTotalSize() const /*override*/;
38
39 // vIndex: 5
40 virtual ::Core::Result getUsedSize(uint64& outUsedSize) /*override*/;
41
42 // vIndex: 6
43 virtual void setUsedSizeOverride(uint64 fileSize) /*override*/;
44
45 // vIndex: 7
46 virtual void clearUsedSizeOverride() /*override*/;
47
48 // vIndex: 13
49 virtual bool supportsExtendSize() const /*override*/;
50
51 // vIndex: 14
52 virtual bool canExtendSize() const /*override*/;
53
54 // vIndex: 15
55 virtual void resetCanAttemptExtendSize() /*override*/;
56
57 // vIndex: 16
58 virtual ::Core::Result getExtendSizeThreshold(uint64& outExtendSizeThreshold) const /*override*/;
59
60 // vIndex: 17
61 virtual void
62 attemptExtendSize(int64 const& currentFreeSpace, ::std::function<void()> onCompleteCallback) /*override*/;
63
64 // vIndex: 18
65 virtual void preemptiveExtendSize(
66 uint64 const expectedContentSize,
67 ::std::function<void()> successCallback,
68 ::std::function<void()> failureCallback
69 ) /*override*/;
70
71 // vIndex: 19
72 virtual uint64 getAvailableUserStorageSize() /*override*/;
73
74 // vIndex: 33
75 virtual ::Core::FileStorageArea::StorageAreaSpaceInfo getStorageAreaSpaceInfo() /*override*/;
76
77 // vIndex: 0
78 virtual ~StorageArea_windows() /*override*/ = default;
79 // NOLINTEND
80
81public:
82 // virtual function thunks
83 // NOLINTBEGIN
84 MCNAPI bool $supportsSizeQuery() const;
85
86 MCNAPI uint64 $getTotalSize() const;
87
88 MCNAPI ::Core::Result $getUsedSize(uint64& outUsedSize);
89
90 MCNAPI void $setUsedSizeOverride(uint64 fileSize);
91
93
94 MCNAPI bool $supportsExtendSize() const;
95
96 MCNAPI bool $canExtendSize() const;
97
99
100 MCNAPI ::Core::Result $getExtendSizeThreshold(uint64& outExtendSizeThreshold) const;
101
102 MCNAPI void $attemptExtendSize(int64 const& currentFreeSpace, ::std::function<void()> onCompleteCallback);
103
105 uint64 const expectedContentSize,
106 ::std::function<void()> successCallback,
107 ::std::function<void()> failureCallback
108 );
109
111
112 MCNAPI ::Core::FileStorageArea::StorageAreaSpaceInfo $getStorageAreaSpaceInfo();
113 // NOLINTEND
114
115public:
116 // vftables
117 // NOLINTBEGIN
118 MCNAPI static void** $vftable();
119 // NOLINTEND
120};
121
122} // namespace Core
Definition BasicDirectoryStorageArea.h:8
Definition StorageArea_windows.h:17
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 $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