LibEngsas
Public Slots | Signals | Public Member Functions | Private Attributes | List of all members
EQueryWorker Class Reference

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>

+ Inheritance diagram for EQueryWorker:
+ Collaboration diagram for EQueryWorker:

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 ()
 
- Public Slots inherited from EObject
virtual void reloadSettings ()
 Used to reload the settings. More...
 

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)
 
- Signals inherited from EObject
void error (const QString &message)
 
void warning (const QString &message)
 
void information (const QString &message)
 
void reloadEnableActions ()
 Request reloading of enabled actions in EMainWindow. More...
 
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. More...
 
void doReloadSettings ()
 Emitted to bring the reload request back to the farest child. More...
 

Public Member Functions

 EQueryWorker (QObject *parent=0)
 
 ~EQueryWorker ()
 
- Public Member Functions inherited from EObject
 EObject (QObject *parent=0)
 
virtual ~EObject ()
 
void connectByPass (QObject *object)
 

Private Attributes

bool abort
 
QString connectionName
 

Additional Inherited Members

- Static Public Member Functions inherited from EObject
static void connectByPass (QObject *parent, QObject *child)
 
- Protected Slots inherited from EObject
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 ()
 
- Protected Member Functions inherited from EObject
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. More...
 

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

+ Here is the call graph for this function:

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

+ Here is the caller graph for this function:

void EQueryWorker::result ( QObject *  client,
QVariant  requestId,
int  querySize,
QSqlRecord  record 
)
signal

+ Here is the caller graph for this function:

void EQueryWorker::setRange ( int  min,
int  max 
)
signal

+ Here is the caller graph for this function:

void EQueryWorker::setValue ( int  value)
signal

+ Here is the caller graph for this function:

Member Data Documentation

bool EQueryWorker::abort
private
QString EQueryWorker::connectionName
private

The documentation for this class was generated from the following files: