|
|
Abstract baseclass of widgets that can perform queries. Usefull because you can execute the query without knowing how it's UI is presented.
void setParams (const toQList &par)
| setParams |
[protected]
Set parameters of last query.
bool setSQLParams (const QString &sql,const toQList &par)
| setSQLParams |
[protected]
Set SQL and parameters and return false if query shouldn't be reexecuted. It is important that all descendants call this function in the beginning of the implementation of the query function to determine if the query should be reexecuted or not.
toConnection & connection (void)
| connection |
Get the current connection from the closest tool.
Returns: Reference to connection.
toTimer * timer (void)
| timer |
Get the timer associated with the closest tool.
Returns: Pointer to tool timer.
toResult (void)
| toResult |
~toResult ()
| ~toResult |
[virtual]
void clearParams (void)
| clearParams |
[virtual]
Erase last parameters
void refresh (void)
| refresh |
[virtual]
Re execute last query
void query (const QString &sql,const toQList ¶ms)
| query |
[pure virtual]
Perform a query.
Parameters:
sql | Execute an SQL statement. |
params | Parameters needed as input to execute statement. |
void changeParams (const QString &Param1)
| changeParams |
[virtual]
Reexecute with changed parameters.
Parameters:
Param1 | First parameter. |
void changeParams (const QString &Param1,const QString &Param2)
| changeParams |
[virtual]
Reexecute with changed parameters.
Parameters:
Param1 | First parameter. |
Param1 | Second parameter. |
void changeParams (const QString &Param1,const QString &Param2,const QString &Param3)
| changeParams |
[virtual]
Reexecute with changed parameters.
Parameters:
Param1 | First parameter. |
Param2 | Second parameter. |
Param3 | Third parameter. |
bool canHandle (toConnection &)
| canHandle |
[virtual]
Reimplemented for internal reasons.
toQList & params (void)
| params |
Get last parameters used.
Returns: Don't modify the list returned.
bool handled (void)
| handled |
Check if this result is handled by the current connection
void setHandle (bool)
| setHandle |
Indicate that this result can not be handled even though indicated otherwise
void setTabWidget (QTabWidget *tab)
| setTabWidget |
Indicate what tabbed widget to disable page if not immediate parent if this result is not handled.
void setSQL (const QString &sql)
| setSQL |
Set the SQL statement of this list
Parameters:
sql | String containing statement. |
void setSQL (const toSQL &sql)
| setSQL |
Set the SQL statement of this list. This will also affect Name.
Parameters:
sql | SQL containing statement. |
void query (const QString &sql)
| query |
Set new SQL and run query.
Parameters:
sql | New sql. |
See also: setSQL
void query (const toSQL &sql)
| query |
Set new SQL and run query.
Parameters:
sql | New sql. |
See also: setSQL
void query (const toSQL &sql,toQList &par)
| query |
Set new SQL and run query.
Parameters:
sql | New sql. |
See also: setSQL
QString sql (void)
| sql |
Get SQL to execute
QString sqlName (void)
| sqlName |
[virtual]
Get SQL name of list.
void setSQLName (const QString &name)
| setSQLName |
[virtual]
Set SQL name of list.
friend class toResultObject | toResultObject |
void connectionChanged (void)
| connectionChanged |
[protected virtual]
Called when connection is changed. Be sure to call the parent if you reimplement this.
Generated by: nneul on skyhawk on Wed Feb 23 19:49:58 2005, using kdoc 2.0a54. |