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

#include "../../../fmTakeaway_db/FmTakeaway_db.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'FmTakeaway_db.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.5.1. 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
struct qt_meta_stringdata_FmTakeaway_db_t {
    QByteArrayData data[20];
    char stringdata0[249];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_FmTakeaway_db_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_FmTakeaway_db_t qt_meta_stringdata_FmTakeaway_db = {
    {
QT_MOC_LITERAL(0, 0, 13), // "FmTakeaway_db"
QT_MOC_LITERAL(1, 14, 9), // "doConnect"
QT_MOC_LITERAL(2, 24, 0), // ""
QT_MOC_LITERAL(3, 25, 13), // "QSqlDatabase*"
QT_MOC_LITERAL(4, 39, 2), // "db"
QT_MOC_LITERAL(5, 42, 12), // "doGetOpsInfo"
QT_MOC_LITERAL(6, 55, 35), // "QList<FmTakeaway_db::Operator..."
QT_MOC_LITERAL(7, 91, 12), // "listOperator"
QT_MOC_LITERAL(8, 104, 14), // "doGetBranchNum"
QT_MOC_LITERAL(9, 119, 8), // "QString*"
QT_MOC_LITERAL(10, 128, 9), // "branchNum"
QT_MOC_LITERAL(11, 138, 11), // "doInputSale"
QT_MOC_LITERAL(12, 150, 18), // "const OrderObject*"
QT_MOC_LITERAL(13, 169, 8), // "orderObj"
QT_MOC_LITERAL(14, 178, 27), // "FmTakeaway_db::OperatorInfo"
QT_MOC_LITERAL(15, 206, 9), // "operaInfo"
QT_MOC_LITERAL(16, 216, 10), // "successful"
QT_MOC_LITERAL(17, 227, 6), // "failed"
QT_MOC_LITERAL(18, 234, 8), // "onFailed"
QT_MOC_LITERAL(19, 243, 5) // "error"

    },
    "FmTakeaway_db\0doConnect\0\0QSqlDatabase*\0"
    "db\0doGetOpsInfo\0QList<FmTakeaway_db::OperatorInfo>*\0"
    "listOperator\0doGetBranchNum\0QString*\0"
    "branchNum\0doInputSale\0const OrderObject*\0"
    "orderObj\0FmTakeaway_db::OperatorInfo\0"
    "operaInfo\0successful\0failed\0onFailed\0"
    "error"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_FmTakeaway_db[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   49,    2, 0x06 /* Public */,
       5,    1,   52,    2, 0x06 /* Public */,
       8,    1,   55,    2, 0x06 /* Public */,
      11,    2,   58,    2, 0x06 /* Public */,
      16,    0,   63,    2, 0x06 /* Public */,
      17,    0,   64,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      18,    1,   65,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 6,    7,
    QMetaType::Void, 0x80000000 | 9,   10,
    QMetaType::Void, 0x80000000 | 12, 0x80000000 | 14,   13,   15,
    QMetaType::Void,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, QMetaType::QString,   19,

       0        // eod
};

void FmTakeaway_db::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        FmTakeaway_db *_t = static_cast<FmTakeaway_db *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->doConnect((*reinterpret_cast< QSqlDatabase*(*)>(_a[1]))); break;
        case 1: _t->doGetOpsInfo((*reinterpret_cast< QList<FmTakeaway_db::OperatorInfo>*(*)>(_a[1]))); break;
        case 2: _t->doGetBranchNum((*reinterpret_cast< QString*(*)>(_a[1]))); break;
        case 3: _t->doInputSale((*reinterpret_cast< const OrderObject*(*)>(_a[1])),(*reinterpret_cast< const FmTakeaway_db::OperatorInfo(*)>(_a[2]))); break;
        case 4: _t->successful(); break;
        case 5: _t->failed(); break;
        case 6: _t->onFailed((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (FmTakeaway_db::*_t)(QSqlDatabase * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&FmTakeaway_db::doConnect)) {
                *result = 0;
            }
        }
        {
            typedef void (FmTakeaway_db::*_t)(QList<FmTakeaway_db::OperatorInfo> * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&FmTakeaway_db::doGetOpsInfo)) {
                *result = 1;
            }
        }
        {
            typedef void (FmTakeaway_db::*_t)(QString * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&FmTakeaway_db::doGetBranchNum)) {
                *result = 2;
            }
        }
        {
            typedef void (FmTakeaway_db::*_t)(OrderObject const * , const FmTakeaway_db::OperatorInfo & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&FmTakeaway_db::doInputSale)) {
                *result = 3;
            }
        }
        {
            typedef void (FmTakeaway_db::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&FmTakeaway_db::successful)) {
                *result = 4;
            }
        }
        {
            typedef void (FmTakeaway_db::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&FmTakeaway_db::failed)) {
                *result = 5;
            }
        }
    }
}

const QMetaObject FmTakeaway_db::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_FmTakeaway_db.data,
      qt_meta_data_FmTakeaway_db,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *FmTakeaway_db::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_FmTakeaway_db.stringdata0))
        return static_cast<void*>(const_cast< FmTakeaway_db*>(this));
    return QObject::qt_metacast(_clname);
}

int FmTakeaway_db::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)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 7;
    }
    return _id;
}

// SIGNAL 0
void FmTakeaway_db::doConnect(QSqlDatabase * _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void FmTakeaway_db::doGetOpsInfo(QList<FmTakeaway_db::OperatorInfo> * _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void FmTakeaway_db::doGetBranchNum(QString * _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void FmTakeaway_db::doInputSale(OrderObject const * _t1, const FmTakeaway_db::OperatorInfo & _t2)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void FmTakeaway_db::successful()
{
    QMetaObject::activate(this, &staticMetaObject, 4, Q_NULLPTR);
}

// SIGNAL 5
void FmTakeaway_db::failed()
{
    QMetaObject::activate(this, &staticMetaObject, 5, Q_NULLPTR);
}
struct qt_meta_stringdata_SqlWorker_t {
    QByteArrayData data[16];
    char stringdata0[204];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_SqlWorker_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_SqlWorker_t qt_meta_stringdata_SqlWorker = {
    {
QT_MOC_LITERAL(0, 0, 9), // "SqlWorker"
QT_MOC_LITERAL(1, 10, 10), // "successful"
QT_MOC_LITERAL(2, 21, 0), // ""
QT_MOC_LITERAL(3, 22, 6), // "failed"
QT_MOC_LITERAL(4, 29, 5), // "error"
QT_MOC_LITERAL(5, 35, 11), // "onDoConnect"
QT_MOC_LITERAL(6, 47, 13), // "QSqlDatabase*"
QT_MOC_LITERAL(7, 61, 2), // "db"
QT_MOC_LITERAL(8, 64, 12), // "onGetOpsInfo"
QT_MOC_LITERAL(9, 77, 35), // "QList<FmTakeaway_db::Operator..."
QT_MOC_LITERAL(10, 113, 12), // "listOperator"
QT_MOC_LITERAL(11, 126, 11), // "onInputSale"
QT_MOC_LITERAL(12, 138, 18), // "const OrderObject*"
QT_MOC_LITERAL(13, 157, 8), // "orderObj"
QT_MOC_LITERAL(14, 166, 27), // "FmTakeaway_db::OperatorInfo"
QT_MOC_LITERAL(15, 194, 9) // "operaInfo"

    },
    "SqlWorker\0successful\0\0failed\0error\0"
    "onDoConnect\0QSqlDatabase*\0db\0onGetOpsInfo\0"
    "QList<FmTakeaway_db::OperatorInfo>*\0"
    "listOperator\0onInputSale\0const OrderObject*\0"
    "orderObj\0FmTakeaway_db::OperatorInfo\0"
    "operaInfo"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_SqlWorker[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,   39,    2, 0x06 /* Public */,
       3,    1,   40,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       5,    1,   43,    2, 0x0a /* Public */,
       8,    1,   46,    2, 0x0a /* Public */,
      11,    2,   49,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,    4,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 6,    7,
    QMetaType::Void, 0x80000000 | 9,   10,
    QMetaType::Void, 0x80000000 | 12, 0x80000000 | 14,   13,   15,

       0        // eod
};

void SqlWorker::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        SqlWorker *_t = static_cast<SqlWorker *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->successful(); break;
        case 1: _t->failed((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 2: _t->onDoConnect((*reinterpret_cast< QSqlDatabase*(*)>(_a[1]))); break;
        case 3: _t->onGetOpsInfo((*reinterpret_cast< QList<FmTakeaway_db::OperatorInfo>*(*)>(_a[1]))); break;
        case 4: _t->onInputSale((*reinterpret_cast< const OrderObject*(*)>(_a[1])),(*reinterpret_cast< const FmTakeaway_db::OperatorInfo(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (SqlWorker::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SqlWorker::successful)) {
                *result = 0;
            }
        }
        {
            typedef void (SqlWorker::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SqlWorker::failed)) {
                *result = 1;
            }
        }
    }
}

const QMetaObject SqlWorker::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_SqlWorker.data,
      qt_meta_data_SqlWorker,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *SqlWorker::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_SqlWorker.stringdata0))
        return static_cast<void*>(const_cast< SqlWorker*>(this));
    return QObject::qt_metacast(_clname);
}

int SqlWorker::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 < 5)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 5)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 5;
    }
    return _id;
}

// SIGNAL 0
void SqlWorker::successful()
{
    QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
}

// SIGNAL 1
void SqlWorker::failed(const QString & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_END_MOC_NAMESPACE
