![]() |
GemaLuaCoreLib
The GeMA Lua Core library
|
A Thread task that is responsible for calling a Lua function that gets as parameters a single parameter with a per task value and a set of additional parameters that are common to all tasks. More...
#include <gmLuaTask.h>


Public Member Functions | |
| GmLuaTask (const QString &fname, const QVariant &taskPars, const QVariantList &extraPars, const GmLogCategory &logger) | |
| Constructor. More... | |
| virtual GmThreadTaskResult | run (const GmThread *thread) |
| The main thread function, responsible for calling the Lua function. | |
Public Member Functions inherited from GmThreadTask | |
| int | taskIndex () const |
| void | setTaskIndex (int index) |
Private Attributes | |
| const QString & | _fname |
| The name of the function to be called. | |
| const QVariant & | _taskPars |
| The set of task parameters. | |
| const QVariantList & | _extraPars |
| The set of extra parameters, common to all tasks. | |
| const GmLogCategory & | _logger |
| A logger for error messages. | |
A Thread task that is responsible for calling a Lua function that gets as parameters a single parameter with a per task value and a set of additional parameters that are common to all tasks.
| GmLuaTask::GmLuaTask | ( | const QString & | fname, |
| const QVariant & | taskPars, | ||
| const QVariantList & | extraPars, | ||
| const GmLogCategory & | logger | ||
| ) |
Constructor.
| fname | The name of the function to be called |
| taskPars | A variant, without any Lua references, with the per task parameter. |
Can be a QVariantList or a QVariantMap and is usually the result of a call to LuaEnv::clearReferences()
| extraPars | A list with the set of extra parameters, global to all tasks. Like in taskPars, each list entry is a variant without any Lua references. |
| logger | A logger that can be used to report errors. |
1.8.15