LeviLamina
Loading...
Searching...
No Matches
FileSecureStorage.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/secure_storage/SecureStorage.h"
8#include "mc/deps/core/string/BasicStackString.h"
9
10// auto generated forward declare list
11// clang-format off
14namespace Core { class Path; }
15// clang-format on
16
18public:
19 // FileSecureStorage inner types declare
20 // clang-format off
22 class StorageSystem;
23 // clang-format on
24
25 // FileSecureStorage inner types define
27 public:
28 // virtual functions
29 // NOLINTBEGIN
30 // vIndex: 0
31 virtual bool getData(::std::string&, ::Core::Path);
32
33 // vIndex: 1
34 virtual void setData(::std::string const&, ::Core::Path);
35
36 // vIndex: 2
37 virtual ~StorageSystem() = default;
38 // NOLINTEND
39
40 public:
41 // destructor thunk
42 // NOLINTBEGIN
43
44 // NOLINTEND
45
46 public:
47 // virtual function thunks
48 // NOLINTBEGIN
49
50 // NOLINTEND
51 };
52
54 public:
55 // member variables
56 // NOLINTBEGIN
58 // NOLINTEND
59
60 public:
61 // prevent constructor by default
62 FileStorageSystem& operator=(FileStorageSystem const&);
65
66 public:
67 // virtual functions
68 // NOLINTBEGIN
69 // vIndex: 0
70 virtual bool getData(::std::string& output, ::Core::Path path) /*override*/;
71
72 // vIndex: 1
73 virtual void setData(::std::string const& data, ::Core::Path path) /*override*/;
74
75 // vIndex: 2
76 virtual ~FileStorageSystem() /*override*/ = default;
77 // NOLINTEND
78
79 public:
80 // destructor thunk
81 // NOLINTBEGIN
82
83 // NOLINTEND
84
85 public:
86 // virtual function thunks
87 // NOLINTBEGIN
88 MCAPI bool $getData(::std::string& output, ::Core::Path path);
89
90 MCAPI void $setData(::std::string const& data, ::Core::Path path);
91 // NOLINTEND
92
93 public:
94 // vftables
95 // NOLINTBEGIN
96 MCAPI static void** $vftable();
97 // NOLINTEND
98 };
99
100public:
101 // member variables
102 // NOLINTBEGIN
113 // NOLINTEND
114
115public:
116 // prevent constructor by default
117 FileSecureStorage& operator=(FileSecureStorage const&);
120
121public:
122 // virtual functions
123 // NOLINTBEGIN
124 // vIndex: 0
125 virtual ~FileSecureStorage() /*override*/;
126
127 // vIndex: 1
128 virtual bool add(::std::string const& key, ::std::string const& value) /*override*/;
129
130 // vIndex: 2
131 virtual bool addOrUpdate(::std::string const& key, ::std::string const& value) /*override*/;
132
133 // vIndex: 3
134 virtual bool remove(::std::string const& key) /*override*/;
135
136 // vIndex: 4
137 virtual bool get(::std::string const& key, ::std::string& outValue) /*override*/;
138 // NOLINTEND
139
140public:
141 // member functions
142 // NOLINTBEGIN
143 MCAPI FileSecureStorage(
144 ::Core::PathBuffer<::std::string> const& settingsPath,
146 ::ISecureStorageKeySystem* baseSettingsPath,
147 ::Core::Path const& userDataPath,
149 );
150
151 MCAPI ::std::string _contentKeyObfuscator(::std::string const& codedData, ::std::string const& identifier);
152
153 MCAPI ::SecureStorageKey _getSecureStorageKey() const;
154
155 MCAPI bool _init(bool expectedFailure);
156
157 MCAPI void _initalizeSymmetricEncyrption(::std::string& symmetricKey, bool force);
158
159 MCAPI void _rebuildSecureStorageFile();
160 // NOLINTEND
161
162public:
163 // constructor thunks
164 // NOLINTBEGIN
165 MCAPI void* $ctor(
166 ::Core::PathBuffer<::std::string> const& settingsPath,
168 ::ISecureStorageKeySystem* baseSettingsPath,
169 ::Core::Path const& userDataPath,
171 );
172 // NOLINTEND
173
174public:
175 // destructor thunk
176 // NOLINTBEGIN
177 MCAPI void $dtor();
178 // NOLINTEND
179
180public:
181 // virtual function thunks
182 // NOLINTBEGIN
183 MCAPI bool $add(::std::string const& key, ::std::string const& value);
184
185 MCAPI bool $addOrUpdate(::std::string const& key, ::std::string const& value);
186
187 MCAPI bool $remove(::std::string const& key);
188
189 MCAPI bool $get(::std::string const& key, ::std::string& outValue);
190 // NOLINTEND
191
192public:
193 // vftables
194 // NOLINTBEGIN
195 MCAPI static void** $vftable();
196 // NOLINTEND
197};
Definition BasicStackString.h:8
Definition PathBuffer.h:8
Definition Path.h:15
Definition FileSecureStorage.h:53
Definition FileSecureStorage.h:26
Definition FileSecureStorage.h:17
Definition ISecureStorageKeySystem.h:10
Definition Path.h:16
Definition SecureStorageKey.h:5
Definition SecureStorage.h:5
Definition Alias.h:14