/***************************************************************************
                            QSqlForm.h -  description
                             -------------------
    begin                : Wed Nov 21 12:08:37 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 12:08:37 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.                       *
 *                                                                         *
 ***************************************************************************/

#ifndef QSQLFORM_H
#define QSQLFORM_H

#include <Foundation/NSObject.h>
#include <Foundation/NSString.h>
#include <qtobjc/QObject.h>

@class QSqlField; 
@class QSqlPropertyMap; 
@class QSqlRecord; 

@interface QSqlForm : QObject 
- initWithObject: (QObject *)parent name: (NSString *)name;
- init;
- (void) dealloc;
- insert: (QWidget *)widget fieldName: (NSString *)field;
- removeField: (NSString *)field;
- (unsigned int) count;
- (QWidget*) widget: (unsigned int)i;
- (QSqlField*) widgetToField: (QWidget *)widget;
- (QWidget*) fieldToWidget: (QSqlField*)field;
- installPropertyMap: (QSqlPropertyMap*)map;
- setRecord: (QSqlRecord*)buf;
- readField: (QWidget *)widget;
- writeField: (QWidget *)widget;
- readFields;
- writeFields;
- clear;
- clearValues: (BOOL)nullify;
- clearValues;
- insert: (QWidget *)widget field: (QSqlField*)field;
- remove: (QWidget *)widget;
- clearMap;
@end

/** Override these methods in subclasses of QSqlForm to customise event handling behaviour */
@protocol QSqlFormEventHandling
- childEvent:(QChildEvent*) arg1;
- customEvent:(QCustomEvent*) arg1;
- timerEvent:(QTimerEvent*) arg1;
@end


#endif
