TextAutoGenerateText::TextAutoGenerateProjectsManager Class

class TextAutoGenerateText::TextAutoGenerateProjectsManager

The TextAutoGenerateProjectsManager class Author: Laurent Montel <montel@kde.org>. More...

Header: #include <TextAutoGenerateText/TextAutoGenerateProjectsManager>
Inherits: QObject

Public Functions

TextAutoGenerateProjectsManager(QObject *parent = nullptr)
virtual ~TextAutoGenerateProjectsManager() override
void addProject(const TextAutoGenerateText::TextAutoGenerateProject &newProject)
QString iconName(const QByteArray &identifier) const
QString name(const QByteArray &identifier) const
QList<TextAutoGenerateText::TextAutoGenerateProject> projects() const
void removeProject(const QByteArray &identifier)
void setProjects(const QList<TextAutoGenerateText::TextAutoGenerateProject> &newProjects)
TextAutoGenerateText::TextAutoGenerateProjectsModel *textAutoGenerateProjectsModel() const
void updateProject(const TextAutoGenerateText::TextAutoGenerateProject &project)

Detailed Description

Member Function Documentation

[explicit] TextAutoGenerateProjectsManager::TextAutoGenerateProjectsManager(QObject *parent = nullptr)

TextAutoGenerateProjectsManager parent

[override virtual noexcept] TextAutoGenerateProjectsManager::~TextAutoGenerateProjectsManager()

~TextAutoGenerateProjectsManager

void TextAutoGenerateProjectsManager::addProject(const TextAutoGenerateText::TextAutoGenerateProject &newProject)

addProject newProject

QString TextAutoGenerateProjectsManager::iconName(const QByteArray &identifier) const

iconName identifier Returns

QString TextAutoGenerateProjectsManager::name(const QByteArray &identifier) const

name identifier Returns the name of the project, or an empty string when it is unknown.

QList<TextAutoGenerateText::TextAutoGenerateProject> TextAutoGenerateProjectsManager::projects() const

projects Returns the list of known projects.

See also setProjects().

void TextAutoGenerateProjectsManager::removeProject(const QByteArray &identifier)

removeProject identifier

void TextAutoGenerateProjectsManager::setProjects(const QList<TextAutoGenerateText::TextAutoGenerateProject> &newProjects)

setProjects newProjects

See also projects().

TextAutoGenerateText::TextAutoGenerateProjectsModel *TextAutoGenerateProjectsManager::textAutoGenerateProjectsModel() const

textAutoGenerateProjectsModel Returns the model which stores the projects.

void TextAutoGenerateProjectsManager::updateProject(const TextAutoGenerateText::TextAutoGenerateProject &project)

updateProject Replaces the project which has the same identifier. project