/****************************************************************************
** Meta object code from reading C++ file 'simple-call-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-call-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__SimpleCallObserver_t {
    QByteArrayData data[21];
    char stringdata[344];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Tp__SimpleCallObserver_t, stringdata) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Tp__SimpleCallObserver_t qt_meta_stringdata_Tp__SimpleCallObserver = {
    {
QT_MOC_LITERAL(0, 0, 22), // "Tp::SimpleCallObserver"
QT_MOC_LITERAL(1, 23, 11), // "callStarted"
QT_MOC_LITERAL(2, 35, 0), // ""
QT_MOC_LITERAL(3, 36, 18), // "Tp::CallChannelPtr"
QT_MOC_LITERAL(4, 55, 7), // "channel"
QT_MOC_LITERAL(5, 63, 9), // "callEnded"
QT_MOC_LITERAL(6, 73, 9), // "errorName"
QT_MOC_LITERAL(7, 83, 12), // "errorMessage"
QT_MOC_LITERAL(8, 96, 24), // "streamedMediaCallStarted"
QT_MOC_LITERAL(9, 121, 27), // "Tp::StreamedMediaChannelPtr"
QT_MOC_LITERAL(10, 149, 22), // "streamedMediaCallEnded"
QT_MOC_LITERAL(11, 172, 13), // "onNewChannels"
QT_MOC_LITERAL(12, 186, 21), // "QList<Tp::ChannelPtr>"
QT_MOC_LITERAL(13, 208, 8), // "channels"
QT_MOC_LITERAL(14, 217, 20), // "onChannelInvalidated"
QT_MOC_LITERAL(15, 238, 14), // "Tp::ChannelPtr"
QT_MOC_LITERAL(16, 253, 13), // "CallDirection"
QT_MOC_LITERAL(17, 267, 21), // "CallDirectionIncoming"
QT_MOC_LITERAL(18, 289, 21), // "CallDirectionOutgoing"
QT_MOC_LITERAL(19, 311, 17), // "CallDirectionBoth"
QT_MOC_LITERAL(20, 329, 14) // "CallDirections"

    },
    "Tp::SimpleCallObserver\0callStarted\0\0"
    "Tp::CallChannelPtr\0channel\0callEnded\0"
    "errorName\0errorMessage\0streamedMediaCallStarted\0"
    "Tp::StreamedMediaChannelPtr\0"
    "streamedMediaCallEnded\0onNewChannels\0"
    "QList<Tp::ChannelPtr>\0channels\0"
    "onChannelInvalidated\0Tp::ChannelPtr\0"
    "CallDirection\0CallDirectionIncoming\0"
    "CallDirectionOutgoing\0CallDirectionBoth\0"
    "CallDirections"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Tp__SimpleCallObserver[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   44,    2, 0x06 /* Public */,
       5,    3,   47,    2, 0x06 /* Public */,
       8,    1,   54,    2, 0x06 /* Public */,
      10,    3,   57,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      11,    1,   64,    2, 0x08 /* Private */,
      14,    3,   67,    2, 0x08 /* Private */,

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

 // slots: parameters
    QMetaType::Void, 0x80000000 | 12,   13,
    QMetaType::Void, 0x80000000 | 15, QMetaType::QString, QMetaType::QString,    4,    6,    7,

 // enums: name, flags, count, data
      16, 0x1,    3,   82,
      20, 0x1,    3,   88,

 // enum data: key, value
      17, uint(Tp::SimpleCallObserver::CallDirectionIncoming),
      18, uint(Tp::SimpleCallObserver::CallDirectionOutgoing),
      19, uint(Tp::SimpleCallObserver::CallDirectionBoth),
      17, uint(Tp::SimpleCallObserver::CallDirectionIncoming),
      18, uint(Tp::SimpleCallObserver::CallDirectionOutgoing),
      19, uint(Tp::SimpleCallObserver::CallDirectionBoth),

       0        // eod
};

void Tp::SimpleCallObserver::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        SimpleCallObserver *_t = static_cast<SimpleCallObserver *>(_o);
        switch (_id) {
        case 0: _t->callStarted((*reinterpret_cast< const Tp::CallChannelPtr(*)>(_a[1]))); break;
        case 1: _t->callEnded((*reinterpret_cast< const Tp::CallChannelPtr(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
        case 2: _t->streamedMediaCallStarted((*reinterpret_cast< const Tp::StreamedMediaChannelPtr(*)>(_a[1]))); break;
        case 3: _t->streamedMediaCallEnded((*reinterpret_cast< const Tp::StreamedMediaChannelPtr(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
        case 4: _t->onNewChannels((*reinterpret_cast< const QList<Tp::ChannelPtr>(*)>(_a[1]))); break;
        case 5: _t->onChannelInvalidated((*reinterpret_cast< const Tp::ChannelPtr(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (SimpleCallObserver::*_t)(const Tp::CallChannelPtr & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SimpleCallObserver::callStarted)) {
                *result = 0;
            }
        }
        {
            typedef void (SimpleCallObserver::*_t)(const Tp::CallChannelPtr & , const QString & , const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SimpleCallObserver::callEnded)) {
                *result = 1;
            }
        }
        {
            typedef void (SimpleCallObserver::*_t)(const Tp::StreamedMediaChannelPtr & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SimpleCallObserver::streamedMediaCallStarted)) {
                *result = 2;
            }
        }
        {
            typedef void (SimpleCallObserver::*_t)(const Tp::StreamedMediaChannelPtr & , const QString & , const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SimpleCallObserver::streamedMediaCallEnded)) {
                *result = 3;
            }
        }
    }
}

const QMetaObject Tp::SimpleCallObserver::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_Tp__SimpleCallObserver.data,
      qt_meta_data_Tp__SimpleCallObserver,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

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

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

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

// SIGNAL 1
void Tp::SimpleCallObserver::callEnded(const Tp::CallChannelPtr & _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);
}

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

// SIGNAL 3
void Tp::SimpleCallObserver::streamedMediaCallEnded(const Tp::StreamedMediaChannelPtr & _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, 3, _a);
}
QT_END_MOC_NAMESPACE
