CoreTrace Qt IDE 1.0
The CoreTrace Text editor
 
Loading...
Searching...
No Matches
project.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <QString>
4#include <QList>
5
6class Project {
7public:
8 Project(const QString& name);
9
10 void addFile(const QString& file);
11 void removeFile(const QString& file);
12 QString getName() const;
13 QList<QString> getFiles() const;
14
15private:
16 QString name;
17 QList<QString> files;
18};
Definition project.hpp:6
QList< QString > files
Definition project.hpp:17
QList< QString > getFiles() const
Gets the list of files in the project.
Definition project.cpp:39
QString name
Definition project.hpp:16
void removeFile(const QString &file)
Removes a file from the project.
Definition project.cpp:23
void addFile(const QString &file)
Adds a file to the project if it is not already present.
Definition project.cpp:13
QString getName() const
Gets the name of the project.
Definition project.cpp:31