File indexing completed on 2025-01-19 04:46:48
0001 /* 0002 SPDX-FileCopyrightText: 2007 Volker Krause <vkrause@kde.org> 0003 SPDX-FileCopyrightText: 2012-2024 Laurent Montel <montel@kde.org> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #pragma once 0009 0010 #include <QDialog> 0011 class QPushButton; 0012 namespace PimCommon 0013 { 0014 class AddresseeLineEdit; 0015 } 0016 0017 class QCheckBox; 0018 0019 /** 0020 Selection dialog for a delegate. 0021 */ 0022 class DelegateSelector : public QDialog 0023 { 0024 Q_OBJECT 0025 0026 public: 0027 explicit DelegateSelector(QWidget *parent = nullptr); 0028 0029 [[nodiscard]] QString delegate() const; 0030 [[nodiscard]] bool rsvp() const; 0031 0032 private: 0033 void slotTextChanged(const QString &text); 0034 PimCommon::AddresseeLineEdit *const mDelegate; 0035 QCheckBox *const mRsvp; 0036 QPushButton *mOkButton = nullptr; 0037 };