Files
Sourcetrail/src/lib/data/TaskCleanStorage.h
T
malte_langkabel 6a576bccc9 src: storage refactoring
* renamed Storage to PersistentStorage
* added Storage as baseclass that implements data injection
* cleaned ParserClient interface
* added default constructors for storage types
* cleaned SqlteStorage by implementing the private getAll methods as template specializations
* added CXX flags to CMakeLists (this is needed for sqlite with visual studio)
* removed TestStorage.h/.cpp since these files were not used anymore.
2016-05-11 13:23:31 +02:00

37 lines
633 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 PersistentStorage;
class TaskCleanStorage
: public Task
{
public:
TaskCleanStorage(
PersistentStorage* storage,
const std::vector<FilePath>& filePaths
);
virtual void enter();
virtual TaskState update();
virtual void exit();
virtual void interrupt();
virtual void revert();
private:
PersistentStorage* m_storage;
std::vector<FilePath> m_filePaths;
const size_t m_fileCount;
TimePoint m_start;
};
#endif // TASK_PARSE_CXX_H