Files
Sourcetrail/src/lib/utility/scheduling/TaskLambda.cpp
T
Eberhard Graether 2c90b75a9f ui: Indexing UI
* Added DialogView with QtDialogView implementation to handle information dialogs
* Implemented QtIndexingDialog class that covers all different dialogs for indexing
* Directly communicate with DialogView from Prpject and all Tasks involved in indexing
* Block QtMainWindow UI while indexing
2016-08-23 23:45:45 +02:00

37 lines
383 B
C++

#include "utility/scheduling/TaskLambda.h"
TaskLambda::TaskLambda(std::function<void()> func)
: m_func(func)
{
}
TaskLambda::~TaskLambda()
{
}
void TaskLambda::enter()
{
}
Task::TaskState TaskLambda::update()
{
m_func();
return Task::STATE_FINISHED;
}
void TaskLambda::exit()
{
}
void TaskLambda::interrupt()
{
}
void TaskLambda::revert()
{
}
void TaskLambda::abort()
{
}