Files
Sourcetrail/src/lib/data/TaskCleanStorage.h
T
Eberhard Graether afec261872 ui: Made all indexing dialogs hideable
* all dialogs for the indexing usecase can be hidden regardless of project state
* fixed some dialogs could not be shown
* pass dialogview into project and all indexing tasks
* pass application to project and tasks
2018-07-25 23:49:46 +02:00

39 lines
904 B
C++

#ifndef TASK_CLEAN_STORAGE_H
#define TASK_CLEAN_STORAGE_H
#include <vector>
#include "utility/scheduling/Task.h"
#include "utility/TimeStamp.h"
class DialogView;
class FilePath;
class PersistentStorage;
class TaskCleanStorage
: public Task
{
public:
TaskCleanStorage(
std::weak_ptr<PersistentStorage> storage,
std::shared_ptr<DialogView> dialogView,
const std::vector<FilePath>& filePaths,
bool clearAllErrors
);
private:
void doEnter(std::shared_ptr<Blackboard> blackboard) override;
TaskState doUpdate(std::shared_ptr<Blackboard> blackboard) override;
void doExit(std::shared_ptr<Blackboard> blackboard) override;
void doReset(std::shared_ptr<Blackboard> blackboard) override;
std::weak_ptr<PersistentStorage> m_storage;
std::shared_ptr<DialogView> m_dialogView;
std::vector<FilePath> m_filePaths;
bool m_clearAllErrors;
TimeStamp m_start;
};
#endif // TASK_CLEAN_STORAGE_H