TextAutoGenerateText::TextAutoGenerateChatSettings Class
class TextAutoGenerateText::TextAutoGenerateChatSettingsThe TextAutoGenerateChatSettings class Author: Laurent Montel <montel@kde.org>. More...
| Header: | #include <TextAutoGenerateText/TextAutoGenerateChatSettings> |
Public Functions
| TextAutoGenerateChatSettings(TextAutoGenerateText::TextAutoGenerateManager *manager) | |
| ~TextAutoGenerateChatSettings() | |
| void | add(const QByteArray &chatId, const TextAutoGenerateText::TextAutoGenerateChatSettings::PendingTypedInfo &info) |
| int | count() const |
| bool | hasPendingMessageTyped(const QByteArray &chatId) const |
| bool | isEmpty() const |
| void | loadChatPendingTypedInfo() |
| void | remove(const QByteArray &chatId) |
| TextAutoGenerateText::TextAutoGenerateChatSettings::PendingTypedInfo | value(const QByteArray &chatId) |
Detailed Description
Member Function Documentation
[explicit] TextAutoGenerateChatSettings::TextAutoGenerateChatSettings(TextAutoGenerateText::TextAutoGenerateManager *manager)
Constructs a new TextAutoGenerateChatSettings object. manager The TextAutoGenerateManager instance
[noexcept] TextAutoGenerateChatSettings::~TextAutoGenerateChatSettings()
Destroys the TextAutoGenerateChatSettings object.
void TextAutoGenerateChatSettings::add(const QByteArray &chatId, const TextAutoGenerateText::TextAutoGenerateChatSettings::PendingTypedInfo &info)
Adds pending typed information for the given chat ID. chatId The ID of the chat info The pending typed information to add
int TextAutoGenerateChatSettings::count() const
Returns the number of pending typed texts. Returns The count of pending typed texts
bool TextAutoGenerateChatSettings::hasPendingMessageTyped(const QByteArray &chatId) const
Returns whether there is a pending typed message for the given chat ID. chatId The ID of the chat Returns true if there is a pending typed message, false otherwise
bool TextAutoGenerateChatSettings::isEmpty() const
Returns whether the pending typed texts are empty. Returns true if empty, false otherwise
void TextAutoGenerateChatSettings::loadChatPendingTypedInfo()
Loads the pending typed information for rooms from the configuration.
void TextAutoGenerateChatSettings::remove(const QByteArray &chatId)
Removes the pending typed information for the given chat ID. chatId The ID of the chat to remove
TextAutoGenerateText::TextAutoGenerateChatSettings::PendingTypedInfo TextAutoGenerateChatSettings::value(const QByteArray &chatId)
Returns the pending typed information for the given chat ID. chatId The ID of the chat Returns The pending typed information