QtPass 1.5.1
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
moc_singleapplication.cpp
Go to the documentation of this file.
1/****************************************************************************
2** Meta object code from reading C++ file 'singleapplication.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 'singleapplication.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 SingleApplication::qt_create_metaobjectdata<qt_meta_tag_ZN17SingleApplicationE_t>()
38{
39 namespace QMC = QtMocConstants;
40 QtMocHelpers::StringRefStorage qt_stringData {
41 "SingleApplication",
42 "messageAvailable",
43 "",
44 "message",
45 "receiveMessage"
46 };
47
48 QtMocHelpers::UintData qt_methods {
49 // Signal 'messageAvailable'
50 QtMocHelpers::SignalData<void(const QString &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
51 { QMetaType::QString, 3 },
52 }}),
53 // Slot 'receiveMessage'
54 QtMocHelpers::SlotData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
55 };
56 QtMocHelpers::UintData qt_properties {
57 };
58 QtMocHelpers::UintData qt_enums {
59 };
60 return QtMocHelpers::metaObjectData<SingleApplication, qt_meta_tag_ZN17SingleApplicationE_t>(QMC::MetaObjectFlag{}, qt_stringData,
61 qt_methods, qt_properties, qt_enums);
62}
63Q_CONSTINIT const QMetaObject SingleApplication::staticMetaObject = { {
64 QMetaObject::SuperData::link<QApplication::staticMetaObject>(),
65 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17SingleApplicationE_t>.stringdata,
66 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17SingleApplicationE_t>.data,
67 qt_static_metacall,
68 nullptr,
69 qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN17SingleApplicationE_t>.metaTypes,
70 nullptr
71} };
72
73void SingleApplication::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
74{
75 auto *_t = static_cast<SingleApplication *>(_o);
76 if (_c == QMetaObject::InvokeMetaMethod) {
77 switch (_id) {
78 case 0: _t->messageAvailable((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
79 case 1: _t->receiveMessage(); break;
80 default: ;
81 }
82 }
83 if (_c == QMetaObject::IndexOfMethod) {
84 if (QtMocHelpers::indexOfMethod<void (SingleApplication::*)(const QString & )>(_a, &SingleApplication::messageAvailable, 0))
85 return;
86 }
87}
88
89const QMetaObject *SingleApplication::metaObject() const
90{
91 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
92}
93
94void *SingleApplication::qt_metacast(const char *_clname)
95{
96 if (!_clname) return nullptr;
97 if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17SingleApplicationE_t>.strings))
98 return static_cast<void*>(this);
99 return QApplication::qt_metacast(_clname);
100}
101
102int SingleApplication::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
103{
104 _id = QApplication::qt_metacall(_c, _id, _a);
105 if (_id < 0)
106 return _id;
107 if (_c == QMetaObject::InvokeMetaMethod) {
108 if (_id < 2)
109 qt_static_metacall(this, _c, _id, _a);
110 _id -= 2;
111 }
112 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
113 if (_id < 2)
114 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
115 _id -= 2;
116 }
117 return _id;
118}
119
120// SIGNAL 0
121void SingleApplication::messageAvailable(const QString & _t1)
122{
123 QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
124}
125QT_WARNING_POP
void messageAvailable(const QString &message)
messageAvailable notification from commandline
#define SingleApplication
Definition mainwindow.h:17
#define Q_CONSTINIT