/****************************************************************************
** Meta object code from reading C++ file 'simple-observer.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>
#include <QtCore/QList>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'simple-observer.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__SimpleObserver_t {
    QByteArrayData data[22];
    char stringdata[340];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Tp__SimpleObserver_t, stringdata) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Tp__SimpleObserver_t qt_meta_stringdata_Tp__SimpleObserver = {
    {
QT_MOC_LITERAL(0, 0, 18), // "Tp::SimpleObserver"
QT_MOC_LITERAL(1, 19, 11), // "newChannels"
QT_MOC_LITERAL(2, 31, 0), // ""
QT_MOC_LITERAL(3, 32, 21), // "QList<Tp::ChannelPtr>"
QT_MOC_LITERAL(4, 54, 8), // "channels"
QT_MOC_LITERAL(5, 63, 18), // "channelInvalidated"
QT_MOC_LITERAL(6, 82, 14), // "Tp::ChannelPtr"
QT_MOC_LITERAL(7, 97, 7), // "channel"
QT_MOC_LITERAL(8, 105, 9), // "errorName"
QT_MOC_LITERAL(9, 115, 12), // "errorMessage"
QT_MOC_LITERAL(10, 128, 26), // "onAccountConnectionChanged"
QT_MOC_LITERAL(11, 155, 17), // "Tp::ConnectionPtr"
QT_MOC_LITERAL(12, 173, 10), // "connection"
QT_MOC_LITERAL(13, 184, 28), // "onAccountConnectionConnected"
QT_MOC_LITERAL(14, 213, 20), // "onContactConstructed"
QT_MOC_LITERAL(15, 234, 21), // "Tp::PendingOperation*"
QT_MOC_LITERAL(16, 256, 2), // "op"
QT_MOC_LITERAL(17, 259, 13), // "onNewChannels"
QT_MOC_LITERAL(18, 273, 14), // "Tp::AccountPtr"
QT_MOC_LITERAL(19, 288, 15), // "channelsAccount"
QT_MOC_LITERAL(20, 304, 20), // "onChannelInvalidated"
QT_MOC_LITERAL(21, 325, 14) // "channelAccount"

    },
    "Tp::SimpleObserver\0newChannels\0\0"
    "QList<Tp::ChannelPtr>\0channels\0"
    "channelInvalidated\0Tp::ChannelPtr\0"
    "channel\0errorName\0errorMessage\0"
    "onAccountConnectionChanged\0Tp::ConnectionPtr\0"
    "connection\0onAccountConnectionConnected\0"
    "onContactConstructed\0Tp::PendingOperation*\0"
    "op\0onNewChannels\0Tp::AccountPtr\0"
    "channelsAccount\0onChannelInvalidated\0"
    "channelAccount"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Tp__SimpleObserver[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   49,    2, 0x06 /* Public */,
       5,    3,   52,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      10,    1,   59,    2, 0x08 /* Private */,
      13,    0,   62,    2, 0x08 /* Private */,
      14,    1,   63,    2, 0x08 /* Private */,
      17,    2,   66,    2, 0x08 /* Private */,
      20,    4,   71,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 6, QMetaType::QString, QMetaType::QString,    7,    8,    9,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 11,   12,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 15,   16,
    QMetaType::Void, 0x80000000 | 18, 0x80000000 | 3,   19,    4,
    QMetaType::Void, 0x80000000 | 18, 0x80000000 | 6, QMetaType::QString, QMetaType::QString,   21,    7,    8,    9,

       0        // eod
};

void Tp::SimpleObserver::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        SimpleObserver *_t = static_cast<SimpleObserver *>(_o);
        switch (_id) {
        case 0: _t->newChannels((*reinterpret_cast< const QList<Tp::ChannelPtr>(*)>(_a[1]))); break;
        case 1: _t->channelInvalidated((*reinterpret_cast< const Tp::ChannelPtr(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
        case 2: _t->onAccountConnectionChanged((*reinterpret_cast< const Tp::ConnectionPtr(*)>(_a[1]))); break;
        case 3: _t->onAccountConnectionConnected(); break;
        case 4: _t->onContactConstructed((*reinterpret_cast< Tp::PendingOperation*(*)>(_a[1]))); break;
        case 5: _t->onNewChannels((*reinterpret_cast< const Tp::AccountPtr(*)>(_a[1])),(*reinterpret_cast< const QList<Tp::ChannelPtr>(*)>(_a[2]))); break;
        case 6: _t->onChannelInvalidated((*reinterpret_cast< const Tp::AccountPtr(*)>(_a[1])),(*reinterpret_cast< const Tp::ChannelPtr(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3])),(*reinterpret_cast< const QString(*)>(_a[4]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (SimpleObserver::*_t)(const QList<Tp::ChannelPtr> & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SimpleObserver::newChannels)) {
                *result = 0;
            }
        }
        {
            typedef void (SimpleObserver::*_t)(const Tp::ChannelPtr & , const QString & , const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SimpleObserver::channelInvalidated)) {
                *result = 1;
            }
        }
    }
}

const QMetaObject Tp::SimpleObserver::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_Tp__SimpleObserver.data,
      qt_meta_data_Tp__SimpleObserver,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *Tp::SimpleObserver::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_Tp__SimpleObserver.stringdata))
        return static_cast<void*>(const_cast< SimpleObserver*>(this));
    if (!strcmp(_clname, "RefCounted"))
        return static_cast< RefCounted*>(const_cast< SimpleObserver*>(this));
    return QObject::qt_metacast(_clname);
}

int Tp::SimpleObserver::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 Tp::SimpleObserver::newChannels(const QList<Tp::ChannelPtr> & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void Tp::SimpleObserver::channelInvalidated(const Tp::ChannelPtr & _t1, const QString & _t2, const QString & _t3)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_END_MOC_NAMESPACE
