/****************************************************************************
** OpenvpnManagementHandler meta object code from reading C++ file 'openvpnmanagementhandler.h'
**
** Created: Fri Aug 11 03:18:34 2006
**      by: The Qt MOC ($Id: qt/moc_yacc.cpp   3.3.6   edited Mar 8 17:43 $)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef QT_NO_COMPAT
#include "openvpnmanagementhandler.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.6. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

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

QMetaObject *OpenvpnManagementHandler::metaObj = 0;
static QMetaObjectCleanUp cleanUp_OpenvpnManagementHandler( "OpenvpnManagementHandler", &OpenvpnManagementHandler::staticMetaObject );

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

#endif // QT_NO_TRANSLATION

QMetaObject* OpenvpnManagementHandler::staticMetaObject()
{
    if ( metaObj )
	return metaObj;
    QMetaObject* parentObject = QObject::staticMetaObject();
    static const QUMethod slot_0 = {"socketConnected", 0, 0 };
    static const QUMethod slot_1 = {"socketConnectionClosed", 0, 0 };
    static const QUParameter param_slot_2[] = {
	{ 0, &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_2 = {"socketError", 1, param_slot_2 };
    static const QUMethod slot_3 = {"socketReadyRead", 0, 0 };
    static const QUMethod slot_4 = {"socketClosed", 0, 0 };
    static const QUParameter param_slot_5[] = {
	{ "cmd", &static_QUType_QString, 0, QUParameter::In }
    };
    static const QUMethod slot_5 = {"sendToServer", 1, param_slot_5 };
    static const QMetaData slot_tbl[] = {
	{ "socketConnected()", &slot_0, QMetaData::Private },
	{ "socketConnectionClosed()", &slot_1, QMetaData::Private },
	{ "socketError(int)", &slot_2, QMetaData::Private },
	{ "socketReadyRead()", &slot_3, QMetaData::Private },
	{ "socketClosed()", &slot_4, QMetaData::Private },
	{ "sendToServer(QString)", &slot_5, QMetaData::Public }
    };
    static const QUMethod signal_0 = {"terminate_openvpn", 0, 0 };
    static const QMetaData signal_tbl[] = {
	{ "terminate_openvpn()", &signal_0, QMetaData::Private }
    };
    metaObj = QMetaObject::new_metaobject(
	"OpenvpnManagementHandler", parentObject,
	slot_tbl, 6,
	signal_tbl, 1,
#ifndef QT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // QT_NO_PROPERTIES
	0, 0 );
    cleanUp_OpenvpnManagementHandler.setMetaObject( metaObj );
    return metaObj;
}

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

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

bool OpenvpnManagementHandler::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: socketConnected(); break;
    case 1: socketConnectionClosed(); break;
    case 2: socketError((int)static_QUType_int.get(_o+1)); break;
    case 3: socketReadyRead(); break;
    case 4: socketClosed(); break;
    case 5: sendToServer((QString)static_QUType_QString.get(_o+1)); break;
    default:
	return QObject::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool OpenvpnManagementHandler::qt_emit( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: terminate_openvpn(); break;
    default:
	return QObject::qt_emit(_id,_o);
    }
    return TRUE;
}
#ifndef QT_NO_PROPERTIES

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

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