/****************************************************************************
** TQFtp meta object code from reading C++ file 'ntqftp.h'
**
** Created by: The TQt Meta Object Compiler version 26 (TQt 3.5.0)
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef TQT_NO_COMPAT
#include "../../network/ntqftp.h"
#include <ntqmetaobject.h>
#include <ntqapplication.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.5.0. It"
#error "cannot be used with the include files from this version of TQt."
#error "(The moc has changed too much.)"
#endif

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

TQMetaObject *TQFtp::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQFtp( "TQFtp", &TQFtp::staticMetaObject );

#ifndef TQT_NO_TRANSLATION
TQString TQFtp::tr( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "TQFtp", s, c, TQApplication::DefaultCodec );
    else
	return TQString::fromLatin1( s );
}
#ifndef TQT_NO_TRANSLATION_UTF8
TQString TQFtp::trUtf8( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "TQFtp", s, c, TQApplication::UnicodeUTF8 );
    else
	return TQString::fromUtf8( s );
}
#endif // TQT_NO_TRANSLATION_UTF8

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQFtp::staticMetaObject()
{
    if ( metaObj ) {
	return metaObj;
}
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->lock();
    if ( metaObj ) {
	if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
	return metaObj;
    }
#endif // TQT_THREAD_SUPPORT
    TQMetaObject* parentObject = TQNetworkProtocol::staticMetaObject();
    static const TQUMethod slot_0 = {"abort", 0, 0 };
    static const TQUMethod slot_1 = {"startNextCommand", 0, 0 };
    static const TQUParameter param_slot_2[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"piFinished", 1, param_slot_2 };
    static const TQUParameter param_slot_3[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In },
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"piError", 2, param_slot_3 };
    static const TQUParameter param_slot_4[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"piConnectState", 1, param_slot_4 };
    static const TQUParameter param_slot_5[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In },
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"piFtpReply", 2, param_slot_5 };
    static const TQUParameter param_slot_6[] = {
	{ 0, &static_QUType_ptr, "TQUrlInfo", TQUParameter::In }
    };
    static const TQUMethod slot_6 = {"npListInfo", 1, param_slot_6 };
    static const TQUParameter param_slot_7[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_7 = {"npDone", 1, param_slot_7 };
    static const TQUParameter param_slot_8[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_8 = {"npStateChanged", 1, param_slot_8 };
    static const TQUParameter param_slot_9[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In },
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_9 = {"npDataTransferProgress", 2, param_slot_9 };
    static const TQUMethod slot_10 = {"npReadyRead", 0, 0 };
    static const TQUMethod slot_11 = {"hostFound", 0, 0 };
    static const TQUMethod slot_12 = {"connected", 0, 0 };
    static const TQUMethod slot_13 = {"closed", 0, 0 };
    static const TQUMethod slot_14 = {"dataHostFound", 0, 0 };
    static const TQUMethod slot_15 = {"dataConnected", 0, 0 };
    static const TQUMethod slot_16 = {"dataClosed", 0, 0 };
    static const TQUMethod slot_17 = {"dataReadyRead", 0, 0 };
    static const TQUParameter param_slot_18[] = {
	{ "nbytes", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_18 = {"dataBytesWritten", 1, param_slot_18 };
    static const TQUParameter param_slot_19[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_19 = {"error", 1, param_slot_19 };
    static const TQMetaData slot_tbl[] = {
	{ "abort()", &slot_0, TQMetaData::Public },
	{ "startNextCommand()", &slot_1, TQMetaData::Private },
	{ "piFinished(const TQString&)", &slot_2, TQMetaData::Private },
	{ "piError(int,const TQString&)", &slot_3, TQMetaData::Private },
	{ "piConnectState(int)", &slot_4, TQMetaData::Private },
	{ "piFtpReply(int,const TQString&)", &slot_5, TQMetaData::Private },
	{ "npListInfo(const TQUrlInfo&)", &slot_6, TQMetaData::Private },
	{ "npDone(bool)", &slot_7, TQMetaData::Private },
	{ "npStateChanged(int)", &slot_8, TQMetaData::Private },
	{ "npDataTransferProgress(int,int)", &slot_9, TQMetaData::Private },
	{ "npReadyRead()", &slot_10, TQMetaData::Private },
	{ "hostFound()", &slot_11, TQMetaData::Protected },
	{ "connected()", &slot_12, TQMetaData::Protected },
	{ "closed()", &slot_13, TQMetaData::Protected },
	{ "dataHostFound()", &slot_14, TQMetaData::Protected },
	{ "dataConnected()", &slot_15, TQMetaData::Protected },
	{ "dataClosed()", &slot_16, TQMetaData::Protected },
	{ "dataReadyRead()", &slot_17, TQMetaData::Protected },
	{ "dataBytesWritten(int)", &slot_18, TQMetaData::Protected },
	{ "error(int)", &slot_19, TQMetaData::Protected }
    };
    static const TQUParameter param_signal_0[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"stateChanged", 1, param_signal_0 };
    static const TQUParameter param_signal_1[] = {
	{ 0, &static_QUType_ptr, "TQUrlInfo", TQUParameter::In }
    };
    static const TQUMethod signal_1 = {"listInfo", 1, param_signal_1 };
    static const TQUMethod signal_2 = {"readyRead", 0, 0 };
    static const TQUParameter param_signal_3[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In },
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_3 = {"dataTransferProgress", 2, param_signal_3 };
    static const TQUParameter param_signal_4[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In },
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod signal_4 = {"rawCommandReply", 2, param_signal_4 };
    static const TQUParameter param_signal_5[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_5 = {"commandStarted", 1, param_signal_5 };
    static const TQUParameter param_signal_6[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In },
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod signal_6 = {"commandFinished", 2, param_signal_6 };
    static const TQUParameter param_signal_7[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod signal_7 = {"done", 1, param_signal_7 };
    static const TQMetaData signal_tbl[] = {
	{ "stateChanged(int)", &signal_0, TQMetaData::Public },
	{ "listInfo(const TQUrlInfo&)", &signal_1, TQMetaData::Public },
	{ "readyRead()", &signal_2, TQMetaData::Public },
	{ "dataTransferProgress(int,int)", &signal_3, TQMetaData::Public },
	{ "rawCommandReply(int,const TQString&)", &signal_4, TQMetaData::Public },
	{ "commandStarted(int)", &signal_5, TQMetaData::Public },
	{ "commandFinished(int,bool)", &signal_6, TQMetaData::Public },
	{ "done(bool)", &signal_7, TQMetaData::Public }
    };
    metaObj = TQMetaObject::new_metaobject(
	"TQFtp", parentObject,
	slot_tbl, 20,
	signal_tbl, 8,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQFtp.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

void* TQFtp::tqt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "TQFtp" ) )
	return this;
    return TQNetworkProtocol::tqt_cast( clname );
}

// TQ_SIGNAL stateChanged
void TQFtp::stateChanged( int t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 0, t0 );
}

#include <ntqobjectdefs.h>
#include <ntqsignalslotimp.h>

// TQ_SIGNAL listInfo
void TQFtp::listInfo( const TQUrlInfo& t0 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 1 );
    if ( !clist )
	return;
    TQUObject o[2];
    static_QUType_ptr.set(o+1,&t0);
    o[1].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL readyRead
void TQFtp::readyRead()
{
    activate_signal( staticMetaObject()->signalOffset() + 2 );
}

// TQ_SIGNAL dataTransferProgress
void TQFtp::dataTransferProgress( int t0, int t1 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 3 );
    if ( !clist )
	return;
    TQUObject o[3];
    static_QUType_int.set(o+1,t0);
    static_QUType_int.set(o+2,t1);
    o[2].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL rawCommandReply
void TQFtp::rawCommandReply( int t0, const TQString& t1 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 4 );
    if ( !clist )
	return;
    TQUObject o[3];
    static_QUType_int.set(o+1,t0);
    static_QUType_TQString.set(o+2,t1);
    o[2].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL commandStarted
void TQFtp::commandStarted( int t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 5, t0 );
}

// TQ_SIGNAL commandFinished
void TQFtp::commandFinished( int t0, bool t1 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 6 );
    if ( !clist )
	return;
    TQUObject o[3];
    static_QUType_int.set(o+1,t0);
    static_QUType_bool.set(o+2,t1);
    o[2].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL done
void TQFtp::done( bool t0 )
{
    activate_signal_bool( staticMetaObject()->signalOffset() + 7, t0 );
}

bool TQFtp::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: abort(); break;
    case 1: startNextCommand(); break;
    case 2: piFinished((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 3: piError((int)static_QUType_int.get(_o+1),(const TQString&)static_QUType_TQString.get(_o+2)); break;
    case 4: piConnectState((int)static_QUType_int.get(_o+1)); break;
    case 5: piFtpReply((int)static_QUType_int.get(_o+1),(const TQString&)static_QUType_TQString.get(_o+2)); break;
    case 6: npListInfo((const TQUrlInfo&)*((const TQUrlInfo*)static_QUType_ptr.get(_o+1))); break;
    case 7: npDone((bool)static_QUType_bool.get(_o+1)); break;
    case 8: npStateChanged((int)static_QUType_int.get(_o+1)); break;
    case 9: npDataTransferProgress((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
    case 10: npReadyRead(); break;
    case 11: hostFound(); break;
    case 12: connected(); break;
    case 13: closed(); break;
    case 14: dataHostFound(); break;
    case 15: dataConnected(); break;
    case 16: dataClosed(); break;
    case 17: dataReadyRead(); break;
    case 18: dataBytesWritten((int)static_QUType_int.get(_o+1)); break;
    case 19: error((int)static_QUType_int.get(_o+1)); break;
    default:
	return TQNetworkProtocol::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQFtp::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: stateChanged((int)static_QUType_int.get(_o+1)); break;
    case 1: listInfo((const TQUrlInfo&)*((const TQUrlInfo*)static_QUType_ptr.get(_o+1))); break;
    case 2: readyRead(); break;
    case 3: dataTransferProgress((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
    case 4: rawCommandReply((int)static_QUType_int.get(_o+1),(const TQString&)static_QUType_TQString.get(_o+2)); break;
    case 5: commandStarted((int)static_QUType_int.get(_o+1)); break;
    case 6: commandFinished((int)static_QUType_int.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break;
    case 7: done((bool)static_QUType_bool.get(_o+1)); break;
    default:
	return TQNetworkProtocol::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool TQFtp::tqt_property( int id, int f, TQVariant* v)
{
    return TQNetworkProtocol::tqt_property( id, f, v);
}

bool TQFtp::tqt_static_property( TQObject* , int , int , TQVariant* ){ return false; }
#endif // TQT_NO_PROPERTIES
