1 /*
2    SPDX-FileCopyrightText: 2013-2021 Laurent Montel <montel@kde.org>
3 
4    SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 #pragma once
7 
8 #include <QDialog>
9 
10 namespace GrantleeThemeEditor
11 {
12 class ConfigureWidget;
13 }
14 
15 namespace Akonadi
16 {
17 class AkonadiContactEditor;
18 }
19 
20 namespace KPIMTextEdit
21 {
22 class PlainTextEditorWidget;
23 }
24 class ContactConfigureDialog : public QDialog
25 {
26     Q_OBJECT
27 public:
28     explicit ContactConfigureDialog(QWidget *parent = nullptr);
29     ~ContactConfigureDialog() override;
30 
31     void readConfig();
32     void writeConfig();
33 
34 private:
35     void slotDefaultClicked();
36     void slotOkClicked();
37     GrantleeThemeEditor::ConfigureWidget *mConfigureWidget = nullptr;
38     KPIMTextEdit::PlainTextEditorWidget *mDefaultTemplate = nullptr;
39     Akonadi::AkonadiContactEditor *mDefaultContact = nullptr;
40 };
41 
42