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.
25 lines
384 B
C++
25 lines
384 B
C++
#ifndef PROJECTLOADMANAGER_H
|
|
#define PROJECTLOADMANAGER_H
|
|
|
|
#include "project/project.h"
|
|
#include "task/task.h"
|
|
|
|
class ProjectLoadManager : public Task
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
ProjectLoadManager(const QString& filename);
|
|
|
|
protected:
|
|
virtual void Action() override;
|
|
|
|
signals:
|
|
void ProjectLoaded(ProjectPtr project);
|
|
|
|
private:
|
|
QString filename_;
|
|
|
|
};
|
|
|
|
#endif // PROJECTLOADMANAGER_H
|