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

#include "../../../../ksnip/src/gui/MainWindow.h"
#include <QtGui/qtextcursor.h>
#include <QtGui/qscreen.h>
#include <QtNetwork/QSslError>
#include <QtCore/qmetatype.h>

#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.10.2. 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",
        "imageLoaded",
        "",
        "processCapture",
        "CaptureDto",
        "capture",
        "quit",
        "captureChanged",
        "captureEmpty",
        "copyCaptureToClipboard",
        "upload",
        "uploadFinished",
        "UploadResult",
        "result",
        "copyAsDataUri",
        "printClicked",
        "printPreviewClicked",
        "showOpenImageDialog",
        "pasteFromClipboard",
        "pasteEmbeddedFromClipboard",
        "setupImageAnnotator",
        "captureDelayChanged",
        "delay",
        "addWatermark",
        "showSettingsDialog",
        "showAboutDialog",
        "showScaleDialog",
        "showRotateDialog",
        "setPosition",
        "handleGuiStartup",
        "saveClicked",
        "saveAsClicked",
        "saveAllClicked",
        "updateApplicationTitle",
        "capturePostProcessing",
        "loadImageFromFile",
        "path",
        "loadImageFromPixmap",
        "QPixmap",
        "pixmap",
        "sessionFinished",
        "captureCanceled",
        "showPinWindow",
        "hideMainWindowIfRequired",
        "toggleDocks",
        "actionTriggered",
        "Action",
        "action",
        "showAfterAction",
        "minimized",
        "showOcrWindow"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'imageLoaded'
        QtMocHelpers::SignalData<void() const>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'processCapture'
        QtMocHelpers::SlotData<void(const CaptureDto &)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Slot 'quit'
        QtMocHelpers::SlotData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'captureChanged'
        QtMocHelpers::SlotData<void()>(7, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'captureEmpty'
        QtMocHelpers::SlotData<void()>(8, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'copyCaptureToClipboard'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'upload'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'uploadFinished'
        QtMocHelpers::SlotData<void(const UploadResult &)>(11, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Slot 'copyAsDataUri'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'printClicked'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'printPreviewClicked'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'showOpenImageDialog'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'pasteFromClipboard'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'pasteEmbeddedFromClipboard'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'setupImageAnnotator'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'captureDelayChanged'
        QtMocHelpers::SlotData<void(int)>(21, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 22 },
        }}),
        // Slot 'addWatermark'
        QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'showSettingsDialog'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'showAboutDialog'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'showScaleDialog'
        QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'showRotateDialog'
        QtMocHelpers::SlotData<void()>(27, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'setPosition'
        QtMocHelpers::SlotData<void()>(28, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'handleGuiStartup'
        QtMocHelpers::SlotData<void()>(29, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'saveClicked'
        QtMocHelpers::SlotData<void()>(30, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'saveAsClicked'
        QtMocHelpers::SlotData<void()>(31, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'saveAllClicked'
        QtMocHelpers::SlotData<void()>(32, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'updateApplicationTitle'
        QtMocHelpers::SlotData<void()>(33, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'capturePostProcessing'
        QtMocHelpers::SlotData<void()>(34, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'loadImageFromFile'
        QtMocHelpers::SlotData<void(const QString &)>(35, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 36 },
        }}),
        // Slot 'loadImageFromPixmap'
        QtMocHelpers::SlotData<void(const QPixmap &)>(37, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 38, 39 },
        }}),
        // Slot 'sessionFinished'
        QtMocHelpers::SlotData<void()>(40, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'captureCanceled'
        QtMocHelpers::SlotData<void()>(41, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'showPinWindow'
        QtMocHelpers::SlotData<void()>(42, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'hideMainWindowIfRequired'
        QtMocHelpers::SlotData<void()>(43, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'toggleDocks'
        QtMocHelpers::SlotData<void()>(44, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'actionTriggered'
        QtMocHelpers::SlotData<void(const Action &)>(45, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 46, 47 },
        }}),
        // Slot 'showAfterAction'
        QtMocHelpers::SlotData<void(bool)>(48, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 49 },
        }}),
        // Slot 'showOcrWindow'
        QtMocHelpers::SlotData<void()>(50, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    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: _t->imageLoaded(); break;
        case 1: _t->processCapture((*reinterpret_cast<std::add_pointer_t<CaptureDto>>(_a[1]))); break;
        case 2: _t->quit(); break;
        case 3: _t->captureChanged(); break;
        case 4: _t->captureEmpty(); break;
        case 5: _t->copyCaptureToClipboard(); break;
        case 6: _t->upload(); break;
        case 7: _t->uploadFinished((*reinterpret_cast<std::add_pointer_t<UploadResult>>(_a[1]))); break;
        case 8: _t->copyAsDataUri(); break;
        case 9: _t->printClicked(); break;
        case 10: _t->printPreviewClicked(); break;
        case 11: _t->showOpenImageDialog(); break;
        case 12: _t->pasteFromClipboard(); break;
        case 13: _t->pasteEmbeddedFromClipboard(); break;
        case 14: _t->setupImageAnnotator(); break;
        case 15: _t->captureDelayChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 16: _t->addWatermark(); break;
        case 17: _t->showSettingsDialog(); break;
        case 18: _t->showAboutDialog(); break;
        case 19: _t->showScaleDialog(); break;
        case 20: _t->showRotateDialog(); break;
        case 21: _t->setPosition(); break;
        case 22: _t->handleGuiStartup(); break;
        case 23: _t->saveClicked(); break;
        case 24: _t->saveAsClicked(); break;
        case 25: _t->saveAllClicked(); break;
        case 26: _t->updateApplicationTitle(); break;
        case 27: _t->capturePostProcessing(); break;
        case 28: _t->loadImageFromFile((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 29: _t->loadImageFromPixmap((*reinterpret_cast<std::add_pointer_t<QPixmap>>(_a[1]))); break;
        case 30: _t->sessionFinished(); break;
        case 31: _t->captureCanceled(); break;
        case 32: _t->showPinWindow(); break;
        case 33: _t->hideMainWindowIfRequired(); break;
        case 34: _t->toggleDocks(); break;
        case 35: _t->actionTriggered((*reinterpret_cast<std::add_pointer_t<Action>>(_a[1]))); break;
        case 36: _t->showAfterAction((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 37: _t->showOcrWindow(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (MainWindow::*)() const>(_a, &MainWindow::imageLoaded, 0))
            return;
    }
}

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);
    if (!strcmp(_clname, "ICaptureChangeListener"))
        return static_cast< ICaptureChangeListener*>(this);
    if (!strcmp(_clname, "IImageProcessor"))
        return static_cast< IImageProcessor*>(this);
    if (!strcmp(_clname, "IResizableWindow"))
        return static_cast< IResizableWindow*>(this);
    if (!strcmp(_clname, "IDragContentProvider"))
        return static_cast< IDragContentProvider*>(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 < 38)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 38;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 38)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 38;
    }
    return _id;
}

// SIGNAL 0
void MainWindow::imageLoaded()const
{
    QMetaObject::activate(const_cast< MainWindow *>(this), &staticMetaObject, 0, nullptr);
}
QT_WARNING_POP
