Warning, /sdk/clazy/tests/old-style-connect/namespaces.moc is written in an unsupported language. File is not indexed.
0001 /**************************************************************************** 0002 ** Meta object code from reading C++ file 'namespaces.cpp' 0003 ** 0004 ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.5.0) 0005 ** 0006 ** WARNING! All changes made in this file will be lost! 0007 *****************************************************************************/ 0008 0009 #include <QtCore/qbytearray.h> 0010 #include <QtCore/qmetatype.h> 0011 #if !defined(Q_MOC_OUTPUT_REVISION) 0012 #error "The header file 'namespaces.cpp' doesn't include <QObject>." 0013 #elif Q_MOC_OUTPUT_REVISION != 67 0014 #error "This file was generated using the moc from 5.5.0. It" 0015 #error "cannot be used with the include files from this version of Qt." 0016 #error "(The moc has changed too much.)" 0017 #endif 0018 0019 QT_BEGIN_MOC_NAMESPACE 0020 struct qt_meta_stringdata_Foo__MyObj2_t { 0021 QByteArrayData data[3]; 0022 char stringdata0[28]; 0023 }; 0024 #define QT_MOC_LITERAL(idx, ofs, len) \ 0025 Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 0026 qptrdiff(offsetof(qt_meta_stringdata_Foo__MyObj2_t, stringdata0) + ofs \ 0027 - idx * sizeof(QByteArrayData)) \ 0028 ) 0029 static const qt_meta_stringdata_Foo__MyObj2_t qt_meta_stringdata_Foo__MyObj2 = { 0030 { 0031 QT_MOC_LITERAL(0, 0, 11), // "Foo::MyObj2" 0032 QT_MOC_LITERAL(1, 12, 14), // "separateNSSlot" 0033 QT_MOC_LITERAL(2, 27, 0) // "" 0034 0035 }, 0036 "Foo::MyObj2\0separateNSSlot\0" 0037 }; 0038 #undef QT_MOC_LITERAL 0039 0040 static const uint qt_meta_data_Foo__MyObj2[] = { 0041 0042 // content: 0043 7, // revision 0044 0, // classname 0045 0, 0, // classinfo 0046 1, 14, // methods 0047 0, 0, // properties 0048 0, 0, // enums/sets 0049 0, 0, // constructors 0050 0, // flags 0051 0, // signalCount 0052 0053 // slots: name, argc, parameters, tag, flags 0054 1, 0, 19, 2, 0x0a /* Public */, 0055 0056 // slots: parameters 0057 QMetaType::Void, 0058 0059 0 // eod 0060 }; 0061 0062 void Foo::MyObj2::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 0063 { 0064 if (_c == QMetaObject::InvokeMetaMethod) { 0065 MyObj2 *_t = static_cast<MyObj2 *>(_o); 0066 Q_UNUSED(_t) 0067 switch (_id) { 0068 case 0: _t->separateNSSlot(); break; 0069 default: ; 0070 } 0071 } 0072 Q_UNUSED(_a); 0073 } 0074 0075 const QMetaObject Foo::MyObj2::staticMetaObject = { 0076 { &QObject::staticMetaObject, qt_meta_stringdata_Foo__MyObj2.data, 0077 qt_meta_data_Foo__MyObj2, qt_static_metacall, Q_NULLPTR, Q_NULLPTR} 0078 }; 0079 0080 0081 const QMetaObject *Foo::MyObj2::metaObject() const 0082 { 0083 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 0084 } 0085 0086 void *Foo::MyObj2::qt_metacast(const char *_clname) 0087 { 0088 if (!_clname) return Q_NULLPTR; 0089 if (!strcmp(_clname, qt_meta_stringdata_Foo__MyObj2.stringdata0)) 0090 return static_cast<void*>(const_cast< MyObj2*>(this)); 0091 return QObject::qt_metacast(_clname); 0092 } 0093 0094 int Foo::MyObj2::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 0095 { 0096 _id = QObject::qt_metacall(_c, _id, _a); 0097 if (_id < 0) 0098 return _id; 0099 if (_c == QMetaObject::InvokeMetaMethod) { 0100 if (_id < 1) 0101 qt_static_metacall(this, _c, _id, _a); 0102 _id -= 1; 0103 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { 0104 if (_id < 1) 0105 *reinterpret_cast<int*>(_a[0]) = -1; 0106 _id -= 1; 0107 } 0108 return _id; 0109 } 0110 struct qt_meta_stringdata_Foo__MyObj_t { 0111 QByteArrayData data[5]; 0112 char stringdata0[32]; 0113 }; 0114 #define QT_MOC_LITERAL(idx, ofs, len) \ 0115 Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 0116 qptrdiff(offsetof(qt_meta_stringdata_Foo__MyObj_t, stringdata0) + ofs \ 0117 - idx * sizeof(QByteArrayData)) \ 0118 ) 0119 static const qt_meta_stringdata_Foo__MyObj_t qt_meta_stringdata_Foo__MyObj = { 0120 { 0121 QT_MOC_LITERAL(0, 0, 10), // "Foo::MyObj" 0122 QT_MOC_LITERAL(1, 11, 7), // "signal1" 0123 QT_MOC_LITERAL(2, 19, 0), // "" 0124 QT_MOC_LITERAL(3, 20, 5), // "slot1" 0125 QT_MOC_LITERAL(4, 26, 5) // "slot2" 0126 0127 }, 0128 "Foo::MyObj\0signal1\0\0slot1\0slot2" 0129 }; 0130 #undef QT_MOC_LITERAL 0131 0132 static const uint qt_meta_data_Foo__MyObj[] = { 0133 0134 // content: 0135 7, // revision 0136 0, // classname 0137 0, 0, // classinfo 0138 3, 14, // methods 0139 0, 0, // properties 0140 0, 0, // enums/sets 0141 0, 0, // constructors 0142 0, // flags 0143 1, // signalCount 0144 0145 // signals: name, argc, parameters, tag, flags 0146 1, 0, 29, 2, 0x06 /* Public */, 0147 0148 // slots: name, argc, parameters, tag, flags 0149 3, 0, 30, 2, 0x0a /* Public */, 0150 4, 0, 31, 2, 0x0a /* Public */, 0151 0152 // signals: parameters 0153 QMetaType::Void, 0154 0155 // slots: parameters 0156 QMetaType::Void, 0157 QMetaType::Void, 0158 0159 0 // eod 0160 }; 0161 0162 void Foo::MyObj::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 0163 { 0164 if (_c == QMetaObject::InvokeMetaMethod) { 0165 MyObj *_t = static_cast<MyObj *>(_o); 0166 Q_UNUSED(_t) 0167 switch (_id) { 0168 case 0: _t->signal1(); break; 0169 case 1: _t->slot1(); break; 0170 case 2: _t->slot2(); break; 0171 default: ; 0172 } 0173 } else if (_c == QMetaObject::IndexOfMethod) { 0174 int *result = reinterpret_cast<int *>(_a[0]); 0175 void **func = reinterpret_cast<void **>(_a[1]); 0176 { 0177 typedef void (MyObj::*_t)(); 0178 if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MyObj::signal1)) { 0179 *result = 0; 0180 } 0181 } 0182 } 0183 Q_UNUSED(_a); 0184 } 0185 0186 const QMetaObject Foo::MyObj::staticMetaObject = { 0187 { &QObject::staticMetaObject, qt_meta_stringdata_Foo__MyObj.data, 0188 qt_meta_data_Foo__MyObj, qt_static_metacall, Q_NULLPTR, Q_NULLPTR} 0189 }; 0190 0191 0192 const QMetaObject *Foo::MyObj::metaObject() const 0193 { 0194 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 0195 } 0196 0197 void *Foo::MyObj::qt_metacast(const char *_clname) 0198 { 0199 if (!_clname) return Q_NULLPTR; 0200 if (!strcmp(_clname, qt_meta_stringdata_Foo__MyObj.stringdata0)) 0201 return static_cast<void*>(const_cast< MyObj*>(this)); 0202 return QObject::qt_metacast(_clname); 0203 } 0204 0205 int Foo::MyObj::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 0206 { 0207 _id = QObject::qt_metacall(_c, _id, _a); 0208 if (_id < 0) 0209 return _id; 0210 if (_c == QMetaObject::InvokeMetaMethod) { 0211 if (_id < 3) 0212 qt_static_metacall(this, _c, _id, _a); 0213 _id -= 3; 0214 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { 0215 if (_id < 3) 0216 *reinterpret_cast<int*>(_a[0]) = -1; 0217 _id -= 3; 0218 } 0219 return _id; 0220 } 0221 0222 // SIGNAL 0 0223 void Foo::MyObj::signal1() 0224 { 0225 QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR); 0226 } 0227 QT_END_MOC_NAMESPACE