1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'qlibrary.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 "plugin/qlibrary.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'qlibrary.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_QLibrary_t { |
25 | const uint offsetsAndSize[20]; |
26 | char stringdata0[148]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_QLibrary_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_QLibrary_t qt_meta_stringdata_QLibrary = { |
31 | { |
32 | QT_MOC_LITERAL(0, 8), // "QLibrary" |
33 | QT_MOC_LITERAL(9, 8), // "fileName" |
34 | QT_MOC_LITERAL(18, 9), // "loadHints" |
35 | QT_MOC_LITERAL(28, 9), // "LoadHints" |
36 | QT_MOC_LITERAL(38, 8), // "LoadHint" |
37 | QT_MOC_LITERAL(47, 21), // "ResolveAllSymbolsHint" |
38 | QT_MOC_LITERAL(69, 25), // "ExportExternalSymbolsHint" |
39 | QT_MOC_LITERAL(95, 21), // "LoadArchiveMemberHint" |
40 | QT_MOC_LITERAL(117, 17), // "PreventUnloadHint" |
41 | QT_MOC_LITERAL(135, 12) // "DeepBindHint" |
42 | |
43 | }, |
44 | "QLibrary\0fileName\0loadHints\0LoadHints\0" |
45 | "LoadHint\0ResolveAllSymbolsHint\0" |
46 | "ExportExternalSymbolsHint\0" |
47 | "LoadArchiveMemberHint\0PreventUnloadHint\0" |
48 | "DeepBindHint" |
49 | }; |
50 | #undef QT_MOC_LITERAL |
51 | |
52 | static const uint qt_meta_data_QLibrary[] = { |
53 | |
54 | // content: |
55 | 9, // revision |
56 | 0, // classname |
57 | 0, 0, // classinfo |
58 | 0, 0, // methods |
59 | 2, 14, // properties |
60 | 2, 24, // enums/sets |
61 | 0, 0, // constructors |
62 | 0, // flags |
63 | 0, // signalCount |
64 | |
65 | // properties: name, type, flags |
66 | 1, QMetaType::QString, 0x00015103, uint(-1), 0, |
67 | 2, 0x80000000 | 3, 0x0001510b, uint(-1), 0, |
68 | |
69 | // enums: name, alias, flags, count, data |
70 | 4, 4, 0x1, 5, 34, |
71 | 3, 4, 0x1, 5, 44, |
72 | |
73 | // enum data: key, value |
74 | 5, uint(QLibrary::ResolveAllSymbolsHint), |
75 | 6, uint(QLibrary::ExportExternalSymbolsHint), |
76 | 7, uint(QLibrary::LoadArchiveMemberHint), |
77 | 8, uint(QLibrary::PreventUnloadHint), |
78 | 9, uint(QLibrary::DeepBindHint), |
79 | 5, uint(QLibrary::ResolveAllSymbolsHint), |
80 | 6, uint(QLibrary::ExportExternalSymbolsHint), |
81 | 7, uint(QLibrary::LoadArchiveMemberHint), |
82 | 8, uint(QLibrary::PreventUnloadHint), |
83 | 9, uint(QLibrary::DeepBindHint), |
84 | |
85 | 0 // eod |
86 | }; |
87 | |
88 | void QLibrary::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
89 | { |
90 | |
91 | #ifndef QT_NO_PROPERTIES |
92 | if (_c == QMetaObject::ReadProperty) { |
93 | Q_ASSERT(staticMetaObject.cast(_o)); |
94 | auto *_t = static_cast<QLibrary *>(_o); |
95 | Q_UNUSED(_t) |
96 | void *_v = _a[0]; |
97 | switch (_id) { |
98 | case 0: *reinterpret_cast< QString*>(_v) = _t->fileName(); break; |
99 | case 1: *reinterpret_cast<int*>(_v) = QFlag(_t->loadHints()); break; |
100 | default: break; |
101 | } |
102 | } else if (_c == QMetaObject::WriteProperty) { |
103 | Q_ASSERT(staticMetaObject.cast(_o)); |
104 | auto *_t = static_cast<QLibrary *>(_o); |
105 | Q_UNUSED(_t) |
106 | void *_v = _a[0]; |
107 | switch (_id) { |
108 | case 0: _t->setFileName(*reinterpret_cast< QString*>(_v)); break; |
109 | case 1: _t->setLoadHints(QFlag(*reinterpret_cast<int*>(_v))); break; |
110 | default: break; |
111 | } |
112 | } else if (_c == QMetaObject::ResetProperty) { |
113 | } else if (_c == QMetaObject::BindableProperty) { |
114 | } |
115 | #endif // QT_NO_PROPERTIES |
116 | Q_UNUSED(_o); |
117 | Q_UNUSED(_id); |
118 | Q_UNUSED(_c); |
119 | Q_UNUSED(_a); |
120 | } |
121 | |
122 | const QMetaObject QLibrary::staticMetaObject = { { |
123 | QMetaObject::SuperData::link<QObject::staticMetaObject>(), |
124 | qt_meta_stringdata_QLibrary.offsetsAndSize, |
125 | qt_meta_data_QLibrary, |
126 | qt_static_metacall, |
127 | nullptr, |
128 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QLibrary_t |
129 | , QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<LoadHints, std::true_type> |
130 | |
131 | |
132 | |
133 | >, |
134 | nullptr |
135 | } }; |
136 | |
137 | |
138 | const QMetaObject *QLibrary::metaObject() const |
139 | { |
140 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
141 | } |
142 | |
143 | void *QLibrary::qt_metacast(const char *_clname) |
144 | { |
145 | if (!_clname) return nullptr; |
146 | if (!strcmp(_clname, qt_meta_stringdata_QLibrary.stringdata0)) |
147 | return static_cast<void*>(this); |
148 | return QObject::qt_metacast(_clname); |
149 | } |
150 | |
151 | int QLibrary::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
152 | { |
153 | _id = QObject::qt_metacall(_c, _id, _a); |
154 | if (_id < 0) |
155 | return _id; |
156 | |
157 | #ifndef QT_NO_PROPERTIES |
158 | if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
159 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
160 | || _c == QMetaObject::RegisterPropertyMetaType) { |
161 | qt_static_metacall(this, _c, _id, _a); |
162 | _id -= 2; |
163 | } |
164 | #endif // QT_NO_PROPERTIES |
165 | return _id; |
166 | } |
167 | QT_WARNING_POP |
168 | QT_END_MOC_NAMESPACE |
169 | |