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