TextAutoGenerateText::TextAutoGenerateLocalTagsDatabase Class

class TextAutoGenerateText::TextAutoGenerateLocalTagsDatabase

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

Header: #include <TextAutoGenerateText/TextAutoGenerateLocalTagsDatabase>

Public Functions

std::unique_ptr<QSqlTableModel> createTagsModel() const
void deleteTag(const QByteArray &tagId)
void insertOrUpdateTag(const TextAutoGenerateText::TextAutoGenerateTag &tag)
QList<TextAutoGenerateText::TextAutoGenerateTag> loadTags() const

Detailed Description

Member Function Documentation

std::unique_ptr<QSqlTableModel> TextAutoGenerateLocalTagsDatabase::createTagsModel() const

Returns a table model on the TAGS table, or a null pointer when the database doesn't exist yet.

void TextAutoGenerateLocalTagsDatabase::deleteTag(const QByteArray &tagId)

Removes the tag identified by tagId from the database.

void TextAutoGenerateLocalTagsDatabase::insertOrUpdateTag(const TextAutoGenerateText::TextAutoGenerateTag &tag)

Inserts tag in the database, or replaces it when it is already stored.

QList<TextAutoGenerateText::TextAutoGenerateTag> TextAutoGenerateLocalTagsDatabase::loadTags() const

Returns all the tags stored in the database.