/****************************************************************************
** TQUrlOperator meta object code from reading C++ file 'ntqurloperator.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 "../../kernel/ntqurloperator.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 *TQUrlOperator::className() const
{
    return "TQUrlOperator";
}

TQMetaObject *TQUrlOperator::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQUrlOperator( "TQUrlOperator", &TQUrlOperator::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQUrlOperator::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 = TQObject::staticMetaObject();
    static const TQUParameter param_slot_0[] = {
	{ 0, &static_QUType_ptr, "TQNetworkOperation", TQUParameter::Out },
	{ "op", &static_QUType_ptr, "TQNetworkOperation", TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"startOperation", 2, param_slot_0 };
    static const TQUParameter param_slot_1[] = {
	{ "data", &static_QUType_varptr, "\x1d", TQUParameter::In },
	{ "op", &static_QUType_ptr, "TQNetworkOperation", TQUParameter::In }
    };
    static const TQUMethod slot_1 = {"copyGotData", 2, param_slot_1 };
    static const TQUParameter param_slot_2[] = {
	{ "op", &static_QUType_ptr, "TQNetworkOperation", TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"continueCopy", 1, param_slot_2 };
    static const TQUMethod slot_3 = {"finishedCopy", 0, 0 };
    static const TQUParameter param_slot_4[] = {
	{ "i", &static_QUType_ptr, "TQValueList<TQUrlInfo>", TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"addEntry", 1, param_slot_4 };
    static const TQUParameter param_slot_5[] = {
	{ "op", &static_QUType_ptr, "TQNetworkOperation", TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"slotItemChanged", 1, param_slot_5 };
    static const TQMetaData slot_tbl[] = {
	{ "startOperation(TQNetworkOperation*)", &slot_0, TQMetaData::Private },
	{ "copyGotData(const TQByteArray&,TQNetworkOperation*)", &slot_1, TQMetaData::Private },
	{ "continueCopy(TQNetworkOperation*)", &slot_2, TQMetaData::Private },
	{ "finishedCopy()", &slot_3, TQMetaData::Private },
	{ "addEntry(const TQValueList<TQUrlInfo>&)", &slot_4, TQMetaData::Private },
	{ "slotItemChanged(TQNetworkOperation*)", &slot_5, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ 0, &static_QUType_ptr, "TQValueList<TQUrlInfo>", TQUParameter::In },
	{ "res", &static_QUType_ptr, "TQNetworkOperation", TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"newChildren", 2, param_signal_0 };
    static const TQUParameter param_signal_1[] = {
	{ "res", &static_QUType_ptr, "TQNetworkOperation", TQUParameter::In }
    };
    static const TQUMethod signal_1 = {"finished", 1, param_signal_1 };
    static const TQUParameter param_signal_2[] = {
	{ "res", &static_QUType_ptr, "TQNetworkOperation", TQUParameter::In }
    };
    static const TQUMethod signal_2 = {"start", 1, param_signal_2 };
    static const TQUParameter param_signal_3[] = {
	{ 0, &static_QUType_ptr, "TQUrlInfo", TQUParameter::In },
	{ "res", &static_QUType_ptr, "TQNetworkOperation", TQUParameter::In }
    };
    static const TQUMethod signal_3 = {"createdDirectory", 2, param_signal_3 };
    static const TQUParameter param_signal_4[] = {
	{ "res", &static_QUType_ptr, "TQNetworkOperation", TQUParameter::In }
    };
    static const TQUMethod signal_4 = {"removed", 1, param_signal_4 };
    static const TQUParameter param_signal_5[] = {
	{ "res", &static_QUType_ptr, "TQNetworkOperation", TQUParameter::In }
    };
    static const TQUMethod signal_5 = {"itemChanged", 1, param_signal_5 };
    static const TQUParameter param_signal_6[] = {
	{ 0, &static_QUType_varptr, "\x1d", TQUParameter::In },
	{ "res", &static_QUType_ptr, "TQNetworkOperation", TQUParameter::In }
    };
    static const TQUMethod signal_6 = {"data", 2, param_signal_6 };
    static const TQUParameter param_signal_7[] = {
	{ "bytesDone", &static_QUType_int, 0, TQUParameter::In },
	{ "bytesTotal", &static_QUType_int, 0, TQUParameter::In },
	{ "res", &static_QUType_ptr, "TQNetworkOperation", TQUParameter::In }
    };
    static const TQUMethod signal_7 = {"dataTransferProgress", 3, param_signal_7 };
    static const TQUParameter param_signal_8[] = {
	{ "lst", &static_QUType_ptr, "TQPtrList<TQNetworkOperation>", TQUParameter::In }
    };
    static const TQUMethod signal_8 = {"startedNextCopy", 1, param_signal_8 };
    static const TQUParameter param_signal_9[] = {
	{ "state", &static_QUType_int, 0, TQUParameter::In },
	{ "data", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod signal_9 = {"connectionStateChanged", 2, param_signal_9 };
    static const TQMetaData signal_tbl[] = {
	{ "newChildren(const TQValueList<TQUrlInfo>&,TQNetworkOperation*)", &signal_0, TQMetaData::Public },
	{ "finished(TQNetworkOperation*)", &signal_1, TQMetaData::Public },
	{ "start(TQNetworkOperation*)", &signal_2, TQMetaData::Public },
	{ "createdDirectory(const TQUrlInfo&,TQNetworkOperation*)", &signal_3, TQMetaData::Public },
	{ "removed(TQNetworkOperation*)", &signal_4, TQMetaData::Public },
	{ "itemChanged(TQNetworkOperation*)", &signal_5, TQMetaData::Public },
	{ "data(const TQByteArray&,TQNetworkOperation*)", &signal_6, TQMetaData::Public },
	{ "dataTransferProgress(int,int,TQNetworkOperation*)", &signal_7, TQMetaData::Public },
	{ "startedNextCopy(const TQPtrList<TQNetworkOperation>&)", &signal_8, TQMetaData::Public },
	{ "connectionStateChanged(int,const TQString&)", &signal_9, TQMetaData::Public }
    };
    metaObj = TQMetaObject::new_metaobject(
	"TQUrlOperator", parentObject,
	slot_tbl, 6,
	signal_tbl, 10,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQUrlOperator.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

void* TQUrlOperator::tqt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "TQUrlOperator" ) )
	return this;
    if ( !qstrcmp( clname, "TQUrl" ) )
	return (TQUrl*)this;
    return TQObject::tqt_cast( clname );
}

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

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

// TQ_SIGNAL finished
void TQUrlOperator::finished( TQNetworkOperation* 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 start
void TQUrlOperator::start( TQNetworkOperation* t0 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 2 );
    if ( !clist )
	return;
    TQUObject o[2];
    static_QUType_ptr.set(o+1,t0);
    o[1].isLastObject = true;
    activate_signal( clist, o );
}

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

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

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

// TQ_SIGNAL data
void TQUrlOperator::data( const TQByteArray& t0, TQNetworkOperation* t1 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 6 );
    if ( !clist )
	return;
    TQUObject o[3];
    static_QUType_varptr.set(o+1,&t0);
    static_QUType_ptr.set(o+2,t1);
    o[2].isLastObject = true;
    activate_signal( clist, o );
}

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

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

// TQ_SIGNAL connectionStateChanged
void TQUrlOperator::connectionStateChanged( int t0, const TQString& t1 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 9 );
    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 );
}

bool TQUrlOperator::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: static_QUType_ptr.set(_o,startOperation((TQNetworkOperation*)static_QUType_ptr.get(_o+1))); break;
    case 1: copyGotData((const TQByteArray&)*((const TQByteArray*)static_QUType_ptr.get(_o+1)),(TQNetworkOperation*)static_QUType_ptr.get(_o+2)); break;
    case 2: continueCopy((TQNetworkOperation*)static_QUType_ptr.get(_o+1)); break;
    case 3: finishedCopy(); break;
    case 4: addEntry((const TQValueList<TQUrlInfo>&)*((const TQValueList<TQUrlInfo>*)static_QUType_ptr.get(_o+1))); break;
    case 5: slotItemChanged((TQNetworkOperation*)static_QUType_ptr.get(_o+1)); break;
    default:
	return TQObject::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQUrlOperator::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: newChildren((const TQValueList<TQUrlInfo>&)*((const TQValueList<TQUrlInfo>*)static_QUType_ptr.get(_o+1)),(TQNetworkOperation*)static_QUType_ptr.get(_o+2)); break;
    case 1: finished((TQNetworkOperation*)static_QUType_ptr.get(_o+1)); break;
    case 2: start((TQNetworkOperation*)static_QUType_ptr.get(_o+1)); break;
    case 3: createdDirectory((const TQUrlInfo&)*((const TQUrlInfo*)static_QUType_ptr.get(_o+1)),(TQNetworkOperation*)static_QUType_ptr.get(_o+2)); break;
    case 4: removed((TQNetworkOperation*)static_QUType_ptr.get(_o+1)); break;
    case 5: itemChanged((TQNetworkOperation*)static_QUType_ptr.get(_o+1)); break;
    case 6: data((const TQByteArray&)*((const TQByteArray*)static_QUType_ptr.get(_o+1)),(TQNetworkOperation*)static_QUType_ptr.get(_o+2)); break;
    case 7: dataTransferProgress((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2),(TQNetworkOperation*)static_QUType_ptr.get(_o+3)); break;
    case 8: startedNextCopy((const TQPtrList<TQNetworkOperation>&)*((const TQPtrList<TQNetworkOperation>*)static_QUType_ptr.get(_o+1))); break;
    case 9: connectionStateChanged((int)static_QUType_int.get(_o+1),(const TQString&)static_QUType_TQString.get(_o+2)); break;
    default:
	return TQObject::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

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

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