9 #include "../../ubuntu/download_manager/manager_interface.h" 10 #include <QtCore/qbytearray.h> 11 #include <QtCore/qmetatype.h> 12 #if !defined(Q_MOC_OUTPUT_REVISION) 13 #error "The header file 'manager_interface.h' doesn't include <QObject>." 14 #elif Q_MOC_OUTPUT_REVISION != 67 15 #error "This file was generated using the moc from 5.10.1. It" 16 #error "cannot be used with the include files from this version of Qt." 17 #error "(The moc has changed too much.)" 20 QT_BEGIN_MOC_NAMESPACE
22 QT_WARNING_DISABLE_DEPRECATED
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_Ubuntu__DownloadManager__ManagerInterface_t, stringdata0) + ofs \ 30 - idx * sizeof(QByteArrayData)) \ 70 "Ubuntu::DownloadManager::ManagerInterface\0" 71 "downloadCreated\0\0QDBusObjectPath\0path\0" 72 "allowGSMDownload\0QDBusPendingReply<>\0" 73 "allowed\0createDownload\0" 74 "QDBusPendingReply<QDBusObjectPath>\0" 75 "DownloadStruct\0download\0createDownloadGroup\0" 76 "StructList\0downloads\0algorithm\0allowed3G\0" 77 "metadata\0StringMap\0headers\0defaultThrottle\0" 78 "QDBusPendingReply<qulonglong>\0exit\0" 80 "QDBusPendingReply<QList<QDBusObjectPath> >\0" 81 "appId\0uncollected\0getAllDownloadsWithMetadata\0" 82 "name\0value\0isGSMDownloadAllowed\0" 83 "QDBusPendingReply<bool>\0setDefaultThrottle\0" 88 static const uint qt_meta_data_Ubuntu__DownloadManager__ManagerInterface[] = {
116 QMetaType::Void, 0x80000000 | 3, 4,
119 0x80000000 | 6, QMetaType::Bool, 7,
120 0x80000000 | 9, 0x80000000 | 10, 11,
121 0x80000000 | 9, 0x80000000 | 13, QMetaType::QString, QMetaType::Bool, QMetaType::QVariantMap, 0x80000000 | 18, 14, 15, 16, 17, 19,
124 0x80000000 | 24, QMetaType::QString, QMetaType::Bool, 25, 26,
125 0x80000000 | 24, QMetaType::QString, QMetaType::QString, 28, 29,
127 0x80000000 | 6, QMetaType::ULongLong, 33,
132 void Ubuntu::DownloadManager::ManagerInterface::qt_static_metacall(
QObject *_o, QMetaObject::Call _c,
int _id,
void **_a)
134 if (_c == QMetaObject::InvokeMetaMethod) {
135 ManagerInterface *_t =
static_cast<ManagerInterface *
>(_o);
138 case 0: _t->downloadCreated((*
reinterpret_cast< const QDBusObjectPath(*)
>(_a[1])));
break;
139 case 1: { QDBusPendingReply<> _r = _t->allowGSMDownload((*
reinterpret_cast< bool(*)
>(_a[1])));
140 if (_a[0]) *
reinterpret_cast< QDBusPendingReply<>*
>(_a[0]) = std::move(_r); }
break;
141 case 2: { QDBusPendingReply<QDBusObjectPath> _r = _t->createDownload((*
reinterpret_cast< DownloadStruct(*)
>(_a[1])));
142 if (_a[0]) *
reinterpret_cast< QDBusPendingReply<QDBusObjectPath>*
>(_a[0]) = std::move(_r); }
break;
143 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])));
144 if (_a[0]) *
reinterpret_cast< QDBusPendingReply<QDBusObjectPath>*
>(_a[0]) = std::move(_r); }
break;
145 case 4: { QDBusPendingReply<qulonglong> _r = _t->defaultThrottle();
146 if (_a[0]) *
reinterpret_cast< QDBusPendingReply<qulonglong>*
>(_a[0]) = std::move(_r); }
break;
147 case 5: { QDBusPendingReply<> _r = _t->exit();
148 if (_a[0]) *
reinterpret_cast< QDBusPendingReply<>*
>(_a[0]) = std::move(_r); }
break;
149 case 6: { QDBusPendingReply<QList<QDBusObjectPath> > _r = _t->getAllDownloads((*
reinterpret_cast< const QString(*)
>(_a[1])),(*
reinterpret_cast< bool(*)
>(_a[2])));
150 if (_a[0]) *
reinterpret_cast< QDBusPendingReply<QList<QDBusObjectPath>
>*>(_a[0]) = std::move(_r); }
break;
151 case 7: { QDBusPendingReply<QList<QDBusObjectPath> > _r = _t->getAllDownloadsWithMetadata((*
reinterpret_cast< const QString(*)
>(_a[1])),(*
reinterpret_cast< const QString(*)
>(_a[2])));
152 if (_a[0]) *
reinterpret_cast< QDBusPendingReply<QList<QDBusObjectPath>
>*>(_a[0]) = std::move(_r); }
break;
153 case 8: { QDBusPendingReply<bool> _r = _t->isGSMDownloadAllowed();
154 if (_a[0]) *
reinterpret_cast< QDBusPendingReply<bool>*
>(_a[0]) = std::move(_r); }
break;
155 case 9: { QDBusPendingReply<> _r = _t->setDefaultThrottle((*
reinterpret_cast< qulonglong(*)
>(_a[1])));
156 if (_a[0]) *
reinterpret_cast< QDBusPendingReply<>*
>(_a[0]) = std::move(_r); }
break;
159 }
else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
161 default: *
reinterpret_cast<int*
>(_a[0]) = -1;
break;
163 switch (*reinterpret_cast<int*>(_a[1])) {
164 default: *
reinterpret_cast<int*
>(_a[0]) = -1;
break;
166 *
reinterpret_cast<int*
>(_a[0]) = qRegisterMetaType< QDBusObjectPath >();
break;
170 switch (*reinterpret_cast<int*>(_a[1])) {
171 default: *
reinterpret_cast<int*
>(_a[0]) = -1;
break;
173 *
reinterpret_cast<int*
>(_a[0]) = qRegisterMetaType< DownloadStruct >();
break;
177 switch (*reinterpret_cast<int*>(_a[1])) {
178 default: *
reinterpret_cast<int*
>(_a[0]) = -1;
break;
180 *
reinterpret_cast<int*
>(_a[0]) = qRegisterMetaType< StringMap >();
break;
182 *
reinterpret_cast<int*
>(_a[0]) = qRegisterMetaType< StructList >();
break;
186 }
else if (_c == QMetaObject::IndexOfMethod) {
187 int *result =
reinterpret_cast<int *
>(_a[0]);
189 typedef void (ManagerInterface::*_t)(
const QDBusObjectPath & );
190 if (*reinterpret_cast<_t *>(_a[1]) ==
static_cast<_t
>(&ManagerInterface::downloadCreated)) {
198 QT_INIT_METAOBJECT
const QMetaObject Ubuntu::DownloadManager::ManagerInterface::staticMetaObject = {
199 { &QDBusAbstractInterface::staticMetaObject, qt_meta_stringdata_Ubuntu__DownloadManager__ManagerInterface.
data,
200 qt_meta_data_Ubuntu__DownloadManager__ManagerInterface, qt_static_metacall,
nullptr,
nullptr}
204 const QMetaObject *Ubuntu::DownloadManager::ManagerInterface::metaObject()
const 206 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
209 void *Ubuntu::DownloadManager::ManagerInterface::qt_metacast(
const char *_clname)
211 if (!_clname)
return nullptr;
212 if (!strcmp(_clname, qt_meta_stringdata_Ubuntu__DownloadManager__ManagerInterface.
stringdata0))
213 return static_cast<void*
>(
this);
214 return QDBusAbstractInterface::qt_metacast(_clname);
217 int Ubuntu::DownloadManager::ManagerInterface::qt_metacall(QMetaObject::Call _c,
int _id,
void **_a)
219 _id = QDBusAbstractInterface::qt_metacall(_c, _id, _a);
222 if (_c == QMetaObject::InvokeMetaMethod) {
224 qt_static_metacall(
this, _c, _id, _a);
226 }
else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
228 qt_static_metacall(
this, _c, _id, _a);
235 void Ubuntu::DownloadManager::ManagerInterface::downloadCreated(
const QDBusObjectPath & _t1)
237 void *_a[] = {
nullptr,
const_cast<void*
>(
reinterpret_cast<const void*
>(&_t1)) };
238 QMetaObject::activate(
this, &staticMetaObject, 0, _a);
#define QT_MOC_LITERAL(idx, ofs, len)