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/secure_storage/SecureStorage.h"
7
8// auto generated forward declare list
9// clang-format off
12namespace Core { class Path; }
13namespace Core { class PathView; }
14// clang-format on
15
17public:
18 // FileSecureStorage inner types declare
19 // clang-format off
21 class StorageSystem;
22 // clang-format on
23
24 // FileSecureStorage inner types define
26 public:
27 // virtual functions
28 // NOLINTBEGIN
29 // vIndex: 0
30 virtual bool getData(::std::string&, ::Core::Path);
31
32 // vIndex: 1
33 virtual void setData(::std::string const&, ::Core::Path);
34
35 // vIndex: 2
36 virtual ~StorageSystem() = default;
37 // NOLINTEND
38
39 public:
40 // virtual function thunks
41 // NOLINTBEGIN
42
43 // NOLINTEND
44 };
45
47 public:
48 // member variables
49 // NOLINTBEGIN
51 // NOLINTEND
52
53 public:
54 // prevent constructor by default
55 FileStorageSystem& operator=(FileStorageSystem const&);
58
59 public:
60 // virtual functions
61 // NOLINTBEGIN
62 // vIndex: 0
63 virtual bool getData(::std::string& output, ::Core::Path path) /*override*/;
64
65 // vIndex: 1
66 virtual void setData(::std::string const& data, ::Core::Path path) /*override*/;
67
68 // vIndex: 2
69 virtual ~FileStorageSystem() /*override*/ = default;
70 // NOLINTEND
71
72 public:
73 // virtual function thunks
74 // NOLINTBEGIN
75 MCNAPI bool $getData(::std::string& output, ::Core::Path path);
76
77 MCNAPI void $setData(::std::string const& data, ::Core::Path path);
78 // NOLINTEND
79
80 public:
81 // vftables
82 // NOLINTBEGIN
83 MCNAPI static void** $vftable();
84 // NOLINTEND
85 };
86
87public:
88 // member variables
89 // NOLINTBEGIN
100 // NOLINTEND
101
102public:
103 // prevent constructor by default
104 FileSecureStorage& operator=(FileSecureStorage const&);
107
108public:
109 // virtual functions
110 // NOLINTBEGIN
111 // vIndex: 0
112 virtual ~FileSecureStorage() /*override*/;
113
114 // vIndex: 1
115 virtual bool add(::std::string const& key, ::std::string const& value) /*override*/;
116
117 // vIndex: 2
118 virtual bool addOrUpdate(::std::string const& key, ::std::string const& value) /*override*/;
119
120 // vIndex: 3
121 virtual bool remove(::std::string const& key) /*override*/;
122
123 // vIndex: 4
124 virtual bool get(::std::string const& key, ::std::string& outValue) /*override*/;
125 // NOLINTEND
126
127public:
128 // member functions
129 // NOLINTBEGIN
131 ::Core::PathView settingsPath,
132 ::Core::PathView baseSettingsPath,
133 ::ISecureStorageKeySystem* sskSystem,
134 ::Core::PathView userDataPath,
136 );
137
138 MCNAPI ::std::string _contentKeyObfuscator(::std::string const& codedData, ::std::string const& identifier);
139
140 MCNAPI ::SecureStorageKey _getSecureStorageKey() const;
141
142 MCNAPI bool _init(bool expectedFailure);
143
144 MCNAPI void _initalizeSymmetricEncyrption(::std::string& symmetricKey, bool force);
145
147 // NOLINTEND
148
149public:
150 // constructor thunks
151 // NOLINTBEGIN
152 MCNAPI void* $ctor(
153 ::Core::PathView settingsPath,
154 ::Core::PathView baseSettingsPath,
155 ::ISecureStorageKeySystem* sskSystem,
156 ::Core::PathView userDataPath,
158 );
159 // NOLINTEND
160
161public:
162 // destructor thunk
163 // NOLINTBEGIN
164 MCNAPI void $dtor();
165 // NOLINTEND
166
167public:
168 // virtual function thunks
169 // NOLINTBEGIN
170 MCNAPI bool $add(::std::string const& key, ::std::string const& value);
171
172 MCNAPI bool $addOrUpdate(::std::string const& key, ::std::string const& value);
173
174 MCNAPI bool $remove(::std::string const& key);
175
176 MCNAPI bool $get(::std::string const& key, ::std::string& outValue);
177 // NOLINTEND
178
179public:
180 // vftables
181 // NOLINTBEGIN
182 MCNAPI static void** $vftable();
183 // NOLINTEND
184};
Definition PathView.h:15
Definition Path.h:11
Definition FileSecureStorage.h:46
MCAPI bool $getData(::std::string &output, ::Core::Path path)
static MCAPI void ** $vftable()
MCAPI void $setData(::std::string const &data, ::Core::Path path)
Definition FileSecureStorage.h:25
Definition FileSecureStorage.h:16
MCAPI bool $addOrUpdate(::std::string const &key, ::std::string const &value)
MCAPI bool _init(bool expectedFailure)
MCAPI void _rebuildSecureStorageFile()
MCAPI::SecureStorageKey _getSecureStorageKey() const
MCAPI bool $add(::std::string const &key, ::std::string const &value)
MCAPI bool $get(::std::string const &key, ::std::string &outValue)
MCAPI void _initalizeSymmetricEncyrption(::std::string &symmetricKey, bool force)
static MCAPI void ** $vftable()
MCAPI FileSecureStorage(::Core::PathView settingsPath, ::Core::PathView baseSettingsPath, ::ISecureStorageKeySystem *sskSystem, ::Core::PathView userDataPath, ::FileSecureStorage::StorageSystem *storage)
MCAPI bool $remove(::std::string const &key)
MCAPI::std::string _contentKeyObfuscator(::std::string const &codedData, ::std::string const &identifier)
MCAPI void $dtor()
MCAPI void * $ctor(::Core::PathView settingsPath, ::Core::PathView baseSettingsPath, ::ISecureStorageKeySystem *sskSystem, ::Core::PathView userDataPath, ::FileSecureStorage::StorageSystem *storage)
Definition ISecureStorageKeySystem.h:10
Definition Path.h:16
Definition SecureStorageKey.h:5
Definition SecureStorage.h:5
Definition Alias.h:14