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