QtPass 1.5.1
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
moc_mainwindow.cpp
Go to the documentation of this file.
1/****************************************************************************
2** Meta object code from reading C++ file 'mainwindow.h'
3**
4** Created by: The Qt Meta Object Compiler version 69 (Qt 6.10.2)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
10#include <QtCore/qmetatype.h>
11
12#include <QtCore/qtmochelpers.h>
13
14#include <memory>
15
16
17#include <QtCore/qxptype_traits.h>
18#if !defined(Q_MOC_OUTPUT_REVISION)
19#error "The header file 'mainwindow.h' doesn't include <QObject>."
20#elif Q_MOC_OUTPUT_REVISION != 69
21#error "This file was generated using the moc from 6.10.2. It"
22#error "cannot be used with the include files from this version of Qt."
23#error "(The moc has changed too much.)"
24#endif
25
26#ifndef Q_CONSTINIT
27#define Q_CONSTINIT
28#endif
29
30QT_WARNING_PUSH
32QT_WARNING_DISABLE_GCC("-Wuseless-cast")
33namespace {
35} // unnamed namespace
36
37template <> constexpr inline auto MainWindow::qt_create_metaobjectdata<qt_meta_tag_ZN10MainWindowE_t>()
38{
39 namespace QMC = QtMocConstants;
40 QtMocHelpers::StringRefStorage qt_stringData {
41 "MainWindow",
42 "passShowHandlerFinished",
43 "",
44 "output",
45 "passGitInitNeeded",
46 "generateGPGKeyPair",
47 "batch",
48 "deselect",
49 "messageAvailable",
50 "message",
51 "critical",
52 "executeWrapperStarted",
53 "showStatusMessage",
54 "msg",
55 "timeout",
56 "passShowHandler",
57 "passOtpHandler",
58 "onPush",
59 "on_treeView_clicked",
60 "QModelIndex",
61 "index",
62 "startReencryptPath",
63 "endReencryptPath",
64 "addPassword",
65 "addFolder",
66 "onEdit",
67 "onDelete",
68 "onOtp",
69 "onUpdate",
70 "block",
71 "onUsers",
72 "onConfig",
73 "on_treeView_doubleClicked",
74 "clearPanel",
75 "notify",
76 "on_lineEdit_textChanged",
77 "arg1",
78 "on_lineEdit_returnPressed",
79 "on_profileBox_currentTextChanged",
80 "showContextMenu",
81 "QPoint",
82 "pos",
83 "showBrowserContextMenu",
84 "openFolder",
85 "renameFolder",
86 "editPassword",
87 "renamePassword",
88 "focusInput",
89 "copyPasswordFromTreeview",
90 "passwordFromFileToClipboard",
91 "text",
92 "onTimeoutSearch"
93 };
94
95 QtMocHelpers::UintData qt_methods {
96 // Signal 'passShowHandlerFinished'
97 QtMocHelpers::SignalData<void(const QString &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
98 { QMetaType::QString, 3 },
99 }}),
100 // Signal 'passGitInitNeeded'
101 QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
102 // Signal 'generateGPGKeyPair'
103 QtMocHelpers::SignalData<void(const QString &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
104 { QMetaType::QString, 6 },
105 }}),
106 // Slot 'deselect'
107 QtMocHelpers::SlotData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
108 // Slot 'messageAvailable'
109 QtMocHelpers::SlotData<void(const QString &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
110 { QMetaType::QString, 9 },
111 }}),
112 // Slot 'critical'
113 QtMocHelpers::SlotData<void(const QString &, const QString &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
114 { QMetaType::QString, 2 }, { QMetaType::QString, 2 },
115 }}),
116 // Slot 'executeWrapperStarted'
117 QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
118 // Slot 'showStatusMessage'
119 QtMocHelpers::SlotData<void(const QString &, int)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
120 { QMetaType::QString, 13 }, { QMetaType::Int, 14 },
121 }}),
122 // Slot 'showStatusMessage'
123 QtMocHelpers::SlotData<void(const QString &)>(12, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
124 { QMetaType::QString, 13 },
125 }}),
126 // Slot 'passShowHandler'
127 QtMocHelpers::SlotData<void(const QString &)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
128 { QMetaType::QString, 2 },
129 }}),
130 // Slot 'passOtpHandler'
131 QtMocHelpers::SlotData<void(const QString &)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
132 { QMetaType::QString, 2 },
133 }}),
134 // Slot 'onPush'
135 QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPublic, QMetaType::Void),
136 // Slot 'on_treeView_clicked'
137 QtMocHelpers::SlotData<void(const QModelIndex &)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
138 { 0x80000000 | 19, 20 },
139 }}),
140 // Slot 'startReencryptPath'
141 QtMocHelpers::SlotData<void()>(21, 2, QMC::AccessPublic, QMetaType::Void),
142 // Slot 'endReencryptPath'
143 QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPublic, QMetaType::Void),
144 // Slot 'addPassword'
145 QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessPrivate, QMetaType::Void),
146 // Slot 'addFolder'
147 QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPrivate, QMetaType::Void),
148 // Slot 'onEdit'
149 QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessPrivate, QMetaType::Void),
150 // Slot 'onDelete'
151 QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessPrivate, QMetaType::Void),
152 // Slot 'onOtp'
153 QtMocHelpers::SlotData<void()>(27, 2, QMC::AccessPrivate, QMetaType::Void),
154 // Slot 'onUpdate'
155 QtMocHelpers::SlotData<void(bool)>(28, 2, QMC::AccessPrivate, QMetaType::Void, {{
156 { QMetaType::Bool, 29 },
157 }}),
158 // Slot 'onUpdate'
159 QtMocHelpers::SlotData<void()>(28, 2, QMC::AccessPrivate | QMC::MethodCloned, QMetaType::Void),
160 // Slot 'onUsers'
161 QtMocHelpers::SlotData<void()>(30, 2, QMC::AccessPrivate, QMetaType::Void),
162 // Slot 'onConfig'
163 QtMocHelpers::SlotData<void()>(31, 2, QMC::AccessPrivate, QMetaType::Void),
164 // Slot 'on_treeView_doubleClicked'
165 QtMocHelpers::SlotData<void(const QModelIndex &)>(32, 2, QMC::AccessPrivate, QMetaType::Void, {{
166 { 0x80000000 | 19, 20 },
167 }}),
168 // Slot 'clearPanel'
169 QtMocHelpers::SlotData<void(bool)>(33, 2, QMC::AccessPrivate, QMetaType::Void, {{
170 { QMetaType::Bool, 34 },
171 }}),
172 // Slot 'clearPanel'
173 QtMocHelpers::SlotData<void()>(33, 2, QMC::AccessPrivate | QMC::MethodCloned, QMetaType::Void),
174 // Slot 'on_lineEdit_textChanged'
175 QtMocHelpers::SlotData<void(const QString &)>(35, 2, QMC::AccessPrivate, QMetaType::Void, {{
176 { QMetaType::QString, 36 },
177 }}),
178 // Slot 'on_lineEdit_returnPressed'
179 QtMocHelpers::SlotData<void()>(37, 2, QMC::AccessPrivate, QMetaType::Void),
180 // Slot 'on_profileBox_currentTextChanged'
181 QtMocHelpers::SlotData<void(const QString &)>(38, 2, QMC::AccessPrivate, QMetaType::Void, {{
182 { QMetaType::QString, 2 },
183 }}),
184 // Slot 'showContextMenu'
185 QtMocHelpers::SlotData<void(const QPoint &)>(39, 2, QMC::AccessPrivate, QMetaType::Void, {{
186 { 0x80000000 | 40, 41 },
187 }}),
188 // Slot 'showBrowserContextMenu'
189 QtMocHelpers::SlotData<void(const QPoint &)>(42, 2, QMC::AccessPrivate, QMetaType::Void, {{
190 { 0x80000000 | 40, 41 },
191 }}),
192 // Slot 'openFolder'
193 QtMocHelpers::SlotData<void()>(43, 2, QMC::AccessPrivate, QMetaType::Void),
194 // Slot 'renameFolder'
195 QtMocHelpers::SlotData<void()>(44, 2, QMC::AccessPrivate, QMetaType::Void),
196 // Slot 'editPassword'
197 QtMocHelpers::SlotData<void(const QString &)>(45, 2, QMC::AccessPrivate, QMetaType::Void, {{
198 { QMetaType::QString, 2 },
199 }}),
200 // Slot 'renamePassword'
201 QtMocHelpers::SlotData<void()>(46, 2, QMC::AccessPrivate, QMetaType::Void),
202 // Slot 'focusInput'
203 QtMocHelpers::SlotData<void()>(47, 2, QMC::AccessPrivate, QMetaType::Void),
204 // Slot 'copyPasswordFromTreeview'
205 QtMocHelpers::SlotData<void()>(48, 2, QMC::AccessPrivate, QMetaType::Void),
206 // Slot 'passwordFromFileToClipboard'
207 QtMocHelpers::SlotData<void(const QString &)>(49, 2, QMC::AccessPrivate, QMetaType::Void, {{
208 { QMetaType::QString, 50 },
209 }}),
210 // Slot 'onTimeoutSearch'
211 QtMocHelpers::SlotData<void()>(51, 2, QMC::AccessPrivate, QMetaType::Void),
212 };
213 QtMocHelpers::UintData qt_properties {
214 };
215 QtMocHelpers::UintData qt_enums {
216 };
217 return QtMocHelpers::metaObjectData<MainWindow, qt_meta_tag_ZN10MainWindowE_t>(QMC::MetaObjectFlag{}, qt_stringData,
218 qt_methods, qt_properties, qt_enums);
219}
220Q_CONSTINIT const QMetaObject MainWindow::staticMetaObject = { {
221 QMetaObject::SuperData::link<QMainWindow::staticMetaObject>(),
222 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10MainWindowE_t>.stringdata,
223 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10MainWindowE_t>.data,
224 qt_static_metacall,
225 nullptr,
226 qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10MainWindowE_t>.metaTypes,
227 nullptr
228} };
229
230void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
231{
232 auto *_t = static_cast<MainWindow *>(_o);
233 if (_c == QMetaObject::InvokeMetaMethod) {
234 switch (_id) {
235 case 0: _t->passShowHandlerFinished((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
236 case 1: _t->passGitInitNeeded(); break;
237 case 2: _t->generateGPGKeyPair((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
238 case 3: _t->deselect(); break;
239 case 4: _t->messageAvailable((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
240 case 5: _t->critical((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
241 case 6: _t->executeWrapperStarted(); break;
242 case 7: _t->showStatusMessage((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
243 case 8: _t->showStatusMessage((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
244 case 9: _t->passShowHandler((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
245 case 10: _t->passOtpHandler((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
246 case 11: _t->onPush(); break;
247 case 12: _t->on_treeView_clicked((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1]))); break;
248 case 13: _t->startReencryptPath(); break;
249 case 14: _t->endReencryptPath(); break;
250 case 15: _t->addPassword(); break;
251 case 16: _t->addFolder(); break;
252 case 17: _t->onEdit(); break;
253 case 18: _t->onDelete(); break;
254 case 19: _t->onOtp(); break;
255 case 20: _t->onUpdate((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
256 case 21: _t->onUpdate(); break;
257 case 22: _t->onUsers(); break;
258 case 23: _t->onConfig(); break;
259 case 24: _t->on_treeView_doubleClicked((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1]))); break;
260 case 25: _t->clearPanel((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
261 case 26: _t->clearPanel(); break;
262 case 27: _t->on_lineEdit_textChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
263 case 28: _t->on_lineEdit_returnPressed(); break;
264 case 29: _t->on_profileBox_currentTextChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
265 case 30: _t->showContextMenu((*reinterpret_cast<std::add_pointer_t<QPoint>>(_a[1]))); break;
266 case 31: _t->showBrowserContextMenu((*reinterpret_cast<std::add_pointer_t<QPoint>>(_a[1]))); break;
267 case 32: _t->openFolder(); break;
268 case 33: _t->renameFolder(); break;
269 case 34: _t->editPassword((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
270 case 35: _t->renamePassword(); break;
271 case 36: _t->focusInput(); break;
272 case 37: _t->copyPasswordFromTreeview(); break;
273 case 38: _t->passwordFromFileToClipboard((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
274 case 39: _t->onTimeoutSearch(); break;
275 default: ;
276 }
277 }
278 if (_c == QMetaObject::IndexOfMethod) {
279 if (QtMocHelpers::indexOfMethod<void (MainWindow::*)(const QString & )>(_a, &MainWindow::passShowHandlerFinished, 0))
280 return;
281 if (QtMocHelpers::indexOfMethod<void (MainWindow::*)()>(_a, &MainWindow::passGitInitNeeded, 1))
282 return;
283 if (QtMocHelpers::indexOfMethod<void (MainWindow::*)(const QString & )>(_a, &MainWindow::generateGPGKeyPair, 2))
284 return;
285 }
286}
287
288const QMetaObject *MainWindow::metaObject() const
289{
290 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
291}
292
293void *MainWindow::qt_metacast(const char *_clname)
294{
295 if (!_clname) return nullptr;
296 if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10MainWindowE_t>.strings))
297 return static_cast<void*>(this);
298 return QMainWindow::qt_metacast(_clname);
299}
300
301int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
302{
303 _id = QMainWindow::qt_metacall(_c, _id, _a);
304 if (_id < 0)
305 return _id;
306 if (_c == QMetaObject::InvokeMetaMethod) {
307 if (_id < 40)
308 qt_static_metacall(this, _c, _id, _a);
309 _id -= 40;
310 }
311 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
312 if (_id < 40)
313 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
314 _id -= 40;
315 }
316 return _id;
317}
318
319// SIGNAL 0
320void MainWindow::passShowHandlerFinished(const QString & _t1)
321{
322 QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
323}
324
325// SIGNAL 1
327{
328 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
329}
330
331// SIGNAL 2
332void MainWindow::generateGPGKeyPair(const QString & _t1)
333{
334 QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
335}
336QT_WARNING_POP
void passGitInitNeeded()
MainWindow(const QString &searchText=QString(), QWidget *parent=nullptr)
MainWindow::MainWindow handles all of the main functionality and also the main window.
void passShowHandlerFinished(const QString &output)
void generateGPGKeyPair(const QString &batch)
#define Q_CONSTINIT