Mailcommon

snippetcustomfileattachmentnamewidget.h
1/*
2 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
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>
12class QLineEdit;
13namespace MessageComposer
14{
15class ConvertSnippetVariableMenu;
16}
17
18namespace MailCommon
19{
20class MAILCOMMON_TESTS_EXPORT SnippetCustomFileAttachmentNameWidget : public QWidget
21{
22 Q_OBJECT
23public:
24 explicit SnippetCustomFileAttachmentNameWidget(QWidget *parent = nullptr);
25 ~SnippetCustomFileAttachmentNameWidget() override;
26 [[nodiscard]] QString result() const;
27 void setText(const QString &str);
28
29private:
30 MAILCOMMON_NO_EXPORT 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-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:02:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.