TextAutoGenerateText::TextAutoGenerateChat Class
class TextAutoGenerateText::TextAutoGenerateChatThe TextAutoGenerateChat class Author: Laurent Montel <montel@kde.org>. More...
| Header: | #include <TextAutoGenerateText/TextAutoGenerateChat> |
Public Functions
| TextAutoGenerateChat() | |
| TextAutoGenerateChat(const TextAutoGenerateText::TextAutoGenerateChat &other) | |
| ~TextAutoGenerateChat() | |
| bool | archived() const |
| qint64 | dateTime() const |
| bool | favorite() const |
| QByteArray | identifier() const |
| bool | inProgress() const |
| bool | initialized() const |
| bool | isEphemeral() const |
| TextAutoGenerateText::TextAutoGenerateMessagesModel * | messageModel() const |
| TextAutoGenerateText::TextAutoGenerateChat::Persistence | persistence() const |
| QByteArray | projectId() const |
| QString | prompt() const |
| TextAutoGenerateText::TextAutoGenerateChat::SectionHistory | section() const |
| void | setArchived(bool newArchived) |
| void | setDateTime(qint64 dt) |
| void | setFavorite(bool newFavorite) |
| void | setIdentifier(const QByteArray &newIdentifier) |
| void | setInProgress(bool newInProgress) |
| void | setInitialized(bool newInitialized) |
| void | setPersistence(TextAutoGenerateText::TextAutoGenerateChat::Persistence newPersistence) |
| void | setProjectId(const QByteArray &newProjectId) |
| void | setPrompt(const QString &newPrompt) |
| void | setTags(const QList<QByteArray> &newTags) |
| void | setTitle(const QString &newTitle) |
| QList<QByteArray> | tags() const |
| QString | title() const |
| TextAutoGenerateText::TextAutoGenerateChat & | operator=(const TextAutoGenerateText::TextAutoGenerateChat &other) |
| bool | operator==(const TextAutoGenerateText::TextAutoGenerateChat &other) const |
Static Public Members
| TextAutoGenerateText::TextAutoGenerateChat | deserialize(const QJsonObject &source) |
| QByteArray | serialize(const TextAutoGenerateText::TextAutoGenerateChat &msg, bool toBinary = true) |
Detailed Description
Member Function Documentation
TextAutoGenerateChat::TextAutoGenerateChat()
Constructs a new TextAutoGenerateChat object.
TextAutoGenerateChat::TextAutoGenerateChat(const TextAutoGenerateText::TextAutoGenerateChat &other)
Constructs a copy of the TextAutoGenerateChat object from another object. other The TextAutoGenerateChat object to copy from
[noexcept] TextAutoGenerateChat::~TextAutoGenerateChat()
Destroys the TextAutoGenerateChat object.
bool TextAutoGenerateChat::archived() const
Returns whether the chat is archived. Returns true if the chat is archived, false otherwise
See also setArchived().
qint64 TextAutoGenerateChat::dateTime() const
Returns the date and time of the chat. Returns The date/time as a 64-bit integer timestamp
See also setDateTime().
[static] TextAutoGenerateText::TextAutoGenerateChat TextAutoGenerateChat::deserialize(const QJsonObject &source)
Deserializes a TextAutoGenerateChat object from JSON. source The JSON object to deserialize from Returns The deserialized TextAutoGenerateChat object
bool TextAutoGenerateChat::favorite() const
Returns whether the chat is marked as a favorite. Returns true if the chat is a favorite, false otherwise
See also setFavorite().
QByteArray TextAutoGenerateChat::identifier() const
Returns the unique identifier of the chat. Returns The chat identifier as a QByteArray
See also setIdentifier().
bool TextAutoGenerateChat::inProgress() const
Returns whether the chat is currently processing. Returns true if the chat is in progress, false otherwise
See also setInProgress().
bool TextAutoGenerateChat::initialized() const
Returns whether the chat has been initialized. Returns true if the chat is initialized, false otherwise
See also setInitialized().
bool TextAutoGenerateChat::isEphemeral() const
isEphemeral Returns
TextAutoGenerateText::TextAutoGenerateMessagesModel *TextAutoGenerateChat::messageModel() const
Returns the messages model for this chat. Returns A pointer to the TextAutoGenerateMessagesModel
TextAutoGenerateText::TextAutoGenerateChat::Persistence TextAutoGenerateChat::persistence() const
persistence Returns
See also setPersistence().
QByteArray TextAutoGenerateChat::projectId() const
projectId Returns the identifier of the project the chat belongs to, or an empty identifier when the chat doesn't belong to any project.
See also setProjectId().
QString TextAutoGenerateChat::prompt() const
Returns current prompt Returns default prompt for current Chat
See also setPrompt().
TextAutoGenerateText::TextAutoGenerateChat::SectionHistory TextAutoGenerateChat::section() const
Returns the section category of the chat in the history. Returns The SectionHistory enum value
[static] QByteArray TextAutoGenerateChat::serialize(const TextAutoGenerateText::TextAutoGenerateChat &msg, bool toBinary = true)
Serializes the given TextAutoGenerateChat object. msg The TextAutoGenerateChat object to serialize toBinary true to serialize to binary format, false for JSON format Returns The serialized data as a QByteArray
void TextAutoGenerateChat::setArchived(bool newArchived)
Sets whether the chat is archived. newArchived true to archive the chat, false to unarchive
See also archived().
void TextAutoGenerateChat::setDateTime(qint64 dt)
Sets the date and time of the chat. dt The date/time to set as a 64-bit integer timestamp
See also dateTime().
void TextAutoGenerateChat::setFavorite(bool newFavorite)
Sets whether the chat is marked as a favorite. newFavorite true to mark as favorite, false to unmark
See also favorite().
void TextAutoGenerateChat::setIdentifier(const QByteArray &newIdentifier)
Sets the unique identifier of the chat. newIdentifier The identifier to set
See also identifier().
void TextAutoGenerateChat::setInProgress(bool newInProgress)
Sets the in-progress status of the chat. newInProgress true if the chat is processing, false otherwise
See also inProgress().
void TextAutoGenerateChat::setInitialized(bool newInitialized)
Sets the initialization status of the chat. newInitialized true to mark the chat as initialized, false otherwise
See also initialized().
void TextAutoGenerateChat::setPersistence(TextAutoGenerateText::TextAutoGenerateChat::Persistence newPersistence)
setPersistence newPersistence
See also persistence().
void TextAutoGenerateChat::setProjectId(const QByteArray &newProjectId)
setProjectId newProjectId an empty identifier removes the chat from its project.
See also projectId().
void TextAutoGenerateChat::setPrompt(const QString &newPrompt)
Sets the prompt for current chat newPrompt the prompt for current chat
See also prompt().
void TextAutoGenerateChat::setTags(const QList<QByteArray> &newTags)
setTags newTags
See also tags().
void TextAutoGenerateChat::setTitle(const QString &newTitle)
Sets the title of the chat. newTitle The title to set
See also title().
QList<QByteArray> TextAutoGenerateChat::tags() const
tags Returns
See also setTags().
QString TextAutoGenerateChat::title() const
Returns the title of the chat. Returns The chat title as a QString
See also setTitle().
TextAutoGenerateText::TextAutoGenerateChat &TextAutoGenerateChat::operator=(const TextAutoGenerateText::TextAutoGenerateChat &other)
Assigns the contents of another TextAutoGenerateChat object to this object. other The TextAutoGenerateChat object to assign from Returns A reference to this TextAutoGenerateChat object
bool TextAutoGenerateChat::operator==(const TextAutoGenerateText::TextAutoGenerateChat &other) const
Compares this TextAutoGenerateChat with another object for equality. other The TextAutoGenerateChat object to compare with Returns true if both objects are equal, false otherwise