Commit 25b445f6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix test

parent 531eba15
Pipeline #41189 canceled with stage
......@@ -35,7 +35,7 @@ public:
virtual Q_REQUIRED_RESULT bool settingsCanBeImported() const = 0;
virtual Q_REQUIRED_RESULT QString name() const = 0;
void setImapSettingsPassword(AbstractImapSettingsPassword *passwordImporter);
virtual void setImapSettingsPassword(AbstractImapSettingsPassword *passwordImporter);
Q_SIGNALS:
void importSetting(const QString &name, const SieveEditorUtil::SieveServerConfig &settings);
......
......@@ -31,8 +31,6 @@
ImportImapSettingsAkonadiCheckJob::ImportImapSettingsAkonadiCheckJob(QObject *parent)
: AbstractImapSettingsCheckJob(parent)
{
connect(mPasswordImporter, &AbstractImapSettingsPassword::importPasswordDone,
this, &ImportImapSettingsAkonadiCheckJob::slotImportNextServerSieveDone);
}
ImportImapSettingsAkonadiCheckJob::~ImportImapSettingsAkonadiCheckJob()
......@@ -169,3 +167,10 @@ QString ImportImapSettingsAkonadiCheckJob::name() const
{
return i18n("Akonadi IMAP Settings");
}
void ImportImapSettingsAkonadiCheckJob::setImapSettingsPassword(AbstractImapSettingsPassword *passwordImporter)
{
mPasswordImporter = passwordImporter;
connect(mPasswordImporter, &AbstractImapSettingsPassword::importPasswordDone,
this, &ImportImapSettingsAkonadiCheckJob::slotImportNextServerSieveDone);
}
......@@ -33,6 +33,7 @@ public:
Q_REQUIRED_RESULT bool settingsCanBeImported() const override;
Q_REQUIRED_RESULT QString name() const override;
void setImapSettingsPassword(AbstractImapSettingsPassword *passwordImporter) override;
private:
inline Q_REQUIRED_RESULT bool resourceCanHaveSieveSupport(const QString &filename) const;
......@@ -42,6 +43,7 @@ private:
void importSettings(const QString &directory, const QString &filename);
QMultiMap<QString, QString> mSieveServerLst;
QMap<QString, QString>::const_iterator mSieveServerMapIterator;
};
#endif // IMPORTIMAPSETTINGSAKONADICHECKJOB_H
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