| 1 | /**************************************************************************** | 
|---|
| 2 | ** Meta object code from reading C++ file 'qsystemtrayicon.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 "util/qsystemtrayicon.h" | 
|---|
| 11 | #include <QtCore/qbytearray.h> | 
|---|
| 12 | #include <QtCore/qmetatype.h> | 
|---|
| 13 | #if !defined(Q_MOC_OUTPUT_REVISION) | 
|---|
| 14 | #error "The header file 'qsystemtrayicon.h' doesn't include <QObject>." | 
|---|
| 15 | #elif Q_MOC_OUTPUT_REVISION != 68 | 
|---|
| 16 | #error "This file was generated using the moc from 6.0.0. It" | 
|---|
| 17 | #error "cannot be used with the include files from this version of Qt." | 
|---|
| 18 | #error "(The moc has changed too much.)" | 
|---|
| 19 | #endif | 
|---|
| 20 |  | 
|---|
| 21 | QT_BEGIN_MOC_NAMESPACE | 
|---|
| 22 | QT_WARNING_PUSH | 
|---|
| 23 | QT_WARNING_DISABLE_DEPRECATED | 
|---|
| 24 | struct qt_meta_stringdata_QSystemTrayIcon_t { | 
|---|
| 25 | const uint offsetsAndSize[38]; | 
|---|
| 26 | char stringdata0[241]; | 
|---|
| 27 | }; | 
|---|
| 28 | #define QT_MOC_LITERAL(ofs, len) \ | 
|---|
| 29 | uint(offsetof(qt_meta_stringdata_QSystemTrayIcon_t, stringdata0) + ofs), len | 
|---|
| 30 | static const qt_meta_stringdata_QSystemTrayIcon_t qt_meta_stringdata_QSystemTrayIcon = { | 
|---|
| 31 | { | 
|---|
| 32 | QT_MOC_LITERAL(0, 15), // "QSystemTrayIcon" | 
|---|
| 33 | QT_MOC_LITERAL(16, 9), // "activated" | 
|---|
| 34 | QT_MOC_LITERAL(26, 0), // "" | 
|---|
| 35 | QT_MOC_LITERAL(27, 33), // "QSystemTrayIcon::ActivationRe..." | 
|---|
| 36 | QT_MOC_LITERAL(61, 6), // "reason" | 
|---|
| 37 | QT_MOC_LITERAL(68, 14), // "messageClicked" | 
|---|
| 38 | QT_MOC_LITERAL(83, 10), // "setVisible" | 
|---|
| 39 | QT_MOC_LITERAL(94, 7), // "visible" | 
|---|
| 40 | QT_MOC_LITERAL(102, 4), // "show" | 
|---|
| 41 | QT_MOC_LITERAL(107, 4), // "hide" | 
|---|
| 42 | QT_MOC_LITERAL(112, 11), // "showMessage" | 
|---|
| 43 | QT_MOC_LITERAL(124, 5), // "title" | 
|---|
| 44 | QT_MOC_LITERAL(130, 3), // "msg" | 
|---|
| 45 | QT_MOC_LITERAL(134, 4), // "icon" | 
|---|
| 46 | QT_MOC_LITERAL(139, 5), // "msecs" | 
|---|
| 47 | QT_MOC_LITERAL(145, 28), // "QSystemTrayIcon::MessageIcon" | 
|---|
| 48 | QT_MOC_LITERAL(174, 16), // "_q_emitActivated" | 
|---|
| 49 | QT_MOC_LITERAL(191, 41), // "QPlatformSystemTrayIcon::Acti..." | 
|---|
| 50 | QT_MOC_LITERAL(233, 7) // "toolTip" | 
|---|
| 51 |  | 
|---|
| 52 | }, | 
|---|
| 53 | "QSystemTrayIcon\0activated\0\0" | 
|---|
| 54 | "QSystemTrayIcon::ActivationReason\0" | 
|---|
| 55 | "reason\0messageClicked\0setVisible\0" | 
|---|
| 56 | "visible\0show\0hide\0showMessage\0title\0" | 
|---|
| 57 | "msg\0icon\0msecs\0QSystemTrayIcon::MessageIcon\0" | 
|---|
| 58 | "_q_emitActivated\0" | 
|---|
| 59 | "QPlatformSystemTrayIcon::ActivationReason\0" | 
|---|
| 60 | "toolTip" | 
|---|
| 61 | }; | 
|---|
| 62 | #undef QT_MOC_LITERAL | 
|---|
| 63 |  | 
|---|
| 64 | static const uint qt_meta_data_QSystemTrayIcon[] = { | 
|---|
| 65 |  | 
|---|
| 66 | // content: | 
|---|
| 67 | 9,       // revision | 
|---|
| 68 | 0,       // classname | 
|---|
| 69 | 0,    0, // classinfo | 
|---|
| 70 | 11,   14, // methods | 
|---|
| 71 | 3,  129, // properties | 
|---|
| 72 | 0,    0, // enums/sets | 
|---|
| 73 | 0,    0, // constructors | 
|---|
| 74 | 0,       // flags | 
|---|
| 75 | 2,       // signalCount | 
|---|
| 76 |  | 
|---|
| 77 | // signals: name, argc, parameters, tag, flags, initial metatype offsets | 
|---|
| 78 | 1,    1,   80,    2, 0x06,    3 /* Public */, | 
|---|
| 79 | 5,    0,   83,    2, 0x06,    5 /* Public */, | 
|---|
| 80 |  | 
|---|
| 81 | // slots: name, argc, parameters, tag, flags, initial metatype offsets | 
|---|
| 82 | 6,    1,   84,    2, 0x0a,    6 /* Public */, | 
|---|
| 83 | 8,    0,   87,    2, 0x0a,    8 /* Public */, | 
|---|
| 84 | 9,    0,   88,    2, 0x0a,    9 /* Public */, | 
|---|
| 85 | 10,    4,   89,    2, 0x0a,   10 /* Public */, | 
|---|
| 86 | 10,    3,   98,    2, 0x2a,   15 /* Public | MethodCloned */, | 
|---|
| 87 | 10,    4,  105,    2, 0x0a,   19 /* Public */, | 
|---|
| 88 | 10,    3,  114,    2, 0x2a,   24 /* Public | MethodCloned */, | 
|---|
| 89 | 10,    2,  121,    2, 0x2a,   28 /* Public | MethodCloned */, | 
|---|
| 90 | 16,    1,  126,    2, 0x08,   31 /* Private */, | 
|---|
| 91 |  | 
|---|
| 92 | // signals: parameters | 
|---|
| 93 | QMetaType::Void, 0x80000000 | 3,    4, | 
|---|
| 94 | QMetaType::Void, | 
|---|
| 95 |  | 
|---|
| 96 | // slots: parameters | 
|---|
| 97 | QMetaType::Void, QMetaType::Bool,    7, | 
|---|
| 98 | QMetaType::Void, | 
|---|
| 99 | QMetaType::Void, | 
|---|
| 100 | QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QIcon, QMetaType::Int,   11,   12,   13,   14, | 
|---|
| 101 | QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QIcon,   11,   12,   13, | 
|---|
| 102 | QMetaType::Void, QMetaType::QString, QMetaType::QString, 0x80000000 | 15, QMetaType::Int,   11,   12,   13,   14, | 
|---|
| 103 | QMetaType::Void, QMetaType::QString, QMetaType::QString, 0x80000000 | 15,   11,   12,   13, | 
|---|
| 104 | QMetaType::Void, QMetaType::QString, QMetaType::QString,   11,   12, | 
|---|
| 105 | QMetaType::Void, 0x80000000 | 17,    2, | 
|---|
| 106 |  | 
|---|
| 107 | // properties: name, type, flags | 
|---|
| 108 | 18, QMetaType::QString, 0x00015103, uint(-1), 0, | 
|---|
| 109 | 13, QMetaType::QIcon, 0x00015103, uint(-1), 0, | 
|---|
| 110 | 7, QMetaType::Bool, 0x00014103, uint(-1), 0, | 
|---|
| 111 |  | 
|---|
| 112 | 0        // eod | 
|---|
| 113 | }; | 
|---|
| 114 |  | 
|---|
| 115 | void QSystemTrayIcon::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) | 
|---|
| 116 | { | 
|---|
| 117 | if (_c == QMetaObject::InvokeMetaMethod) { | 
|---|
| 118 | Q_ASSERT(staticMetaObject.cast(_o)); | 
|---|
| 119 | auto *_t = static_cast<QSystemTrayIcon *>(_o); | 
|---|
| 120 | Q_UNUSED(_t) | 
|---|
| 121 | switch (_id) { | 
|---|
| 122 | case 0: _t->activated((*reinterpret_cast< QSystemTrayIcon::ActivationReason(*)>(_a[1]))); break; | 
|---|
| 123 | case 1: _t->messageClicked(); break; | 
|---|
| 124 | case 2: _t->setVisible((*reinterpret_cast< bool(*)>(_a[1]))); break; | 
|---|
| 125 | case 3: _t->show(); break; | 
|---|
| 126 | case 4: _t->hide(); break; | 
|---|
| 127 | case 5: _t->showMessage((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QIcon(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4]))); break; | 
|---|
| 128 | case 6: _t->showMessage((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QIcon(*)>(_a[3]))); break; | 
|---|
| 129 | case 7: _t->showMessage((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< QSystemTrayIcon::MessageIcon(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4]))); break; | 
|---|
| 130 | case 8: _t->showMessage((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< QSystemTrayIcon::MessageIcon(*)>(_a[3]))); break; | 
|---|
| 131 | case 9: _t->showMessage((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break; | 
|---|
| 132 | case 10: _t->d_func()->_q_emitActivated((*reinterpret_cast< QPlatformSystemTrayIcon::ActivationReason(*)>(_a[1]))); break; | 
|---|
| 133 | default: ; | 
|---|
| 134 | } | 
|---|
| 135 | } else if (_c == QMetaObject::IndexOfMethod) { | 
|---|
| 136 | int *result = reinterpret_cast<int *>(_a[0]); | 
|---|
| 137 | { | 
|---|
| 138 | using _t = void (QSystemTrayIcon::*)(QSystemTrayIcon::ActivationReason ); | 
|---|
| 139 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QSystemTrayIcon::activated)) { | 
|---|
| 140 | *result = 0; | 
|---|
| 141 | return; | 
|---|
| 142 | } | 
|---|
| 143 | } | 
|---|
| 144 | { | 
|---|
| 145 | using _t = void (QSystemTrayIcon::*)(); | 
|---|
| 146 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QSystemTrayIcon::messageClicked)) { | 
|---|
| 147 | *result = 1; | 
|---|
| 148 | return; | 
|---|
| 149 | } | 
|---|
| 150 | } | 
|---|
| 151 | } | 
|---|
| 152 | #ifndef QT_NO_PROPERTIES | 
|---|
| 153 | else if (_c == QMetaObject::ReadProperty) { | 
|---|
| 154 | Q_ASSERT(staticMetaObject.cast(_o)); | 
|---|
| 155 | auto *_t = static_cast<QSystemTrayIcon *>(_o); | 
|---|
| 156 | Q_UNUSED(_t) | 
|---|
| 157 | void *_v = _a[0]; | 
|---|
| 158 | switch (_id) { | 
|---|
| 159 | case 0: *reinterpret_cast< QString*>(_v) = _t->toolTip(); break; | 
|---|
| 160 | case 1: *reinterpret_cast< QIcon*>(_v) = _t->icon(); break; | 
|---|
| 161 | case 2: *reinterpret_cast< bool*>(_v) = _t->isVisible(); break; | 
|---|
| 162 | default: break; | 
|---|
| 163 | } | 
|---|
| 164 | } else if (_c == QMetaObject::WriteProperty) { | 
|---|
| 165 | Q_ASSERT(staticMetaObject.cast(_o)); | 
|---|
| 166 | auto *_t = static_cast<QSystemTrayIcon *>(_o); | 
|---|
| 167 | Q_UNUSED(_t) | 
|---|
| 168 | void *_v = _a[0]; | 
|---|
| 169 | switch (_id) { | 
|---|
| 170 | case 0: _t->setToolTip(*reinterpret_cast< QString*>(_v)); break; | 
|---|
| 171 | case 1: _t->setIcon(*reinterpret_cast< QIcon*>(_v)); break; | 
|---|
| 172 | case 2: _t->setVisible(*reinterpret_cast< bool*>(_v)); break; | 
|---|
| 173 | default: break; | 
|---|
| 174 | } | 
|---|
| 175 | } else if (_c == QMetaObject::ResetProperty) { | 
|---|
| 176 | } else if (_c == QMetaObject::BindableProperty) { | 
|---|
| 177 | } | 
|---|
| 178 | #endif // QT_NO_PROPERTIES | 
|---|
| 179 | } | 
|---|
| 180 |  | 
|---|
| 181 | const QMetaObject QSystemTrayIcon::staticMetaObject = { { | 
|---|
| 182 | QMetaObject::SuperData::link<QObject::staticMetaObject>(), | 
|---|
| 183 | qt_meta_stringdata_QSystemTrayIcon.offsetsAndSize, | 
|---|
| 184 | qt_meta_data_QSystemTrayIcon, | 
|---|
| 185 | qt_static_metacall, | 
|---|
| 186 | nullptr, | 
|---|
| 187 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QSystemTrayIcon_t | 
|---|
| 188 | , QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QIcon, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QSystemTrayIcon::ActivationReason, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type> | 
|---|
| 189 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<const QIcon &, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<const QIcon &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<QSystemTrayIcon::MessageIcon, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<QSystemTrayIcon::MessageIcon, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QPlatformSystemTrayIcon::ActivationReason, std::false_type> | 
|---|
| 190 |  | 
|---|
| 191 |  | 
|---|
| 192 | >, | 
|---|
| 193 | nullptr | 
|---|
| 194 | } }; | 
|---|
| 195 |  | 
|---|
| 196 |  | 
|---|
| 197 | const QMetaObject *QSystemTrayIcon::metaObject() const | 
|---|
| 198 | { | 
|---|
| 199 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; | 
|---|
| 200 | } | 
|---|
| 201 |  | 
|---|
| 202 | void *QSystemTrayIcon::qt_metacast(const char *_clname) | 
|---|
| 203 | { | 
|---|
| 204 | if (!_clname) return nullptr; | 
|---|
| 205 | if (!strcmp(_clname, qt_meta_stringdata_QSystemTrayIcon.stringdata0)) | 
|---|
| 206 | return static_cast<void*>(this); | 
|---|
| 207 | return QObject::qt_metacast(_clname); | 
|---|
| 208 | } | 
|---|
| 209 |  | 
|---|
| 210 | int QSystemTrayIcon::qt_metacall(QMetaObject::Call _c, int _id, void **_a) | 
|---|
| 211 | { | 
|---|
| 212 | _id = QObject::qt_metacall(_c, _id, _a); | 
|---|
| 213 | if (_id < 0) | 
|---|
| 214 | return _id; | 
|---|
| 215 | if (_c == QMetaObject::InvokeMetaMethod) { | 
|---|
| 216 | if (_id < 11) | 
|---|
| 217 | qt_static_metacall(this, _c, _id, _a); | 
|---|
| 218 | _id -= 11; | 
|---|
| 219 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { | 
|---|
| 220 | if (_id < 11) | 
|---|
| 221 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); | 
|---|
| 222 | _id -= 11; | 
|---|
| 223 | } | 
|---|
| 224 | #ifndef QT_NO_PROPERTIES | 
|---|
| 225 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty | 
|---|
| 226 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty | 
|---|
| 227 | || _c == QMetaObject::RegisterPropertyMetaType) { | 
|---|
| 228 | qt_static_metacall(this, _c, _id, _a); | 
|---|
| 229 | _id -= 3; | 
|---|
| 230 | } | 
|---|
| 231 | #endif // QT_NO_PROPERTIES | 
|---|
| 232 | return _id; | 
|---|
| 233 | } | 
|---|
| 234 |  | 
|---|
| 235 | // SIGNAL 0 | 
|---|
| 236 | void QSystemTrayIcon::activated(QSystemTrayIcon::ActivationReason _t1) | 
|---|
| 237 | { | 
|---|
| 238 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; | 
|---|
| 239 | QMetaObject::activate(this, &staticMetaObject, 0, _a); | 
|---|
| 240 | } | 
|---|
| 241 |  | 
|---|
| 242 | // SIGNAL 1 | 
|---|
| 243 | void QSystemTrayIcon::messageClicked() | 
|---|
| 244 | { | 
|---|
| 245 | QMetaObject::activate(this, &staticMetaObject, 1, nullptr); | 
|---|
| 246 | } | 
|---|
| 247 | QT_WARNING_POP | 
|---|
| 248 | QT_END_MOC_NAMESPACE | 
|---|
| 249 |  | 
|---|