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

#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.4.2. 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_Tp__Connection_t {
    QByteArrayData data[37];
    char stringdata[567];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Tp__Connection_t, stringdata) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Tp__Connection_t qt_meta_stringdata_Tp__Connection = {
    {
QT_MOC_LITERAL(0, 0, 14), // "Tp::Connection"
QT_MOC_LITERAL(1, 15, 13), // "statusChanged"
QT_MOC_LITERAL(2, 29, 0), // ""
QT_MOC_LITERAL(3, 30, 20), // "Tp::ConnectionStatus"
QT_MOC_LITERAL(4, 51, 9), // "newStatus"
QT_MOC_LITERAL(5, 61, 17), // "selfHandleChanged"
QT_MOC_LITERAL(6, 79, 9), // "newHandle"
QT_MOC_LITERAL(7, 89, 18), // "selfContactChanged"
QT_MOC_LITERAL(8, 108, 21), // "accountBalanceChanged"
QT_MOC_LITERAL(9, 130, 18), // "Tp::CurrencyAmount"
QT_MOC_LITERAL(10, 149, 14), // "accountBalance"
QT_MOC_LITERAL(11, 164, 13), // "onStatusReady"
QT_MOC_LITERAL(12, 178, 6), // "status"
QT_MOC_LITERAL(13, 185, 15), // "onStatusChanged"
QT_MOC_LITERAL(14, 201, 6), // "reason"
QT_MOC_LITERAL(15, 208, 17), // "onConnectionError"
QT_MOC_LITERAL(16, 226, 5), // "error"
QT_MOC_LITERAL(17, 232, 7), // "details"
QT_MOC_LITERAL(18, 240, 17), // "gotMainProperties"
QT_MOC_LITERAL(19, 258, 24), // "QDBusPendingCallWatcher*"
QT_MOC_LITERAL(20, 283, 7), // "watcher"
QT_MOC_LITERAL(21, 291, 9), // "gotStatus"
QT_MOC_LITERAL(22, 301, 13), // "gotInterfaces"
QT_MOC_LITERAL(23, 315, 13), // "gotSelfHandle"
QT_MOC_LITERAL(24, 329, 15), // "gotCapabilities"
QT_MOC_LITERAL(25, 345, 29), // "gotContactAttributeInterfaces"
QT_MOC_LITERAL(26, 375, 17), // "gotSimpleStatuses"
QT_MOC_LITERAL(27, 393, 14), // "gotSelfContact"
QT_MOC_LITERAL(28, 408, 21), // "Tp::PendingOperation*"
QT_MOC_LITERAL(29, 430, 2), // "op"
QT_MOC_LITERAL(30, 433, 26), // "onIntrospectRosterFinished"
QT_MOC_LITERAL(31, 460, 32), // "onIntrospectRosterGroupsFinished"
QT_MOC_LITERAL(32, 493, 14), // "doReleaseSweep"
QT_MOC_LITERAL(33, 508, 10), // "handleType"
QT_MOC_LITERAL(34, 519, 19), // "onSelfHandleChanged"
QT_MOC_LITERAL(35, 539, 10), // "gotBalance"
QT_MOC_LITERAL(36, 550, 16) // "onBalanceChanged"

    },
    "Tp::Connection\0statusChanged\0\0"
    "Tp::ConnectionStatus\0newStatus\0"
    "selfHandleChanged\0newHandle\0"
    "selfContactChanged\0accountBalanceChanged\0"
    "Tp::CurrencyAmount\0accountBalance\0"
    "onStatusReady\0status\0onStatusChanged\0"
    "reason\0onConnectionError\0error\0details\0"
    "gotMainProperties\0QDBusPendingCallWatcher*\0"
    "watcher\0gotStatus\0gotInterfaces\0"
    "gotSelfHandle\0gotCapabilities\0"
    "gotContactAttributeInterfaces\0"
    "gotSimpleStatuses\0gotSelfContact\0"
    "Tp::PendingOperation*\0op\0"
    "onIntrospectRosterFinished\0"
    "onIntrospectRosterGroupsFinished\0"
    "doReleaseSweep\0handleType\0onSelfHandleChanged\0"
    "gotBalance\0onBalanceChanged"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Tp__Connection[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,  119,    2, 0x06 /* Public */,
       5,    1,  122,    2, 0x06 /* Public */,
       7,    0,  125,    2, 0x06 /* Public */,
       8,    1,  126,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      11,    1,  129,    2, 0x08 /* Private */,
      13,    2,  132,    2, 0x08 /* Private */,
      15,    2,  137,    2, 0x08 /* Private */,
      18,    1,  142,    2, 0x08 /* Private */,
      21,    1,  145,    2, 0x08 /* Private */,
      22,    1,  148,    2, 0x08 /* Private */,
      23,    1,  151,    2, 0x08 /* Private */,
      24,    1,  154,    2, 0x08 /* Private */,
      25,    1,  157,    2, 0x08 /* Private */,
      26,    1,  160,    2, 0x08 /* Private */,
      27,    1,  163,    2, 0x08 /* Private */,
      30,    1,  166,    2, 0x08 /* Private */,
      31,    1,  169,    2, 0x08 /* Private */,
      32,    1,  172,    2, 0x08 /* Private */,
      34,    1,  175,    2, 0x08 /* Private */,
      35,    1,  178,    2, 0x08 /* Private */,
      36,    1,  181,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, QMetaType::UInt,    6,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 9,   10,

 // slots: parameters
    QMetaType::Void, QMetaType::UInt,   12,
    QMetaType::Void, QMetaType::UInt, QMetaType::UInt,   12,   14,
    QMetaType::Void, QMetaType::QString, QMetaType::QVariantMap,   16,   17,
    QMetaType::Void, 0x80000000 | 19,   20,
    QMetaType::Void, 0x80000000 | 19,   20,
    QMetaType::Void, 0x80000000 | 19,   20,
    QMetaType::Void, 0x80000000 | 19,   20,
    QMetaType::Void, 0x80000000 | 19,   20,
    QMetaType::Void, 0x80000000 | 19,   20,
    QMetaType::Void, 0x80000000 | 19,   20,
    QMetaType::Void, 0x80000000 | 28,   29,
    QMetaType::Void, 0x80000000 | 28,   29,
    QMetaType::Void, 0x80000000 | 28,   29,
    QMetaType::Void, QMetaType::UInt,   33,
    QMetaType::Void, QMetaType::UInt,    2,
    QMetaType::Void, 0x80000000 | 19,   20,
    QMetaType::Void, 0x80000000 | 9,    2,

       0        // eod
};

void Tp::Connection::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Connection *_t = static_cast<Connection *>(_o);
        switch (_id) {
        case 0: _t->statusChanged((*reinterpret_cast< Tp::ConnectionStatus(*)>(_a[1]))); break;
        case 1: _t->selfHandleChanged((*reinterpret_cast< uint(*)>(_a[1]))); break;
        case 2: _t->selfContactChanged(); break;
        case 3: _t->accountBalanceChanged((*reinterpret_cast< const Tp::CurrencyAmount(*)>(_a[1]))); break;
        case 4: _t->onStatusReady((*reinterpret_cast< uint(*)>(_a[1]))); break;
        case 5: _t->onStatusChanged((*reinterpret_cast< uint(*)>(_a[1])),(*reinterpret_cast< uint(*)>(_a[2]))); break;
        case 6: _t->onConnectionError((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QVariantMap(*)>(_a[2]))); break;
        case 7: _t->gotMainProperties((*reinterpret_cast< QDBusPendingCallWatcher*(*)>(_a[1]))); break;
        case 8: _t->gotStatus((*reinterpret_cast< QDBusPendingCallWatcher*(*)>(_a[1]))); break;
        case 9: _t->gotInterfaces((*reinterpret_cast< QDBusPendingCallWatcher*(*)>(_a[1]))); break;
        case 10: _t->gotSelfHandle((*reinterpret_cast< QDBusPendingCallWatcher*(*)>(_a[1]))); break;
        case 11: _t->gotCapabilities((*reinterpret_cast< QDBusPendingCallWatcher*(*)>(_a[1]))); break;
        case 12: _t->gotContactAttributeInterfaces((*reinterpret_cast< QDBusPendingCallWatcher*(*)>(_a[1]))); break;
        case 13: _t->gotSimpleStatuses((*reinterpret_cast< QDBusPendingCallWatcher*(*)>(_a[1]))); break;
        case 14: _t->gotSelfContact((*reinterpret_cast< Tp::PendingOperation*(*)>(_a[1]))); break;
        case 15: _t->onIntrospectRosterFinished((*reinterpret_cast< Tp::PendingOperation*(*)>(_a[1]))); break;
        case 16: _t->onIntrospectRosterGroupsFinished((*reinterpret_cast< Tp::PendingOperation*(*)>(_a[1]))); break;
        case 17: _t->doReleaseSweep((*reinterpret_cast< uint(*)>(_a[1]))); break;
        case 18: _t->onSelfHandleChanged((*reinterpret_cast< uint(*)>(_a[1]))); break;
        case 19: _t->gotBalance((*reinterpret_cast< QDBusPendingCallWatcher*(*)>(_a[1]))); break;
        case 20: _t->onBalanceChanged((*reinterpret_cast< const Tp::CurrencyAmount(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Tp::CurrencyAmount >(); break;
            }
            break;
        case 7:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QDBusPendingCallWatcher* >(); break;
            }
            break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QDBusPendingCallWatcher* >(); break;
            }
            break;
        case 9:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QDBusPendingCallWatcher* >(); break;
            }
            break;
        case 10:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QDBusPendingCallWatcher* >(); break;
            }
            break;
        case 11:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QDBusPendingCallWatcher* >(); break;
            }
            break;
        case 12:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QDBusPendingCallWatcher* >(); break;
            }
            break;
        case 13:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QDBusPendingCallWatcher* >(); break;
            }
            break;
        case 19:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QDBusPendingCallWatcher* >(); break;
            }
            break;
        case 20:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Tp::CurrencyAmount >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (Connection::*_t)(Tp::ConnectionStatus );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Connection::statusChanged)) {
                *result = 0;
            }
        }
        {
            typedef void (Connection::*_t)(uint );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Connection::selfHandleChanged)) {
                *result = 1;
            }
        }
        {
            typedef void (Connection::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Connection::selfContactChanged)) {
                *result = 2;
            }
        }
        {
            typedef void (Connection::*_t)(const Tp::CurrencyAmount & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Connection::accountBalanceChanged)) {
                *result = 3;
            }
        }
    }
}

const QMetaObject Tp::Connection::staticMetaObject = {
    { &StatefulDBusProxy::staticMetaObject, qt_meta_stringdata_Tp__Connection.data,
      qt_meta_data_Tp__Connection,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *Tp::Connection::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_Tp__Connection.stringdata))
        return static_cast<void*>(const_cast< Connection*>(this));
    if (!strcmp(_clname, "OptionalInterfaceFactory<Connection>"))
        return static_cast< OptionalInterfaceFactory<Connection>*>(const_cast< Connection*>(this));
    return StatefulDBusProxy::qt_metacast(_clname);
}

int Tp::Connection::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = StatefulDBusProxy::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 21)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 21;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 21)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 21;
    }
    return _id;
}

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

// SIGNAL 1
void Tp::Connection::selfHandleChanged(uint _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void Tp::Connection::selfContactChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
}

// SIGNAL 3
void Tp::Connection::accountBalanceChanged(const Tp::CurrencyAmount & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
QT_END_MOC_NAMESPACE
