* 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
37 lines
383 B
C++
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()
|
|
{
|
|
}
|