/****************************************************************************
** Meta object code from reading C++ file 'dock_interface.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 "../../utils/dbus/xml2cpp/dock_interface.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'dock_interface.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___Dock_t {
    QByteArrayData data[32];
    char stringdata0[444];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata___Dock_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata___Dock_t qt_meta_stringdata___Dock = {
    {
QT_MOC_LITERAL(0, 0, 6), // "__Dock"
QT_MOC_LITERAL(1, 7, 18), // "DisplayModeChanged"
QT_MOC_LITERAL(2, 26, 0), // ""
QT_MOC_LITERAL(3, 27, 5), // "value"
QT_MOC_LITERAL(4, 33, 25), // "FrontendWindowRectChanged"
QT_MOC_LITERAL(5, 59, 8), // "DockRect"
QT_MOC_LITERAL(6, 68, 15), // "HideModeChanged"
QT_MOC_LITERAL(7, 84, 16), // "HideStateChanged"
QT_MOC_LITERAL(8, 101, 15), // "PositionChanged"
QT_MOC_LITERAL(9, 117, 26), // "WindowSizeEfficientChanged"
QT_MOC_LITERAL(10, 144, 24), // "WindowSizeFashionChanged"
QT_MOC_LITERAL(11, 169, 8), // "IsDocked"
QT_MOC_LITERAL(12, 178, 23), // "QDBusPendingReply<bool>"
QT_MOC_LITERAL(13, 202, 11), // "desktopFile"
QT_MOC_LITERAL(14, 214, 11), // "RequestDock"
QT_MOC_LITERAL(15, 226, 5), // "index"
QT_MOC_LITERAL(16, 232, 13), // "RequestUndock"
QT_MOC_LITERAL(17, 246, 10), // "CallQueued"
QT_MOC_LITERAL(18, 257, 8), // "callName"
QT_MOC_LITERAL(19, 266, 4), // "args"
QT_MOC_LITERAL(20, 271, 21), // "onPendingCallFinished"
QT_MOC_LITERAL(21, 293, 24), // "QDBusPendingCallWatcher*"
QT_MOC_LITERAL(22, 318, 1), // "w"
QT_MOC_LITERAL(23, 320, 17), // "onPropertyChanged"
QT_MOC_LITERAL(24, 338, 8), // "propName"
QT_MOC_LITERAL(25, 347, 11), // "DisplayMode"
QT_MOC_LITERAL(26, 359, 18), // "FrontendWindowRect"
QT_MOC_LITERAL(27, 378, 8), // "HideMode"
QT_MOC_LITERAL(28, 387, 9), // "HideState"
QT_MOC_LITERAL(29, 397, 8), // "Position"
QT_MOC_LITERAL(30, 406, 19), // "WindowSizeEfficient"
QT_MOC_LITERAL(31, 426, 17) // "WindowSizeFashion"

    },
    "__Dock\0DisplayModeChanged\0\0value\0"
    "FrontendWindowRectChanged\0DockRect\0"
    "HideModeChanged\0HideStateChanged\0"
    "PositionChanged\0WindowSizeEfficientChanged\0"
    "WindowSizeFashionChanged\0IsDocked\0"
    "QDBusPendingReply<bool>\0desktopFile\0"
    "RequestDock\0index\0RequestUndock\0"
    "CallQueued\0callName\0args\0onPendingCallFinished\0"
    "QDBusPendingCallWatcher*\0w\0onPropertyChanged\0"
    "propName\0DisplayMode\0FrontendWindowRect\0"
    "HideMode\0HideState\0Position\0"
    "WindowSizeEfficient\0WindowSizeFashion"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data___Dock[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      13,   14, // methods
       7,  124, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       7,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   79,    2, 0x06 /* Public */,
       4,    1,   82,    2, 0x06 /* Public */,
       6,    1,   85,    2, 0x06 /* Public */,
       7,    1,   88,    2, 0x06 /* Public */,
       8,    1,   91,    2, 0x06 /* Public */,
       9,    1,   94,    2, 0x06 /* Public */,
      10,    1,   97,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      11,    1,  100,    2, 0x0a /* Public */,
      14,    2,  103,    2, 0x0a /* Public */,
      16,    1,  108,    2, 0x0a /* Public */,
      17,    2,  111,    2, 0x0a /* Public */,
      20,    1,  116,    2, 0x08 /* Private */,
      23,    2,  119,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::Int,    3,
    QMetaType::Void, 0x80000000 | 5,    3,
    QMetaType::Void, QMetaType::Int,    3,
    QMetaType::Void, QMetaType::Int,    3,
    QMetaType::Void, QMetaType::Int,    3,
    QMetaType::Void, QMetaType::UInt,    3,
    QMetaType::Void, QMetaType::UInt,    3,

 // slots: parameters
    0x80000000 | 12, QMetaType::QString,   13,
    0x80000000 | 12, QMetaType::QString, QMetaType::Int,   13,   15,
    0x80000000 | 12, QMetaType::QString,   13,
    QMetaType::Void, QMetaType::QString, QMetaType::QVariantList,   18,   19,
    QMetaType::Void, 0x80000000 | 21,   22,
    QMetaType::Void, QMetaType::QString, QMetaType::QVariant,   24,    3,

 // properties: name, type, flags
      25, QMetaType::Int, 0x00495103,
      26, 0x80000000 | 5, 0x00495009,
      27, QMetaType::Int, 0x00495103,
      28, QMetaType::Int, 0x00495001,
      29, QMetaType::Int, 0x00495103,
      30, QMetaType::UInt, 0x00495103,
      31, QMetaType::UInt, 0x00495103,

 // properties: notify_signal_id
       0,
       1,
       2,
       3,
       4,
       5,
       6,

       0        // eod
};

void __Dock::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<__Dock *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->DisplayModeChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 1: _t->FrontendWindowRectChanged((*reinterpret_cast< DockRect(*)>(_a[1]))); break;
        case 2: _t->HideModeChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 3: _t->HideStateChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 4: _t->PositionChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 5: _t->WindowSizeEfficientChanged((*reinterpret_cast< uint(*)>(_a[1]))); break;
        case 6: _t->WindowSizeFashionChanged((*reinterpret_cast< uint(*)>(_a[1]))); break;
        case 7: { QDBusPendingReply<bool> _r = _t->IsDocked((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<bool>*>(_a[0]) = std::move(_r); }  break;
        case 8: { QDBusPendingReply<bool> _r = _t->RequestDock((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<bool>*>(_a[0]) = std::move(_r); }  break;
        case 9: { QDBusPendingReply<bool> _r = _t->RequestUndock((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<bool>*>(_a[0]) = std::move(_r); }  break;
        case 10: _t->CallQueued((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QList<QVariant>(*)>(_a[2]))); break;
        case 11: _t->onPendingCallFinished((*reinterpret_cast< QDBusPendingCallWatcher*(*)>(_a[1]))); break;
        case 12: _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 11:
            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 (__Dock::*)(int ) const;
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&__Dock::DisplayModeChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (__Dock::*)(DockRect ) const;
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&__Dock::FrontendWindowRectChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (__Dock::*)(int ) const;
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&__Dock::HideModeChanged)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (__Dock::*)(int ) const;
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&__Dock::HideStateChanged)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (__Dock::*)(int ) const;
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&__Dock::PositionChanged)) {
                *result = 4;
                return;
            }
        }
        {
            using _t = void (__Dock::*)(uint ) const;
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&__Dock::WindowSizeEfficientChanged)) {
                *result = 5;
                return;
            }
        }
        {
            using _t = void (__Dock::*)(uint ) const;
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&__Dock::WindowSizeFashionChanged)) {
                *result = 6;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<__Dock *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< int*>(_v) = _t->displayMode(); break;
        case 1: *reinterpret_cast< DockRect*>(_v) = _t->frontendWindowRect(); break;
        case 2: *reinterpret_cast< int*>(_v) = _t->hideMode(); break;
        case 3: *reinterpret_cast< int*>(_v) = _t->hideState(); break;
        case 4: *reinterpret_cast< int*>(_v) = _t->position(); break;
        case 5: *reinterpret_cast< uint*>(_v) = _t->windowSizeEfficient(); break;
        case 6: *reinterpret_cast< uint*>(_v) = _t->windowSizeFashion(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<__Dock *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setDisplayMode(*reinterpret_cast< int*>(_v)); break;
        case 2: _t->setHideMode(*reinterpret_cast< int*>(_v)); break;
        case 4: _t->setPosition(*reinterpret_cast< int*>(_v)); break;
        case 5: _t->setWindowSizeEfficient(*reinterpret_cast< uint*>(_v)); break;
        case 6: _t->setWindowSizeFashion(*reinterpret_cast< uint*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject __Dock::staticMetaObject = { {
    QMetaObject::SuperData::link<Dtk::Core::DDBusExtendedAbstractInterface::staticMetaObject>(),
    qt_meta_stringdata___Dock.data,
    qt_meta_data___Dock,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *__Dock::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata___Dock.stringdata0))
        return static_cast<void*>(this);
    return Dtk::Core::DDBusExtendedAbstractInterface::qt_metacast(_clname);
}

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

// SIGNAL 0
void __Dock::DisplayModeChanged(int _t1)const
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(const_cast< __Dock *>(this), &staticMetaObject, 0, _a);
}

// SIGNAL 1
void __Dock::FrontendWindowRectChanged(DockRect _t1)const
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(const_cast< __Dock *>(this), &staticMetaObject, 1, _a);
}

// SIGNAL 2
void __Dock::HideModeChanged(int _t1)const
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(const_cast< __Dock *>(this), &staticMetaObject, 2, _a);
}

// SIGNAL 3
void __Dock::HideStateChanged(int _t1)const
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(const_cast< __Dock *>(this), &staticMetaObject, 3, _a);
}

// SIGNAL 4
void __Dock::PositionChanged(int _t1)const
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(const_cast< __Dock *>(this), &staticMetaObject, 4, _a);
}

// SIGNAL 5
void __Dock::WindowSizeEfficientChanged(uint _t1)const
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(const_cast< __Dock *>(this), &staticMetaObject, 5, _a);
}

// SIGNAL 6
void __Dock::WindowSizeFashionChanged(uint _t1)const
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(const_cast< __Dock *>(this), &staticMetaObject, 6, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
