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

#include "../../../src/akonadi-17.12.3/src/server/connection.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'connection.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.4. 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_Akonadi__Server__Connection_t {
    QByteArrayData data[14];
    char stringdata0[219];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Akonadi__Server__Connection_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Akonadi__Server__Connection_t qt_meta_stringdata_Akonadi__Server__Connection = {
    {
QT_MOC_LITERAL(0, 0, 27), // "Akonadi::Server::Connection"
QT_MOC_LITERAL(1, 28, 12), // "disconnected"
QT_MOC_LITERAL(2, 41, 0), // ""
QT_MOC_LITERAL(3, 42, 17), // "connectionClosing"
QT_MOC_LITERAL(4, 60, 12), // "sendResponse"
QT_MOC_LITERAL(5, 73, 20), // "Protocol::CommandPtr"
QT_MOC_LITERAL(6, 94, 8), // "response"
QT_MOC_LITERAL(7, 103, 11), // "slotNewData"
QT_MOC_LITERAL(8, 115, 25), // "slotConnectionStateChange"
QT_MOC_LITERAL(9, 141, 15), // "ConnectionState"
QT_MOC_LITERAL(10, 157, 5), // "state"
QT_MOC_LITERAL(11, 163, 18), // "slotConnectionIdle"
QT_MOC_LITERAL(12, 182, 22), // "slotSocketDisconnected"
QT_MOC_LITERAL(13, 205, 13) // "slotSendHello"

    },
    "Akonadi::Server::Connection\0disconnected\0"
    "\0connectionClosing\0sendResponse\0"
    "Protocol::CommandPtr\0response\0slotNewData\0"
    "slotConnectionStateChange\0ConnectionState\0"
    "state\0slotConnectionIdle\0"
    "slotSocketDisconnected\0slotSendHello"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Akonadi__Server__Connection[] = {

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

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

 // slots: name, argc, parameters, tag, flags
       4,    1,   56,    2, 0x0a /* Public */,
       7,    0,   59,    2, 0x09 /* Protected */,
       8,    1,   60,    2, 0x09 /* Protected */,
      11,    0,   63,    2, 0x09 /* Protected */,
      12,    0,   64,    2, 0x09 /* Protected */,
      13,    0,   65,    2, 0x09 /* Protected */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 5,    6,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 9,   10,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void Akonadi::Server::Connection::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Connection *_t = static_cast<Connection *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->disconnected(); break;
        case 1: _t->connectionClosing(); break;
        case 2: _t->sendResponse((*reinterpret_cast< const Protocol::CommandPtr(*)>(_a[1]))); break;
        case 3: _t->slotNewData(); break;
        case 4: _t->slotConnectionStateChange((*reinterpret_cast< ConnectionState(*)>(_a[1]))); break;
        case 5: _t->slotConnectionIdle(); break;
        case 6: _t->slotSocketDisconnected(); break;
        case 7: _t->slotSendHello(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (Connection::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Connection::disconnected)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (Connection::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Connection::connectionClosing)) {
                *result = 1;
                return;
            }
        }
    }
}

const QMetaObject Akonadi::Server::Connection::staticMetaObject = {
    { &AkThread::staticMetaObject, qt_meta_stringdata_Akonadi__Server__Connection.data,
      qt_meta_data_Akonadi__Server__Connection,  qt_static_metacall, nullptr, nullptr}
};


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

void *Akonadi::Server::Connection::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Akonadi__Server__Connection.stringdata0))
        return static_cast<void*>(this);
    return AkThread::qt_metacast(_clname);
}

int Akonadi::Server::Connection::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = AkThread::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 8;
    }
    return _id;
}

// SIGNAL 0
void Akonadi::Server::Connection::disconnected()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void Akonadi::Server::Connection::connectionClosing()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
