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/FileAccessType.h"
8#include "mc/deps/core/file/FileStorageArea.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace Core { class FileSystem_windows; }
13namespace Core { class PathView; }
14namespace Core { class Result; }
15// clang-format on
16
17namespace Core {
18
19class StorageArea_windows : public ::Core::BasicDirectoryStorageArea<::Core::FileSystem_windows> {
20public:
21 // member variables
22 // NOLINTBEGIN
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
28 StorageArea_windows& operator=(StorageArea_windows const&);
29 StorageArea_windows(StorageArea_windows const&);
30 StorageArea_windows();
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual bool supportsSizeQuery() const /*override*/;
36
37 virtual uint64 getTotalSize() const /*override*/;
38
39 virtual ::Core::Result getUsedSize(uint64& outUsedSize) /*override*/;
40
41 virtual void setUsedSizeOverride(uint64 fileSize) /*override*/;
42
43 virtual void clearUsedSizeOverride() /*override*/;
44
45 virtual bool supportsExtendSize() const /*override*/;
46
47 virtual bool canExtendSize() const /*override*/;
48
49 virtual void resetCanAttemptExtendSize() /*override*/;
50
51 virtual ::Core::Result getExtendSizeThreshold(uint64& outExtendSizeThreshold) const /*override*/;
52
53 virtual void
54 attemptExtendSize(int64 const& currentFreeSpace, ::std::function<void()> onCompleteCallback) /*override*/;
55
56 virtual void preemptiveExtendSize(
57 uint64 const expectedContentSize,
58 ::std::function<void()> successCallback,
59 ::std::function<void()> failureCallback
60 ) /*override*/;
61
62 virtual uint64 getAvailableUserStorageSize() /*override*/;
63
64 virtual ::Core::FileStorageArea::StorageAreaSpaceInfo getStorageAreaSpaceInfo() /*override*/;
65
66 virtual bool shouldRecordFileError(::Core::PathView path, ::std::error_code error) const /*override*/;
67 // NOLINTEND
68
69public:
70 // member functions
71 // NOLINTBEGIN
72 MCNAPI StorageArea_windows(::Core::FileAccessType accessType, ::Core::PathView rootPath, bool usesFlatFile);
73 // NOLINTEND
74
75public:
76 // constructor thunks
77 // NOLINTBEGIN
78 MCNAPI void* $ctor(::Core::FileAccessType accessType, ::Core::PathView rootPath, bool usesFlatFile);
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
114 MCNAPI bool $shouldRecordFileError(::Core::PathView path, ::std::error_code error) const;
115
116
117 // NOLINTEND
118
119public:
120 // vftables
121 // NOLINTBEGIN
122 MCNAPI static void** $vftable();
123 // NOLINTEND
124};
125
126} // namespace Core
Definition BasicDirectoryStorageArea.h:8
Definition FileSystem_windows.h:26
Definition PathView.h:19
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 StorageArea_windows(::Core::FileAccessType accessType, ::Core::PathView rootPath, bool usesFlatFile)
MCAPI::Core::Result $getExtendSizeThreshold(uint64 &outExtendSizeThreshold) const
MCAPI bool $shouldRecordFileError(::Core::PathView path, ::std::error_code error) const
MCAPI void * $ctor(::Core::FileAccessType accessType, ::Core::PathView rootPath, bool usesFlatFile)
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