Mailcommon

snippetcustomfileattachmentnamewidget.h
1 /*
2  SPDX-FileCopyrightText: 2019-2022 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "mailcommon_private_export.h"
10 #include <MessageComposer/ConvertSnippetVariablesUtil>
11 #include <QWidget>
12 class QLineEdit;
13 namespace MessageComposer
14 {
15 class ConvertSnippetVariableMenu;
16 }
17 
18 namespace MailCommon
19 {
20 class MAILCOMMON_TESTS_EXPORT SnippetCustomFileAttachmentNameWidget : public QWidget
21 {
22  Q_OBJECT
23 public:
24  explicit SnippetCustomFileAttachmentNameWidget(QWidget *parent = nullptr);
25  ~SnippetCustomFileAttachmentNameWidget() override;
26  Q_REQUIRED_RESULT QString result() const;
27  void setText(const QString &str);
28 
29 private:
30  void insertVariable(MessageComposer::ConvertSnippetVariablesUtil::VariableType variable);
31  QLineEdit *const mLineEdit;
32  MessageComposer::ConvertSnippetVariableMenu *mConvertMenu = nullptr;
33 };
34 }
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Oct 1 2022 04:00:53 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.