1 /****************************************************************************
2 ** Meta object code from reading C++ file 'testThread.h'
4 ** Created: Fri Feb 26 16:31:34 2010
5 ** by: The Qt Meta Object Compiler version 62 (Qt 4.6.1)
7 ** WARNING! All changes made in this file will be lost!
8 *****************************************************************************/
10 #include "testThread.h"
11 #if !defined(Q_MOC_OUTPUT_REVISION)
12 #error "The header file 'testThread.h' doesn't include <QObject>."
13 #elif Q_MOC_OUTPUT_REVISION != 62
14 #error "This file was generated using the moc from 4.6.1. It"
15 #error "cannot be used with the include files from this version of Qt."
16 #error "(The moc has changed too much.)"
19 QT_BEGIN_MOC_NAMESPACE
20 static const uint qt_meta_data_TestThread[] = {
33 // signals: signature, parameters, type, tag, flags
40 // slots: signature, parameters, type, tag, flags
42 112, 11, 11, 11, 0x0a,
47 static const char qt_meta_stringdata_TestThread[] = {
48 "TestThread\0\0a\0generate(int)\0exit()\0"
49 "score(int)\0disableInterface()\0"
50 "enableInterface()\0inputUser\0"
51 "updateCaption(int)\0genera()\0"
54 const QMetaObject TestThread::staticMetaObject = {
55 { &QThread::staticMetaObject, qt_meta_stringdata_TestThread,
56 qt_meta_data_TestThread, 0 }
59 #ifdef Q_NO_DATA_RELOCATION
60 const QMetaObject &TestThread::getStaticMetaObject() { return staticMetaObject; }
61 #endif //Q_NO_DATA_RELOCATION
63 const QMetaObject *TestThread::metaObject() const
65 return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
68 void *TestThread::qt_metacast(const char *_clname)
70 if (!_clname) return 0;
71 if (!strcmp(_clname, qt_meta_stringdata_TestThread))
72 return static_cast<void*>(const_cast< TestThread*>(this));
73 return QThread::qt_metacast(_clname);
76 int TestThread::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
78 _id = QThread::qt_metacall(_c, _id, _a);
81 if (_c == QMetaObject::InvokeMetaMethod) {
83 case 0: generate((*reinterpret_cast< int(*)>(_a[1]))); break;
84 case 1: exit(); break;
85 case 2: score((*reinterpret_cast< int(*)>(_a[1]))); break;
86 case 3: disableInterface(); break;
87 case 4: enableInterface(); break;
88 case 5: updateCaption((*reinterpret_cast< int(*)>(_a[1]))); break;
89 case 6: genera(); break;
98 void TestThread::generate(int _t1)
100 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
101 QMetaObject::activate(this, &staticMetaObject, 0, _a);
105 void TestThread::exit()
107 QMetaObject::activate(this, &staticMetaObject, 1, 0);
111 void TestThread::score(int _t1)
113 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
114 QMetaObject::activate(this, &staticMetaObject, 2, _a);
118 void TestThread::disableInterface()
120 QMetaObject::activate(this, &staticMetaObject, 3, 0);
124 void TestThread::enableInterface()
126 QMetaObject::activate(this, &staticMetaObject, 4, 0);