This class allows to run a function (obtained through a function pointer) inside the Qt event loop, thus allowing the objects it instantiates to emit and receive signals.
More...
#include <common/tools/LimaMainTaskRunner.h>
This class allows to run a function (obtained through a function pointer) inside the Qt event loop, thus allowing the objects it instantiates to emit and receive signals.
With its argc and argv parameters it allows it to act as a simple delegate to the program main function. All programs wishing to use the Lima framework should use it like this:
void run(
int argc,
char** argv)
{
<other stuff>
}
int main(
int argc,
char **argv)
{
QCoreApplication a(argc, argv);
QObject::connect(task, SIGNAL(
finished()), &a, SLOT(quit()));
QTimer::singleShot(0, task, SLOT(
run()));
return a.exec();
}
This class allows to run a function (obtained through a function pointer) inside the Qt event loop,...
static const AmosePluginsManager & single()
const singleton accessor
int main(int argc, char *argv[])
LIMA_COMMONQSLOG_EXPORT bool initQsLog(const QString &configString)
Definition at line 43 of file LimaMainTaskRunner.h.
◆ LimaMainTaskRunner()
| Lima::LimaMainTaskRunner::LimaMainTaskRunner |
( |
int |
aargc, |
|
|
char ** |
aargv, |
|
|
int(*)(int, char **) |
foo, |
|
|
QObject * |
parent = 0 |
|
) |
| |
◆ ~LimaMainTaskRunner()
| virtual Lima::LimaMainTaskRunner::~LimaMainTaskRunner |
( |
| ) |
|
|
inlinevirtual |
◆ finished
| void Lima::LimaMainTaskRunner::finished |
( |
int |
| ) |
|
|
signal |
◆ run
| void Lima::LimaMainTaskRunner::run |
( |
| ) |
|
|
slot |
The documentation for this class was generated from the following files: