/****************************************************************************
** Meta object code from reading C++ file 'controlwidget.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/widgets/controlwidget.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'controlwidget.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_FloatingButton_t {
    QByteArrayData data[5];
    char stringdata0[64];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_FloatingButton_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_FloatingButton_t qt_meta_stringdata_FloatingButton = {
    {
QT_MOC_LITERAL(0, 0, 14), // "FloatingButton"
QT_MOC_LITERAL(1, 15, 15), // "requestShowMenu"
QT_MOC_LITERAL(2, 31, 0), // ""
QT_MOC_LITERAL(3, 32, 15), // "requestShowTips"
QT_MOC_LITERAL(4, 48, 15) // "requestHideTips"

    },
    "FloatingButton\0requestShowMenu\0\0"
    "requestShowTips\0requestHideTips"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_FloatingButton[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,   29,    2, 0x06 /* Public */,
       3,    0,   30,    2, 0x06 /* Public */,
       4,    0,   31,    2, 0x06 /* Public */,

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

       0        // eod
};

void FloatingButton::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<FloatingButton *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->requestShowMenu(); break;
        case 1: _t->requestShowTips(); break;
        case 2: _t->requestHideTips(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (FloatingButton::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&FloatingButton::requestShowMenu)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (FloatingButton::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&FloatingButton::requestShowTips)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (FloatingButton::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&FloatingButton::requestHideTips)) {
                *result = 2;
                return;
            }
        }
    }
    (void)_a;
}

QT_INIT_METAOBJECT const QMetaObject FloatingButton::staticMetaObject = { {
    QMetaObject::SuperData::link<DFloatingButton::staticMetaObject>(),
    qt_meta_stringdata_FloatingButton.data,
    qt_meta_data_FloatingButton,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int FloatingButton::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = DFloatingButton::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 3)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 3;
    }
    return _id;
}

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

// SIGNAL 1
void FloatingButton::requestShowTips()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void FloatingButton::requestHideTips()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
struct qt_meta_stringdata_ControlWidget_t {
    QByteArrayData data[29];
    char stringdata0[420];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_ControlWidget_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_ControlWidget_t qt_meta_stringdata_ControlWidget = {
    {
QT_MOC_LITERAL(0, 0, 13), // "ControlWidget"
QT_MOC_LITERAL(1, 14, 17), // "requestSwitchUser"
QT_MOC_LITERAL(2, 32, 0), // ""
QT_MOC_LITERAL(3, 33, 21), // "std::shared_ptr<User>"
QT_MOC_LITERAL(4, 55, 4), // "user"
QT_MOC_LITERAL(5, 60, 15), // "requestShutdown"
QT_MOC_LITERAL(6, 76, 20), // "requestSwitchSession"
QT_MOC_LITERAL(7, 97, 7), // "session"
QT_MOC_LITERAL(8, 105, 18), // "requestTogglePopup"
QT_MOC_LITERAL(9, 124, 9), // "globalPos"
QT_MOC_LITERAL(10, 134, 8), // "QWidget*"
QT_MOC_LITERAL(11, 143, 5), // "popup"
QT_MOC_LITERAL(12, 149, 16), // "requestHidePopup"
QT_MOC_LITERAL(13, 166, 9), // "addModule"
QT_MOC_LITERAL(14, 176, 33), // "dss::module::BaseModuleInterf..."
QT_MOC_LITERAL(15, 210, 6), // "module"
QT_MOC_LITERAL(16, 217, 19), // "setUserSwitchEnable"
QT_MOC_LITERAL(17, 237, 7), // "visible"
QT_MOC_LITERAL(18, 245, 22), // "setSessionSwitchEnable"
QT_MOC_LITERAL(19, 268, 15), // "chooseToSession"
QT_MOC_LITERAL(20, 284, 18), // "setKBLayoutVisible"
QT_MOC_LITERAL(21, 303, 15), // "setKeyboardType"
QT_MOC_LITERAL(22, 319, 3), // "str"
QT_MOC_LITERAL(23, 323, 15), // "setKeyboardList"
QT_MOC_LITERAL(24, 339, 13), // "onItemClicked"
QT_MOC_LITERAL(25, 353, 16), // "showSessionPopup"
QT_MOC_LITERAL(26, 370, 23), // "showUserListPopupWidget"
QT_MOC_LITERAL(27, 394, 12), // "showInfoTips"
QT_MOC_LITERAL(28, 407, 12) // "hideInfoTips"

    },
    "ControlWidget\0requestSwitchUser\0\0"
    "std::shared_ptr<User>\0user\0requestShutdown\0"
    "requestSwitchSession\0session\0"
    "requestTogglePopup\0globalPos\0QWidget*\0"
    "popup\0requestHidePopup\0addModule\0"
    "dss::module::BaseModuleInterface*\0"
    "module\0setUserSwitchEnable\0visible\0"
    "setSessionSwitchEnable\0chooseToSession\0"
    "setKBLayoutVisible\0setKeyboardType\0"
    "str\0setKeyboardList\0onItemClicked\0"
    "showSessionPopup\0showUserListPopupWidget\0"
    "showInfoTips\0hideInfoTips"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_ControlWidget[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      17,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       5,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   99,    2, 0x06 /* Public */,
       5,    0,  102,    2, 0x06 /* Public */,
       6,    1,  103,    2, 0x06 /* Public */,
       8,    2,  106,    2, 0x06 /* Public */,
      12,    0,  111,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      13,    1,  112,    2, 0x0a /* Public */,
      16,    1,  115,    2, 0x0a /* Public */,
      18,    1,  118,    2, 0x0a /* Public */,
      19,    1,  121,    2, 0x0a /* Public */,
      20,    0,  124,    2, 0x0a /* Public */,
      21,    1,  125,    2, 0x0a /* Public */,
      23,    1,  128,    2, 0x0a /* Public */,
      24,    1,  131,    2, 0x0a /* Public */,
      25,    0,  134,    2, 0x0a /* Public */,
      26,    0,  135,    2, 0x0a /* Public */,
      27,    0,  136,    2, 0x08 /* Private */,
      28,    0,  137,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,    7,
    QMetaType::Void, QMetaType::QPoint, 0x80000000 | 10,    9,   11,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 14,   15,
    QMetaType::Void, QMetaType::Bool,   17,
    QMetaType::Void, QMetaType::Bool,   17,
    QMetaType::Void, QMetaType::QString,    7,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,   22,
    QMetaType::Void, QMetaType::QStringList,   22,
    QMetaType::Void, QMetaType::QString,   22,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void ControlWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<ControlWidget *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->requestSwitchUser((*reinterpret_cast< std::shared_ptr<User>(*)>(_a[1]))); break;
        case 1: _t->requestShutdown(); break;
        case 2: _t->requestSwitchSession((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 3: _t->requestTogglePopup((*reinterpret_cast< QPoint(*)>(_a[1])),(*reinterpret_cast< QWidget*(*)>(_a[2]))); break;
        case 4: _t->requestHidePopup(); break;
        case 5: _t->addModule((*reinterpret_cast< dss::module::BaseModuleInterface*(*)>(_a[1]))); break;
        case 6: _t->setUserSwitchEnable((*reinterpret_cast< const bool(*)>(_a[1]))); break;
        case 7: _t->setSessionSwitchEnable((*reinterpret_cast< const bool(*)>(_a[1]))); break;
        case 8: _t->chooseToSession((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 9: _t->setKBLayoutVisible(); break;
        case 10: _t->setKeyboardType((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 11: _t->setKeyboardList((*reinterpret_cast< const QStringList(*)>(_a[1]))); break;
        case 12: _t->onItemClicked((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 13: _t->showSessionPopup(); break;
        case 14: _t->showUserListPopupWidget(); break;
        case 15: _t->showInfoTips(); break;
        case 16: _t->hideInfoTips(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QWidget* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (ControlWidget::*)(std::shared_ptr<User> );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ControlWidget::requestSwitchUser)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (ControlWidget::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ControlWidget::requestShutdown)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (ControlWidget::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ControlWidget::requestSwitchSession)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (ControlWidget::*)(QPoint , QWidget * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ControlWidget::requestTogglePopup)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (ControlWidget::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ControlWidget::requestHidePopup)) {
                *result = 4;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject ControlWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_meta_stringdata_ControlWidget.data,
    qt_meta_data_ControlWidget,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int ControlWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 17)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 17;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 17)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 17;
    }
    return _id;
}

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

// SIGNAL 1
void ControlWidget::requestShutdown()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

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

// SIGNAL 3
void ControlWidget::requestTogglePopup(QPoint _t1, QWidget * _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void ControlWidget::requestHidePopup()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
