Ubuntu Download Manager  1.2.0
A session-wide downloading service
moc_properties_interface.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'properties_interface.h'
3 **
4 ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.10.1)
5 **
6 ** WARNING! All changes made in this file will be lost!
7 *****************************************************************************/
8 
9 #include "../../ubuntu/download_manager/properties_interface.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'properties_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.)"
18 #endif
19 
20 QT_BEGIN_MOC_NAMESPACE
21 QT_WARNING_PUSH
22 QT_WARNING_DISABLE_DEPRECATED
24  QByteArrayData data[15];
25  char stringdata0[227];
26 };
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_PropertiesInterface_t, stringdata0) + ofs \
30  - idx * sizeof(QByteArrayData)) \
31  )
32 static const qt_meta_stringdata_PropertiesInterface_t qt_meta_stringdata_PropertiesInterface = {
33  {
34 QT_MOC_LITERAL(0, 0, 19), // "PropertiesInterface"
35 QT_MOC_LITERAL(1, 20, 17), // "PropertiesChanged"
36 QT_MOC_LITERAL(2, 38, 0), // ""
37 QT_MOC_LITERAL(3, 39, 14), // "interface_name"
38 QT_MOC_LITERAL(4, 54, 18), // "changed_properties"
39 QT_MOC_LITERAL(5, 73, 22), // "invalidated_properties"
40 QT_MOC_LITERAL(6, 96, 3), // "Get"
41 QT_MOC_LITERAL(7, 100, 31), // "QDBusPendingReply<QDBusVariant>"
42 QT_MOC_LITERAL(8, 132, 13), // "property_name"
43 QT_MOC_LITERAL(9, 146, 6), // "GetAll"
44 QT_MOC_LITERAL(10, 153, 30), // "QDBusPendingReply<QVariantMap>"
45 QT_MOC_LITERAL(11, 184, 3), // "Set"
46 QT_MOC_LITERAL(12, 188, 19), // "QDBusPendingReply<>"
47 QT_MOC_LITERAL(13, 208, 12), // "QDBusVariant"
48 QT_MOC_LITERAL(14, 221, 5) // "value"
49 
50  },
51  "PropertiesInterface\0PropertiesChanged\0"
52  "\0interface_name\0changed_properties\0"
53  "invalidated_properties\0Get\0"
54  "QDBusPendingReply<QDBusVariant>\0"
55  "property_name\0GetAll\0"
56  "QDBusPendingReply<QVariantMap>\0Set\0"
57  "QDBusPendingReply<>\0QDBusVariant\0value"
58 };
59 #undef QT_MOC_LITERAL
60 
61 static const uint qt_meta_data_PropertiesInterface[] = {
62 
63  // content:
64  7, // revision
65  0, // classname
66  0, 0, // classinfo
67  4, 14, // methods
68  0, 0, // properties
69  0, 0, // enums/sets
70  0, 0, // constructors
71  0, // flags
72  1, // signalCount
73 
74  // signals: name, argc, parameters, tag, flags
75  1, 3, 34, 2, 0x06 /* Public */,
76 
77  // slots: name, argc, parameters, tag, flags
78  6, 2, 41, 2, 0x0a /* Public */,
79  9, 1, 46, 2, 0x0a /* Public */,
80  11, 3, 49, 2, 0x0a /* Public */,
81 
82  // signals: parameters
83  QMetaType::Void, QMetaType::QString, QMetaType::QVariantMap, QMetaType::QStringList, 3, 4, 5,
84 
85  // slots: parameters
86  0x80000000 | 7, QMetaType::QString, QMetaType::QString, 3, 8,
87  0x80000000 | 10, QMetaType::QString, 3,
88  0x80000000 | 12, QMetaType::QString, QMetaType::QString, 0x80000000 | 13, 3, 8, 14,
89 
90  0 // eod
91 };
92 
93 void PropertiesInterface::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
94 {
95  if (_c == QMetaObject::InvokeMetaMethod) {
96  PropertiesInterface *_t = static_cast<PropertiesInterface *>(_o);
97  Q_UNUSED(_t)
98  switch (_id) {
99  case 0: _t->PropertiesChanged((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QVariantMap(*)>(_a[2])),(*reinterpret_cast< const QStringList(*)>(_a[3]))); break;
100  case 1: { QDBusPendingReply<QDBusVariant> _r = _t->Get((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])));
101  if (_a[0]) *reinterpret_cast< QDBusPendingReply<QDBusVariant>*>(_a[0]) = std::move(_r); } break;
102  case 2: { QDBusPendingReply<QVariantMap> _r = _t->GetAll((*reinterpret_cast< const QString(*)>(_a[1])));
103  if (_a[0]) *reinterpret_cast< QDBusPendingReply<QVariantMap>*>(_a[0]) = std::move(_r); } break;
104  case 3: { QDBusPendingReply<> _r = _t->Set((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QDBusVariant(*)>(_a[3])));
105  if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); } break;
106  default: ;
107  }
108  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
109  switch (_id) {
110  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
111  case 3:
112  switch (*reinterpret_cast<int*>(_a[1])) {
113  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
114  case 2:
115  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QDBusVariant >(); break;
116  }
117  break;
118  }
119  } else if (_c == QMetaObject::IndexOfMethod) {
120  int *result = reinterpret_cast<int *>(_a[0]);
121  {
122  typedef void (PropertiesInterface::*_t)(const QString & , const QVariantMap & , const QStringList & );
123  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PropertiesInterface::PropertiesChanged)) {
124  *result = 0;
125  return;
126  }
127  }
128  }
129 }
130 
131 QT_INIT_METAOBJECT const QMetaObject PropertiesInterface::staticMetaObject = {
132  { &QDBusAbstractInterface::staticMetaObject, qt_meta_stringdata_PropertiesInterface.data,
133  qt_meta_data_PropertiesInterface, qt_static_metacall, nullptr, nullptr}
134 };
135 
136 
137 const QMetaObject *PropertiesInterface::metaObject() const
138 {
139  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
140 }
141 
142 void *PropertiesInterface::qt_metacast(const char *_clname)
143 {
144  if (!_clname) return nullptr;
145  if (!strcmp(_clname, qt_meta_stringdata_PropertiesInterface.stringdata0))
146  return static_cast<void*>(this);
147  return QDBusAbstractInterface::qt_metacast(_clname);
148 }
149 
150 int PropertiesInterface::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
151 {
152  _id = QDBusAbstractInterface::qt_metacall(_c, _id, _a);
153  if (_id < 0)
154  return _id;
155  if (_c == QMetaObject::InvokeMetaMethod) {
156  if (_id < 4)
157  qt_static_metacall(this, _c, _id, _a);
158  _id -= 4;
159  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
160  if (_id < 4)
161  qt_static_metacall(this, _c, _id, _a);
162  _id -= 4;
163  }
164  return _id;
165 }
166 
167 // SIGNAL 0
168 void PropertiesInterface::PropertiesChanged(const QString & _t1, const QVariantMap & _t2, const QStringList & _t3)
169 {
170  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
171  QMetaObject::activate(this, &staticMetaObject, 0, _a);
172 }
173 QT_WARNING_POP
174 QT_END_MOC_NAMESPACE
QDBusPendingReply Set(const QString &interface_name, const QString &property_name, const QDBusVariant &value)
#define QT_MOC_LITERAL(idx, ofs, len)
QDBusPendingReply< QDBusVariant > Get(const QString &interface_name, const QString &property_name)
QDBusPendingReply< QVariantMap > GetAll(const QString &interface_name)
void PropertiesChanged(const QString &interface_name, const QVariantMap &changed_properties, const QStringList &invalidated_properties)