Files
Sourcetrail/src/lib/data/TaskCleanStorage.h
T
malte_langkabel 054b8fab17 logic: reduce access to filesystem while indexing
* use canonical filepath cache in cxx indexer
* made constructors of FilePath explicit
* use FilePath at more places instead of string
* forward declares FilePath wherever possible
2017-05-04 10:55:16 +02:00

35 lines
740 B
C++

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