Libksieve

multiimapvacationdialog.h
1 /*
2  SPDX-FileCopyrightText: 2013-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "ksieveui_export.h"
10 #include "util_p.h"
11 #include <QDialog>
12 #include <memory>
13 class QDialogButtonBox;
14 namespace KSieveUi
15 {
16 class VacationCreateScriptJob;
17 class MultiImapVacationManager;
18 class MultiImapVacationDialogPrivate;
19 /**
20  * @brief The MultiImapVacationDialog class
21  * @author Laurent Montel <[email protected]>
22  */
23 class KSIEVEUI_EXPORT MultiImapVacationDialog : public QDialog
24 {
25  Q_OBJECT
26 public:
27  explicit MultiImapVacationDialog(MultiImapVacationManager *manager, QWidget *parent = nullptr);
28  ~MultiImapVacationDialog() override;
29 
30  Q_REQUIRED_RESULT QVector<VacationCreateScriptJob *> listCreateJob() const;
31 
32  void switchToServerNamePage(const QString &serverName);
33  void reject() override;
34 Q_SIGNALS:
35  void okClicked();
36  void cancelClicked();
37 
38 private:
39  void slotSearchServerWithVacationSupportFinished(const QMap<QString, KSieveUi::Util::AccountInfo> &info);
40  void slotOkClicked();
41  void slotDefaultClicked();
42  void slotCanceled();
43  void createPage(const QString &serverName, const KSieveUi::Util::AccountInfo &info);
44  void init();
45  void readConfig();
46  void writeConfig();
47  void initialize();
48  QDialogButtonBox *mButtonBox = nullptr;
49  std::unique_ptr<MultiImapVacationDialogPrivate> const d;
50 };
51 }
52 
The MultiImapVacationManager class.
QCA_EXPORT void init()
The MultiImapVacationDialog class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Apr 11 2021 23:09:36 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.