TextAutoGenerateText::TextAutoGenerateAnswerInfo Class
class TextAutoGenerateText::TextAutoGenerateAnswerInfoThe TextAutoGenerateAnswerInfo class Author: Laurent Montel <montel@kde.org>. More...
| Header: | #include <TextAutoGenerateText/TextAutoGenerateAnswerInfo> |
| Inherits: | QSharedData |
Public Functions
| TextAutoGenerateAnswerInfo() | |
| TextAutoGenerateAnswerInfo(const TextAutoGenerateText::TextAutoGenerateAnswerInfo &other) | |
| ~TextAutoGenerateAnswerInfo() | |
| QString | engineName() const |
| QString | instanceName() const |
| bool | isValid() const |
| QString | modelName() const |
| void | setEngineName(const QString &newEngineName) |
| void | setInstanceName(const QString &newInstanceName) |
| void | setModelName(const QString &newModelName) |
| void | setTools(const QList<QByteArray> &newTools) |
| QList<QByteArray> | tools() const |
| bool | operator==(const TextAutoGenerateText::TextAutoGenerateAnswerInfo &other) const |
Static Public Members
| TextAutoGenerateText::TextAutoGenerateAnswerInfo * | deserialize(const QJsonObject &o) |
| void | serialize(const TextAutoGenerateText::TextAutoGenerateAnswerInfo &translation, QJsonObject &o) |
Detailed Description
Member Function Documentation
TextAutoGenerateAnswerInfo::TextAutoGenerateAnswerInfo()
Constructs a new TextAutoGenerateAnswerInfo object.
TextAutoGenerateAnswerInfo::TextAutoGenerateAnswerInfo(const TextAutoGenerateText::TextAutoGenerateAnswerInfo &other)
Constructs a copy of the TextAutoGenerateAnswerInfo object from another object. other The TextAutoGenerateAnswerInfo object to copy from
[noexcept] TextAutoGenerateAnswerInfo::~TextAutoGenerateAnswerInfo()
Destroys the TextAutoGenerateAnswerInfo object.
[static] TextAutoGenerateText::TextAutoGenerateAnswerInfo *TextAutoGenerateAnswerInfo::deserialize(const QJsonObject &o)
Deserializes a TextAutoGenerateAnswerInfo object from JSON. o The JSON object to deserialize from Returns A pointer to the deserialized TextAutoGenerateAnswerInfo
QString TextAutoGenerateAnswerInfo::engineName() const
Returns the name of the engine. Returns The engine name as a QString
See also setEngineName().
QString TextAutoGenerateAnswerInfo::instanceName() const
Returns the name of the instance. Returns The instance name as a QString
See also setInstanceName().
bool TextAutoGenerateAnswerInfo::isValid() const
Returns whether the answer info is valid. Returns true if the object is valid, false otherwise
QString TextAutoGenerateAnswerInfo::modelName() const
Returns the name of the model. Returns The model name as a QString
See also setModelName().
[static] void TextAutoGenerateAnswerInfo::serialize(const TextAutoGenerateText::TextAutoGenerateAnswerInfo &translation, QJsonObject &o)
Serializes the given TextAutoGenerateAnswerInfo object. translation The TextAutoGenerateAnswerInfo to serialize o Reference to a QJsonObject where the data will be written
void TextAutoGenerateAnswerInfo::setEngineName(const QString &newEngineName)
Sets the name of the engine. newEngineName The engine name to set
See also engineName().
void TextAutoGenerateAnswerInfo::setInstanceName(const QString &newInstanceName)
Sets the name of the instance. newInstanceName The instance name to set
See also instanceName().
void TextAutoGenerateAnswerInfo::setModelName(const QString &newModelName)
Sets the name of the model. newModelName The model name to set
See also modelName().
void TextAutoGenerateAnswerInfo::setTools(const QList<QByteArray> &newTools)
Sets the list of tools. newTools The tools to set
See also tools().
QList<QByteArray> TextAutoGenerateAnswerInfo::tools() const
Returns the list of tools. Returns A list of tool names as QByteArray
See also setTools().
bool TextAutoGenerateAnswerInfo::operator==(const TextAutoGenerateText::TextAutoGenerateAnswerInfo &other) const
Compares this TextAutoGenerateAnswerInfo with another for equality. other The TextAutoGenerateAnswerInfo to compare with Returns true if both objects are equal, false otherwise