summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-08-07 07:02:39 +0200
committerMontel Laurent <[email protected]>2017-08-07 07:02:39 +0200
commit407eb0837a3b2d24339c51434ba92d4293fe2754 (patch)
treefc93a54ea989852e4fce097d73eb07f4988b0a82
parent5ce418f8f062c806812dd7aa96fe774433858a13 (diff)
Store listOfIncludeFile
-rw-r--r--src/ksieveui/autocreatescripts/sieveeditorgraphicalmodewidget.cpp11
-rw-r--r--src/ksieveui/autocreatescripts/sieveeditorgraphicalmodewidget.h4
-rw-r--r--src/ksieveui/autocreatescripts/sieveeditorgraphicalmodewidgetabstract.h3
-rw-r--r--src/ksieveui/editor/sieveeditorwidget.cpp2
4 files changed, 19 insertions, 1 deletions
diff --git a/src/ksieveui/autocreatescripts/sieveeditorgraphicalmodewidget.cpp b/src/ksieveui/autocreatescripts/sieveeditorgraphicalmodewidget.cpp
index 84b3352..1239fea 100644
--- a/src/ksieveui/autocreatescripts/sieveeditorgraphicalmodewidget.cpp
+++ b/src/ksieveui/autocreatescripts/sieveeditorgraphicalmodewidget.cpp
@@ -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;
+}
diff --git a/src/ksieveui/autocreatescripts/sieveeditorgraphicalmodewidget.h b/src/ksieveui/autocreatescripts/sieveeditorgraphicalmodewidget.h
index 9aac249..355ee41 100644
--- a/src/ksieveui/autocreatescripts/sieveeditorgraphicalmodewidget.h
+++ b/src/ksieveui/autocreatescripts/sieveeditorgraphicalmodewidget.h
@@ -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;
diff --git a/src/ksieveui/autocreatescripts/sieveeditorgraphicalmodewidgetabstract.h b/src/ksieveui/autocreatescripts/sieveeditorgraphicalmodewidgetabstract.h
index aee7126..dd6373c 100644
--- a/src/ksieveui/autocreatescripts/sieveeditorgraphicalmodewidgetabstract.h
+++ b/src/ksieveui/autocreatescripts/sieveeditorgraphicalmodewidgetabstract.h
@@ -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;
};
}
diff --git a/src/ksieveui/editor/sieveeditorwidget.cpp b/src/ksieveui/editor/sieveeditorwidget.cpp
index 291b972..6d81b22 100644
--- a/src/ksieveui/editor/sieveeditorwidget.cpp
+++ b/src/ksieveui/editor/sieveeditorwidget.cpp
@@ -523,7 +523,7 @@ void SieveEditorWidget::setSieveImapAccountSettings(const SieveImapAccountSettin
void SieveEditorWidget::setListOfIncludeFile(const QStringList &listOfIncludeFile)
{
-
+ mGraphicalModeWidget->setListOfIncludeFile(listOfIncludeFile);
}
void SieveEditorWidget::slotCreateRulesGraphically()