Ubuntu Download Manager: /build/ubuntu-download-manager-git/src/ubuntu-download-manager/src/downloads/client/ubuntu-download-manager-client_autogen/KVAQPNROTY/moc_manager_interface.cpp Source File

Ubuntu Download Manager 1.2.0 A session-wide downloading service |

moc_manager_interface.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'manager_interface.h'
3 **
4 ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.2)
5 **
6 ** WARNING! All changes made in this file will be lost!
7 *****************************************************************************/
8
9 #include <memory>
10 #include "../../ubuntu/download_manager/manager_interface.h"
11 #include <QtCore/qbytearray.h>
12 #include <QtCore/qmetatype.h>
13 #if !defined(Q_MOC_OUTPUT_REVISION)
14 #error "The header file 'manager_interface.h' doesn't include <QObject>."
15 #elif Q_MOC_OUTPUT_REVISION != 67
16 #error "This file was generated using the moc from 5.15.2. It"
17 #error "cannot be used with the include files from this version of Qt."
18 #error "(The moc has changed too much.)"
19 #endif
20
21 QT_BEGIN_MOC_NAMESPACE
22 QT_WARNING_PUSH
23 QT_WARNING_DISABLE_DEPRECATED
24 struct qt_meta_stringdata_Ubuntu__DownloadManager__ManagerInterface_t {
25 QByteArrayData data[34];
26 char stringdata0[524];
27 };
28 #define QT_MOC_LITERAL(idx, ofs, len) \
29 Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
30 qptrdiff(offsetof(qt_meta_stringdata_Ubuntu__DownloadManager__ManagerInterface_t, stringdata0) + ofs \
31 - idx * sizeof(QByteArrayData)) \
32 )
33 static const qt_meta_stringdata_Ubuntu__DownloadManager__ManagerInterface_t qt_meta_stringdata_Ubuntu__DownloadManager__ManagerInterface = {
34 {
35 QT_MOC_LITERAL(0, 0, 41), // "Ubuntu::DownloadManager::Mana..."
36 QT_MOC_LITERAL(1, 42, 15), // "downloadCreated"
37 QT_MOC_LITERAL(2, 58, 0), // ""
38 QT_MOC_LITERAL(3, 59, 15), // "QDBusObjectPath"
39 QT_MOC_LITERAL(4, 75, 4), // "path"
40 QT_MOC_LITERAL(5, 80, 16), // "allowGSMDownload"
41 QT_MOC_LITERAL(6, 97, 19), // "QDBusPendingReply<>"
42 QT_MOC_LITERAL(7, 117, 7), // "allowed"
43 QT_MOC_LITERAL(8, 125, 14), // "createDownload"
44 QT_MOC_LITERAL(9, 140, 34), // "QDBusPendingReply<QDBusObject..."
45 QT_MOC_LITERAL(10, 175, 14), // "DownloadStruct"
46 QT_MOC_LITERAL(11, 190, 8), // "download"
47 QT_MOC_LITERAL(12, 199, 19), // "createDownloadGroup"
48 QT_MOC_LITERAL(13, 219, 10), // "StructList"
49 QT_MOC_LITERAL(14, 230, 9), // "downloads"
50 QT_MOC_LITERAL(15, 240, 9), // "algorithm"
51 QT_MOC_LITERAL(16, 250, 9), // "allowed3G"
52 QT_MOC_LITERAL(17, 260, 8), // "metadata"
53 QT_MOC_LITERAL(18, 269, 9), // "StringMap"
54 QT_MOC_LITERAL(19, 279, 7), // "headers"
55 QT_MOC_LITERAL(20, 287, 15), // "defaultThrottle"
56 QT_MOC_LITERAL(21, 303, 29), // "QDBusPendingReply<qulonglong>"
57 QT_MOC_LITERAL(22, 333, 4), // "exit"
58 QT_MOC_LITERAL(23, 338, 15), // "getAllDownloads"
59 QT_MOC_LITERAL(24, 354, 42), // "QDBusPendingReply<QList<QDBus..."
60 QT_MOC_LITERAL(25, 397, 5), // "appId"
61 QT_MOC_LITERAL(26, 403, 11), // "uncollected"
62 QT_MOC_LITERAL(27, 415, 27), // "getAllDownloadsWithMetadata"
63 QT_MOC_LITERAL(28, 443, 4), // "name"
64 QT_MOC_LITERAL(29, 448, 5), // "value"
65 QT_MOC_LITERAL(30, 454, 20), // "isGSMDownloadAllowed"
66 QT_MOC_LITERAL(31, 475, 23), // "QDBusPendingReply<bool>"
67 QT_MOC_LITERAL(32, 499, 18), // "setDefaultThrottle"
68 QT_MOC_LITERAL(33, 518, 5) // "speed"
69
70 },
71 "Ubuntu::DownloadManager::ManagerInterface\0"
72 "downloadCreated\0\0QDBusObjectPath\0path\0"
73 "allowGSMDownload\0QDBusPendingReply<>\0"
74 "allowed\0createDownload\0"
75 "QDBusPendingReply<QDBusObjectPath>\0"
76 "DownloadStruct\0download\0createDownloadGroup\0"
77 "StructList\0downloads\0algorithm\0allowed3G\0"
78 "metadata\0StringMap\0headers\0defaultThrottle\0"
79 "QDBusPendingReply<qulonglong>\0exit\0"
80 "getAllDownloads\0"
81 "QDBusPendingReply<QList<QDBusObjectPath> >\0"
82 "appId\0uncollected\0getAllDownloadsWithMetadata\0"
83 "name\0value\0isGSMDownloadAllowed\0"
84 "QDBusPendingReply<bool>\0setDefaultThrottle\0"
85 "speed"
86 };
87 #undef QT_MOC_LITERAL
88
89 static const uint qt_meta_data_Ubuntu__DownloadManager__ManagerInterface[] = {
90
91 // content:
92 8, // revision
93 0, // classname
94 0, 0, // classinfo
95 10, 14, // methods
96 0, 0, // properties
97 0, 0, // enums/sets
98 0, 0, // constructors
99 0, // flags
100 1, // signalCount
101
102 // signals: name, argc, parameters, tag, flags
103 1, 1, 64, 2, 0x06 /* Public */,
104
105 // slots: name, argc, parameters, tag, flags
106 5, 1, 67, 2, 0x0a /* Public */,
107 8, 1, 70, 2, 0x0a /* Public */,
108 12, 5, 73, 2, 0x0a /* Public */,
109 20, 0, 84, 2, 0x0a /* Public */,
110 22, 0, 85, 2, 0x0a /* Public */,
111 23, 2, 86, 2, 0x0a /* Public */,
112 27, 2, 91, 2, 0x0a /* Public */,
113 30, 0, 96, 2, 0x0a /* Public */,
114 32, 1, 97, 2, 0x0a /* Public */,
115
116 // signals: parameters
117 QMetaType::Void, 0x80000000 | 3, 4,
118
119 // slots: parameters
120 0x80000000 | 6, QMetaType::Bool, 7,
121 0x80000000 | 9, 0x80000000 | 10, 11,
122 0x80000000 | 9, 0x80000000 | 13, QMetaType::QString, QMetaType::Bool, QMetaType::QVariantMap, 0x80000000 | 18, 14, 15, 16, 17, 19,
123 0x80000000 | 21,
124 0x80000000 | 6,
125 0x80000000 | 24, QMetaType::QString, QMetaType::Bool, 25, 26,
126 0x80000000 | 24, QMetaType::QString, QMetaType::QString, 28, 29,
127 0x80000000 | 31,
128 0x80000000 | 6, QMetaType::ULongLong, 33,
129
130 0 // eod
131 };
132
133 void Ubuntu::DownloadManager::ManagerInterface::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
134 {
135 if (_c == QMetaObject::InvokeMetaMethod) {
136 auto *_t = static_cast<ManagerInterface *>(_o);
137 Q_UNUSED(_t)
138 switch (_id) {
139 case 0: _t->downloadCreated((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1]))); break;
140 case 1: { QDBusPendingReply<> _r = _t->allowGSMDownload((*reinterpret_cast< bool(*)>(_a[1])));
141 if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); } break;
142 case 2: { QDBusPendingReply<QDBusObjectPath> _r = _t->createDownload((*reinterpret_cast< DownloadStruct(*)>(_a[1])));
143 if (_a[0]) *reinterpret_cast< QDBusPendingReply<QDBusObjectPath>*>(_a[0]) = std::move(_r); } break;
144 case 3: { QDBusPendingReply<QDBusObjectPath> _r = _t->createDownloadGroup((*reinterpret_cast< StructList(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3])),(*reinterpret_cast< const QVariantMap(*)>(_a[4])),(*reinterpret_cast< StringMap(*)>(_a[5])));
145 if (_a[0]) *reinterpret_cast< QDBusPendingReply<QDBusObjectPath>*>(_a[0]) = std::move(_r); } break;
146 case 4: { QDBusPendingReply<qulonglong> _r = _t->defaultThrottle();
147 if (_a[0]) *reinterpret_cast< QDBusPendingReply<qulonglong>*>(_a[0]) = std::move(_r); } break;
148 case 5: { QDBusPendingReply<> _r = _t->exit();
149 if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); } break;
150 case 6: { QDBusPendingReply<QList<QDBusObjectPath> > _r = _t->getAllDownloads((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2])));
151 if (_a[0]) *reinterpret_cast< QDBusPendingReply<QList<QDBusObjectPath> >*>(_a[0]) = std::move(_r); } break;
152 case 7: { QDBusPendingReply<QList<QDBusObjectPath> > _r = _t->getAllDownloadsWithMetadata((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])));
153 if (_a[0]) *reinterpret_cast< QDBusPendingReply<QList<QDBusObjectPath> >*>(_a[0]) = std::move(_r); } break;
154 case 8: { QDBusPendingReply<bool> _r = _t->isGSMDownloadAllowed();
155 if (_a[0]) *reinterpret_cast< QDBusPendingReply<bool>*>(_a[0]) = std::move(_r); } break;
156 case 9: { QDBusPendingReply<> _r = _t->setDefaultThrottle((*reinterpret_cast< qulonglong(*)>(_a[1])));
157 if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); } break;
158 default: ;
159 }
160 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
161 switch (_id) {
162 default: *reinterpret_cast<int*>(_a[0]) = -1; break;
163 case 0:
164 switch (*reinterpret_cast<int*>(_a[1])) {
165 default: *reinterpret_cast<int*>(_a[0]) = -1; break;
166 case 0:
167 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QDBusObjectPath >(); break;
168 }
169 break;
170 case 2:
171 switch (*reinterpret_cast<int*>(_a[1])) {
172 default: *reinterpret_cast<int*>(_a[0]) = -1; break;
173 case 0:
174 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< DownloadStruct >(); break;
175 }
176 break;
177 case 3:
178 switch (*reinterpret_cast<int*>(_a[1])) {
179 default: *reinterpret_cast<int*>(_a[0]) = -1; break;
180 case 4:
181 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< StringMap >(); break;
182 case 0:
183 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< StructList >(); break;
184 }
185 break;
186 }
187 } else if (_c == QMetaObject::IndexOfMethod) {
188 int *result = reinterpret_cast<int *>(_a[0]);
189 {
190 using _t = void (ManagerInterface::*)(const QDBusObjectPath & );
191 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ManagerInterface::downloadCreated)) {
192 *result = 0;
193 return;
194 }
195 }
196 }
197 }
198
199 QT_INIT_METAOBJECT const QMetaObject Ubuntu::DownloadManager::ManagerInterface::staticMetaObject = { {
200 QMetaObject::SuperData::link<QDBusAbstractInterface::staticMetaObject>(),
201 qt_meta_stringdata_Ubuntu__DownloadManager__ManagerInterface.data,
202 qt_meta_data_Ubuntu__DownloadManager__ManagerInterface,
203 qt_static_metacall,
204 nullptr,
205 nullptr
206 } };
207
208
209 const QMetaObject *Ubuntu::DownloadManager::ManagerInterface::metaObject() const
210 {
211 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
212 }
213
214 void *Ubuntu::DownloadManager::ManagerInterface::qt_metacast(const char *_clname)
215 {
216 if (!_clname) return nullptr;
217 if (!strcmp(_clname, qt_meta_stringdata_Ubuntu__DownloadManager__ManagerInterface.stringdata0))
218 return static_cast<void*>(this);
219 return QDBusAbstractInterface::qt_metacast(_clname);
220 }
221
222 int Ubuntu::DownloadManager::ManagerInterface::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
223 {
224 _id = QDBusAbstractInterface::qt_metacall(_c, _id, _a);
225 if (_id < 0)
226 return _id;
227 if (_c == QMetaObject::InvokeMetaMethod) {
228 if (_id < 10)
229 qt_static_metacall(this, _c, _id, _a);
230 _id -= 10;
231 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
232 if (_id < 10)
233 qt_static_metacall(this, _c, _id, _a);
234 _id -= 10;
235 }
236 return _id;
237 }
238
239 // SIGNAL 0
240 void Ubuntu::DownloadManager::ManagerInterface::downloadCreated(const QDBusObjectPath & _t1)
241 {
242 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
243 QMetaObject::activate(this, &staticMetaObject, 0, _a);
244 }
245 QT_WARNING_POP
246 QT_END_MOC_NAMESPACE
QObject
QT_MOC_LITERAL
#define QT_MOC_LITERAL(idx, ofs, len)
Definition: moc_manager_interface.cpp:28
qt_meta_stringdata_Ubuntu__DownloadManager__ManagerInterface_t::data
QByteArrayData data[34]
Definition: moc_manager_interface.cpp:25
qt_meta_stringdata_Ubuntu__DownloadManager__ManagerInterface_t::stringdata0
char stringdata0[524]
Definition: moc_manager_interface.cpp:26
qt_meta_stringdata_Ubuntu__DownloadManager__ManagerInterface_t
Definition: moc_manager_interface.cpp:24