CoreTrace Qt IDE 1.0
The CoreTrace Text editor
 
Loading...
Searching...
No Matches
Project Class Reference

#include <project.hpp>

Public Member Functions

 Project (const QString &name)
 Constructs a Project with the given name.
 
void addFile (const QString &file)
 Adds a file to the project if it is not already present.
 
void removeFile (const QString &file)
 Removes a file from the project.
 
QString getName () const
 Gets the name of the project.
 
QList< QString > getFiles () const
 Gets the list of files in the project.
 

Private Attributes

QString name
 
QList< QString > files
 

Constructor & Destructor Documentation

◆ Project()

Project::Project ( const QString &  name)

Constructs a Project with the given name.

Parameters
nameThe name of the project.

Member Function Documentation

◆ addFile()

void Project::addFile ( const QString &  file)

Adds a file to the project if it is not already present.

Parameters
fileThe file to add.

◆ getFiles()

QList< QString > Project::getFiles ( ) const

Gets the list of files in the project.

Returns
A list of file paths.

◆ getName()

QString Project::getName ( ) const

Gets the name of the project.

Returns
The name of the project.

◆ removeFile()

void Project::removeFile ( const QString &  file)

Removes a file from the project.

Parameters
fileThe file to remove.

Member Data Documentation

◆ files

QList<QString> Project::files
private

◆ name

QString Project::name
private

The documentation for this class was generated from the following files: