1 | /**************************************************************************** |
---|
2 | ** Meta object code from reading C++ file 'searchtask.h' |
---|
3 | ** |
---|
4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.3.2) |
---|
5 | ** |
---|
6 | ** WARNING! All changes made in this file will be lost! |
---|
7 | *****************************************************************************/ |
---|
8 | |
---|
9 | #include "../sources/searchtask.h" |
---|
10 | #include <QtCore/qbytearray.h> |
---|
11 | #include <QtCore/qmetatype.h> |
---|
12 | #include <QtCore/QList> |
---|
13 | #include <QtCore/QVector> |
---|
14 | #if !defined(Q_MOC_OUTPUT_REVISION) |
---|
15 | #error "The header file 'searchtask.h' doesn't include <QObject>." |
---|
16 | #elif Q_MOC_OUTPUT_REVISION != 67 |
---|
17 | #error "This file was generated using the moc from 5.3.2. It" |
---|
18 | #error "cannot be used with the include files from this version of Qt." |
---|
19 | #error "(The moc has changed too much.)" |
---|
20 | #endif |
---|
21 | |
---|
22 | QT_BEGIN_MOC_NAMESPACE |
---|
23 | struct qt_meta_stringdata_qpdfview__SearchTask_t { |
---|
24 | QByteArrayData data[16]; |
---|
25 | char stringdata[167]; |
---|
26 | }; |
---|
27 | #define QT_MOC_LITERAL(idx, ofs, len) \ |
---|
28 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ |
---|
29 | qptrdiff(offsetof(qt_meta_stringdata_qpdfview__SearchTask_t, stringdata) + ofs \ |
---|
30 | - idx * sizeof(QByteArrayData)) \ |
---|
31 | ) |
---|
32 | static const qt_meta_stringdata_qpdfview__SearchTask_t qt_meta_stringdata_qpdfview__SearchTask = { |
---|
33 | { |
---|
34 | QT_MOC_LITERAL(0, 0, 20), |
---|
35 | QT_MOC_LITERAL(1, 21, 15), |
---|
36 | QT_MOC_LITERAL(2, 37, 0), |
---|
37 | QT_MOC_LITERAL(3, 38, 8), |
---|
38 | QT_MOC_LITERAL(4, 47, 12), |
---|
39 | QT_MOC_LITERAL(5, 60, 5), |
---|
40 | QT_MOC_LITERAL(6, 66, 13), |
---|
41 | QT_MOC_LITERAL(7, 80, 7), |
---|
42 | QT_MOC_LITERAL(8, 88, 5), |
---|
43 | QT_MOC_LITERAL(9, 94, 21), |
---|
44 | QT_MOC_LITERAL(10, 116, 5), |
---|
45 | QT_MOC_LITERAL(11, 122, 4), |
---|
46 | QT_MOC_LITERAL(12, 127, 9), |
---|
47 | QT_MOC_LITERAL(13, 137, 10), |
---|
48 | QT_MOC_LITERAL(14, 148, 11), |
---|
49 | QT_MOC_LITERAL(15, 160, 6) |
---|
50 | }, |
---|
51 | "qpdfview::SearchTask\0progressChanged\0" |
---|
52 | "\0progress\0resultsReady\0index\0QList<QRectF>\0" |
---|
53 | "results\0start\0QVector<Model::Page*>\0" |
---|
54 | "pages\0text\0matchCase\0wholeWords\0" |
---|
55 | "beginAtPage\0cancel" |
---|
56 | }; |
---|
57 | #undef QT_MOC_LITERAL |
---|
58 | |
---|
59 | static const uint qt_meta_data_qpdfview__SearchTask[] = { |
---|
60 | |
---|
61 | // content: |
---|
62 | 7, // revision |
---|
63 | 0, // classname |
---|
64 | 0, 0, // classinfo |
---|
65 | 5, 14, // methods |
---|
66 | 0, 0, // properties |
---|
67 | 0, 0, // enums/sets |
---|
68 | 0, 0, // constructors |
---|
69 | 0, // flags |
---|
70 | 2, // signalCount |
---|
71 | |
---|
72 | // signals: name, argc, parameters, tag, flags |
---|
73 | 1, 1, 39, 2, 0x06 /* Public */, |
---|
74 | 4, 2, 42, 2, 0x06 /* Public */, |
---|
75 | |
---|
76 | // slots: name, argc, parameters, tag, flags |
---|
77 | 8, 5, 47, 2, 0x0a /* Public */, |
---|
78 | 8, 4, 58, 2, 0x2a /* Public | MethodCloned */, |
---|
79 | 15, 0, 67, 2, 0x0a /* Public */, |
---|
80 | |
---|
81 | // signals: parameters |
---|
82 | QMetaType::Void, QMetaType::Int, 3, |
---|
83 | QMetaType::Void, QMetaType::Int, 0x80000000 | 6, 5, 7, |
---|
84 | |
---|
85 | // slots: parameters |
---|
86 | QMetaType::Void, 0x80000000 | 9, QMetaType::QString, QMetaType::Bool, QMetaType::Bool, QMetaType::Int, 10, 11, 12, 13, 14, |
---|
87 | QMetaType::Void, 0x80000000 | 9, QMetaType::QString, QMetaType::Bool, QMetaType::Bool, 10, 11, 12, 13, |
---|
88 | QMetaType::Void, |
---|
89 | |
---|
90 | 0 // eod |
---|
91 | }; |
---|
92 | |
---|
93 | void qpdfview::SearchTask::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
---|
94 | { |
---|
95 | if (_c == QMetaObject::InvokeMetaMethod) { |
---|
96 | SearchTask *_t = static_cast<SearchTask *>(_o); |
---|
97 | switch (_id) { |
---|
98 | case 0: _t->progressChanged((*reinterpret_cast< int(*)>(_a[1]))); break; |
---|
99 | case 1: _t->resultsReady((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QList<QRectF>(*)>(_a[2]))); break; |
---|
100 | case 2: _t->start((*reinterpret_cast< const QVector<Model::Page*>(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3])),(*reinterpret_cast< bool(*)>(_a[4])),(*reinterpret_cast< int(*)>(_a[5]))); break; |
---|
101 | case 3: _t->start((*reinterpret_cast< const QVector<Model::Page*>(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3])),(*reinterpret_cast< bool(*)>(_a[4]))); break; |
---|
102 | case 4: _t->cancel(); break; |
---|
103 | default: ; |
---|
104 | } |
---|
105 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
---|
106 | switch (_id) { |
---|
107 | default: *reinterpret_cast<int*>(_a[0]) = -1; break; |
---|
108 | case 1: |
---|
109 | switch (*reinterpret_cast<int*>(_a[1])) { |
---|
110 | default: *reinterpret_cast<int*>(_a[0]) = -1; break; |
---|
111 | case 1: |
---|
112 | *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<QRectF> >(); break; |
---|
113 | } |
---|
114 | break; |
---|
115 | } |
---|
116 | } else if (_c == QMetaObject::IndexOfMethod) { |
---|
117 | int *result = reinterpret_cast<int *>(_a[0]); |
---|
118 | void **func = reinterpret_cast<void **>(_a[1]); |
---|
119 | { |
---|
120 | typedef void (SearchTask::*_t)(int ); |
---|
121 | if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SearchTask::progressChanged)) { |
---|
122 | *result = 0; |
---|
123 | } |
---|
124 | } |
---|
125 | { |
---|
126 | typedef void (SearchTask::*_t)(int , const QList<QRectF> & ); |
---|
127 | if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SearchTask::resultsReady)) { |
---|
128 | *result = 1; |
---|
129 | } |
---|
130 | } |
---|
131 | } |
---|
132 | } |
---|
133 | |
---|
134 | const QMetaObject qpdfview::SearchTask::staticMetaObject = { |
---|
135 | { &QThread::staticMetaObject, qt_meta_stringdata_qpdfview__SearchTask.data, |
---|
136 | qt_meta_data_qpdfview__SearchTask, qt_static_metacall, 0, 0} |
---|
137 | }; |
---|
138 | |
---|
139 | |
---|
140 | const QMetaObject *qpdfview::SearchTask::metaObject() const |
---|
141 | { |
---|
142 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
---|
143 | } |
---|
144 | |
---|
145 | void *qpdfview::SearchTask::qt_metacast(const char *_clname) |
---|
146 | { |
---|
147 | if (!_clname) return 0; |
---|
148 | if (!strcmp(_clname, qt_meta_stringdata_qpdfview__SearchTask.stringdata)) |
---|
149 | return static_cast<void*>(const_cast< SearchTask*>(this)); |
---|
150 | return QThread::qt_metacast(_clname); |
---|
151 | } |
---|
152 | |
---|
153 | int qpdfview::SearchTask::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
---|
154 | { |
---|
155 | _id = QThread::qt_metacall(_c, _id, _a); |
---|
156 | if (_id < 0) |
---|
157 | return _id; |
---|
158 | if (_c == QMetaObject::InvokeMetaMethod) { |
---|
159 | if (_id < 5) |
---|
160 | qt_static_metacall(this, _c, _id, _a); |
---|
161 | _id -= 5; |
---|
162 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
---|
163 | if (_id < 5) |
---|
164 | qt_static_metacall(this, _c, _id, _a); |
---|
165 | _id -= 5; |
---|
166 | } |
---|
167 | return _id; |
---|
168 | } |
---|
169 | |
---|
170 | // SIGNAL 0 |
---|
171 | void qpdfview::SearchTask::progressChanged(int _t1) |
---|
172 | { |
---|
173 | void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) }; |
---|
174 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
---|
175 | } |
---|
176 | |
---|
177 | // SIGNAL 1 |
---|
178 | void qpdfview::SearchTask::resultsReady(int _t1, const QList<QRectF> & _t2) |
---|
179 | { |
---|
180 | void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) }; |
---|
181 | QMetaObject::activate(this, &staticMetaObject, 1, _a); |
---|
182 | } |
---|
183 | QT_END_MOC_NAMESPACE |
---|