/****************************************************************************
** Meta object code from reading C++ file 'text-channel.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 'text-channel.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__TextChannel_t {
    QByteArrayData data[49];
    char stringdata[750];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Tp__TextChannel_t, stringdata) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Tp__TextChannel_t qt_meta_stringdata_Tp__TextChannel = {
    {
QT_MOC_LITERAL(0, 0, 15), // "Tp::TextChannel"
QT_MOC_LITERAL(1, 16, 11), // "messageSent"
QT_MOC_LITERAL(2, 28, 0), // ""
QT_MOC_LITERAL(3, 29, 11), // "Tp::Message"
QT_MOC_LITERAL(4, 41, 7), // "message"
QT_MOC_LITERAL(5, 49, 23), // "Tp::MessageSendingFlags"
QT_MOC_LITERAL(6, 73, 5), // "flags"
QT_MOC_LITERAL(7, 79, 16), // "sentMessageToken"
QT_MOC_LITERAL(8, 96, 15), // "messageReceived"
QT_MOC_LITERAL(9, 112, 19), // "Tp::ReceivedMessage"
QT_MOC_LITERAL(10, 132, 21), // "pendingMessageRemoved"
QT_MOC_LITERAL(11, 154, 16), // "chatStateChanged"
QT_MOC_LITERAL(12, 171, 14), // "Tp::ContactPtr"
QT_MOC_LITERAL(13, 186, 7), // "contact"
QT_MOC_LITERAL(14, 194, 20), // "Tp::ChannelChatState"
QT_MOC_LITERAL(15, 215, 5), // "state"
QT_MOC_LITERAL(16, 221, 11), // "acknowledge"
QT_MOC_LITERAL(17, 233, 22), // "QList<ReceivedMessage>"
QT_MOC_LITERAL(18, 256, 8), // "messages"
QT_MOC_LITERAL(19, 265, 6), // "forget"
QT_MOC_LITERAL(20, 272, 4), // "send"
QT_MOC_LITERAL(21, 277, 19), // "PendingSendMessage*"
QT_MOC_LITERAL(22, 297, 4), // "text"
QT_MOC_LITERAL(23, 302, 22), // "ChannelTextMessageType"
QT_MOC_LITERAL(24, 325, 4), // "type"
QT_MOC_LITERAL(25, 330, 19), // "MessageSendingFlags"
QT_MOC_LITERAL(26, 350, 15), // "MessagePartList"
QT_MOC_LITERAL(27, 366, 5), // "parts"
QT_MOC_LITERAL(28, 372, 14), // "inviteContacts"
QT_MOC_LITERAL(29, 387, 17), // "PendingOperation*"
QT_MOC_LITERAL(30, 405, 17), // "QList<ContactPtr>"
QT_MOC_LITERAL(31, 423, 8), // "contacts"
QT_MOC_LITERAL(32, 432, 16), // "requestChatState"
QT_MOC_LITERAL(33, 449, 16), // "ChannelChatState"
QT_MOC_LITERAL(34, 466, 18), // "onContactsFinished"
QT_MOC_LITERAL(35, 485, 21), // "Tp::PendingOperation*"
QT_MOC_LITERAL(36, 507, 33), // "onAcknowledgePendingMessagesR..."
QT_MOC_LITERAL(37, 541, 24), // "QDBusPendingCallWatcher*"
QT_MOC_LITERAL(38, 566, 13), // "onMessageSent"
QT_MOC_LITERAL(39, 580, 19), // "Tp::MessagePartList"
QT_MOC_LITERAL(40, 600, 17), // "onMessageReceived"
QT_MOC_LITERAL(41, 618, 24), // "onPendingMessagesRemoved"
QT_MOC_LITERAL(42, 643, 12), // "Tp::UIntList"
QT_MOC_LITERAL(43, 656, 10), // "onTextSent"
QT_MOC_LITERAL(44, 667, 14), // "onTextReceived"
QT_MOC_LITERAL(45, 682, 15), // "onTextSendError"
QT_MOC_LITERAL(46, 698, 13), // "gotProperties"
QT_MOC_LITERAL(47, 712, 18), // "gotPendingMessages"
QT_MOC_LITERAL(48, 731, 18) // "onChatStateChanged"

    },
    "Tp::TextChannel\0messageSent\0\0Tp::Message\0"
    "message\0Tp::MessageSendingFlags\0flags\0"
    "sentMessageToken\0messageReceived\0"
    "Tp::ReceivedMessage\0pendingMessageRemoved\0"
    "chatStateChanged\0Tp::ContactPtr\0contact\0"
    "Tp::ChannelChatState\0state\0acknowledge\0"
    "QList<ReceivedMessage>\0messages\0forget\0"
    "send\0PendingSendMessage*\0text\0"
    "ChannelTextMessageType\0type\0"
    "MessageSendingFlags\0MessagePartList\0"
    "parts\0inviteContacts\0PendingOperation*\0"
    "QList<ContactPtr>\0contacts\0requestChatState\0"
    "ChannelChatState\0onContactsFinished\0"
    "Tp::PendingOperation*\0"
    "onAcknowledgePendingMessagesReply\0"
    "QDBusPendingCallWatcher*\0onMessageSent\0"
    "Tp::MessagePartList\0onMessageReceived\0"
    "onPendingMessagesRemoved\0Tp::UIntList\0"
    "onTextSent\0onTextReceived\0onTextSendError\0"
    "gotProperties\0gotPendingMessages\0"
    "onChatStateChanged"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Tp__TextChannel[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    3,  139,    2, 0x06 /* Public */,
       8,    1,  146,    2, 0x06 /* Public */,
      10,    1,  149,    2, 0x06 /* Public */,
      11,    2,  152,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      16,    1,  157,    2, 0x0a /* Public */,
      19,    1,  160,    2, 0x0a /* Public */,
      20,    3,  163,    2, 0x0a /* Public */,
      20,    2,  170,    2, 0x2a /* Public | MethodCloned */,
      20,    1,  175,    2, 0x2a /* Public | MethodCloned */,
      20,    2,  178,    2, 0x0a /* Public */,
      20,    1,  183,    2, 0x2a /* Public | MethodCloned */,
      28,    2,  186,    2, 0x0a /* Public */,
      28,    1,  191,    2, 0x2a /* Public | MethodCloned */,
      32,    1,  194,    2, 0x0a /* Public */,
      34,    1,  197,    2, 0x08 /* Private */,
      36,    1,  200,    2, 0x08 /* Private */,
      38,    3,  203,    2, 0x08 /* Private */,
      40,    1,  210,    2, 0x08 /* Private */,
      41,    1,  213,    2, 0x08 /* Private */,
      43,    3,  216,    2, 0x08 /* Private */,
      44,    6,  223,    2, 0x08 /* Private */,
      45,    4,  236,    2, 0x08 /* Private */,
      46,    1,  245,    2, 0x08 /* Private */,
      47,    1,  248,    2, 0x08 /* Private */,
      48,    2,  251,    2, 0x08 /* Private */,

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

 // slots: parameters
    QMetaType::Void, 0x80000000 | 17,   18,
    QMetaType::Void, 0x80000000 | 17,   18,
    0x80000000 | 21, QMetaType::QString, 0x80000000 | 23, 0x80000000 | 25,   22,   24,    6,
    0x80000000 | 21, QMetaType::QString, 0x80000000 | 23,   22,   24,
    0x80000000 | 21, QMetaType::QString,   22,
    0x80000000 | 21, 0x80000000 | 26, 0x80000000 | 25,   27,    6,
    0x80000000 | 21, 0x80000000 | 26,   27,
    0x80000000 | 29, 0x80000000 | 30, QMetaType::QString,   31,    4,
    0x80000000 | 29, 0x80000000 | 30,   31,
    0x80000000 | 29, 0x80000000 | 33,   15,
    QMetaType::Void, 0x80000000 | 35,    2,
    QMetaType::Void, 0x80000000 | 37,    2,
    QMetaType::Void, 0x80000000 | 39, QMetaType::UInt, QMetaType::QString,    2,    2,    2,
    QMetaType::Void, 0x80000000 | 39,    2,
    QMetaType::Void, 0x80000000 | 42,    2,
    QMetaType::Void, QMetaType::UInt, QMetaType::UInt, QMetaType::QString,    2,    2,    2,
    QMetaType::Void, QMetaType::UInt, QMetaType::UInt, QMetaType::UInt, QMetaType::UInt, QMetaType::UInt, QMetaType::QString,    2,    2,    2,    2,    2,    2,
    QMetaType::Void, QMetaType::UInt, QMetaType::UInt, QMetaType::UInt, QMetaType::QString,    2,    2,    2,    2,
    QMetaType::Void, 0x80000000 | 37,    2,
    QMetaType::Void, 0x80000000 | 37,    2,
    QMetaType::Void, QMetaType::UInt, QMetaType::UInt,    2,    2,

       0        // eod
};

void Tp::TextChannel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        TextChannel *_t = static_cast<TextChannel *>(_o);
        switch (_id) {
        case 0: _t->messageSent((*reinterpret_cast< const Tp::Message(*)>(_a[1])),(*reinterpret_cast< Tp::MessageSendingFlags(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
        case 1: _t->messageReceived((*reinterpret_cast< const Tp::ReceivedMessage(*)>(_a[1]))); break;
        case 2: _t->pendingMessageRemoved((*reinterpret_cast< const Tp::ReceivedMessage(*)>(_a[1]))); break;
        case 3: _t->chatStateChanged((*reinterpret_cast< const Tp::ContactPtr(*)>(_a[1])),(*reinterpret_cast< Tp::ChannelChatState(*)>(_a[2]))); break;
        case 4: _t->acknowledge((*reinterpret_cast< const QList<ReceivedMessage>(*)>(_a[1]))); break;
        case 5: _t->forget((*reinterpret_cast< const QList<ReceivedMessage>(*)>(_a[1]))); break;
        case 6: { PendingSendMessage* _r = _t->send((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< ChannelTextMessageType(*)>(_a[2])),(*reinterpret_cast< MessageSendingFlags(*)>(_a[3])));
            if (_a[0]) *reinterpret_cast< PendingSendMessage**>(_a[0]) = _r; }  break;
        case 7: { PendingSendMessage* _r = _t->send((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< ChannelTextMessageType(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< PendingSendMessage**>(_a[0]) = _r; }  break;
        case 8: { PendingSendMessage* _r = _t->send((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< PendingSendMessage**>(_a[0]) = _r; }  break;
        case 9: { PendingSendMessage* _r = _t->send((*reinterpret_cast< const MessagePartList(*)>(_a[1])),(*reinterpret_cast< MessageSendingFlags(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< PendingSendMessage**>(_a[0]) = _r; }  break;
        case 10: { PendingSendMessage* _r = _t->send((*reinterpret_cast< const MessagePartList(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< PendingSendMessage**>(_a[0]) = _r; }  break;
        case 11: { PendingOperation* _r = _t->inviteContacts((*reinterpret_cast< const QList<ContactPtr>(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< PendingOperation**>(_a[0]) = _r; }  break;
        case 12: { PendingOperation* _r = _t->inviteContacts((*reinterpret_cast< const QList<ContactPtr>(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< PendingOperation**>(_a[0]) = _r; }  break;
        case 13: { PendingOperation* _r = _t->requestChatState((*reinterpret_cast< ChannelChatState(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< PendingOperation**>(_a[0]) = _r; }  break;
        case 14: _t->onContactsFinished((*reinterpret_cast< Tp::PendingOperation*(*)>(_a[1]))); break;
        case 15: _t->onAcknowledgePendingMessagesReply((*reinterpret_cast< QDBusPendingCallWatcher*(*)>(_a[1]))); break;
        case 16: _t->onMessageSent((*reinterpret_cast< const Tp::MessagePartList(*)>(_a[1])),(*reinterpret_cast< uint(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
        case 17: _t->onMessageReceived((*reinterpret_cast< const Tp::MessagePartList(*)>(_a[1]))); break;
        case 18: _t->onPendingMessagesRemoved((*reinterpret_cast< const Tp::UIntList(*)>(_a[1]))); break;
        case 19: _t->onTextSent((*reinterpret_cast< uint(*)>(_a[1])),(*reinterpret_cast< uint(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
        case 20: _t->onTextReceived((*reinterpret_cast< uint(*)>(_a[1])),(*reinterpret_cast< uint(*)>(_a[2])),(*reinterpret_cast< uint(*)>(_a[3])),(*reinterpret_cast< uint(*)>(_a[4])),(*reinterpret_cast< uint(*)>(_a[5])),(*reinterpret_cast< const QString(*)>(_a[6]))); break;
        case 21: _t->onTextSendError((*reinterpret_cast< uint(*)>(_a[1])),(*reinterpret_cast< uint(*)>(_a[2])),(*reinterpret_cast< uint(*)>(_a[3])),(*reinterpret_cast< const QString(*)>(_a[4]))); break;
        case 22: _t->gotProperties((*reinterpret_cast< QDBusPendingCallWatcher*(*)>(_a[1]))); break;
        case 23: _t->gotPendingMessages((*reinterpret_cast< QDBusPendingCallWatcher*(*)>(_a[1]))); break;
        case 24: _t->onChatStateChanged((*reinterpret_cast< uint(*)>(_a[1])),(*reinterpret_cast< uint(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 14:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Tp::PendingOperation* >(); break;
            }
            break;
        case 15:
            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 16:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Tp::MessagePartList >(); break;
            }
            break;
        case 17:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Tp::MessagePartList >(); break;
            }
            break;
        case 18:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Tp::UIntList >(); break;
            }
            break;
        case 22:
            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 23:
            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;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (TextChannel::*_t)(const Tp::Message & , Tp::MessageSendingFlags , const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TextChannel::messageSent)) {
                *result = 0;
            }
        }
        {
            typedef void (TextChannel::*_t)(const Tp::ReceivedMessage & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TextChannel::messageReceived)) {
                *result = 1;
            }
        }
        {
            typedef void (TextChannel::*_t)(const Tp::ReceivedMessage & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TextChannel::pendingMessageRemoved)) {
                *result = 2;
            }
        }
        {
            typedef void (TextChannel::*_t)(const Tp::ContactPtr & , Tp::ChannelChatState );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TextChannel::chatStateChanged)) {
                *result = 3;
            }
        }
    }
}

const QMetaObject Tp::TextChannel::staticMetaObject = {
    { &Channel::staticMetaObject, qt_meta_stringdata_Tp__TextChannel.data,
      qt_meta_data_Tp__TextChannel,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *Tp::TextChannel::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_Tp__TextChannel.stringdata))
        return static_cast<void*>(const_cast< TextChannel*>(this));
    return Channel::qt_metacast(_clname);
}

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

// SIGNAL 0
void Tp::TextChannel::messageSent(const Tp::Message & _t1, Tp::MessageSendingFlags _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, 0, _a);
}

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

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

// SIGNAL 3
void Tp::TextChannel::chatStateChanged(const Tp::ContactPtr & _t1, Tp::ChannelChatState _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);
}
QT_END_MOC_NAMESPACE
