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

#include <memory>
#include "../../src/global_util/dbus/dbuscontrolcenter.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'dbuscontrolcenter.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.18. 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_DBusControlCenter_t {
    QByteArrayData data[20];
    char stringdata0[245];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_DBusControlCenter_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_DBusControlCenter_t qt_meta_stringdata_DBusControlCenter = {
    {
QT_MOC_LITERAL(0, 0, 17), // "DBusControlCenter"
QT_MOC_LITERAL(1, 18, 18), // "ShowInRightChanged"
QT_MOC_LITERAL(2, 37, 0), // ""
QT_MOC_LITERAL(3, 38, 8), // "XChanged"
QT_MOC_LITERAL(4, 47, 19), // "__propertyChanged__"
QT_MOC_LITERAL(5, 67, 12), // "QDBusMessage"
QT_MOC_LITERAL(6, 80, 3), // "msg"
QT_MOC_LITERAL(7, 84, 4), // "Hide"
QT_MOC_LITERAL(8, 89, 19), // "QDBusPendingReply<>"
QT_MOC_LITERAL(9, 109, 15), // "HideImmediately"
QT_MOC_LITERAL(10, 125, 4), // "Show"
QT_MOC_LITERAL(11, 130, 15), // "ShowImmediately"
QT_MOC_LITERAL(12, 146, 10), // "ShowModule"
QT_MOC_LITERAL(13, 157, 4), // "name"
QT_MOC_LITERAL(14, 162, 6), // "Toggle"
QT_MOC_LITERAL(15, 169, 12), // "ToggleInLeft"
QT_MOC_LITERAL(16, 182, 24), // "isNetworkCanShowPassword"
QT_MOC_LITERAL(17, 207, 23), // "QDBusPendingReply<bool>"
QT_MOC_LITERAL(18, 231, 11), // "ShowInRight"
QT_MOC_LITERAL(19, 243, 1) // "X"

    },
    "DBusControlCenter\0ShowInRightChanged\0"
    "\0XChanged\0__propertyChanged__\0"
    "QDBusMessage\0msg\0Hide\0QDBusPendingReply<>\0"
    "HideImmediately\0Show\0ShowImmediately\0"
    "ShowModule\0name\0Toggle\0ToggleInLeft\0"
    "isNetworkCanShowPassword\0"
    "QDBusPendingReply<bool>\0ShowInRight\0"
    "X"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_DBusControlCenter[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      11,   14, // methods
       2,   84, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       2,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   69,    2, 0x06 /* Public */,
       3,    0,   70,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       4,    1,   71,    2, 0x08 /* Private */,
       7,    0,   74,    2, 0x0a /* Public */,
       9,    0,   75,    2, 0x0a /* Public */,
      10,    0,   76,    2, 0x0a /* Public */,
      11,    0,   77,    2, 0x0a /* Public */,
      12,    1,   78,    2, 0x0a /* Public */,
      14,    0,   81,    2, 0x0a /* Public */,
      15,    0,   82,    2, 0x0a /* Public */,
      16,    0,   83,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 5,    6,
    0x80000000 | 8,
    0x80000000 | 8,
    0x80000000 | 8,
    0x80000000 | 8,
    0x80000000 | 8, QMetaType::QString,   13,
    0x80000000 | 8,
    0x80000000 | 8,
    0x80000000 | 17,

 // properties: name, type, flags
      18, QMetaType::Bool, 0x00495001,
      19, QMetaType::Int, 0x00495001,

 // properties: notify_signal_id
       0,
       1,

       0        // eod
};

void DBusControlCenter::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<DBusControlCenter *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->ShowInRightChanged(); break;
        case 1: _t->XChanged(); break;
        case 2: _t->__propertyChanged__((*reinterpret_cast< const QDBusMessage(*)>(_a[1]))); break;
        case 3: { QDBusPendingReply<> _r = _t->Hide();
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 4: { QDBusPendingReply<> _r = _t->HideImmediately();
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 5: { QDBusPendingReply<> _r = _t->Show();
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 6: { QDBusPendingReply<> _r = _t->ShowImmediately();
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 7: { QDBusPendingReply<> _r = _t->ShowModule((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 8: { QDBusPendingReply<> _r = _t->Toggle();
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 9: { QDBusPendingReply<> _r = _t->ToggleInLeft();
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 10: { QDBusPendingReply<bool> _r = _t->isNetworkCanShowPassword();
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<bool>*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QDBusMessage >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (DBusControlCenter::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DBusControlCenter::ShowInRightChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (DBusControlCenter::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DBusControlCenter::XChanged)) {
                *result = 1;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<DBusControlCenter *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->showInRight(); break;
        case 1: *reinterpret_cast< int*>(_v) = _t->x(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject DBusControlCenter::staticMetaObject = { {
    QMetaObject::SuperData::link<QDBusAbstractInterface::staticMetaObject>(),
    qt_meta_stringdata_DBusControlCenter.data,
    qt_meta_data_DBusControlCenter,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int DBusControlCenter::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QDBusAbstractInterface::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
#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 -= 2;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 2;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void DBusControlCenter::ShowInRightChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void DBusControlCenter::XChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
