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

TQMetaObject *ListBoxDnd::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ListBoxDnd( "ListBoxDnd", &ListBoxDnd::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* ListBoxDnd::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 = ListDnd::staticMetaObject();
    static const TQUParameter param_slot_0[] = {
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"confirmDrop", 1, param_slot_0 };
    static const TQMetaData slot_tbl[] = {
	{ "confirmDrop(TQListBoxItem*)", &slot_0, TQMetaData::Public }
    };
    static const TQUParameter param_signal_0[] = {
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"dropped", 1, param_signal_0 };
    static const TQUParameter param_signal_1[] = {
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In }
    };
    static const TQUMethod signal_1 = {"dragged", 1, param_signal_1 };
    static const TQMetaData signal_tbl[] = {
	{ "dropped(TQListBoxItem*)", &signal_0, TQMetaData::Public },
	{ "dragged(TQListBoxItem*)", &signal_1, TQMetaData::Public }
    };
    metaObj = TQMetaObject::new_metaobject(
	"ListBoxDnd", parentObject,
	slot_tbl, 1,
	signal_tbl, 2,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_ListBoxDnd.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

// TQ_SIGNAL dragged
void ListBoxDnd::dragged( TQListBoxItem* 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 );
}

bool ListBoxDnd::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: confirmDrop((TQListBoxItem*)static_QUType_ptr.get(_o+1)); break;
    default:
	return ListDnd::tqt_invoke( _id, _o );
    }
    return true;
}

bool ListBoxDnd::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: dropped((TQListBoxItem*)static_QUType_ptr.get(_o+1)); break;
    case 1: dragged((TQListBoxItem*)static_QUType_ptr.get(_o+1)); break;
    default:
	return ListDnd::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

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

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