* removed typedef utility::TimePoint and replaced all its usages by using the class TimePoint instead.
37 lines
603 B
C++
37 lines
603 B
C++
#ifndef TASK_CLEAN_STORAGE_H
|
|
#define TASK_CLEAN_STORAGE_H
|
|
|
|
#include <vector>
|
|
|
|
#include "utility/file/FilePath.h"
|
|
#include "utility/scheduling/Task.h"
|
|
#include "utility/TimePoint.h"
|
|
|
|
class Storage;
|
|
|
|
class TaskCleanStorage
|
|
: public Task
|
|
{
|
|
public:
|
|
TaskCleanStorage(
|
|
Storage* storage,
|
|
const std::vector<FilePath>& filePaths
|
|
);
|
|
|
|
virtual void enter();
|
|
virtual TaskState update();
|
|
virtual void exit();
|
|
|
|
virtual void interrupt();
|
|
virtual void revert();
|
|
|
|
private:
|
|
Storage* m_storage;
|
|
std::vector<FilePath> m_filePaths;
|
|
const size_t m_fileCount;
|
|
|
|
TimePoint m_start;
|
|
};
|
|
|
|
#endif // TASK_PARSE_CXX_H
|