File indexing completed on 2024-12-15 04:55:36

0001 /*
0002    SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "libsieveeditor_export.h"
0010 #include <KAssistantDialog>
0011 
0012 class ImportImapSettingSearchPage;
0013 class ImportImapSettingNoFoundPage;
0014 class ImportImapSettingProgressPage;
0015 class ImportImapSettingFinishPage;
0016 class KPageWidgetItem;
0017 class AbstractImapSettingsCheckJob;
0018 class LIBSIEVEEDITOR_EXPORT ImportImapSettingWizard : public KAssistantDialog
0019 {
0020     Q_OBJECT
0021 public:
0022     explicit ImportImapSettingWizard(QWidget *parent = nullptr);
0023     ~ImportImapSettingWizard() override;
0024 
0025     void next() override;
0026 
0027 private:
0028     void readConfig();
0029     void writeConfig();
0030     void initializeWizard();
0031     void slotHelpClicked();
0032     void slotFinishImportData();
0033     void slotAddSummaryInfo(const QString &name);
0034     void slotNeedToImportSettings(bool b);
0035     QMap<QString, AbstractImapSettingsCheckJob *> mListCheckJob;
0036 
0037     ImportImapSettingSearchPage *mSearchPage = nullptr;
0038     KPageWidgetItem *mSearchPageItem = nullptr;
0039 
0040     ImportImapSettingNoFoundPage *mNoFoundPage = nullptr;
0041     KPageWidgetItem *mNoFoundPageItem = nullptr;
0042 
0043     ImportImapSettingProgressPage *mProgressPage = nullptr;
0044     KPageWidgetItem *mProgressPageItem = nullptr;
0045 
0046     ImportImapSettingFinishPage *mFinishPage = nullptr;
0047     KPageWidgetItem *mFinishPageItem = nullptr;
0048 };