int RpcConnection::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) {
        switch (_id) {
        case 0: incomingMessage((*reinterpret_cast< QVariantMap(*)>(_a[1])),(*reinterpret_cast< RpcChannel*(*)>(_a[2]))); break;
        case 1: channelOpened((*reinterpret_cast< RpcChannel*(*)>(_a[1]))); break;
        case 2: channelClosed((*reinterpret_cast< RpcChannel*(*)>(_a[1]))); break;
        case 3: unregisterSender(); break;
        case 4: sendMessage((*reinterpret_cast< QVariantMap(*)>(_a[1])),(*reinterpret_cast< RpcChannel*(*)>(_a[2]))); break;
        case 5: sendMessage((*reinterpret_cast< QVariantMap(*)>(_a[1]))); break;
        case 6: newChannel((*reinterpret_cast< RpcChannel*(*)>(_a[1]))); break;
        case 7: channelIncomingMessage((*reinterpret_cast< QVariantMap(*)>(_a[1]))); break;
        case 8: channelDisconnected((*reinterpret_cast< RpcChannel*(*)>(_a[1]))); break;
        default: ;
        }
        _id -= 9;
    }
    return _id;
}
Beispiel #2
0
/*!
    \details Local user quit this channel   
*/
void IrcChannel::onPart()
{
    emit sendData("PART " + name() + " :" + mPartMessage);
    emit channelClosed( name() );
}