TextUtils::TextUtilsBlockCodeManager Class

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

Header: #include <TextUtils/TextUtilsBlockCodeManager>
CMake: find_package(KF6TextUtils REQUIRED)
target_link_libraries(mytarget PRIVATE KF6::TextUtils)

Public Functions

QString blockCode(const QString &identifier) const
void clear()
void insert(const QString &identifier, const QString &blockCode)

Static Public Members

TextUtils::TextUtilsBlockCodeManager *self()

Detailed Description

Member Function Documentation

QString TextUtilsBlockCodeManager::blockCode(const QString &identifier) const

Retrieves a block code by identifier identifier The identifier of the block code to retrieve Returns The block code content, or empty string if not found

void TextUtilsBlockCodeManager::clear()

Clears all cached block codes

void TextUtilsBlockCodeManager::insert(const QString &identifier, const QString &blockCode)

Inserts or updates a block code entry identifier The unique identifier for the block code blockCode The block code content to store

[static] TextUtils::TextUtilsBlockCodeManager *TextUtilsBlockCodeManager::self()

Returns the singleton instance of TextUtilsBlockCodeManager Returns Pointer to the singleton instance