| 1 | /**************************************************************************** | 
|---|
| 2 | ** Meta object code from reading C++ file 'qdbustrayicon_p.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 "platform/unix/dbustray/qdbustrayicon_p.h" | 
|---|
| 11 | #include <QtDBus/QDBusError> | 
|---|
| 12 | #include <private/qdbusplatformmenu_p.h> | 
|---|
| 13 | #include <QtCore/qbytearray.h> | 
|---|
| 14 | #include <QtCore/qmetatype.h> | 
|---|
| 15 | #if !defined(Q_MOC_OUTPUT_REVISION) | 
|---|
| 16 | #error "The header file 'qdbustrayicon_p.h' doesn't include <QObject>." | 
|---|
| 17 | #elif Q_MOC_OUTPUT_REVISION != 68 | 
|---|
| 18 | #error "This file was generated using the moc from 6.0.0. It" | 
|---|
| 19 | #error "cannot be used with the include files from this version of Qt." | 
|---|
| 20 | #error "(The moc has changed too much.)" | 
|---|
| 21 | #endif | 
|---|
| 22 |  | 
|---|
| 23 | QT_BEGIN_MOC_NAMESPACE | 
|---|
| 24 | QT_WARNING_PUSH | 
|---|
| 25 | QT_WARNING_DISABLE_DEPRECATED | 
|---|
| 26 | struct qt_meta_stringdata_QDBusTrayIcon_t { | 
|---|
| 27 | const uint offsetsAndSize[58]; | 
|---|
| 28 | char stringdata0[355]; | 
|---|
| 29 | }; | 
|---|
| 30 | #define QT_MOC_LITERAL(ofs, len) \ | 
|---|
| 31 | uint(offsetof(qt_meta_stringdata_QDBusTrayIcon_t, stringdata0) + ofs), len | 
|---|
| 32 | static const qt_meta_stringdata_QDBusTrayIcon_t qt_meta_stringdata_QDBusTrayIcon = { | 
|---|
| 33 | { | 
|---|
| 34 | QT_MOC_LITERAL(0, 13), // "QDBusTrayIcon" | 
|---|
| 35 | QT_MOC_LITERAL(14, 15), // "categoryChanged" | 
|---|
| 36 | QT_MOC_LITERAL(30, 0), // "" | 
|---|
| 37 | QT_MOC_LITERAL(31, 13), // "statusChanged" | 
|---|
| 38 | QT_MOC_LITERAL(45, 3), // "arg" | 
|---|
| 39 | QT_MOC_LITERAL(49, 14), // "tooltipChanged" | 
|---|
| 40 | QT_MOC_LITERAL(64, 11), // "iconChanged" | 
|---|
| 41 | QT_MOC_LITERAL(76, 9), // "attention" | 
|---|
| 42 | QT_MOC_LITERAL(86, 11), // "menuChanged" | 
|---|
| 43 | QT_MOC_LITERAL(98, 21), // "attentionTimerExpired" | 
|---|
| 44 | QT_MOC_LITERAL(120, 13), // "actionInvoked" | 
|---|
| 45 | QT_MOC_LITERAL(134, 2), // "id" | 
|---|
| 46 | QT_MOC_LITERAL(137, 6), // "action" | 
|---|
| 47 | QT_MOC_LITERAL(144, 18), // "notificationClosed" | 
|---|
| 48 | QT_MOC_LITERAL(163, 6), // "reason" | 
|---|
| 49 | QT_MOC_LITERAL(170, 24), // "watcherServiceRegistered" | 
|---|
| 50 | QT_MOC_LITERAL(195, 11), // "serviceName" | 
|---|
| 51 | QT_MOC_LITERAL(207, 8), // "category" | 
|---|
| 52 | QT_MOC_LITERAL(216, 6), // "status" | 
|---|
| 53 | QT_MOC_LITERAL(223, 7), // "tooltip" | 
|---|
| 54 | QT_MOC_LITERAL(231, 8), // "iconName" | 
|---|
| 55 | QT_MOC_LITERAL(240, 4), // "icon" | 
|---|
| 56 | QT_MOC_LITERAL(245, 21), // "isRequestingAttention" | 
|---|
| 57 | QT_MOC_LITERAL(267, 14), // "attentionTitle" | 
|---|
| 58 | QT_MOC_LITERAL(282, 16), // "attentionMessage" | 
|---|
| 59 | QT_MOC_LITERAL(299, 17), // "attentionIconName" | 
|---|
| 60 | QT_MOC_LITERAL(317, 13), // "attentionIcon" | 
|---|
| 61 | QT_MOC_LITERAL(331, 4), // "menu" | 
|---|
| 62 | QT_MOC_LITERAL(336, 18) // "QDBusPlatformMenu*" | 
|---|
| 63 |  | 
|---|
| 64 | }, | 
|---|
| 65 | "QDBusTrayIcon\0categoryChanged\0\0" | 
|---|
| 66 | "statusChanged\0arg\0tooltipChanged\0" | 
|---|
| 67 | "iconChanged\0attention\0menuChanged\0" | 
|---|
| 68 | "attentionTimerExpired\0actionInvoked\0" | 
|---|
| 69 | "id\0action\0notificationClosed\0reason\0" | 
|---|
| 70 | "watcherServiceRegistered\0serviceName\0" | 
|---|
| 71 | "category\0status\0tooltip\0iconName\0icon\0" | 
|---|
| 72 | "isRequestingAttention\0attentionTitle\0" | 
|---|
| 73 | "attentionMessage\0attentionIconName\0" | 
|---|
| 74 | "attentionIcon\0menu\0QDBusPlatformMenu*" | 
|---|
| 75 | }; | 
|---|
| 76 | #undef QT_MOC_LITERAL | 
|---|
| 77 |  | 
|---|
| 78 | static const uint qt_meta_data_QDBusTrayIcon[] = { | 
|---|
| 79 |  | 
|---|
| 80 | // content: | 
|---|
| 81 | 9,       // revision | 
|---|
| 82 | 0,       // classname | 
|---|
| 83 | 0,    0, // classinfo | 
|---|
| 84 | 10,   14, // methods | 
|---|
| 85 | 11,   96, // properties | 
|---|
| 86 | 0,    0, // enums/sets | 
|---|
| 87 | 0,    0, // constructors | 
|---|
| 88 | 0,       // flags | 
|---|
| 89 | 6,       // signalCount | 
|---|
| 90 |  | 
|---|
| 91 | // signals: name, argc, parameters, tag, flags, initial metatype offsets | 
|---|
| 92 | 1,    0,   74,    2, 0x06,   11 /* Public */, | 
|---|
| 93 | 3,    1,   75,    2, 0x06,   12 /* Public */, | 
|---|
| 94 | 5,    0,   78,    2, 0x06,   14 /* Public */, | 
|---|
| 95 | 6,    0,   79,    2, 0x06,   15 /* Public */, | 
|---|
| 96 | 7,    0,   80,    2, 0x06,   16 /* Public */, | 
|---|
| 97 | 8,    0,   81,    2, 0x06,   17 /* Public */, | 
|---|
| 98 |  | 
|---|
| 99 | // slots: name, argc, parameters, tag, flags, initial metatype offsets | 
|---|
| 100 | 9,    0,   82,    2, 0x08,   18 /* Private */, | 
|---|
| 101 | 10,    2,   83,    2, 0x08,   19 /* Private */, | 
|---|
| 102 | 13,    2,   88,    2, 0x08,   22 /* Private */, | 
|---|
| 103 | 15,    1,   93,    2, 0x08,   25 /* Private */, | 
|---|
| 104 |  | 
|---|
| 105 | // signals: parameters | 
|---|
| 106 | QMetaType::Void, | 
|---|
| 107 | QMetaType::Void, QMetaType::QString,    4, | 
|---|
| 108 | QMetaType::Void, | 
|---|
| 109 | QMetaType::Void, | 
|---|
| 110 | QMetaType::Void, | 
|---|
| 111 | QMetaType::Void, | 
|---|
| 112 |  | 
|---|
| 113 | // slots: parameters | 
|---|
| 114 | QMetaType::Void, | 
|---|
| 115 | QMetaType::Void, QMetaType::UInt, QMetaType::QString,   11,   12, | 
|---|
| 116 | QMetaType::Void, QMetaType::UInt, QMetaType::UInt,   11,   14, | 
|---|
| 117 | QMetaType::Void, QMetaType::QString,   16, | 
|---|
| 118 |  | 
|---|
| 119 | // properties: name, type, flags | 
|---|
| 120 | 17, QMetaType::QString, 0x00015001, uint(0), 0, | 
|---|
| 121 | 18, QMetaType::QString, 0x00015001, uint(1), 0, | 
|---|
| 122 | 19, QMetaType::QString, 0x00015001, uint(2), 0, | 
|---|
| 123 | 20, QMetaType::QString, 0x00015001, uint(3), 0, | 
|---|
| 124 | 21, QMetaType::QIcon, 0x00015001, uint(3), 0, | 
|---|
| 125 | 22, QMetaType::Bool, 0x00015001, uint(4), 0, | 
|---|
| 126 | 23, QMetaType::QString, 0x00015001, uint(4), 0, | 
|---|
| 127 | 24, QMetaType::QString, 0x00015001, uint(4), 0, | 
|---|
| 128 | 25, QMetaType::QString, 0x00015001, uint(4), 0, | 
|---|
| 129 | 26, QMetaType::QIcon, 0x00015001, uint(4), 0, | 
|---|
| 130 | 27, 0x80000000 | 28, 0x00015009, uint(5), 0, | 
|---|
| 131 |  | 
|---|
| 132 | 0        // eod | 
|---|
| 133 | }; | 
|---|
| 134 |  | 
|---|
| 135 | void QDBusTrayIcon::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) | 
|---|
| 136 | { | 
|---|
| 137 | if (_c == QMetaObject::InvokeMetaMethod) { | 
|---|
| 138 | Q_ASSERT(staticMetaObject.cast(_o)); | 
|---|
| 139 | auto *_t = static_cast<QDBusTrayIcon *>(_o); | 
|---|
| 140 | Q_UNUSED(_t) | 
|---|
| 141 | switch (_id) { | 
|---|
| 142 | case 0: _t->categoryChanged(); break; | 
|---|
| 143 | case 1: _t->statusChanged((*reinterpret_cast< QString(*)>(_a[1]))); break; | 
|---|
| 144 | case 2: _t->tooltipChanged(); break; | 
|---|
| 145 | case 3: _t->iconChanged(); break; | 
|---|
| 146 | case 4: _t->attention(); break; | 
|---|
| 147 | case 5: _t->menuChanged(); break; | 
|---|
| 148 | case 6: _t->attentionTimerExpired(); break; | 
|---|
| 149 | case 7: _t->actionInvoked((*reinterpret_cast< uint(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break; | 
|---|
| 150 | case 8: _t->notificationClosed((*reinterpret_cast< uint(*)>(_a[1])),(*reinterpret_cast< uint(*)>(_a[2]))); break; | 
|---|
| 151 | case 9: _t->watcherServiceRegistered((*reinterpret_cast< const QString(*)>(_a[1]))); break; | 
|---|
| 152 | default: ; | 
|---|
| 153 | } | 
|---|
| 154 | } else if (_c == QMetaObject::IndexOfMethod) { | 
|---|
| 155 | int *result = reinterpret_cast<int *>(_a[0]); | 
|---|
| 156 | { | 
|---|
| 157 | using _t = void (QDBusTrayIcon::*)(); | 
|---|
| 158 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDBusTrayIcon::categoryChanged)) { | 
|---|
| 159 | *result = 0; | 
|---|
| 160 | return; | 
|---|
| 161 | } | 
|---|
| 162 | } | 
|---|
| 163 | { | 
|---|
| 164 | using _t = void (QDBusTrayIcon::*)(QString ); | 
|---|
| 165 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDBusTrayIcon::statusChanged)) { | 
|---|
| 166 | *result = 1; | 
|---|
| 167 | return; | 
|---|
| 168 | } | 
|---|
| 169 | } | 
|---|
| 170 | { | 
|---|
| 171 | using _t = void (QDBusTrayIcon::*)(); | 
|---|
| 172 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDBusTrayIcon::tooltipChanged)) { | 
|---|
| 173 | *result = 2; | 
|---|
| 174 | return; | 
|---|
| 175 | } | 
|---|
| 176 | } | 
|---|
| 177 | { | 
|---|
| 178 | using _t = void (QDBusTrayIcon::*)(); | 
|---|
| 179 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDBusTrayIcon::iconChanged)) { | 
|---|
| 180 | *result = 3; | 
|---|
| 181 | return; | 
|---|
| 182 | } | 
|---|
| 183 | } | 
|---|
| 184 | { | 
|---|
| 185 | using _t = void (QDBusTrayIcon::*)(); | 
|---|
| 186 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDBusTrayIcon::attention)) { | 
|---|
| 187 | *result = 4; | 
|---|
| 188 | return; | 
|---|
| 189 | } | 
|---|
| 190 | } | 
|---|
| 191 | { | 
|---|
| 192 | using _t = void (QDBusTrayIcon::*)(); | 
|---|
| 193 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDBusTrayIcon::menuChanged)) { | 
|---|
| 194 | *result = 5; | 
|---|
| 195 | return; | 
|---|
| 196 | } | 
|---|
| 197 | } | 
|---|
| 198 | } | 
|---|
| 199 | #ifndef QT_NO_PROPERTIES | 
|---|
| 200 | else if (_c == QMetaObject::ReadProperty) { | 
|---|
| 201 | Q_ASSERT(staticMetaObject.cast(_o)); | 
|---|
| 202 | auto *_t = static_cast<QDBusTrayIcon *>(_o); | 
|---|
| 203 | Q_UNUSED(_t) | 
|---|
| 204 | void *_v = _a[0]; | 
|---|
| 205 | switch (_id) { | 
|---|
| 206 | case 0: *reinterpret_cast< QString*>(_v) = _t->category(); break; | 
|---|
| 207 | case 1: *reinterpret_cast< QString*>(_v) = _t->status(); break; | 
|---|
| 208 | case 2: *reinterpret_cast< QString*>(_v) = _t->tooltip(); break; | 
|---|
| 209 | case 3: *reinterpret_cast< QString*>(_v) = _t->iconName(); break; | 
|---|
| 210 | case 4: *reinterpret_cast< QIcon*>(_v) = _t->icon(); break; | 
|---|
| 211 | case 5: *reinterpret_cast< bool*>(_v) = _t->isRequestingAttention(); break; | 
|---|
| 212 | case 6: *reinterpret_cast< QString*>(_v) = _t->attentionTitle(); break; | 
|---|
| 213 | case 7: *reinterpret_cast< QString*>(_v) = _t->attentionMessage(); break; | 
|---|
| 214 | case 8: *reinterpret_cast< QString*>(_v) = _t->attentionIconName(); break; | 
|---|
| 215 | case 9: *reinterpret_cast< QIcon*>(_v) = _t->attentionIcon(); break; | 
|---|
| 216 | case 10: *reinterpret_cast< QDBusPlatformMenu**>(_v) = _t->menu(); break; | 
|---|
| 217 | default: break; | 
|---|
| 218 | } | 
|---|
| 219 | } else if (_c == QMetaObject::WriteProperty) { | 
|---|
| 220 | } else if (_c == QMetaObject::ResetProperty) { | 
|---|
| 221 | } else if (_c == QMetaObject::BindableProperty) { | 
|---|
| 222 | } | 
|---|
| 223 | #endif // QT_NO_PROPERTIES | 
|---|
| 224 | } | 
|---|
| 225 |  | 
|---|
| 226 | const QMetaObject QDBusTrayIcon::staticMetaObject = { { | 
|---|
| 227 | QMetaObject::SuperData::link<QPlatformSystemTrayIcon::staticMetaObject>(), | 
|---|
| 228 | qt_meta_stringdata_QDBusTrayIcon.offsetsAndSize, | 
|---|
| 229 | qt_meta_data_QDBusTrayIcon, | 
|---|
| 230 | qt_static_metacall, | 
|---|
| 231 | nullptr, | 
|---|
| 232 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QDBusTrayIcon_t | 
|---|
| 233 | , QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QIcon, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QIcon, std::true_type>, QtPrivate::TypeAndForceComplete<QDBusPlatformMenu*, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QString, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type> | 
|---|
| 234 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<uint, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<uint, std::false_type>, QtPrivate::TypeAndForceComplete<uint, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type> | 
|---|
| 235 |  | 
|---|
| 236 |  | 
|---|
| 237 | >, | 
|---|
| 238 | nullptr | 
|---|
| 239 | } }; | 
|---|
| 240 |  | 
|---|
| 241 |  | 
|---|
| 242 | const QMetaObject *QDBusTrayIcon::metaObject() const | 
|---|
| 243 | { | 
|---|
| 244 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; | 
|---|
| 245 | } | 
|---|
| 246 |  | 
|---|
| 247 | void *QDBusTrayIcon::qt_metacast(const char *_clname) | 
|---|
| 248 | { | 
|---|
| 249 | if (!_clname) return nullptr; | 
|---|
| 250 | if (!strcmp(_clname, qt_meta_stringdata_QDBusTrayIcon.stringdata0)) | 
|---|
| 251 | return static_cast<void*>(this); | 
|---|
| 252 | return QPlatformSystemTrayIcon::qt_metacast(_clname); | 
|---|
| 253 | } | 
|---|
| 254 |  | 
|---|
| 255 | int QDBusTrayIcon::qt_metacall(QMetaObject::Call _c, int _id, void **_a) | 
|---|
| 256 | { | 
|---|
| 257 | _id = QPlatformSystemTrayIcon::qt_metacall(_c, _id, _a); | 
|---|
| 258 | if (_id < 0) | 
|---|
| 259 | return _id; | 
|---|
| 260 | if (_c == QMetaObject::InvokeMetaMethod) { | 
|---|
| 261 | if (_id < 10) | 
|---|
| 262 | qt_static_metacall(this, _c, _id, _a); | 
|---|
| 263 | _id -= 10; | 
|---|
| 264 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { | 
|---|
| 265 | if (_id < 10) | 
|---|
| 266 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); | 
|---|
| 267 | _id -= 10; | 
|---|
| 268 | } | 
|---|
| 269 | #ifndef QT_NO_PROPERTIES | 
|---|
| 270 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty | 
|---|
| 271 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty | 
|---|
| 272 | || _c == QMetaObject::RegisterPropertyMetaType) { | 
|---|
| 273 | qt_static_metacall(this, _c, _id, _a); | 
|---|
| 274 | _id -= 11; | 
|---|
| 275 | } | 
|---|
| 276 | #endif // QT_NO_PROPERTIES | 
|---|
| 277 | return _id; | 
|---|
| 278 | } | 
|---|
| 279 |  | 
|---|
| 280 | // SIGNAL 0 | 
|---|
| 281 | void QDBusTrayIcon::categoryChanged() | 
|---|
| 282 | { | 
|---|
| 283 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); | 
|---|
| 284 | } | 
|---|
| 285 |  | 
|---|
| 286 | // SIGNAL 1 | 
|---|
| 287 | void QDBusTrayIcon::statusChanged(QString _t1) | 
|---|
| 288 | { | 
|---|
| 289 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; | 
|---|
| 290 | QMetaObject::activate(this, &staticMetaObject, 1, _a); | 
|---|
| 291 | } | 
|---|
| 292 |  | 
|---|
| 293 | // SIGNAL 2 | 
|---|
| 294 | void QDBusTrayIcon::tooltipChanged() | 
|---|
| 295 | { | 
|---|
| 296 | QMetaObject::activate(this, &staticMetaObject, 2, nullptr); | 
|---|
| 297 | } | 
|---|
| 298 |  | 
|---|
| 299 | // SIGNAL 3 | 
|---|
| 300 | void QDBusTrayIcon::iconChanged() | 
|---|
| 301 | { | 
|---|
| 302 | QMetaObject::activate(this, &staticMetaObject, 3, nullptr); | 
|---|
| 303 | } | 
|---|
| 304 |  | 
|---|
| 305 | // SIGNAL 4 | 
|---|
| 306 | void QDBusTrayIcon::attention() | 
|---|
| 307 | { | 
|---|
| 308 | QMetaObject::activate(this, &staticMetaObject, 4, nullptr); | 
|---|
| 309 | } | 
|---|
| 310 |  | 
|---|
| 311 | // SIGNAL 5 | 
|---|
| 312 | void QDBusTrayIcon::() | 
|---|
| 313 | { | 
|---|
| 314 | QMetaObject::activate(this, &staticMetaObject, 5, nullptr); | 
|---|
| 315 | } | 
|---|
| 316 | QT_WARNING_POP | 
|---|
| 317 | QT_END_MOC_NAMESPACE | 
|---|
| 318 |  | 
|---|