Warning, file /pim/mailcommon/src/snippets/snippetcustomfileattachmentnamedialog.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "mailcommon_private_export.h" 0010 #include <QDialog> 0011 0012 namespace MailCommon 0013 { 0014 class SnippetCustomFileAttachmentNameWidget; 0015 class MAILCOMMON_TESTS_EXPORT SnippetCustomFileAttachmentNameDialog : public QDialog 0016 { 0017 Q_OBJECT 0018 public: 0019 explicit SnippetCustomFileAttachmentNameDialog(QWidget *parent = nullptr); 0020 ~SnippetCustomFileAttachmentNameDialog() override; 0021 0022 [[nodiscard]] QString result() const; 0023 0024 void setText(const QString &str); 0025 0026 private: 0027 void readConfig(); 0028 void writeConfig(); 0029 SnippetCustomFileAttachmentNameWidget *const mCustomWidget; 0030 }; 0031 }