/****************************************************************************
** Meta object code from reading C++ file 'com_deepin_daemon_mime_media.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.17)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include <memory>
#include "generated/com_deepin_daemon_mime_media.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'com_deepin_daemon_mime_media.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.17. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata___Media_t {
    QByteArrayData data[25];
    char stringdata0[307];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata___Media_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata___Media_t qt_meta_stringdata___Media = {
    {
QT_MOC_LITERAL(0, 0, 7), // "__Media"
QT_MOC_LITERAL(1, 8, 15), // "AutoOpenChanged"
QT_MOC_LITERAL(2, 24, 0), // ""
QT_MOC_LITERAL(3, 25, 5), // "value"
QT_MOC_LITERAL(4, 31, 14), // "EnableAutoOpen"
QT_MOC_LITERAL(5, 46, 19), // "QDBusPendingReply<>"
QT_MOC_LITERAL(6, 66, 3), // "in0"
QT_MOC_LITERAL(7, 70, 20), // "EnableAutoOpenQueued"
QT_MOC_LITERAL(8, 91, 13), // "GetDefaultApp"
QT_MOC_LITERAL(9, 105, 26), // "QDBusPendingReply<QString>"
QT_MOC_LITERAL(10, 132, 8), // "ListApps"
QT_MOC_LITERAL(11, 141, 5), // "Reset"
QT_MOC_LITERAL(12, 147, 11), // "ResetQueued"
QT_MOC_LITERAL(13, 159, 13), // "SetDefaultApp"
QT_MOC_LITERAL(14, 173, 3), // "in1"
QT_MOC_LITERAL(15, 177, 19), // "SetDefaultAppQueued"
QT_MOC_LITERAL(16, 197, 10), // "CallQueued"
QT_MOC_LITERAL(17, 208, 8), // "callName"
QT_MOC_LITERAL(18, 217, 4), // "args"
QT_MOC_LITERAL(19, 222, 21), // "onPendingCallFinished"
QT_MOC_LITERAL(20, 244, 24), // "QDBusPendingCallWatcher*"
QT_MOC_LITERAL(21, 269, 1), // "w"
QT_MOC_LITERAL(22, 271, 17), // "onPropertyChanged"
QT_MOC_LITERAL(23, 289, 8), // "propName"
QT_MOC_LITERAL(24, 298, 8) // "AutoOpen"

    },
    "__Media\0AutoOpenChanged\0\0value\0"
    "EnableAutoOpen\0QDBusPendingReply<>\0"
    "in0\0EnableAutoOpenQueued\0GetDefaultApp\0"
    "QDBusPendingReply<QString>\0ListApps\0"
    "Reset\0ResetQueued\0SetDefaultApp\0in1\0"
    "SetDefaultAppQueued\0CallQueued\0callName\0"
    "args\0onPendingCallFinished\0"
    "QDBusPendingCallWatcher*\0w\0onPropertyChanged\0"
    "propName\0AutoOpen"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data___Media[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      12,   14, // methods
       1,  114, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       1,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   74,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       4,    1,   77,    2, 0x0a /* Public */,
       7,    1,   80,    2, 0x0a /* Public */,
       8,    1,   83,    2, 0x0a /* Public */,
      10,    1,   86,    2, 0x0a /* Public */,
      11,    0,   89,    2, 0x0a /* Public */,
      12,    0,   90,    2, 0x0a /* Public */,
      13,    2,   91,    2, 0x0a /* Public */,
      15,    2,   96,    2, 0x0a /* Public */,
      16,    2,  101,    2, 0x0a /* Public */,
      19,    1,  106,    2, 0x08 /* Private */,
      22,    2,  109,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::Bool,    3,

 // slots: parameters
    0x80000000 | 5, QMetaType::Bool,    6,
    QMetaType::Void, QMetaType::Bool,    6,
    0x80000000 | 9, QMetaType::QString,    6,
    0x80000000 | 9, QMetaType::QString,    6,
    0x80000000 | 5,
    QMetaType::Void,
    0x80000000 | 5, QMetaType::QString, QMetaType::QString,    6,   14,
    QMetaType::Void, QMetaType::QString, QMetaType::QString,    6,   14,
    QMetaType::Void, QMetaType::QString, QMetaType::QVariantList,   17,   18,
    QMetaType::Void, 0x80000000 | 20,   21,
    QMetaType::Void, QMetaType::QString, QMetaType::QVariant,   23,    3,

 // properties: name, type, flags
      24, QMetaType::Bool, 0x00495001,

 // properties: notify_signal_id
       0,

       0        // eod
};

void __Media::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<__Media *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->AutoOpenChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 1: { QDBusPendingReply<> _r = _t->EnableAutoOpen((*reinterpret_cast< bool(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 2: _t->EnableAutoOpenQueued((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 3: { QDBusPendingReply<QString> _r = _t->GetDefaultApp((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<QString>*>(_a[0]) = std::move(_r); }  break;
        case 4: { QDBusPendingReply<QString> _r = _t->ListApps((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<QString>*>(_a[0]) = std::move(_r); }  break;
        case 5: { QDBusPendingReply<> _r = _t->Reset();
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 6: _t->ResetQueued(); break;
        case 7: { QDBusPendingReply<> _r = _t->SetDefaultApp((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 8: _t->SetDefaultAppQueued((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 9: _t->CallQueued((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QList<QVariant>(*)>(_a[2]))); break;
        case 10: _t->onPendingCallFinished((*reinterpret_cast< QDBusPendingCallWatcher*(*)>(_a[1]))); break;
        case 11: _t->onPropertyChanged((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QVariant(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 10:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QDBusPendingCallWatcher* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (__Media::*)(bool ) const;
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&__Media::AutoOpenChanged)) {
                *result = 0;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<__Media *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->autoOpen(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject __Media::staticMetaObject = { {
    QMetaObject::SuperData::link<DBusExtendedAbstractInterface::staticMetaObject>(),
    qt_meta_stringdata___Media.data,
    qt_meta_data___Media,
    qt_static_metacall,
    nullptr,
    nullptr
} };


const QMetaObject *__Media::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *__Media::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata___Media.stringdata0))
        return static_cast<void*>(this);
    return DBusExtendedAbstractInterface::qt_metacast(_clname);
}

int __Media::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = DBusExtendedAbstractInterface::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 1;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void __Media::AutoOpenChanged(bool _t1)const
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(const_cast< __Media *>(this), &staticMetaObject, 0, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
