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

TQMetaObject *TQDataBrowser::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQDataBrowser( "TQDataBrowser", &TQDataBrowser::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQDataBrowser::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 = TQWidget::staticMetaObject();
    static const TQUMethod slot_0 = {"refresh", 0, 0 };
    static const TQUMethod slot_1 = {"insert", 0, 0 };
    static const TQUMethod slot_2 = {"update", 0, 0 };
    static const TQUMethod slot_3 = {"del", 0, 0 };
    static const TQUMethod slot_4 = {"first", 0, 0 };
    static const TQUMethod slot_5 = {"last", 0, 0 };
    static const TQUMethod slot_6 = {"next", 0, 0 };
    static const TQUMethod slot_7 = {"prev", 0, 0 };
    static const TQUMethod slot_8 = {"readFields", 0, 0 };
    static const TQUMethod slot_9 = {"writeFields", 0, 0 };
    static const TQUMethod slot_10 = {"clearValues", 0, 0 };
    static const TQUMethod slot_11 = {"updateBoundary", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "refresh()", &slot_0, TQMetaData::Public },
	{ "insert()", &slot_1, TQMetaData::Public },
	{ "update()", &slot_2, TQMetaData::Public },
	{ "del()", &slot_3, TQMetaData::Public },
	{ "first()", &slot_4, TQMetaData::Public },
	{ "last()", &slot_5, TQMetaData::Public },
	{ "next()", &slot_6, TQMetaData::Public },
	{ "prev()", &slot_7, TQMetaData::Public },
	{ "readFields()", &slot_8, TQMetaData::Public },
	{ "writeFields()", &slot_9, TQMetaData::Public },
	{ "clearValues()", &slot_10, TQMetaData::Public },
	{ "updateBoundary()", &slot_11, TQMetaData::Public }
    };
    static const TQUParameter param_signal_0[] = {
	{ "available", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"firstRecordAvailable", 1, param_signal_0 };
    static const TQUParameter param_signal_1[] = {
	{ "available", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod signal_1 = {"lastRecordAvailable", 1, param_signal_1 };
    static const TQUParameter param_signal_2[] = {
	{ "available", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod signal_2 = {"nextRecordAvailable", 1, param_signal_2 };
    static const TQUParameter param_signal_3[] = {
	{ "available", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod signal_3 = {"prevRecordAvailable", 1, param_signal_3 };
    static const TQUParameter param_signal_4[] = {
	{ "record", &static_QUType_ptr, "TQSqlRecord", TQUParameter::In }
    };
    static const TQUMethod signal_4 = {"currentChanged", 1, param_signal_4 };
    static const TQUParameter param_signal_5[] = {
	{ "buf", &static_QUType_ptr, "TQSqlRecord", TQUParameter::In }
    };
    static const TQUMethod signal_5 = {"primeInsert", 1, param_signal_5 };
    static const TQUParameter param_signal_6[] = {
	{ "buf", &static_QUType_ptr, "TQSqlRecord", TQUParameter::In }
    };
    static const TQUMethod signal_6 = {"primeUpdate", 1, param_signal_6 };
    static const TQUParameter param_signal_7[] = {
	{ "buf", &static_QUType_ptr, "TQSqlRecord", TQUParameter::In }
    };
    static const TQUMethod signal_7 = {"primeDelete", 1, param_signal_7 };
    static const TQUParameter param_signal_8[] = {
	{ "buf", &static_QUType_ptr, "TQSqlRecord", TQUParameter::In }
    };
    static const TQUMethod signal_8 = {"beforeInsert", 1, param_signal_8 };
    static const TQUParameter param_signal_9[] = {
	{ "buf", &static_QUType_ptr, "TQSqlRecord", TQUParameter::In }
    };
    static const TQUMethod signal_9 = {"beforeUpdate", 1, param_signal_9 };
    static const TQUParameter param_signal_10[] = {
	{ "buf", &static_QUType_ptr, "TQSqlRecord", TQUParameter::In }
    };
    static const TQUMethod signal_10 = {"beforeDelete", 1, param_signal_10 };
    static const TQUParameter param_signal_11[] = {
	{ "mode", &static_QUType_ptr, "TQSqlCursor::Mode", TQUParameter::In }
    };
    static const TQUMethod signal_11 = {"cursorChanged", 1, param_signal_11 };
    static const TQMetaData signal_tbl[] = {
	{ "firstRecordAvailable(bool)", &signal_0, TQMetaData::Public },
	{ "lastRecordAvailable(bool)", &signal_1, TQMetaData::Public },
	{ "nextRecordAvailable(bool)", &signal_2, TQMetaData::Public },
	{ "prevRecordAvailable(bool)", &signal_3, TQMetaData::Public },
	{ "currentChanged(const TQSqlRecord*)", &signal_4, TQMetaData::Public },
	{ "primeInsert(TQSqlRecord*)", &signal_5, TQMetaData::Public },
	{ "primeUpdate(TQSqlRecord*)", &signal_6, TQMetaData::Public },
	{ "primeDelete(TQSqlRecord*)", &signal_7, TQMetaData::Public },
	{ "beforeInsert(TQSqlRecord*)", &signal_8, TQMetaData::Public },
	{ "beforeUpdate(TQSqlRecord*)", &signal_9, TQMetaData::Public },
	{ "beforeDelete(TQSqlRecord*)", &signal_10, TQMetaData::Public },
	{ "cursorChanged(TQSqlCursor::Mode)", &signal_11, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[10] = {
 	{ "bool","boundaryChecking", 0x12000103, &TQDataBrowser::metaObj, 0, -1 },
	{ "TQString","filter", 0x3000103, &TQDataBrowser::metaObj, 0, -1 },
	{ "TQStringList","sort", 0x4000103, &TQDataBrowser::metaObj, 0, -1 },
	{ "bool","confirmEdits", 0x12000103, &TQDataBrowser::metaObj, 0, -1 },
	{ "bool","confirmInsert", 0x12000103, &TQDataBrowser::metaObj, 0, -1 },
	{ "bool","confirmUpdate", 0x12000103, &TQDataBrowser::metaObj, 0, -1 },
	{ "bool","confirmDelete", 0x12000103, &TQDataBrowser::metaObj, 0, -1 },
	{ "bool","confirmCancels", 0x12000103, &TQDataBrowser::metaObj, 0, -1 },
	{ "bool","readOnly", 0x12000103, &TQDataBrowser::metaObj, 0, -1 },
	{ "bool","autoEdit", 0x12000103, &TQDataBrowser::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQDataBrowser", parentObject,
	slot_tbl, 12,
	signal_tbl, 12,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 10,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQDataBrowser.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

// TQ_SIGNAL firstRecordAvailable
void TQDataBrowser::firstRecordAvailable( bool t0 )
{
    activate_signal_bool( staticMetaObject()->signalOffset() + 0, t0 );
}

// TQ_SIGNAL lastRecordAvailable
void TQDataBrowser::lastRecordAvailable( bool t0 )
{
    activate_signal_bool( staticMetaObject()->signalOffset() + 1, t0 );
}

// TQ_SIGNAL nextRecordAvailable
void TQDataBrowser::nextRecordAvailable( bool t0 )
{
    activate_signal_bool( staticMetaObject()->signalOffset() + 2, t0 );
}

// TQ_SIGNAL prevRecordAvailable
void TQDataBrowser::prevRecordAvailable( bool t0 )
{
    activate_signal_bool( staticMetaObject()->signalOffset() + 3, t0 );
}

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

// TQ_SIGNAL currentChanged
void TQDataBrowser::currentChanged( const 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 primeInsert
void TQDataBrowser::primeInsert( 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 primeUpdate
void TQDataBrowser::primeUpdate( 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 primeDelete
void TQDataBrowser::primeDelete( TQSqlRecord* 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 );
}

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

bool TQDataBrowser::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: refresh(); break;
    case 1: insert(); break;
    case 2: update(); break;
    case 3: del(); break;
    case 4: first(); break;
    case 5: last(); break;
    case 6: next(); break;
    case 7: prev(); break;
    case 8: readFields(); break;
    case 9: writeFields(); break;
    case 10: clearValues(); break;
    case 11: updateBoundary(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQDataBrowser::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: firstRecordAvailable((bool)static_QUType_bool.get(_o+1)); break;
    case 1: lastRecordAvailable((bool)static_QUType_bool.get(_o+1)); break;
    case 2: nextRecordAvailable((bool)static_QUType_bool.get(_o+1)); break;
    case 3: prevRecordAvailable((bool)static_QUType_bool.get(_o+1)); break;
    case 4: currentChanged((const TQSqlRecord*)static_QUType_ptr.get(_o+1)); break;
    case 5: primeInsert((TQSqlRecord*)static_QUType_ptr.get(_o+1)); break;
    case 6: primeUpdate((TQSqlRecord*)static_QUType_ptr.get(_o+1)); break;
    case 7: primeDelete((TQSqlRecord*)static_QUType_ptr.get(_o+1)); break;
    case 8: beforeInsert((TQSqlRecord*)static_QUType_ptr.get(_o+1)); break;
    case 9: beforeUpdate((TQSqlRecord*)static_QUType_ptr.get(_o+1)); break;
    case 10: beforeDelete((TQSqlRecord*)static_QUType_ptr.get(_o+1)); break;
    case 11: cursorChanged((TQSqlCursor::Mode)(*((TQSqlCursor::Mode*)static_QUType_ptr.get(_o+1)))); break;
    default:
	return TQWidget::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool TQDataBrowser::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setBoundaryChecking(v->asBool()); break;
	case 1: *v = TQVariant( this->boundaryChecking() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: 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 2: 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 3: 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 4: 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 5: 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 6: 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 7: 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 8: switch( f ) {
	case 0: setReadOnly(v->asBool()); break;
	case 1: *v = TQVariant( this->isReadOnly() ); 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;
    default:
	return TQWidget::tqt_property( id, f, v );
    }
    return true;
}

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