EstervVault 1.0.0
Store encrypted data on the local system
Loading...
Searching...
No Matches
moc_vault.cpp
1/****************************************************************************
2** Meta object code from reading C++ file 'vault.hpp'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.8.1)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include "../../../../include/esterv/crypto/vault.hpp"
10#include <QtNetwork/QSslPreSharedKeyAuthenticator>
11#include <QtNetwork/QSslError>
12#include <QtCore/qmetatype.h>
13
14#include <QtCore/qtmochelpers.h>
15
16#include <memory>
17
18
19#include <QtCore/qxptype_traits.h>
20#if !defined(Q_MOC_OUTPUT_REVISION)
21#error "The header file 'vault.hpp' doesn't include <QObject>."
22#elif Q_MOC_OUTPUT_REVISION != 68
23#error "This file was generated using the moc from 6.8.1. It"
24#error "cannot be used with the include files from this version of Qt."
25#error "(The moc has changed too much.)"
26#endif
27
28#ifndef Q_CONSTINIT
29#define Q_CONSTINIT
30#endif
31
32QT_WARNING_PUSH
34QT_WARNING_DISABLE_GCC("-Wuseless-cast")
35namespace {
37} // unnamed namespace
38
39
40#ifdef QT_MOC_HAS_STRINGDATA
41static constexpr auto qt_meta_stringdata_ZN6Esterv6Crypto5VaultE = QtMocHelpers::stringData(
42 "Esterv::Crypto::Vault",
43 "QML.Element",
44 "auto",
45 "isEmptyChanged",
46 "",
47 "fileChanged",
48 "getDataString",
49 "password",
50 "setDataString",
51 "plainText",
52 "changePassword",
53 "oldPass",
54 "newPass",
55 "checkPassword",
56 "file",
57 "isEmpty"
58);
59#else // !QT_MOC_HAS_STRINGDATA
60#error "qtmochelpers.h not found or too old."
61#endif // !QT_MOC_HAS_STRINGDATA
62
63Q_CONSTINIT static const uint qt_meta_data_ZN6Esterv6Crypto5VaultE[] = {
64
65 // content:
66 12, // revision
67 0, // classname
68 1, 14, // classinfo
69 6, 16, // methods
70 2, 70, // properties
71 0, 0, // enums/sets
72 0, 0, // constructors
73 0, // flags
74 2, // signalCount
75
76 // classinfo: key, value
77 1, 2,
78
79 // signals: name, argc, parameters, tag, flags, initial metatype offsets
80 3, 0, 52, 4, 0x06, 3 /* Public */,
81 5, 0, 53, 4, 0x06, 4 /* Public */,
82
83 // methods: name, argc, parameters, tag, flags, initial metatype offsets
84 6, 1, 54, 4, 0x102, 5 /* Public | MethodIsConst */,
85 8, 2, 57, 4, 0x02, 7 /* Public */,
86 10, 2, 62, 4, 0x02, 10 /* Public */,
87 13, 1, 67, 4, 0x102, 13 /* Public | MethodIsConst */,
88
89 // signals: parameters
92
93 // methods: parameters
98
99 // properties: name, type, flags, notifyId, revision
100 14, QMetaType::QString, 0x00015003, uint(1), 0,
101 15, QMetaType::Bool, 0x00015001, uint(0), 0,
102
103 0 // eod
104};
105
106Q_CONSTINIT const QMetaObject Esterv::Crypto::Vault::staticMetaObject = { {
107 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
108 qt_meta_stringdata_ZN6Esterv6Crypto5VaultE.offsetsAndSizes,
109 qt_meta_data_ZN6Esterv6Crypto5VaultE,
110 qt_static_metacall,
111 nullptr,
112 qt_metaTypeArray<
113 // property 'file'
114 QString,
115 // property 'isEmpty'
116 bool,
117 // Q_OBJECT / Q_GADGET
118 Vault,
119 // method 'isEmptyChanged'
120 void,
121 // method 'fileChanged'
122 void,
123 // method 'getDataString'
124 QString,
125 QString,
126 // method 'setDataString'
127 bool,
128 QString,
129 QString,
130 // method 'changePassword'
131 bool,
132 QString,
133 QString,
134 // method 'checkPassword'
135 bool,
136 QString
137 >,
138 nullptr
139} };
140
141void Esterv::Crypto::Vault::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
142{
143 auto *_t = static_cast<Vault *>(_o);
144 if (_c == QMetaObject::InvokeMetaMethod) {
145 switch (_id) {
146 case 0: _t->isEmptyChanged(); break;
147 case 1: _t->fileChanged(); break;
148 case 2: { QString _r = _t->getDataString((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])));
149 if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); } break;
150 case 3: { bool _r = _t->setDataString((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<QString>>(_a[2])));
151 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
152 case 4: { bool _r = _t->changePassword((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<QString>>(_a[2])));
153 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
154 case 5: { bool _r = _t->checkPassword((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])));
155 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
156 default: ;
157 }
158 }
159 if (_c == QMetaObject::IndexOfMethod) {
160 int *result = reinterpret_cast<int *>(_a[0]);
161 {
162 using _q_method_type = void (Vault::*)();
163 if (_q_method_type _q_method = &Vault::isEmptyChanged; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
164 *result = 0;
165 return;
166 }
167 }
168 {
169 using _q_method_type = void (Vault::*)();
170 if (_q_method_type _q_method = &Vault::fileChanged; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
171 *result = 1;
172 return;
173 }
174 }
175 }
176 if (_c == QMetaObject::ReadProperty) {
177 void *_v = _a[0];
178 switch (_id) {
179 case 0: *reinterpret_cast< QString*>(_v) = _t->m_file; break;
180 case 1: *reinterpret_cast< bool*>(_v) = _t->isEmpty(); break;
181 default: break;
182 }
183 }
184 if (_c == QMetaObject::WriteProperty) {
185 void *_v = _a[0];
186 switch (_id) {
187 case 0:
188 if (_t->m_file != *reinterpret_cast< QString*>(_v)) {
189 _t->m_file = *reinterpret_cast< QString*>(_v);
190 Q_EMIT _t->fileChanged();
191 }
192 break;
193 default: break;
194 }
195 }
196}
197
199{
200 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
201}
202
203void *Esterv::Crypto::Vault::qt_metacast(const char *_clname)
204{
205 if (!_clname) return nullptr;
206 if (!strcmp(_clname, qt_meta_stringdata_ZN6Esterv6Crypto5VaultE.stringdata0))
207 return static_cast<void*>(this);
208 return QObject::qt_metacast(_clname);
209}
210
211int Esterv::Crypto::Vault::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
212{
213 _id = QObject::qt_metacall(_c, _id, _a);
214 if (_id < 0)
215 return _id;
216 if (_c == QMetaObject::InvokeMetaMethod) {
217 if (_id < 6)
218 qt_static_metacall(this, _c, _id, _a);
219 _id -= 6;
220 }
221 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
222 if (_id < 6)
223 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
224 _id -= 6;
225 }
226 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
227 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
228 || _c == QMetaObject::RegisterPropertyMetaType) {
229 qt_static_metacall(this, _c, _id, _a);
230 _id -= 2;
231 }
232 return _id;
233}
234
235// SIGNAL 0
237{
238 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
239}
240
241// SIGNAL 1
243{
244 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
245}
246QT_WARNING_POP
Vault(QObject *parent=nullptr, const QString filename=(QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation)+"/estervvault.bin"))
Definition vault.cpp:30
void isEmptyChanged()
Definition moc_vault.cpp:236
void fileChanged()
Definition moc_vault.cpp:242
T move(T... args)
Definition moc_about.cpp:33
Q_EMITQ_EMIT
virtual const QMetaObject * metaObject() const const
T strcmp(T... args)