/***************************************************************************
                            qt_QSqlRecord.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "qt_QSqlRecord.h"
}

#include <qsqlrecord.h>

class QSqlRecordBridge : public QSqlRecord
{
public:
	QSqlRecordBridge() : QSqlRecord() {}
	QSqlRecordBridge(const QSqlRecord& other) : QSqlRecord(other) {}
	~QSqlRecordBridge() {}
};

qt_QSqlRecord * qt_new_QSqlRecord(){
	return (qt_QSqlRecord *) new QSqlRecordBridge();
}
qt_QSqlRecord * qt_new_QSqlRecord1(qt_QSqlRecord* other){
	return (qt_QSqlRecord *) new QSqlRecordBridge((QSqlRecord&)* (QSqlRecord*)other);
}
void qt_del_QSqlRecord( qt_QSqlRecord* p ){
	delete (QSqlRecordBridge*) p;
}
qt_QVariant * qt_QSqlRecord_value( qt_QSqlRecord* instPointer,int i){
	return (qt_QVariant *)new QVariant(((QSqlRecordBridge*)instPointer)->value((int)i));
}
qt_QVariant * qt_QSqlRecord_value1( qt_QSqlRecord* instPointer,qt_QString * name){
	return (qt_QVariant *)new QVariant(((QSqlRecordBridge*)instPointer)->value((QString&)* (QString*)name));
}
void qt_QSqlRecord_setValue( qt_QSqlRecord* instPointer,int i, qt_QVariant * val){
	((QSqlRecordBridge*)instPointer)->setValue((int)i, (QVariant&)* (QVariant*)val);
	return;
}
void qt_QSqlRecord_setValue1( qt_QSqlRecord* instPointer,qt_QString * name, qt_QVariant * val){
	((QSqlRecordBridge*)instPointer)->setValue((QString&)* (QString*)name, (QVariant&)* (QVariant*)val);
	return;
}
int qt_QSqlRecord_isGenerated( qt_QSqlRecord* instPointer,int i){
	return (int) ((QSqlRecordBridge*)instPointer)->isGenerated((int)i);
}
int qt_QSqlRecord_isGenerated1( qt_QSqlRecord* instPointer,qt_QString * name){
	return (int) ((QSqlRecordBridge*)instPointer)->isGenerated((QString&)* (QString*)name);
}
void qt_QSqlRecord_setGenerated( qt_QSqlRecord* instPointer,qt_QString * name, int generated){
	((QSqlRecordBridge*)instPointer)->setGenerated((QString&)* (QString*)name, (bool)generated);
	return;
}
void qt_QSqlRecord_setGenerated1( qt_QSqlRecord* instPointer,int i, int generated){
	((QSqlRecordBridge*)instPointer)->setGenerated((int)i, (bool)generated);
	return;
}
void qt_QSqlRecord_setNull( qt_QSqlRecord* instPointer,int i){
	((QSqlRecordBridge*)instPointer)->setNull((int)i);
	return;
}
void qt_QSqlRecord_setNull1( qt_QSqlRecord* instPointer,qt_QString * name){
	((QSqlRecordBridge*)instPointer)->setNull((QString&)* (QString*)name);
	return;
}
int qt_QSqlRecord_isNull( qt_QSqlRecord* instPointer,int i){
	return (int) ((QSqlRecordBridge*)instPointer)->isNull((int)i);
}
int qt_QSqlRecord_isNull1( qt_QSqlRecord* instPointer,qt_QString * name){
	return (int) ((QSqlRecordBridge*)instPointer)->isNull((QString&)* (QString*)name);
}
int qt_QSqlRecord_position( qt_QSqlRecord* instPointer,qt_QString * name){
	return (int) ((QSqlRecordBridge*)instPointer)->position((QString&)* (QString*)name);
}
qt_QString * qt_QSqlRecord_fieldName( qt_QSqlRecord* instPointer,int i){
	return (qt_QString *)new QString(((QSqlRecordBridge*)instPointer)->fieldName((int)i));
}
qt_QSqlField* qt_QSqlRecord_field( qt_QSqlRecord* instPointer,int i){
	return (qt_QSqlField*) ((QSqlRecordBridge*)instPointer)->field((int)i);
}
qt_QSqlField* qt_QSqlRecord_field1( qt_QSqlRecord* instPointer,qt_QString * name){
	return (qt_QSqlField*) ((QSqlRecordBridge*)instPointer)->field((QString&)* (QString*)name);
}
qt_QSqlField* qt_QSqlRecord_field2( qt_QSqlRecord* instPointer,int i){
	return (qt_QSqlField*) ((QSqlRecordBridge*)instPointer)->field((int)i);
}
qt_QSqlField* qt_QSqlRecord_field3( qt_QSqlRecord* instPointer,qt_QString * name){
	return (qt_QSqlField*) ((QSqlRecordBridge*)instPointer)->field((QString&)* (QString*)name);
}
void qt_QSqlRecord_append( qt_QSqlRecord* instPointer,qt_QSqlField* field){
	((QSqlRecordBridge*)instPointer)->append((QSqlField&)* (QSqlField*)field);
	return;
}
void qt_QSqlRecord_insert( qt_QSqlRecord* instPointer,int pos, qt_QSqlField* field){
	((QSqlRecordBridge*)instPointer)->insert((int)pos, (QSqlField&)* (QSqlField*)field);
	return;
}
void qt_QSqlRecord_remove( qt_QSqlRecord* instPointer,int pos){
	((QSqlRecordBridge*)instPointer)->remove((int)pos);
	return;
}
int qt_QSqlRecord_isEmpty( qt_QSqlRecord* instPointer){
	return (int) ((QSqlRecordBridge*)instPointer)->isEmpty();
}
int qt_QSqlRecord_contains( qt_QSqlRecord* instPointer,qt_QString * name){
	return (int) ((QSqlRecordBridge*)instPointer)->contains((QString&)* (QString*)name);
}
void qt_QSqlRecord_clear( qt_QSqlRecord* instPointer){
	((QSqlRecordBridge*)instPointer)->clear();
	return;
}
void qt_QSqlRecord_clearValues( qt_QSqlRecord* instPointer,int nullify){
	((QSqlRecordBridge*)instPointer)->clearValues((bool)nullify);
	return;
}
unsigned int qt_QSqlRecord_count( qt_QSqlRecord* instPointer){
	return (unsigned int) ((QSqlRecordBridge*)instPointer)->count();
}
qt_QString * qt_QSqlRecord_toString( qt_QSqlRecord* instPointer,qt_QString * prefix, qt_QString * arg1){
	return (qt_QString *)new QString(((QSqlRecordBridge*)instPointer)->toString((QString&)* (QString*)prefix, (QString&)* (QString*)arg1));
}
qt_QStringList* qt_QSqlRecord_toStringList( qt_QSqlRecord* instPointer,qt_QString * prefix){
	return (qt_QStringList*)new QStringList(((QSqlRecordBridge*)instPointer)->toStringList((QString&)* (QString*)prefix));
}
