/***************************************************************************
copyright : (C) 1999 by Edwin Glaser
email : edwin@pannenleiter.de
version : $Id: dblookupadaptor.h,v 1.1.1.1 2000/02/07 21:42:00 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 DBLOOKUPADAPTOR_H
#define DBLOOKUPADAPTOR_H
#include <dbvalueadaptor.h>
/**
* Connects a listbox or combobox to a lookup table
*
*@author Edwin Glaser
*/
class DBLookupAdaptor : public DBValueAdaptor
{
Q_OBJECT
protected:
DBDataSource *data;
int dbCol;
int widgetCol;
bool isInit;
public:
DBLookupAdaptor(DBDataSource *d, int dbColumn, int widgetColumn);
~DBLookupAdaptor();
protected slots:
virtual void posted(bool isInsert);
virtual void stateChanged();
};
#endif
Documentation generated by eg@wonko on Sam Feb 19 00:09:53 MET 2000