1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:58:13 +00:00
serenity/DevTools/HackStudio/Project.h
2019-10-21 18:46:55 +02:00

21 lines
434 B
C++

#pragma once
#include <AK/Noncopyable.h>
#include <AK/OwnPtr.h>
#include <LibGUI/GModel.h>
class Project {
AK_MAKE_NONCOPYABLE(Project)
AK_MAKE_NONMOVABLE(Project)
public:
static OwnPtr<Project> load_from_file(const String& path);
GModel& model() { return *m_model; }
private:
friend class ProjectModel;
explicit Project(Vector<String>&& files);
RefPtr<GModel> m_model;
Vector<String> m_files;
};