File indexing completed on 2024-05-19 05:14:00

0001 /*
0002    SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 #pragma once
0007 
0008 #include <QDialog>
0009 
0010 namespace GrantleeThemeEditor
0011 {
0012 class ConfigureWidget;
0013 }
0014 
0015 namespace Akonadi
0016 {
0017 class AkonadiContactEditor;
0018 }
0019 
0020 namespace TextCustomEditor
0021 {
0022 class PlainTextEditorWidget;
0023 }
0024 class ContactConfigureDialog : public QDialog
0025 {
0026     Q_OBJECT
0027 public:
0028     explicit ContactConfigureDialog(QWidget *parent = nullptr);
0029     ~ContactConfigureDialog() override;
0030 
0031     void readConfig();
0032     void writeConfig();
0033 
0034 private:
0035     void slotDefaultClicked();
0036     void slotOkClicked();
0037     GrantleeThemeEditor::ConfigureWidget *mConfigureWidget = nullptr;
0038     TextCustomEditor::PlainTextEditorWidget *mDefaultTemplate = nullptr;
0039     Akonadi::AkonadiContactEditor *mDefaultContact = nullptr;
0040 };