Files
Sourcetrail/src/lib/data/TaskShowDialogView.cpp
T
malte_langkabel fb72f73567 ui: split steps of indexing files and saving the last few batches of data
* implemented showing dialog for database injection
* implemented easy-to-read way of creating behavior tree structures
* moved injector wait logic out of injection task
2016-11-11 15:40:28 +01:00

37 lines
720 B
C++

#include "data/TaskShowDialogView.h"
#include "component/view/DialogView.h"
TaskShowDialogView::TaskShowDialogView(
const std::string& title,
const std::string& message,
DialogView* dialogView
)
: m_title(title)
, m_message(message)
, m_dialogView(dialogView)
{
}
TaskShowDialogView::~TaskShowDialogView()
{
}
void TaskShowDialogView::doEnter(std::shared_ptr<Blackboard> blackboard)
{
}
Task::TaskState TaskShowDialogView::doUpdate(std::shared_ptr<Blackboard> blackboard)
{
m_dialogView->showProgressDialog(m_title, m_message);
return STATE_SUCCESS;
}
void TaskShowDialogView::doExit(std::shared_ptr<Blackboard> blackboard)
{
}
void TaskShowDialogView::doReset(std::shared_ptr<Blackboard> blackboard)
{
}