1/****************************************************************************
2** Meta object code from reading C++ file 'qplatformsystemtrayicon.h'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.0.0)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include <memory>
10#include "kernel/qplatformsystemtrayicon.h"
11#include <qpa/qplatformscreen.h>
12#include <QtCore/qbytearray.h>
13#include <QtCore/qmetatype.h>
14#if !defined(Q_MOC_OUTPUT_REVISION)
15#error "The header file 'qplatformsystemtrayicon.h' doesn't include <QObject>."
16#elif Q_MOC_OUTPUT_REVISION != 68
17#error "This file was generated using the moc from 6.0.0. It"
18#error "cannot be used with the include files from this version of Qt."
19#error "(The moc has changed too much.)"
20#endif
21
22QT_BEGIN_MOC_NAMESPACE
23QT_WARNING_PUSH
24QT_WARNING_DISABLE_DEPRECATED
25struct qt_meta_stringdata_QPlatformSystemTrayIcon_t {
26 const uint offsetsAndSize[42];
27 char stringdata0[273];
28};
29#define QT_MOC_LITERAL(ofs, len) \
30 uint(offsetof(qt_meta_stringdata_QPlatformSystemTrayIcon_t, stringdata0) + ofs), len
31static const qt_meta_stringdata_QPlatformSystemTrayIcon_t qt_meta_stringdata_QPlatformSystemTrayIcon = {
32 {
33QT_MOC_LITERAL(0, 23), // "QPlatformSystemTrayIcon"
34QT_MOC_LITERAL(24, 9), // "activated"
35QT_MOC_LITERAL(34, 0), // ""
36QT_MOC_LITERAL(35, 41), // "QPlatformSystemTrayIcon::Acti..."
37QT_MOC_LITERAL(77, 6), // "reason"
38QT_MOC_LITERAL(84, 20), // "contextMenuRequested"
39QT_MOC_LITERAL(105, 9), // "globalPos"
40QT_MOC_LITERAL(115, 22), // "const QPlatformScreen*"
41QT_MOC_LITERAL(138, 6), // "screen"
42QT_MOC_LITERAL(145, 14), // "messageClicked"
43QT_MOC_LITERAL(160, 16), // "ActivationReason"
44QT_MOC_LITERAL(177, 7), // "Unknown"
45QT_MOC_LITERAL(185, 7), // "Context"
46QT_MOC_LITERAL(193, 11), // "DoubleClick"
47QT_MOC_LITERAL(205, 7), // "Trigger"
48QT_MOC_LITERAL(213, 11), // "MiddleClick"
49QT_MOC_LITERAL(225, 11), // "MessageIcon"
50QT_MOC_LITERAL(237, 6), // "NoIcon"
51QT_MOC_LITERAL(244, 11), // "Information"
52QT_MOC_LITERAL(256, 7), // "Warning"
53QT_MOC_LITERAL(264, 8) // "Critical"
54
55 },
56 "QPlatformSystemTrayIcon\0activated\0\0"
57 "QPlatformSystemTrayIcon::ActivationReason\0"
58 "reason\0contextMenuRequested\0globalPos\0"
59 "const QPlatformScreen*\0screen\0"
60 "messageClicked\0ActivationReason\0Unknown\0"
61 "Context\0DoubleClick\0Trigger\0MiddleClick\0"
62 "MessageIcon\0NoIcon\0Information\0Warning\0"
63 "Critical"
64};
65#undef QT_MOC_LITERAL
66
67static const uint qt_meta_data_QPlatformSystemTrayIcon[] = {
68
69 // content:
70 9, // revision
71 0, // classname
72 0, 0, // classinfo
73 3, 14, // methods
74 0, 0, // properties
75 2, 41, // enums/sets
76 0, 0, // constructors
77 0, // flags
78 3, // signalCount
79
80 // signals: name, argc, parameters, tag, flags, initial metatype offsets
81 1, 1, 32, 2, 0x06, 0 /* Public */,
82 5, 2, 35, 2, 0x06, 2 /* Public */,
83 9, 0, 40, 2, 0x06, 5 /* Public */,
84
85 // signals: parameters
86 QMetaType::Void, 0x80000000 | 3, 4,
87 QMetaType::Void, QMetaType::QPoint, 0x80000000 | 7, 6, 8,
88 QMetaType::Void,
89
90 // enums: name, alias, flags, count, data
91 10, 10, 0x0, 5, 51,
92 16, 16, 0x0, 4, 61,
93
94 // enum data: key, value
95 11, uint(QPlatformSystemTrayIcon::Unknown),
96 12, uint(QPlatformSystemTrayIcon::Context),
97 13, uint(QPlatformSystemTrayIcon::DoubleClick),
98 14, uint(QPlatformSystemTrayIcon::Trigger),
99 15, uint(QPlatformSystemTrayIcon::MiddleClick),
100 17, uint(QPlatformSystemTrayIcon::NoIcon),
101 18, uint(QPlatformSystemTrayIcon::Information),
102 19, uint(QPlatformSystemTrayIcon::Warning),
103 20, uint(QPlatformSystemTrayIcon::Critical),
104
105 0 // eod
106};
107
108void QPlatformSystemTrayIcon::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
109{
110 if (_c == QMetaObject::InvokeMetaMethod) {
111 Q_ASSERT(staticMetaObject.cast(_o));
112 auto *_t = static_cast<QPlatformSystemTrayIcon *>(_o);
113 Q_UNUSED(_t)
114 switch (_id) {
115 case 0: _t->activated((*reinterpret_cast< QPlatformSystemTrayIcon::ActivationReason(*)>(_a[1]))); break;
116 case 1: _t->contextMenuRequested((*reinterpret_cast< QPoint(*)>(_a[1])),(*reinterpret_cast< const QPlatformScreen*(*)>(_a[2]))); break;
117 case 2: _t->messageClicked(); break;
118 default: ;
119 }
120 } else if (_c == QMetaObject::IndexOfMethod) {
121 int *result = reinterpret_cast<int *>(_a[0]);
122 {
123 using _t = void (QPlatformSystemTrayIcon::*)(QPlatformSystemTrayIcon::ActivationReason );
124 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QPlatformSystemTrayIcon::activated)) {
125 *result = 0;
126 return;
127 }
128 }
129 {
130 using _t = void (QPlatformSystemTrayIcon::*)(QPoint , const QPlatformScreen * );
131 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QPlatformSystemTrayIcon::contextMenuRequested)) {
132 *result = 1;
133 return;
134 }
135 }
136 {
137 using _t = void (QPlatformSystemTrayIcon::*)();
138 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QPlatformSystemTrayIcon::messageClicked)) {
139 *result = 2;
140 return;
141 }
142 }
143 }
144}
145
146const QMetaObject QPlatformSystemTrayIcon::staticMetaObject = { {
147 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
148 qt_meta_stringdata_QPlatformSystemTrayIcon.offsetsAndSize,
149 qt_meta_data_QPlatformSystemTrayIcon,
150 qt_static_metacall,
151 nullptr,
152qt_incomplete_metaTypeArray<qt_meta_stringdata_QPlatformSystemTrayIcon_t
153, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QPlatformSystemTrayIcon::ActivationReason, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QPoint, std::false_type>, QtPrivate::TypeAndForceComplete<const QPlatformScreen *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
154
155
156
157>,
158 nullptr
159} };
160
161
162const QMetaObject *QPlatformSystemTrayIcon::metaObject() const
163{
164 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
165}
166
167void *QPlatformSystemTrayIcon::qt_metacast(const char *_clname)
168{
169 if (!_clname) return nullptr;
170 if (!strcmp(_clname, qt_meta_stringdata_QPlatformSystemTrayIcon.stringdata0))
171 return static_cast<void*>(this);
172 return QObject::qt_metacast(_clname);
173}
174
175int QPlatformSystemTrayIcon::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
176{
177 _id = QObject::qt_metacall(_c, _id, _a);
178 if (_id < 0)
179 return _id;
180 if (_c == QMetaObject::InvokeMetaMethod) {
181 if (_id < 3)
182 qt_static_metacall(this, _c, _id, _a);
183 _id -= 3;
184 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
185 if (_id < 3)
186 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
187 _id -= 3;
188 }
189 return _id;
190}
191
192// SIGNAL 0
193void QPlatformSystemTrayIcon::activated(QPlatformSystemTrayIcon::ActivationReason _t1)
194{
195 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
196 QMetaObject::activate(this, &staticMetaObject, 0, _a);
197}
198
199// SIGNAL 1
200void QPlatformSystemTrayIcon::contextMenuRequested(QPoint _t1, const QPlatformScreen * _t2)
201{
202 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
203 QMetaObject::activate(this, &staticMetaObject, 1, _a);
204}
205
206// SIGNAL 2
207void QPlatformSystemTrayIcon::messageClicked()
208{
209 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
210}
211QT_WARNING_POP
212QT_END_MOC_NAMESPACE
213