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

#include <memory>
#include "../../application.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'application.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.19. 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_Cli__Application_t {
    QByteArrayData data[20];
    char stringdata0[285];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Cli__Application_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Cli__Application_t qt_meta_stringdata_Cli__Application = {
    {
QT_MOC_LITERAL(0, 0, 16), // "Cli::Application"
QT_MOC_LITERAL(1, 17, 21), // "invalidateDirsAndDevs"
QT_MOC_LITERAL(2, 39, 0), // ""
QT_MOC_LITERAL(3, 40, 19), // "handleStatusChanged"
QT_MOC_LITERAL(4, 60, 21), // "Data::SyncthingStatus"
QT_MOC_LITERAL(5, 82, 9), // "newStatus"
QT_MOC_LITERAL(6, 92, 14), // "handleResponse"
QT_MOC_LITERAL(7, 107, 11), // "handleError"
QT_MOC_LITERAL(8, 119, 7), // "message"
QT_MOC_LITERAL(9, 127, 28), // "Data::SyncthingErrorCategory"
QT_MOC_LITERAL(10, 156, 8), // "category"
QT_MOC_LITERAL(11, 165, 12), // "networkError"
QT_MOC_LITERAL(12, 178, 15), // "QNetworkRequest"
QT_MOC_LITERAL(13, 194, 7), // "request"
QT_MOC_LITERAL(14, 202, 8), // "response"
QT_MOC_LITERAL(15, 211, 23), // "findRelevantDirsAndDevs"
QT_MOC_LITERAL(16, 235, 13), // "OperationType"
QT_MOC_LITERAL(17, 249, 13), // "operationType"
QT_MOC_LITERAL(18, 263, 7), // "findPwd"
QT_MOC_LITERAL(19, 271, 13) // "waitForConfig"

    },
    "Cli::Application\0invalidateDirsAndDevs\0"
    "\0handleStatusChanged\0Data::SyncthingStatus\0"
    "newStatus\0handleResponse\0handleError\0"
    "message\0Data::SyncthingErrorCategory\0"
    "category\0networkError\0QNetworkRequest\0"
    "request\0response\0findRelevantDirsAndDevs\0"
    "OperationType\0operationType\0findPwd\0"
    "waitForConfig"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Cli__Application[] = {

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

 // slots: name, argc, parameters, tag, flags
       1,    0,   49,    2, 0x08 /* Private */,
       3,    1,   50,    2, 0x08 /* Private */,
       6,    0,   53,    2, 0x08 /* Private */,
       7,    5,   54,    2, 0x08 /* Private */,
      15,    1,   65,    2, 0x08 /* Private */,
      18,    1,   68,    2, 0x08 /* Private */,
      18,    0,   71,    2, 0x28 /* Private | MethodCloned */,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 4,    5,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 9, QMetaType::Int, 0x80000000 | 12, QMetaType::QByteArray,    8,   10,   11,   13,   14,
    QMetaType::Void, 0x80000000 | 16,   17,
    QMetaType::Bool, QMetaType::Bool,   19,
    QMetaType::Bool,

       0        // eod
};

void Cli::Application::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<Application *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->invalidateDirsAndDevs(); break;
        case 1: _t->handleStatusChanged((*reinterpret_cast< Data::SyncthingStatus(*)>(_a[1]))); break;
        case 2: _t->handleResponse(); break;
        case 3: _t->handleError((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< Data::SyncthingErrorCategory(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< const QNetworkRequest(*)>(_a[4])),(*reinterpret_cast< const QByteArray(*)>(_a[5]))); break;
        case 4: _t->findRelevantDirsAndDevs((*reinterpret_cast< OperationType(*)>(_a[1]))); break;
        case 5: { bool _r = _t->findPwd((*reinterpret_cast< bool(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 6: { bool _r = _t->findPwd();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  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 3:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QNetworkRequest >(); break;
            }
            break;
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject Cli::Application::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_Cli__Application.data,
    qt_meta_data_Cli__Application,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *Cli::Application::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Cli__Application.stringdata0))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int Cli::Application::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::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)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    }
    return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
