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

TQMetaObject *TQSqlDatabase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQSqlDatabase( "TQSqlDatabase", &TQSqlDatabase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQSqlDatabase::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();
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[6] = {
 	{ "TQString","databaseName", 0x3000103, &TQSqlDatabase::metaObj, 0, -1 },
	{ "TQString","userName", 0x3000103, &TQSqlDatabase::metaObj, 0, -1 },
	{ "TQString","password", 0x3000103, &TQSqlDatabase::metaObj, 0, -1 },
	{ "TQString","hostName", 0x3000103, &TQSqlDatabase::metaObj, 0, -1 },
	{ "int","port", 0x10000103, &TQSqlDatabase::metaObj, 0, -1 },
	{ "TQString","connectOptions", 0x3000103, &TQSqlDatabase::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQSqlDatabase", parentObject,
	0, 0,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 6,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQSqlDatabase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool TQSqlDatabase::tqt_invoke( int _id, TQUObject* _o )
{
    return TQObject::tqt_invoke(_id,_o);
}

bool TQSqlDatabase::tqt_emit( int _id, TQUObject* _o )
{
    return TQObject::tqt_emit(_id,_o);
}
#ifndef TQT_NO_PROPERTIES

bool TQSqlDatabase::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setDatabaseName(v->asString()); break;
	case 1: *v = TQVariant( this->databaseName() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setUserName(v->asString()); break;
	case 1: *v = TQVariant( this->userName() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 0: setPassword(v->asString()); break;
	case 1: *v = TQVariant( this->password() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 0: setHostName(v->asString()); break;
	case 1: *v = TQVariant( this->hostName() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 4: switch( f ) {
	case 0: setPort(v->asInt()); break;
	case 1: *v = TQVariant( this->port() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 5: switch( f ) {
	case 0: setConnectOptions(v->asString()); break;
	case 1: *v = TQVariant( this->connectOptions() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQObject::tqt_property( id, f, v );
    }
    return true;
}

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