TextAutoGenerateText::TextAutoGenerateTextInstance Class

class TextAutoGenerateText::TextAutoGenerateTextInstance

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

Header: #include <TextAutoGenerateText/TextAutoGenerateTextInstance>

Public Functions

TextAutoGenerateTextInstance()
~TextAutoGenerateTextInstance()
QString currentModel() const
QString displayName() const
bool enabled() const
QByteArray instanceUuid() const
bool isValid() const
void load(const KConfigGroup &config)
TextAutoGenerateText::TextAutoGenerateTextPlugin *plugin() const
QString pluginIdentifier() const
QString pluginName() const
void save(KConfigGroup &config)
void setEnabled(bool newEnabled)
void setInstanceUuid(const QByteArray &newInstanceUuid)
void setPlugin(TextAutoGenerateText::TextAutoGenerateTextPlugin *newPlugin)
void setPluginIdentifier(const QString &newPluginIdentifier)
void setPluginName(const QString &newPluginName)

Detailed Description

Member Function Documentation

TextAutoGenerateTextInstance::TextAutoGenerateTextInstance()

Constructs a new TextAutoGenerateTextInstance object.

[noexcept] TextAutoGenerateTextInstance::~TextAutoGenerateTextInstance()

Destroys the TextAutoGenerateTextInstance object.

QString TextAutoGenerateTextInstance::currentModel() const

Returns the name of the currently selected model. Returns The model name as a QString

QString TextAutoGenerateTextInstance::displayName() const

Returns the display name of the instance. Returns The display name as a QString

bool TextAutoGenerateTextInstance::enabled() const

Returns whether the instance is enabled. Returns true if the instance is enabled, false otherwise

See also setEnabled().

QByteArray TextAutoGenerateTextInstance::instanceUuid() const

Returns the unique identifier of the instance. Returns The instance UUID as a QByteArray

See also setInstanceUuid().

bool TextAutoGenerateTextInstance::isValid() const

Returns whether the instance is valid. Returns true if the instance is valid, false otherwise

void TextAutoGenerateTextInstance::load(const KConfigGroup &config)

Loads the instance settings from a configuration group. config The KConfigGroup to load from

TextAutoGenerateText::TextAutoGenerateTextPlugin *TextAutoGenerateTextInstance::plugin() const

Returns the plugin instance. Returns A pointer to the TextAutoGenerateTextPlugin

See also setPlugin().

QString TextAutoGenerateTextInstance::pluginIdentifier() const

Returns the identifier of the plugin. Returns The plugin identifier as a QString

See also setPluginIdentifier().

QString TextAutoGenerateTextInstance::pluginName() const

Returns the name of the plugin. Returns The plugin name as a QString

See also setPluginName().

void TextAutoGenerateTextInstance::save(KConfigGroup &config)

Saves the instance settings to a configuration group. config The KConfigGroup to save to

void TextAutoGenerateTextInstance::setEnabled(bool newEnabled)

Sets whether the instance is enabled. newEnabled true to enable, false to disable

See also enabled().

void TextAutoGenerateTextInstance::setInstanceUuid(const QByteArray &newInstanceUuid)

Sets the unique identifier of the instance. newInstanceUuid The UUID to set

See also instanceUuid().

void TextAutoGenerateTextInstance::setPlugin(TextAutoGenerateText::TextAutoGenerateTextPlugin *newPlugin)

Sets the plugin instance. The instance takes ownership of newPlugin and deletes the previously assigned plugin, if any. newPlugin The plugin to set

See also plugin().

void TextAutoGenerateTextInstance::setPluginIdentifier(const QString &newPluginIdentifier)

Sets the identifier of the plugin. newPluginIdentifier The plugin identifier to set

See also pluginIdentifier().

void TextAutoGenerateTextInstance::setPluginName(const QString &newPluginName)

Sets the name of the plugin. newPluginName The plugin name to set

See also pluginName().