COPASI API  4.16.103
Public Member Functions | Protected Attributes | List of all members
CQTaskThread Class Reference

#include <CQTaskThread.h>

Inheritance diagram for CQTaskThread:
Inheritance graph
[legend]
Collaboration diagram for CQTaskThread:
Collaboration graph
[legend]

Public Member Functions

 CQTaskThread (TaskWidget *tw)
 
virtual void run ()
 
const bool & success () const
 
 ~CQTaskThread ()
 

Protected Attributes

TaskWidgetmpTaskWidget
 
bool mSuccess
 

Detailed Description

Definition at line 14 of file CQTaskThread.h.

Constructor & Destructor Documentation

CQTaskThread::CQTaskThread ( TaskWidget tw)

Definition at line 12 of file CQTaskThread.cpp.

12  :
13  QThread(),
14  mpTaskWidget(tw),
15  mSuccess(false)
16 {}
TaskWidget * mpTaskWidget
Definition: CQTaskThread.h:27
CQTaskThread::~CQTaskThread ( )

Definition at line 18 of file CQTaskThread.cpp.

19 {
20 }

Member Function Documentation

void CQTaskThread::run ( )
virtual

Definition at line 22 of file CQTaskThread.cpp.

References TaskWidget::getTask(), mpTaskWidget, mSuccess, and CCopasiTask::process().

23 {
24  try
25  {
27  }
28  catch (CCopasiException & /*Exception*/)
29  {
30  mSuccess = false;
31  }
32 }
CCopasiTask * getTask()
Definition: TaskWidget.cpp:513
virtual bool process(const bool &useInitialValues)
TaskWidget * mpTaskWidget
Definition: CQTaskThread.h:27
const bool & CQTaskThread::success ( ) const

Definition at line 34 of file CQTaskThread.cpp.

References mSuccess.

Referenced by TaskWidget::slotFinishThread().

35 {
36  return mSuccess;
37 }

Member Data Documentation

TaskWidget* CQTaskThread::mpTaskWidget
protected

Definition at line 27 of file CQTaskThread.h.

Referenced by run().

bool CQTaskThread::mSuccess
protected

Definition at line 28 of file CQTaskThread.h.

Referenced by run(), and success().


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