kexi
KexiQueryParameters Class Reference
#include <kexiqueryparameters.h>
Detailed Description
Utilities providing GUI for getting query parameters.Definition at line 26 of file kexiqueryparameters.h.
Static Public Member Functions | |
static QValueList< QVariant > | getParameters (QWidget *parent, const KexiDB::Driver &driver, KexiDB::QuerySchema &querySchema, bool &ok) |
Member Function Documentation
QValueList< QVariant > KexiQueryParameters::getParameters | ( | QWidget * | parent, | |
const KexiDB::Driver & | driver, | |||
KexiDB::QuerySchema & | querySchema, | |||
bool & | ok | |||
) | [static] |
Asks for query parameters using KInputDialog, one dialog per query parameter (see KexiDB::QuerySchema::parameters()). The type of each dialog depends on the type of query parameter.
- Returns:
- list of values obtained from the user ok is set to true on success and to false on failure.
- Todo:
- do not use KInputDialog - switch to more powerful custom dialog
- Todo:
- offer option to display one dialog (form) with all the parameters
- Todo:
- support more types (using validators)
- Todo:
- support defaults
- Todo:
- support validation rules, e.g. min/max value, unsigned
- Todo:
- support Enum type (list of strings, need support for keys and user-visible strings)
- Todo:
- problem for ranges in case of BigInteger - will disappear when we remove use of KInputDialog
- Todo:
- add support for unsigned parameter here
editable
- Todo:
- add validator
- Todo:
- add validator
- Todo:
- add validator
- Todo:
- this value will be still rounded: consider storing them as a decimal type (e.g. using a special Q_LLONG+decimalplace class)
- Todo:
- BLOB input unsupported
Definition at line 32 of file kexiqueryparameters.cpp.
The documentation for this class was generated from the following files: