class toParamGet

A help class to parse SQL for input/output bindings and if available also pop up a dialog and ask for values. More...

Definition#include <toparamget.h>
InheritsQDialog (qt) [public ], toHelpContext [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Static Methods


Detailed Description

A help class to parse SQL for input/output bindings and if available also pop up a dialog and ask for values. Also maintains an internal cache of old values.

toQList  getParam (toConnection &conn,QWidget *parent,QString &str)

getParam

[static]

Get parameters for specified SQL string.

Parameters:
connConnection to get binds for.
parentParent widget if dialog is needed.
strSQL to parse for bindings. Observe that this string can be changed to further declare the binds.

Returns: Returns a list of values to feed into the query.

void  setDefault (toConnection &conn,const QString &name,const QString &val)

setDefault

[static]

Specify a default value for the cache. This can not overwrite a manually specified value by the user.

Parameters:
connConnection to get binds for.
nameName of the bind variable.
valValue of the bind variable.