/****************************************************************************
** Meta object code from reading C++ file 'userframelist.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/session-widgets/userframelist.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'userframelist.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_UserFrameList_t {
    QByteArrayData data[20];
    char stringdata0[237];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_UserFrameList_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_UserFrameList_t qt_meta_stringdata_UserFrameList = {
    {
QT_MOC_LITERAL(0, 0, 13), // "UserFrameList"
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, 7), // "clicked"
QT_MOC_LITERAL(6, 68, 16), // "gridBoundChanged"
QT_MOC_LITERAL(7, 85, 14), // "QPair<int,int>"
QT_MOC_LITERAL(8, 100, 5), // "bound"
QT_MOC_LITERAL(9, 106, 13), // "onUserClicked"
QT_MOC_LITERAL(10, 120, 18), // "onOtherPageChanged"
QT_MOC_LITERAL(11, 139, 5), // "value"
QT_MOC_LITERAL(12, 145, 20), // "onMaximumSizeChanged"
QT_MOC_LITERAL(13, 166, 4), // "maxw"
QT_MOC_LITERAL(14, 171, 4), // "maxh"
QT_MOC_LITERAL(15, 176, 20), // "onCurrentUserChanged"
QT_MOC_LITERAL(16, 197, 11), // "currentUser"
QT_MOC_LITERAL(17, 209, 9), // "gridBound"
QT_MOC_LITERAL(18, 219, 8), // "rowBound"
QT_MOC_LITERAL(19, 228, 8) // "colBound"

    },
    "UserFrameList\0requestSwitchUser\0\0"
    "std::shared_ptr<User>\0user\0clicked\0"
    "gridBoundChanged\0QPair<int,int>\0bound\0"
    "onUserClicked\0onOtherPageChanged\0value\0"
    "onMaximumSizeChanged\0maxw\0maxh\0"
    "onCurrentUserChanged\0currentUser\0"
    "gridBound\0rowBound\0colBound"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_UserFrameList[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   49,    2, 0x06 /* Public */,
       5,    0,   52,    2, 0x06 /* Public */,
       6,    1,   53,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       9,    0,   56,    2, 0x08 /* Private */,
      10,    1,   57,    2, 0x08 /* Private */,
      12,    2,   60,    2, 0x08 /* Private */,
      15,    1,   65,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 7,    8,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::QVariant,   11,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,   13,   14,
    QMetaType::Void, 0x80000000 | 3,   16,

 // properties: name, type, flags
      17, 0x80000000 | 7, 0x0049510b,
      18, QMetaType::Int, 0x00095001,
      19, QMetaType::Int, 0x00095001,

 // properties: notify_signal_id
       2,
       0,
       0,

       0        // eod
};

void UserFrameList::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<UserFrameList *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->requestSwitchUser((*reinterpret_cast< std::shared_ptr<User>(*)>(_a[1]))); break;
        case 1: _t->clicked(); break;
        case 2: _t->gridBoundChanged((*reinterpret_cast< QPair<int,int>(*)>(_a[1]))); break;
        case 3: _t->onUserClicked(); break;
        case 4: _t->onOtherPageChanged((*reinterpret_cast< const QVariant(*)>(_a[1]))); break;
        case 5: _t->onMaximumSizeChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 6: _t->onCurrentUserChanged((*reinterpret_cast< std::shared_ptr<User>(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (UserFrameList::*)(std::shared_ptr<User> );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&UserFrameList::requestSwitchUser)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (UserFrameList::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&UserFrameList::clicked)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (UserFrameList::*)(QPair<int,int> );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&UserFrameList::gridBoundChanged)) {
                *result = 2;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<UserFrameList *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QPair<int,int>*>(_v) = _t->gridBound(); break;
        case 1: *reinterpret_cast< int*>(_v) = _t->rowBound(); break;
        case 2: *reinterpret_cast< int*>(_v) = _t->colBound(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<UserFrameList *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setGridBound(*reinterpret_cast< QPair<int,int>*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject UserFrameList::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_meta_stringdata_UserFrameList.data,
    qt_meta_data_UserFrameList,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int UserFrameList::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 < 7)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 7)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 7;
    }
#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 -= 3;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 3;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void UserFrameList::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 UserFrameList::clicked()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

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