KexiQueryParameters Class Reference
#include <kexiqueryparameters.h>
Static Public Member Functions | |
| static TQValueList< TQVariant > | getParameters (TQWidget *parent, const KexiDB::Driver &driver, KexiDB::QuerySchema &querySchema, bool &ok) |
Detailed Description
Utilities providing GUI for getting query parameters.
Definition at line 26 of file kexiqueryparameters.h.
Member Function Documentation
◆ getParameters()
|
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
offer option to display one dialog (form) with all the parameters
support more types (using validators)
support defaults
support validation rules, e.g. min/max value, unsigned
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 TQ_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:
