Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 407eb083 authored by Laurent Montel's avatar Laurent Montel 😁

Store listOfIncludeFile

parent 5ce418f8
......@@ -154,7 +154,18 @@ void SieveEditorGraphicalModeWidget::setImportScript(const QString &script)
}
}
void SieveEditorGraphicalModeWidget::setListOfIncludeFile(const QStringList &listOfIncludeFile)
{
mListOfIncludeFile = listOfIncludeFile;
}
void SieveEditorGraphicalModeWidget::slotSwitchToTextMode()
{
switchTextMode(mSieveParsingWarning->initialScript());
}
QStringList KSieveUi::SieveEditorGraphicalModeWidget::listOfIncludeFile() const
{
return mListOfIncludeFile;
}
......@@ -47,6 +47,9 @@ public:
QString currentscript() override;
void setImportScript(const QString &) override;
void setListOfIncludeFile(const QStringList &listOfIncludeFile) override;
QStringList listOfIncludeFile() const override;
Q_SIGNALS:
void enableButtonOk(bool);
void switchTextMode(const QString &script);
......@@ -64,6 +67,7 @@ private Q_SLOTS:
private:
QStringList mCapabilities;
QStringList mListOfIncludeFile;
SieveScriptListBox *mSieveScript;
QStackedWidget *mStackWidget;
QSplitter *mSplitter;
......
......@@ -37,6 +37,9 @@ public:
virtual QStringList sieveCapabilities() = 0;
virtual void loadScript(const QString &doc, QString &error) = 0;
virtual void setListOfIncludeFile(const QStringList &listOfIncludeFile) = 0;
virtual QStringList listOfIncludeFile() const = 0;
};
}
......
......@@ -523,7 +523,7 @@ void SieveEditorWidget::setSieveImapAccountSettings(const SieveImapAccountSettin
void SieveEditorWidget::setListOfIncludeFile(const QStringList &listOfIncludeFile)
{
mGraphicalModeWidget->setListOfIncludeFile(listOfIncludeFile);
}
void SieveEditorWidget::slotCreateRulesGraphically()
......
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