Commit 469fbd7d authored by Laurent Montel's avatar Laurent Montel 😁

Allow to define comment

parent cec6ef30
......@@ -118,7 +118,17 @@ void SieveCondition::serverDoesNotSupportFeatures(const QString &feature, QStrin
error += i18n("A feature \"%1\" in condition \"%2\" is not supported by server", feature, name()) + QLatin1Char('\n');
}
QUrl KSieveUi::SieveCondition::href() const
QUrl SieveCondition::href() const
{
return QUrl();
}
QString SieveCondition::comment() const
{
return mComment;
}
void SieveCondition::setComment(const QString &comment)
{
mComment = comment;
}
......@@ -60,6 +60,10 @@ public:
void tooManyArgument(const QString &tagName, int index, int maxValue, QString &error);
void serverDoesNotSupportFeatures(const QString &feature, QString &error);
QString comment() const;
void setComment(const QString &comment);
protected:
QStringList sieveCapabilities() const;
SieveEditorGraphicalModeWidget *mSieveGraphicalModeWidget;
......@@ -70,6 +74,7 @@ Q_SIGNALS:
private:
QString mName;
QString mLabel;
QString mComment;
};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment