1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'downloadmanager.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 "downloadmanager.h" |
11 | #include <QtNetwork/QSslError> |
12 | #include <QtCore/qbytearray.h> |
13 | #include <QtCore/qmetatype.h> |
14 | #if !defined(Q_MOC_OUTPUT_REVISION) |
15 | #error "The header file 'downloadmanager.h' doesn't include <QObject>." |
16 | #elif Q_MOC_OUTPUT_REVISION != 68 |
17 | #error "This file was generated using the moc from 6.0.0. 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 | QT_WARNING_PUSH |
24 | QT_WARNING_DISABLE_DEPRECATED |
25 | struct qt_meta_stringdata_DownloadManager_t { |
26 | const uint offsetsAndSize[18]; |
27 | char stringdata0[121]; |
28 | }; |
29 | #define QT_MOC_LITERAL(ofs, len) \ |
30 | uint(offsetof(qt_meta_stringdata_DownloadManager_t, stringdata0) + ofs), len |
31 | static const qt_meta_stringdata_DownloadManager_t qt_meta_stringdata_DownloadManager = { |
32 | { |
33 | QT_MOC_LITERAL(0, 15), // "DownloadManager" |
34 | QT_MOC_LITERAL(16, 8), // "finished" |
35 | QT_MOC_LITERAL(25, 0), // "" |
36 | QT_MOC_LITERAL(26, 17), // "startNextDownload" |
37 | QT_MOC_LITERAL(44, 16), // "downloadProgress" |
38 | QT_MOC_LITERAL(61, 13), // "bytesReceived" |
39 | QT_MOC_LITERAL(75, 10), // "bytesTotal" |
40 | QT_MOC_LITERAL(86, 16), // "downloadFinished" |
41 | QT_MOC_LITERAL(103, 17) // "downloadReadyRead" |
42 | |
43 | }, |
44 | "DownloadManager\0finished\0\0startNextDownload\0" |
45 | "downloadProgress\0bytesReceived\0" |
46 | "bytesTotal\0downloadFinished\0" |
47 | "downloadReadyRead" |
48 | }; |
49 | #undef QT_MOC_LITERAL |
50 | |
51 | static const uint qt_meta_data_DownloadManager[] = { |
52 | |
53 | // content: |
54 | 9, // revision |
55 | 0, // classname |
56 | 0, 0, // classinfo |
57 | 5, 14, // methods |
58 | 0, 0, // properties |
59 | 0, 0, // enums/sets |
60 | 0, 0, // constructors |
61 | 0, // flags |
62 | 1, // signalCount |
63 | |
64 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
65 | 1, 0, 44, 2, 0x06, 0 /* Public */, |
66 | |
67 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
68 | 3, 0, 45, 2, 0x08, 1 /* Private */, |
69 | 4, 2, 46, 2, 0x08, 2 /* Private */, |
70 | 7, 0, 51, 2, 0x08, 5 /* Private */, |
71 | 8, 0, 52, 2, 0x08, 6 /* Private */, |
72 | |
73 | // signals: parameters |
74 | QMetaType::Void, |
75 | |
76 | // slots: parameters |
77 | QMetaType::Void, |
78 | QMetaType::Void, QMetaType::LongLong, QMetaType::LongLong, 5, 6, |
79 | QMetaType::Void, |
80 | QMetaType::Void, |
81 | |
82 | 0 // eod |
83 | }; |
84 | |
85 | void DownloadManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
86 | { |
87 | if (_c == QMetaObject::InvokeMetaMethod) { |
88 | Q_ASSERT(staticMetaObject.cast(_o)); |
89 | auto *_t = static_cast<DownloadManager *>(_o); |
90 | Q_UNUSED(_t) |
91 | switch (_id) { |
92 | case 0: _t->finished(); break; |
93 | case 1: _t->startNextDownload(); break; |
94 | case 2: _t->downloadProgress((*reinterpret_cast< qint64(*)>(_a[1])),(*reinterpret_cast< qint64(*)>(_a[2]))); break; |
95 | case 3: _t->downloadFinished(); break; |
96 | case 4: _t->downloadReadyRead(); break; |
97 | default: ; |
98 | } |
99 | } else if (_c == QMetaObject::IndexOfMethod) { |
100 | int *result = reinterpret_cast<int *>(_a[0]); |
101 | { |
102 | using _t = void (DownloadManager::*)(); |
103 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DownloadManager::finished)) { |
104 | *result = 0; |
105 | return; |
106 | } |
107 | } |
108 | } |
109 | } |
110 | |
111 | const QMetaObject DownloadManager::staticMetaObject = { { |
112 | QMetaObject::SuperData::link<QObject::staticMetaObject>(), |
113 | qt_meta_stringdata_DownloadManager.offsetsAndSize, |
114 | qt_meta_data_DownloadManager, |
115 | qt_static_metacall, |
116 | nullptr, |
117 | qt_incomplete_metaTypeArray<qt_meta_stringdata_DownloadManager_t |
118 | , QtPrivate::TypeAndForceComplete<void, std::false_type> |
119 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<qint64, std::false_type>, QtPrivate::TypeAndForceComplete<qint64, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type> |
120 | |
121 | |
122 | >, |
123 | nullptr |
124 | } }; |
125 | |
126 | |
127 | const QMetaObject *DownloadManager::metaObject() const |
128 | { |
129 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
130 | } |
131 | |
132 | void *DownloadManager::qt_metacast(const char *_clname) |
133 | { |
134 | if (!_clname) return nullptr; |
135 | if (!strcmp(_clname, qt_meta_stringdata_DownloadManager.stringdata0)) |
136 | return static_cast<void*>(this); |
137 | return QObject::qt_metacast(_clname); |
138 | } |
139 | |
140 | int DownloadManager::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
141 | { |
142 | _id = QObject::qt_metacall(_c, _id, _a); |
143 | if (_id < 0) |
144 | return _id; |
145 | if (_c == QMetaObject::InvokeMetaMethod) { |
146 | if (_id < 5) |
147 | qt_static_metacall(this, _c, _id, _a); |
148 | _id -= 5; |
149 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
150 | if (_id < 5) |
151 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
152 | _id -= 5; |
153 | } |
154 | return _id; |
155 | } |
156 | |
157 | // SIGNAL 0 |
158 | void DownloadManager::finished() |
159 | { |
160 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); |
161 | } |
162 | QT_WARNING_POP |
163 | QT_END_MOC_NAMESPACE |
164 | |