/****************************************************************************
** Meta object code from reading C++ file 'globalcontrol.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 "../../src/globalcontrol.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'globalcontrol.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_GlobalControl_t {
    QByteArrayData data[35];
    char stringdata0[527];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_GlobalControl_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_GlobalControl_t qt_meta_stringdata_GlobalControl = {
    {
QT_MOC_LITERAL(0, 0, 13), // "GlobalControl"
QT_MOC_LITERAL(1, 14, 18), // "globalModelChanged"
QT_MOC_LITERAL(2, 33, 0), // ""
QT_MOC_LITERAL(3, 34, 20), // "currentSourceChanged"
QT_MOC_LITERAL(4, 55, 19), // "currentIndexChanged"
QT_MOC_LITERAL(5, 75, 24), // "currentFrameIndexChanged"
QT_MOC_LITERAL(6, 100, 17), // "imageCountChanged"
QT_MOC_LITERAL(7, 118, 22), // "currentRotationChanged"
QT_MOC_LITERAL(8, 141, 23), // "requestRotateCacheImage"
QT_MOC_LITERAL(9, 165, 23), // "hasPreviousImageChanged"
QT_MOC_LITERAL(10, 189, 19), // "hasNextImageChanged"
QT_MOC_LITERAL(11, 209, 18), // "requestRotateImage"
QT_MOC_LITERAL(12, 228, 9), // "localPath"
QT_MOC_LITERAL(13, 238, 8), // "rotation"
QT_MOC_LITERAL(14, 247, 13), // "setImageFiles"
QT_MOC_LITERAL(15, 261, 10), // "imageFiles"
QT_MOC_LITERAL(16, 272, 8), // "openFile"
QT_MOC_LITERAL(17, 281, 11), // "removeImage"
QT_MOC_LITERAL(18, 293, 11), // "renameImage"
QT_MOC_LITERAL(19, 305, 7), // "oldName"
QT_MOC_LITERAL(20, 313, 7), // "newName"
QT_MOC_LITERAL(21, 321, 28), // "submitImageChangeImmediately"
QT_MOC_LITERAL(22, 350, 13), // "previousImage"
QT_MOC_LITERAL(23, 364, 9), // "nextImage"
QT_MOC_LITERAL(24, 374, 10), // "firstImage"
QT_MOC_LITERAL(25, 385, 9), // "lastImage"
QT_MOC_LITERAL(26, 395, 11), // "globalModel"
QT_MOC_LITERAL(27, 407, 17), // "ImageSourceModel*"
QT_MOC_LITERAL(28, 425, 13), // "currentSource"
QT_MOC_LITERAL(29, 439, 12), // "currentIndex"
QT_MOC_LITERAL(30, 452, 17), // "currentFrameIndex"
QT_MOC_LITERAL(31, 470, 10), // "imageCount"
QT_MOC_LITERAL(32, 481, 15), // "currentRotation"
QT_MOC_LITERAL(33, 497, 16), // "hasPreviousImage"
QT_MOC_LITERAL(34, 514, 12) // "hasNextImage"

    },
    "GlobalControl\0globalModelChanged\0\0"
    "currentSourceChanged\0currentIndexChanged\0"
    "currentFrameIndexChanged\0imageCountChanged\0"
    "currentRotationChanged\0requestRotateCacheImage\0"
    "hasPreviousImageChanged\0hasNextImageChanged\0"
    "requestRotateImage\0localPath\0rotation\0"
    "setImageFiles\0imageFiles\0openFile\0"
    "removeImage\0renameImage\0oldName\0newName\0"
    "submitImageChangeImmediately\0previousImage\0"
    "nextImage\0firstImage\0lastImage\0"
    "globalModel\0ImageSourceModel*\0"
    "currentSource\0currentIndex\0currentFrameIndex\0"
    "imageCount\0currentRotation\0hasPreviousImage\0"
    "hasNextImage"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_GlobalControl[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,  104,    2, 0x06 /* Public */,
       3,    0,  105,    2, 0x06 /* Public */,
       4,    0,  106,    2, 0x06 /* Public */,
       5,    0,  107,    2, 0x06 /* Public */,
       6,    0,  108,    2, 0x06 /* Public */,
       7,    0,  109,    2, 0x06 /* Public */,
       8,    0,  110,    2, 0x06 /* Public */,
       9,    0,  111,    2, 0x06 /* Public */,
      10,    0,  112,    2, 0x06 /* Public */,
      11,    2,  113,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      14,    2,  118,    2, 0x0a /* Public */,
      17,    1,  123,    2, 0x0a /* Public */,
      18,    2,  126,    2, 0x0a /* Public */,
      21,    0,  131,    2, 0x0a /* Public */,

 // methods: name, argc, parameters, tag, flags
      22,    0,  132,    2, 0x02 /* Public */,
      23,    0,  133,    2, 0x02 /* Public */,
      24,    0,  134,    2, 0x02 /* Public */,
      25,    0,  135,    2, 0x02 /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString, QMetaType::Int,   12,   13,

 // slots: parameters
    QMetaType::Void, QMetaType::QStringList, QMetaType::QString,   15,   16,
    QMetaType::Void, QMetaType::QUrl,   17,
    QMetaType::Void, QMetaType::QUrl, QMetaType::QUrl,   19,   20,
    QMetaType::Void,

 // methods: parameters
    QMetaType::Bool,
    QMetaType::Bool,
    QMetaType::Bool,
    QMetaType::Bool,

 // properties: name, type, flags
      26, 0x80000000 | 27, 0x00495009,
      28, QMetaType::QUrl, 0x00495103,
      29, QMetaType::Int, 0x00495103,
      30, QMetaType::Int, 0x00495103,
      31, QMetaType::Int, 0x00495001,
      32, QMetaType::Int, 0x00495103,
      33, QMetaType::Bool, 0x00495001,
      34, QMetaType::Bool, 0x00495001,

 // properties: notify_signal_id
       0,
       1,
       2,
       3,
       4,
       5,
       7,
       8,

       0        // eod
};

void GlobalControl::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<GlobalControl *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->globalModelChanged(); break;
        case 1: _t->currentSourceChanged(); break;
        case 2: _t->currentIndexChanged(); break;
        case 3: _t->currentFrameIndexChanged(); break;
        case 4: _t->imageCountChanged(); break;
        case 5: _t->currentRotationChanged(); break;
        case 6: _t->requestRotateCacheImage(); break;
        case 7: _t->hasPreviousImageChanged(); break;
        case 8: _t->hasNextImageChanged(); break;
        case 9: _t->requestRotateImage((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 10: _t->setImageFiles((*reinterpret_cast< const QStringList(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 11: _t->removeImage((*reinterpret_cast< const QUrl(*)>(_a[1]))); break;
        case 12: _t->renameImage((*reinterpret_cast< const QUrl(*)>(_a[1])),(*reinterpret_cast< const QUrl(*)>(_a[2]))); break;
        case 13: _t->submitImageChangeImmediately(); break;
        case 14: { bool _r = _t->previousImage();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 15: { bool _r = _t->nextImage();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 16: { bool _r = _t->firstImage();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 17: { bool _r = _t->lastImage();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (GlobalControl::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&GlobalControl::globalModelChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (GlobalControl::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&GlobalControl::currentSourceChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (GlobalControl::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&GlobalControl::currentIndexChanged)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (GlobalControl::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&GlobalControl::currentFrameIndexChanged)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (GlobalControl::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&GlobalControl::imageCountChanged)) {
                *result = 4;
                return;
            }
        }
        {
            using _t = void (GlobalControl::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&GlobalControl::currentRotationChanged)) {
                *result = 5;
                return;
            }
        }
        {
            using _t = void (GlobalControl::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&GlobalControl::requestRotateCacheImage)) {
                *result = 6;
                return;
            }
        }
        {
            using _t = void (GlobalControl::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&GlobalControl::hasPreviousImageChanged)) {
                *result = 7;
                return;
            }
        }
        {
            using _t = void (GlobalControl::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&GlobalControl::hasNextImageChanged)) {
                *result = 8;
                return;
            }
        }
        {
            using _t = void (GlobalControl::*)(const QString & , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&GlobalControl::requestRotateImage)) {
                *result = 9;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<GlobalControl *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< ImageSourceModel**>(_v) = _t->globalModel(); break;
        case 1: *reinterpret_cast< QUrl*>(_v) = _t->currentSource(); break;
        case 2: *reinterpret_cast< int*>(_v) = _t->currentIndex(); break;
        case 3: *reinterpret_cast< int*>(_v) = _t->currentFrameIndex(); break;
        case 4: *reinterpret_cast< int*>(_v) = _t->imageCount(); break;
        case 5: *reinterpret_cast< int*>(_v) = _t->currentRotation(); break;
        case 6: *reinterpret_cast< bool*>(_v) = _t->hasPreviousImage(); break;
        case 7: *reinterpret_cast< bool*>(_v) = _t->hasNextImage(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<GlobalControl *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->setCurrentSource(*reinterpret_cast< QUrl*>(_v)); break;
        case 2: _t->setCurrentIndex(*reinterpret_cast< int*>(_v)); break;
        case 3: _t->setCurrentFrameIndex(*reinterpret_cast< int*>(_v)); break;
        case 5: _t->setCurrentRotation(*reinterpret_cast< int*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject GlobalControl::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_GlobalControl.data,
    qt_meta_data_GlobalControl,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

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

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

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

// SIGNAL 2
void GlobalControl::currentIndexChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void GlobalControl::currentFrameIndexChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void GlobalControl::imageCountChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void GlobalControl::currentRotationChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void GlobalControl::requestRotateCacheImage()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void GlobalControl::hasPreviousImageChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void GlobalControl::hasNextImageChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}

// SIGNAL 9
void GlobalControl::requestRotateImage(const QString & _t1, int _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, 9, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
