/***************************************************************************
copyright : (C) 1999 by Edwin Glaser
email : edwin@pannenleiter.de
version : $Id: datawidgettest.h,v 1.1.1.1 2000/02/07 21:41:40 ege Exp $
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef DATAWIDGETTEST_H
#define DATAWIDGETTEST_H
#include <qwidget.h>
#include "datawidget.h"
#include "dbdatasource.h"
#include "dbrecordodbc3.h"
/**
* Creates a DBDataSource object. Closing the window destroys it.
*
*@author Edwin Glaser
*/
class DataWidgetTest : public QWidget {
Q_OBJECT
protected:
DBDataSource *data;
static int nextId;
int id;
void closeEvent ( QCloseEvent * e ) { delete this; };
public:
DataWidgetTest(SQLHENV henv, SQLHDBC hdbc, QWidget *parent, const char *name=0);
~DataWidgetTest();
protected slots:
void stateChanged();
void cursorChanged();
void dataChanged(int column);
void beforeEdit();
void afterEdit();
void beforeAppend(bool isCopy);
void afterAppend(bool isCopy);
void beforeRemove();
void afterRemove();
void beforePost(bool isInsert);
void afterPost(bool isInsert);
void beforeCancel();
void afterCancel();
void aborted();
void calcFields();
void newRecord(bool isCopy);
signals:
void log(const char *);
};
#endif
Documentation generated by eg@wonko on Sam Feb 19 00:09:53 MET 2000