Executes the SQL-Statements given by the EQueryThread.This class is executed within EQueryThread::run() in a seperate thread. Therefore all executed queries within this class are executed asychronously.
More...
#include <equeryworker.h>
Public Slots |
void | configureDB (QString dbname, QString username, QString password, QString host, QString driver) |
void | addToQueue (QObject *client, QVariant requestId, QString queryString, QString errorMsg, QList< QVariant > bindValues) |
void | cancel () |
virtual void | reloadSettings () |
| Used to reload the settings.
|
Signals |
void | result (QObject *client, QVariant requestId, int querySize, QSqlRecord record) |
void | setRange (int min, int max) |
void | setValue (int value) |
void | finished (QObject *client, QVariant requestId, bool status) |
void | error (const QString &message) |
void | warning (const QString &message) |
void | information (const QString &message) |
void | reloadEnableActions () |
| Request reloading of enabled actions in EMainWindow.
|
void | addMenu (QMenu *newMenu, const QString &parent, QString before=QString()) |
void | addAction (QAction *newAction, const QString &parent, QString before=QString()) |
void | addToolBar (QToolBar *newToolBar, Qt::ToolBarArea area=Qt::TopToolBarArea) |
void | addNewDockWidget (QDockWidget *widget, const Qt::DockWidgetArea &area) |
void | setCentralWidget (QWidget *centralWidget) |
void | showSettings () |
void | showHelp (const QString &page) |
void | showStatusWidget (QWidget *widget) |
void | reloadSettingsRequest () |
| Indicates, that a reload of the settings is needed.
|
void | doReloadSettings () |
| Emitted to bring the reload request back to the farest child.
|
Additional Inherited Members |
static void | connectByPass (QObject *parent, QObject *child) |
virtual void | errorByPass (const QString &message) |
virtual void | warningByPass (const QString &message) |
virtual void | informationByPass (const QString &message) |
virtual void | reloadEnableActionsByPass () |
virtual void | addMenuByPass (QMenu *newMenu, const QString &parent, QString before=QString()) |
virtual void | addActionByPass (QAction *newAction, const QString &parent, QString before=QString()) |
virtual void | addToolBarByPass (QToolBar *newToolBar, Qt::ToolBarArea area=Qt::TopToolBarArea) |
virtual void | addNewDockWidgetByPass (QDockWidget *widget, const Qt::DockWidgetArea &area) |
virtual void | setCentralWidgetByPass (QWidget *centralWidget) |
virtual void | showSettingsByPass () |
virtual void | showHelpByPass (const QString &page) |
virtual void | showStatusWidgetByPass (QWidget *widget) |
virtual void | reloadSettingsRequestByPass () |
void | addManagedDockWidget (QDockWidget *widget, const Qt::DockWidgetArea &area, QString actionLabel=QString(), QString actionParent=QString()) |
| Adds an dock widget via addNewDockWidget() and adds widget to the list of managed dock widgets.
|
Detailed Description
Executes the SQL-Statements given by the EQueryThread.
This class is executed within EQueryThread::run() in a seperate thread. Therefore all executed queries within this class are executed asychronously.
Constructor & Destructor Documentation
EQueryWorker::EQueryWorker |
( |
QObject * |
parent = 0 | ) |
|
EQueryWorker::~EQueryWorker |
( |
| ) |
|
Member Function Documentation
void EQueryWorker::addToQueue |
( |
QObject * |
client, |
|
|
QVariant |
requestId, |
|
|
QString |
queryString, |
|
|
QString |
errorMsg, |
|
|
QList< QVariant > |
bindValues |
|
) |
| |
|
slot |
void EQueryWorker::cancel |
( |
| ) |
|
|
slot |
void EQueryWorker::configureDB |
( |
QString |
dbname, |
|
|
QString |
username, |
|
|
QString |
password, |
|
|
QString |
host, |
|
|
QString |
driver |
|
) |
| |
|
slot |
void EQueryWorker::finished |
( |
QObject * |
client, |
|
|
QVariant |
requestId, |
|
|
bool |
status |
|
) |
| |
|
signal |
void EQueryWorker::result |
( |
QObject * |
client, |
|
|
QVariant |
requestId, |
|
|
int |
querySize, |
|
|
QSqlRecord |
record |
|
) |
| |
|
signal |
void EQueryWorker::setRange |
( |
int |
min, |
|
|
int |
max |
|
) |
| |
|
signal |
void EQueryWorker::setValue |
( |
int |
value | ) |
|
|
signal |
Member Data Documentation
QString EQueryWorker::connectionName |
|
private |
The documentation for this class was generated from the following files: