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.)" 
   21 QT_BEGIN_MOC_NAMESPACE
 
   23 QT_WARNING_DISABLE_DEPRECATED
 
   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)) \ 
   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" 
   81     "QDBusPendingReply<QList<QDBusObjectPath> >\0" 
   82     "appId\0uncollected\0getAllDownloadsWithMetadata\0" 
   83     "name\0value\0isGSMDownloadAllowed\0" 
   84     "QDBusPendingReply<bool>\0setDefaultThrottle\0" 
   89 static const uint qt_meta_data_Ubuntu__DownloadManager__ManagerInterface[] = {
 
  117     QMetaType::Void, 0x80000000 | 3,    4,
 
  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,
 
  125     0x80000000 | 24, QMetaType::QString, QMetaType::Bool,   25,   26,
 
  126     0x80000000 | 24, QMetaType::QString, QMetaType::QString,   28,   29,
 
  128     0x80000000 | 6, QMetaType::ULongLong,   33,
 
  133 void Ubuntu::DownloadManager::ManagerInterface::qt_static_metacall(
QObject *_o, QMetaObject::Call _c, 
int _id, 
void **_a)
 
  135     if (_c == QMetaObject::InvokeMetaMethod) {
 
  136         auto *_t = 
static_cast<ManagerInterface *
>(_o);
 
  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;
 
  160     } 
else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
 
  162         default: *
reinterpret_cast<int*
>(_a[0]) = -1; 
break;
 
  164             switch (*
reinterpret_cast<int*
>(_a[1])) {
 
  165             default: *
reinterpret_cast<int*
>(_a[0]) = -1; 
break;
 
  167                 *
reinterpret_cast<int*
>(_a[0]) = qRegisterMetaType< QDBusObjectPath >(); 
break;
 
  171             switch (*
reinterpret_cast<int*
>(_a[1])) {
 
  172             default: *
reinterpret_cast<int*
>(_a[0]) = -1; 
break;
 
  174                 *
reinterpret_cast<int*
>(_a[0]) = qRegisterMetaType< DownloadStruct >(); 
break;
 
  178             switch (*
reinterpret_cast<int*
>(_a[1])) {
 
  179             default: *
reinterpret_cast<int*
>(_a[0]) = -1; 
break;
 
  181                 *
reinterpret_cast<int*
>(_a[0]) = qRegisterMetaType< StringMap >(); 
break;
 
  183                 *
reinterpret_cast<int*
>(_a[0]) = qRegisterMetaType< StructList >(); 
break;
 
  187     } 
else if (_c == QMetaObject::IndexOfMethod) {
 
  188         int *result = 
reinterpret_cast<int *
>(_a[0]);
 
  190             using _t = void (ManagerInterface::*)(
const QDBusObjectPath & );
 
  191             if (*
reinterpret_cast<_t *
>(_a[1]) == 
static_cast<_t
>(&ManagerInterface::downloadCreated)) {
 
  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,
 
  209 const QMetaObject *Ubuntu::DownloadManager::ManagerInterface::metaObject()
 const 
  211     return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
 
  214 void *Ubuntu::DownloadManager::ManagerInterface::qt_metacast(
const char *_clname)
 
  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);
 
  222 int Ubuntu::DownloadManager::ManagerInterface::qt_metacall(QMetaObject::Call _c, 
int _id, 
void **_a)
 
  224     _id = QDBusAbstractInterface::qt_metacall(_c, _id, _a);
 
  227     if (_c == QMetaObject::InvokeMetaMethod) {
 
  229             qt_static_metacall(
this, _c, _id, _a);
 
  231     } 
else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
 
  233             qt_static_metacall(
this, _c, _id, _a);
 
  240 void Ubuntu::DownloadManager::ManagerInterface::downloadCreated(
const QDBusObjectPath & _t1)
 
  242     void *_a[] = { 
nullptr, 
const_cast<void*
>(
reinterpret_cast<const void*
>(std::addressof(_t1))) };
 
  243     QMetaObject::activate(
this, &staticMetaObject, 0, _a);