/****************************************************************************
** TQDataTable meta object code from reading C++ file 'ntqdatatable.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 "../../sql/ntqdatatable.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

#include <ntqvariant.h>
const char *TQDataTable::className() const
{
    return "TQDataTable";
}

TQMetaObject *TQDataTable::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQDataTable( "TQDataTable", &TQDataTable::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQDataTable::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 = TQTable::staticMetaObject();
    static const TQUParameter param_slot_0[] = {
	{ "str", &static_QUType_TQString, 0, TQUParameter::In },
	{ "caseSensitive", &static_QUType_bool, 0, TQUParameter::In },
	{ "backwards", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"find", 3, param_slot_0 };
    static const TQUParameter param_slot_1[] = {
	{ "col", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_1 = {"sortAscending", 1, param_slot_1 };
    static const TQUParameter param_slot_2[] = {
	{ "col", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"sortDescending", 1, param_slot_2 };
    static const TQUMethod slot_3 = {"refresh", 0, 0 };
    static const TQUParameter param_slot_4[] = {
	{ "col", &static_QUType_int, 0, TQUParameter::In },
	{ "w", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"setColumnWidth", 2, param_slot_4 };
    static const TQUParameter param_slot_5[] = {
	{ "col", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"adjustColumn", 1, param_slot_5 };
    static const TQUParameter param_slot_6[] = {
	{ "col", &static_QUType_int, 0, TQUParameter::In },
	{ "stretch", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_6 = {"setColumnStretchable", 2, param_slot_6 };
    static const TQUParameter param_slot_7[] = {
	{ "col1", &static_QUType_int, 0, TQUParameter::In },
	{ "col2", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_7 = {"swapColumns", 2, param_slot_7 };
    static const TQUParameter param_slot_8[] = {
	{ "col1", &static_QUType_int, 0, TQUParameter::In },
	{ "col2", &static_QUType_int, 0, TQUParameter::In },
	{ "swapHeaders", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_8 = {"swapColumns", 3, param_slot_8 };
    static const TQUMethod slot_9 = {"loadNextPage", 0, 0 };
    static const TQUParameter param_slot_10[] = {
	{ "row", &static_QUType_int, 0, TQUParameter::In },
	{ "col", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_10 = {"setCurrentSelection", 2, param_slot_10 };
    static const TQUMethod slot_11 = {"updateCurrentSelection", 0, 0 };
    static const TQUMethod slot_12 = {"sliderPressed", 0, 0 };
    static const TQUMethod slot_13 = {"sliderReleased", 0, 0 };
    static const TQUMethod slot_14 = {"doInsertCurrent", 0, 0 };
    static const TQUMethod slot_15 = {"doUpdateCurrent", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "find(const TQString&,bool,bool)", &slot_0, TQMetaData::Public },
	{ "sortAscending(int)", &slot_1, TQMetaData::Public },
	{ "sortDescending(int)", &slot_2, TQMetaData::Public },
	{ "refresh()", &slot_3, TQMetaData::Public },
	{ "setColumnWidth(int,int)", &slot_4, TQMetaData::Public },
	{ "adjustColumn(int)", &slot_5, TQMetaData::Public },
	{ "setColumnStretchable(int,bool)", &slot_6, TQMetaData::Public },
	{ "swapColumns(int,int)", &slot_7, TQMetaData::Public },
	{ "swapColumns(int,int,bool)", &slot_8, TQMetaData::Public },
	{ "loadNextPage()", &slot_9, TQMetaData::Private },
	{ "setCurrentSelection(int,int)", &slot_10, TQMetaData::Private },
	{ "updateCurrentSelection()", &slot_11, TQMetaData::Private },
	{ "sliderPressed()", &slot_12, TQMetaData::Private },
	{ "sliderReleased()", &slot_13, TQMetaData::Private },
	{ "doInsertCurrent()", &slot_14, TQMetaData::Private },
	{ "doUpdateCurrent()", &slot_15, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ "record", &static_QUType_ptr, "TQSqlRecord", TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"currentChanged", 1, param_signal_0 };
    static const TQUParameter param_signal_1[] = {
	{ "buf", &static_QUType_ptr, "TQSqlRecord", TQUParameter::In }
    };
    static const TQUMethod signal_1 = {"primeInsert", 1, param_signal_1 };
    static const TQUParameter param_signal_2[] = {
	{ "buf", &static_QUType_ptr, "TQSqlRecord", TQUParameter::In }
    };
    static const TQUMethod signal_2 = {"primeUpdate", 1, param_signal_2 };
    static const TQUParameter param_signal_3[] = {
	{ "buf", &static_QUType_ptr, "TQSqlRecord", TQUParameter::In }
    };
    static const TQUMethod signal_3 = {"primeDelete", 1, param_signal_3 };
    static const TQUParameter param_signal_4[] = {
	{ "buf", &static_QUType_ptr, "TQSqlRecord", TQUParameter::In }
    };
    static const TQUMethod signal_4 = {"beforeInsert", 1, param_signal_4 };
    static const TQUParameter param_signal_5[] = {
	{ "buf", &static_QUType_ptr, "TQSqlRecord", TQUParameter::In }
    };
    static const TQUMethod signal_5 = {"beforeUpdate", 1, param_signal_5 };
    static const TQUParameter param_signal_6[] = {
	{ "buf", &static_QUType_ptr, "TQSqlRecord", TQUParameter::In }
    };
    static const TQUMethod signal_6 = {"beforeDelete", 1, param_signal_6 };
    static const TQUParameter param_signal_7[] = {
	{ "mode", &static_QUType_ptr, "TQSql::Op", TQUParameter::In }
    };
    static const TQUMethod signal_7 = {"cursorChanged", 1, param_signal_7 };
    static const TQMetaData signal_tbl[] = {
	{ "currentChanged(TQSqlRecord*)", &signal_0, TQMetaData::Public },
	{ "primeInsert(TQSqlRecord*)", &signal_1, TQMetaData::Public },
	{ "primeUpdate(TQSqlRecord*)", &signal_2, TQMetaData::Public },
	{ "primeDelete(TQSqlRecord*)", &signal_3, TQMetaData::Public },
	{ "beforeInsert(TQSqlRecord*)", &signal_4, TQMetaData::Public },
	{ "beforeUpdate(TQSqlRecord*)", &signal_5, TQMetaData::Public },
	{ "beforeDelete(TQSqlRecord*)", &signal_6, TQMetaData::Public },
	{ "cursorChanged(TQSql::Op)", &signal_7, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[14] = {
 	{ "TQString","nullText", 0x3000103, &TQDataTable::metaObj, 0, -1 },
	{ "TQString","trueText", 0x3000103, &TQDataTable::metaObj, 0, -1 },
	{ "TQString","falseText", 0x3000103, &TQDataTable::metaObj, 0, -1 },
	{ "DateFormat","dateFormat", 0x010f, &TQDataTable::metaObj, 0, -1 },
	{ "bool","confirmEdits", 0x12000103, &TQDataTable::metaObj, 0, -1 },
	{ "bool","confirmInsert", 0x12000103, &TQDataTable::metaObj, 0, -1 },
	{ "bool","confirmUpdate", 0x12000103, &TQDataTable::metaObj, 0, -1 },
	{ "bool","confirmDelete", 0x12000103, &TQDataTable::metaObj, 0, -1 },
	{ "bool","confirmCancels", 0x12000103, &TQDataTable::metaObj, 0, -1 },
	{ "bool","autoEdit", 0x12000103, &TQDataTable::metaObj, 0, -1 },
	{ "TQString","filter", 0x3000103, &TQDataTable::metaObj, 0, -1 },
	{ "TQStringList","sort", 0x4000103, &TQDataTable::metaObj, 0, -1 },
	{ "int","numCols", 0x10000001, &TQDataTable::metaObj, 0, -1 },
	{ "int","numRows", 0x10000001, &TQDataTable::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQDataTable", parentObject,
	slot_tbl, 16,
	signal_tbl, 8,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 14,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQDataTable.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

// TQ_SIGNAL currentChanged
void TQDataTable::currentChanged( TQSqlRecord* 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 primeInsert
void TQDataTable::primeInsert( TQSqlRecord* 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 primeUpdate
void TQDataTable::primeUpdate( TQSqlRecord* 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 primeDelete
void TQDataTable::primeDelete( TQSqlRecord* t0 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 3 );
    if ( !clist )
	return;
    TQUObject o[2];
    static_QUType_ptr.set(o+1,t0);
    o[1].isLastObject = true;
    activate_signal( clist, o );
}

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

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

bool TQDataTable::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: find((const TQString&)static_QUType_TQString.get(_o+1),(bool)static_QUType_bool.get(_o+2),(bool)static_QUType_bool.get(_o+3)); break;
    case 1: sortAscending((int)static_QUType_int.get(_o+1)); break;
    case 2: sortDescending((int)static_QUType_int.get(_o+1)); break;
    case 3: refresh(); break;
    case 4: setColumnWidth((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
    case 5: adjustColumn((int)static_QUType_int.get(_o+1)); break;
    case 6: setColumnStretchable((int)static_QUType_int.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break;
    case 7: swapColumns((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
    case 8: swapColumns((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2),(bool)static_QUType_bool.get(_o+3)); break;
    case 9: loadNextPage(); break;
    case 10: setCurrentSelection((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
    case 11: updateCurrentSelection(); break;
    case 12: sliderPressed(); break;
    case 13: sliderReleased(); break;
    case 14: doInsertCurrent(); break;
    case 15: doUpdateCurrent(); break;
    default:
	return TQTable::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQDataTable::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: currentChanged((TQSqlRecord*)static_QUType_ptr.get(_o+1)); break;
    case 1: primeInsert((TQSqlRecord*)static_QUType_ptr.get(_o+1)); break;
    case 2: primeUpdate((TQSqlRecord*)static_QUType_ptr.get(_o+1)); break;
    case 3: primeDelete((TQSqlRecord*)static_QUType_ptr.get(_o+1)); break;
    case 4: beforeInsert((TQSqlRecord*)static_QUType_ptr.get(_o+1)); break;
    case 5: beforeUpdate((TQSqlRecord*)static_QUType_ptr.get(_o+1)); break;
    case 6: beforeDelete((TQSqlRecord*)static_QUType_ptr.get(_o+1)); break;
    case 7: cursorChanged((TQSql::Op)(*((TQSql::Op*)static_QUType_ptr.get(_o+1)))); break;
    default:
	return TQTable::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool TQDataTable::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setNullText(v->asString()); break;
	case 1: *v = TQVariant( this->nullText() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setTrueText(v->asString()); break;
	case 1: *v = TQVariant( this->trueText() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 0: setFalseText(v->asString()); break;
	case 1: *v = TQVariant( this->falseText() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 0: setDateFormat((DateFormat&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->dateFormat() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 4: switch( f ) {
	case 0: setConfirmEdits(v->asBool()); break;
	case 1: *v = TQVariant( this->confirmEdits() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 5: switch( f ) {
	case 0: setConfirmInsert(v->asBool()); break;
	case 1: *v = TQVariant( this->confirmInsert() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 6: switch( f ) {
	case 0: setConfirmUpdate(v->asBool()); break;
	case 1: *v = TQVariant( this->confirmUpdate() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 7: switch( f ) {
	case 0: setConfirmDelete(v->asBool()); break;
	case 1: *v = TQVariant( this->confirmDelete() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 8: switch( f ) {
	case 0: setConfirmCancels(v->asBool()); break;
	case 1: *v = TQVariant( this->confirmCancels() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 9: switch( f ) {
	case 0: setAutoEdit(v->asBool()); break;
	case 1: *v = TQVariant( this->autoEdit() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 10: switch( f ) {
	case 0: setFilter(v->asString()); break;
	case 1: *v = TQVariant( this->filter() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 11: switch( f ) {
	case 0: setSort(v->asStringList()); break;
	case 1: *v = TQVariant( this->sort() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 12: switch( f ) {
	case 1: *v = TQVariant( this->numCols() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 13: switch( f ) {
	case 1: *v = TQVariant( this->numRows() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQTable::tqt_property( id, f, v );
    }
    return true;
}

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