/****************************************************************************
** KviIrcConnection meta object code from reading C++ file 'kvi_ircconnection.h'
**
** Created: Mon Feb 25 00:11:48 2008
**      by: The Qt MOC ($Id: qt/moc_yacc.cpp   3.3.8   edited Feb 2 14:59 $)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef QT_NO_COMPAT
#include "kvi_ircconnection.h"
#include <qmetaobject.h>
#include <qapplication.h>

#include <private/qucomextra_p.h>
#if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
#error "This file was generated using the moc from 3.3.8. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

const char *KviIrcConnection::className() const
{
    return "KviIrcConnection";
}

QMetaObject *KviIrcConnection::metaObj = 0;
static QMetaObjectCleanUp cleanUp_KviIrcConnection( "KviIrcConnection", &KviIrcConnection::staticMetaObject );

#ifndef QT_NO_TRANSLATION
QString KviIrcConnection::tr( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "KviIrcConnection", s, c, QApplication::DefaultCodec );
    else
	return QString::fromLatin1( s );
}
#ifndef QT_NO_TRANSLATION_UTF8
QString KviIrcConnection::trUtf8( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "KviIrcConnection", s, c, QApplication::UnicodeUTF8 );
    else
	return QString::fromUtf8( s );
}
#endif // QT_NO_TRANSLATION_UTF8

#endif // QT_NO_TRANSLATION

QMetaObject* KviIrcConnection::staticMetaObject()
{
    if ( metaObj )
	return metaObj;
    QMetaObject* parentObject = QObject::staticMetaObject();
    static const QUMethod slot_0 = {"partAllChannels", 0, 0 };
    static const QUMethod slot_1 = {"unhighlightAllChannels", 0, 0 };
    static const QUMethod slot_2 = {"unhighlightAllQueries", 0, 0 };
    static const QUMethod slot_3 = {"restartNotifyList", 0, 0 };
    static const QUMethod slot_4 = {"closeAllQueries", 0, 0 };
    static const QUParameter param_slot_5[] = {
	{ "pDns", &static_QUType_ptr, "KviDns", QUParameter::In }
    };
    static const QUMethod slot_5 = {"hostNameLookupTerminated", 1, param_slot_5 };
    static const QMetaData slot_tbl[] = {
	{ "partAllChannels()", &slot_0, QMetaData::Public },
	{ "unhighlightAllChannels()", &slot_1, QMetaData::Public },
	{ "unhighlightAllQueries()", &slot_2, QMetaData::Public },
	{ "restartNotifyList()", &slot_3, QMetaData::Public },
	{ "closeAllQueries()", &slot_4, QMetaData::Public },
	{ "hostNameLookupTerminated(KviDns*)", &slot_5, QMetaData::Private }
    };
    static const QUMethod signal_0 = {"awayStateChanged", 0, 0 };
    static const QUMethod signal_1 = {"userModeChanged", 0, 0 };
    static const QUMethod signal_2 = {"nickNameChanged", 0, 0 };
    static const QUParameter param_signal_3[] = {
	{ 0, &static_QUType_ptr, "KviChannel", QUParameter::In }
    };
    static const QUMethod signal_3 = {"channelRegistered", 1, param_signal_3 };
    static const QUParameter param_signal_4[] = {
	{ 0, &static_QUType_ptr, "KviChannel", QUParameter::In }
    };
    static const QUMethod signal_4 = {"channelUnregistered", 1, param_signal_4 };
    static const QUMethod signal_5 = {"chanListChanged", 0, 0 };
    static const QMetaData signal_tbl[] = {
	{ "awayStateChanged()", &signal_0, QMetaData::Public },
	{ "userModeChanged()", &signal_1, QMetaData::Public },
	{ "nickNameChanged()", &signal_2, QMetaData::Public },
	{ "channelRegistered(KviChannel*)", &signal_3, QMetaData::Public },
	{ "channelUnregistered(KviChannel*)", &signal_4, QMetaData::Public },
	{ "chanListChanged()", &signal_5, QMetaData::Public }
    };
    metaObj = QMetaObject::new_metaobject(
	"KviIrcConnection", parentObject,
	slot_tbl, 6,
	signal_tbl, 6,
#ifndef QT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // QT_NO_PROPERTIES
	0, 0 );
    cleanUp_KviIrcConnection.setMetaObject( metaObj );
    return metaObj;
}

void* KviIrcConnection::qt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "KviIrcConnection" ) )
	return this;
    return QObject::qt_cast( clname );
}

// SIGNAL awayStateChanged
void KviIrcConnection::awayStateChanged()
{
    activate_signal( staticMetaObject()->signalOffset() + 0 );
}

// SIGNAL userModeChanged
void KviIrcConnection::userModeChanged()
{
    activate_signal( staticMetaObject()->signalOffset() + 1 );
}

// SIGNAL nickNameChanged
void KviIrcConnection::nickNameChanged()
{
    activate_signal( staticMetaObject()->signalOffset() + 2 );
}

#include <qobjectdefs.h>
#include <qsignalslotimp.h>

// SIGNAL channelRegistered
void KviIrcConnection::channelRegistered( KviChannel* t0 )
{
    if ( signalsBlocked() )
	return;
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 3 );
    if ( !clist )
	return;
    QUObject o[2];
    static_QUType_ptr.set(o+1,t0);
    activate_signal( clist, o );
}

// SIGNAL channelUnregistered
void KviIrcConnection::channelUnregistered( KviChannel* t0 )
{
    if ( signalsBlocked() )
	return;
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 4 );
    if ( !clist )
	return;
    QUObject o[2];
    static_QUType_ptr.set(o+1,t0);
    activate_signal( clist, o );
}

// SIGNAL chanListChanged
void KviIrcConnection::chanListChanged()
{
    activate_signal( staticMetaObject()->signalOffset() + 5 );
}

bool KviIrcConnection::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: partAllChannels(); break;
    case 1: unhighlightAllChannels(); break;
    case 2: unhighlightAllQueries(); break;
    case 3: restartNotifyList(); break;
    case 4: closeAllQueries(); break;
    case 5: hostNameLookupTerminated((KviDns*)static_QUType_ptr.get(_o+1)); break;
    default:
	return QObject::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool KviIrcConnection::qt_emit( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: awayStateChanged(); break;
    case 1: userModeChanged(); break;
    case 2: nickNameChanged(); break;
    case 3: channelRegistered((KviChannel*)static_QUType_ptr.get(_o+1)); break;
    case 4: channelUnregistered((KviChannel*)static_QUType_ptr.get(_o+1)); break;
    case 5: chanListChanged(); break;
    default:
	return QObject::qt_emit(_id,_o);
    }
    return TRUE;
}
#ifndef QT_NO_PROPERTIES

bool KviIrcConnection::qt_property( int id, int f, QVariant* v)
{
    return QObject::qt_property( id, f, v);
}

bool KviIrcConnection::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
#endif // QT_NO_PROPERTIES
