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 // virtual function thunks
42 // NOLINTBEGIN
43
44 // NOLINTEND
45 };
46
48 public:
49 // member variables
50 // NOLINTBEGIN
52 // NOLINTEND
53
54 public:
55 // prevent constructor by default
56 FileStorageSystem& operator=(FileStorageSystem const&);
59
60 public:
61 // virtual functions
62 // NOLINTBEGIN
63 // vIndex: 0
64 virtual bool getData(::std::string& output, ::Core::Path path) /*override*/;
65
66 // vIndex: 1
67 virtual void setData(::std::string const& data, ::Core::Path path) /*override*/;
68
69 // vIndex: 2
70 virtual ~FileStorageSystem() /*override*/ = default;
71 // NOLINTEND
72
73 public:
74 // virtual function thunks
75 // NOLINTBEGIN
76 MCNAPI bool $getData(::std::string& output, ::Core::Path path);
77
78 MCNAPI void $setData(::std::string const& data, ::Core::Path path);
79 // NOLINTEND
80
81 public:
82 // vftables
83 // NOLINTBEGIN
84 MCNAPI static void** $vftable();
85 // NOLINTEND
86 };
87
88public:
89 // member variables
90 // NOLINTBEGIN
101 // NOLINTEND
102
103public:
104 // prevent constructor by default
105 FileSecureStorage& operator=(FileSecureStorage const&);
108
109public:
110 // virtual functions
111 // NOLINTBEGIN
112 // vIndex: 0
113 virtual ~FileSecureStorage() /*override*/;
114
115 // vIndex: 1
116 virtual bool add(::std::string const& key, ::std::string const& value) /*override*/;
117
118 // vIndex: 2
119 virtual bool addOrUpdate(::std::string const& key, ::std::string const& value) /*override*/;
120
121 // vIndex: 3
122 virtual bool remove(::std::string const& key) /*override*/;
123
124 // vIndex: 4
125 virtual bool get(::std::string const& key, ::std::string& outValue) /*override*/;
126 // NOLINTEND
127
128public:
129 // member functions
130 // NOLINTBEGIN
132 ::Core::PathBuffer<::std::string> const& settingsPath,
134 ::ISecureStorageKeySystem* sskSystem,
135 ::Core::Path const& userDataPath,
137 );
138
139 MCNAPI ::std::string _contentKeyObfuscator(::std::string const& codedData, ::std::string const& identifier);
140
141 MCNAPI ::SecureStorageKey _getSecureStorageKey() const;
142
143 MCNAPI bool _init(bool expectedFailure);
144
145 MCNAPI void _initalizeSymmetricEncyrption(::std::string& symmetricKey, bool force);
146
148 // NOLINTEND
149
150public:
151 // constructor thunks
152 // NOLINTBEGIN
153 MCNAPI void* $ctor(
154 ::Core::PathBuffer<::std::string> const& settingsPath,
156 ::ISecureStorageKeySystem* sskSystem,
157 ::Core::Path const& userDataPath,
159 );
160 // NOLINTEND
161
162public:
163 // destructor thunk
164 // NOLINTBEGIN
165 MCNAPI void $dtor();
166 // NOLINTEND
167
168public:
169 // virtual function thunks
170 // NOLINTBEGIN
171 MCNAPI bool $add(::std::string const& key, ::std::string const& value);
172
173 MCNAPI bool $addOrUpdate(::std::string const& key, ::std::string const& value);
174
175 MCNAPI bool $remove(::std::string const& key);
176
177 MCNAPI bool $get(::std::string const& key, ::std::string& outValue);
178 // NOLINTEND
179
180public:
181 // vftables
182 // NOLINTBEGIN
183 MCNAPI static void** $vftable();
184 // NOLINTEND
185};
Definition BasicStackString.h:8
Definition PathBuffer.h:8
Definition Path.h:17
Definition FileSecureStorage.h:47
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:26
Definition FileSecureStorage.h:17
MCAPI FileSecureStorage(::Core::PathBuffer<::std::string > const &settingsPath, ::Core::PathBuffer<::Core::BasicStackString< char, 1024 > > const &baseSettingsPath, ::ISecureStorageKeySystem *sskSystem, ::Core::Path const &userDataPath, ::FileSecureStorage::StorageSystem *storage)
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 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::PathBuffer<::std::string > const &settingsPath, ::Core::PathBuffer<::Core::BasicStackString< char, 1024 > > const &baseSettingsPath, ::ISecureStorageKeySystem *sskSystem, ::Core::Path const &userDataPath, ::FileSecureStorage::StorageSystem *storage)
Definition ISecureStorageKeySystem.h:10
Definition Path.h:16
Definition SecureStorageKey.h:5
Definition SecureStorage.h:5
Definition Alias.h:14