Warning, file /pim/mailcommon/src/snippets/snippetcustomfileattachmentnamewidget.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 <MessageComposer/ConvertSnippetVariablesUtil>
0011 #include <QWidget>
0012 class QLineEdit;
0013 namespace MessageComposer
0014 {
0015 class ConvertSnippetVariableMenu;
0016 }
0017 
0018 namespace MailCommon
0019 {
0020 class MAILCOMMON_TESTS_EXPORT SnippetCustomFileAttachmentNameWidget : public QWidget
0021 {
0022     Q_OBJECT
0023 public:
0024     explicit SnippetCustomFileAttachmentNameWidget(QWidget *parent = nullptr);
0025     ~SnippetCustomFileAttachmentNameWidget() override;
0026     [[nodiscard]] QString result() const;
0027     void setText(const QString &str);
0028 
0029 private:
0030     void insertVariable(MessageComposer::ConvertSnippetVariablesUtil::VariableType variable);
0031     QLineEdit *const mLineEdit;
0032     MessageComposer::ConvertSnippetVariableMenu *mConvertMenu = nullptr;
0033 };
0034 }