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

#include "../../android-file-transfer-linux-4.5/qt/mainwindow.h"
#include <QtCore/qmetatype.h>
#include <QtCore/QList>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'mainwindow.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.9.0. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {
struct qt_meta_tag_ZN10MainWindowE_t {};
} // unnamed namespace

template <> constexpr inline auto MainWindow::qt_create_metaobjectdata<qt_meta_tag_ZN10MainWindowE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "MainWindow",
        "reconnectToDevice",
        "",
        "back",
        "down",
        "onActivated",
        "QModelIndex",
        "index",
        "activate",
        "updateActionsState",
        "showContextMenu",
        "pos",
        "createDirectory",
        "refresh",
        "uploadFiles",
        "uploadDirectories",
        "uploadAlbum",
        "path",
        "importMusic",
        "importMusicFiles",
        "downloadFiles",
        "renameFile",
        "deleteFiles",
        "QList<mtp::ObjectId>",
        "objects",
        "files",
        "mtp::ObjectFormat",
        "format",
        "onFilesDropped",
        "onStorageChanged",
        "idx",
        "validateClipboard",
        "pasteFromClipboard",
        "confirmOverwrite",
        "file",
        "showThumbnails",
        "enable",
        "attachCover",
        "removeCover",
        "uploadFirmware",
        "rebootDevice",
        "replyReadyRead",
        "replyFinished",
        "QNetworkReply*"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'reconnectToDevice'
        QtMocHelpers::SlotData<bool()>(1, 2, QMC::AccessPrivate, QMetaType::Bool),
        // Slot 'back'
        QtMocHelpers::SlotData<void()>(3, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'down'
        QtMocHelpers::SlotData<void()>(4, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onActivated'
        QtMocHelpers::SlotData<void(const QModelIndex &)>(5, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Slot 'activate'
        QtMocHelpers::SlotData<void(const QModelIndex &)>(8, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Slot 'updateActionsState'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'showContextMenu'
        QtMocHelpers::SlotData<void(const QPoint &)>(10, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QPoint, 11 },
        }}),
        // Slot 'createDirectory'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'refresh'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'uploadFiles'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'uploadDirectories'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'uploadAlbum'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'uploadAlbum'
        QtMocHelpers::SlotData<void(QString)>(16, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 17 },
        }}),
        // Slot 'importMusic'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'importMusicFiles'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'importMusic'
        QtMocHelpers::SlotData<void(QString)>(18, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 17 },
        }}),
        // Slot 'downloadFiles'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'renameFile'
        QtMocHelpers::SlotData<void()>(21, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'deleteFiles'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'downloadFiles'
        QtMocHelpers::SlotData<void(const QVector<mtp::ObjectId> &)>(20, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 23, 24 },
        }}),
        // Slot 'uploadFiles'
        QtMocHelpers::SlotData<void(const QStringList &, mtp::ObjectFormat)>(14, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QStringList, 25 }, { 0x80000000 | 26, 27 },
        }}),
        // Slot 'uploadFiles'
        QtMocHelpers::SlotData<void(const QStringList &)>(14, 2, QMC::AccessPrivate | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::QStringList, 25 },
        }}),
        // Slot 'onFilesDropped'
        QtMocHelpers::SlotData<void(const QStringList &)>(28, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QStringList, 25 },
        }}),
        // Slot 'onStorageChanged'
        QtMocHelpers::SlotData<void(int)>(29, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 30 },
        }}),
        // Slot 'validateClipboard'
        QtMocHelpers::SlotData<void()>(31, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'pasteFromClipboard'
        QtMocHelpers::SlotData<void()>(32, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'confirmOverwrite'
        QtMocHelpers::SlotData<bool(const QString &)>(33, 2, QMC::AccessPrivate, QMetaType::Bool, {{
            { QMetaType::QString, 34 },
        }}),
        // Slot 'showThumbnails'
        QtMocHelpers::SlotData<void(bool)>(35, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 36 },
        }}),
        // Slot 'attachCover'
        QtMocHelpers::SlotData<void()>(37, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'removeCover'
        QtMocHelpers::SlotData<void()>(38, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'uploadFirmware'
        QtMocHelpers::SlotData<void()>(39, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'rebootDevice'
        QtMocHelpers::SlotData<void()>(40, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'downloadFiles'
        QtMocHelpers::SlotData<void(const QString &, const QVector<mtp::ObjectId> &)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 17 }, { 0x80000000 | 23, 24 },
        }}),
        // Slot 'replyReadyRead'
        QtMocHelpers::SlotData<void()>(41, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'replyFinished'
        QtMocHelpers::SlotData<void(QNetworkReply *)>(42, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 43, 2 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<MainWindow, qt_meta_tag_ZN10MainWindowE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject MainWindow::staticMetaObject = { {
    QMetaObject::SuperData::link<QMainWindow::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10MainWindowE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10MainWindowE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10MainWindowE_t>.metaTypes,
    nullptr
} };

void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MainWindow *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { bool _r = _t->reconnectToDevice();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 1: _t->back(); break;
        case 2: _t->down(); break;
        case 3: _t->onActivated((*reinterpret_cast< std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        case 4: _t->activate((*reinterpret_cast< std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        case 5: _t->updateActionsState(); break;
        case 6: _t->showContextMenu((*reinterpret_cast< std::add_pointer_t<QPoint>>(_a[1]))); break;
        case 7: _t->createDirectory(); break;
        case 8: _t->refresh(); break;
        case 9: _t->uploadFiles(); break;
        case 10: _t->uploadDirectories(); break;
        case 11: _t->uploadAlbum(); break;
        case 12: _t->uploadAlbum((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
        case 13: _t->importMusic(); break;
        case 14: _t->importMusicFiles(); break;
        case 15: _t->importMusic((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
        case 16: _t->downloadFiles(); break;
        case 17: _t->renameFile(); break;
        case 18: _t->deleteFiles(); break;
        case 19: _t->downloadFiles((*reinterpret_cast< std::add_pointer_t<QList<mtp::ObjectId>>>(_a[1]))); break;
        case 20: _t->uploadFiles((*reinterpret_cast< std::add_pointer_t<QStringList>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<mtp::ObjectFormat>>(_a[2]))); break;
        case 21: _t->uploadFiles((*reinterpret_cast< std::add_pointer_t<QStringList>>(_a[1]))); break;
        case 22: _t->onFilesDropped((*reinterpret_cast< std::add_pointer_t<QStringList>>(_a[1]))); break;
        case 23: _t->onStorageChanged((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
        case 24: _t->validateClipboard(); break;
        case 25: _t->pasteFromClipboard(); break;
        case 26: { bool _r = _t->confirmOverwrite((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 27: _t->showThumbnails((*reinterpret_cast< std::add_pointer_t<bool>>(_a[1]))); break;
        case 28: _t->attachCover(); break;
        case 29: _t->removeCover(); break;
        case 30: _t->uploadFirmware(); break;
        case 31: _t->rebootDevice(); break;
        case 32: _t->downloadFiles((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<QList<mtp::ObjectId>>>(_a[2]))); break;
        case 33: _t->replyReadyRead(); break;
        case 34: _t->replyFinished((*reinterpret_cast< std::add_pointer_t<QNetworkReply*>>(_a[1]))); break;
        default: ;
        }
    }
}

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

void *MainWindow::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10MainWindowE_t>.strings))
        return static_cast<void*>(this);
    return QMainWindow::qt_metacast(_clname);
}

int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QMainWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 35)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 35;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 35)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 35;
    }
    return _id;
}
QT_WARNING_POP
