COPASI API  4.16.103
worker.h
Go to the documentation of this file.
1 // Copyright (C) 2012 - 2013 by Pedro Mendes, Virginia Tech Intellectual
2 // Properties, Inc., University of Heidelberg, and The University
3 // of Manchester.
4 // All rights reserved.
5 
6 #ifndef VIEW_CURRENT_WORKER
7 #define VIEW_CURRENT_WORKER
8 
9 #include <QtCore/QObject>
10 #include "copasi/UI/DataModelGUI.h"
11 #include "copasi/UI/listviews.h"
12 
13 class CopasiUI3Window;
14 class Arguments;
15 class CCopasiTask;
16 class TaskWidget;
17 
18 class Worker : public QObject
19 {
20  Q_OBJECT
21 
22 public:
23 
24  Worker(CopasiUI3Window* window, Arguments* args);
25 
26  static int getIndexForTask(CCopasiTask* task);
27 
28 public slots:
29 
30  void finishedLoading(bool success);
31 
32  bool slotNotify(ListViews::ObjectType objectType, ListViews::Action action, std::string key = "");
33 
34 private:
35 
37 
38  static int getIndexForWidget(TaskWidget* widget);
39 
41 
43 
45 
47 };
48 
49 #endif
bool slotNotify(ListViews::ObjectType objectType, ListViews::Action action, std::string key="")
Definition: worker.cpp:40
CopasiUI3Window * mpWindow
Definition: worker.h:40
bool mTaskStarted
Definition: worker.h:46
Definition: worker.h:18
objectType
static int getIndexForWidget(TaskWidget *widget)
Definition: worker.cpp:161
void finishedLoading(bool success)
Definition: worker.cpp:169
Arguments * mpArgs
Definition: worker.h:44
TaskWidget * getWidgetForTask(CCopasiTask *task) const
Definition: worker.cpp:79
Worker(CopasiUI3Window *window, Arguments *args)
Definition: worker.cpp:25
static int getIndexForTask(CCopasiTask *task)
Definition: worker.cpp:121
DataModelGUI * mpDataModel
Definition: worker.h:42