Since indexing is supplemental, it can be made a background task that can occur at more or less any time. So we run it as soon as possible.
21 lines
282 B
C++
21 lines
282 B
C++
#ifndef INDEXTASK_H
|
|
#define INDEXTASK_H
|
|
|
|
#include "project/item/footage/footage.h"
|
|
#include "task/task.h"
|
|
|
|
class IndexTask : public Task
|
|
{
|
|
public:
|
|
IndexTask(StreamPtr stream);
|
|
|
|
protected:
|
|
virtual void Action() override;
|
|
|
|
private:
|
|
StreamPtr stream_;
|
|
|
|
};
|
|
|
|
#endif // INDEXTASK_H
|