DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
BackgroundWorker Class Referenceabstract

#include <backgroundworker.h>

Inheritance diagram for BackgroundWorker:
BackgroundWorkerWithWaitDialog GraphBuilderWorker Loader

Public Slots

void process ()
 

Signals

void workStarted ()
 
void workEnded ()
 
void progress (int n)
 
void totalChanged (int tot)
 
void warning (QString, QString)
 
void completed (bool success)
 
void mainMessage (QString)
 
void progressMessage (QString)
 

Public Member Functions

 BackgroundWorker (MainWindow *main)
 
virtual void execute ()=0
 
QString getError () const
 
virtual bool success () const
 

Protected Member Functions

void setFail (QString msg)
 
void setSuccess ()
 

Protected Attributes

MainWindowmMain
 
bool mResult
 
QString mError
 

Constructor & Destructor Documentation

◆ BackgroundWorker()

BackgroundWorker::BackgroundWorker ( MainWindow main)
explicit

Member Function Documentation

◆ completed

void BackgroundWorker::completed ( bool  success)
signal

◆ execute()

virtual void BackgroundWorker::execute ( )
pure virtual

Implemented in Loader, and GraphBuilderWorker.

◆ getError()

QString BackgroundWorker::getError ( ) const
inline

◆ mainMessage

void BackgroundWorker::mainMessage ( QString  _t1)
signal

◆ process

void BackgroundWorker::process ( )
slot

◆ progress

void BackgroundWorker::progress ( int  n)
signal

◆ progressMessage

void BackgroundWorker::progressMessage ( QString  _t1)
signal

◆ setFail()

void BackgroundWorker::setFail ( QString  msg)
inlineprotected

◆ setSuccess()

void BackgroundWorker::setSuccess ( )
inlineprotected

◆ success()

virtual bool BackgroundWorker::success ( ) const
inlinevirtual

◆ totalChanged

void BackgroundWorker::totalChanged ( int  tot)
signal

◆ warning

void BackgroundWorker::warning ( QString  _t1,
QString  _t2 
)
signal

◆ workEnded

void BackgroundWorker::workEnded ( )
signal

◆ workStarted

void BackgroundWorker::workStarted ( )
signal

Member Data Documentation

◆ mError

QString BackgroundWorker::mError
protected

◆ mMain

MainWindow* BackgroundWorker::mMain
protected

◆ mResult

bool BackgroundWorker::mResult
protected

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