Mailcommon

snippetselectattachmentwidget.h
1/*
2 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#pragma once
8
9#include "mailcommon_private_export.h"
10#include <PimCommon/SimpleStringListEditor>
11#include <QWidget>
12namespace PimCommon
13{
14class SimpleStringListEditor;
15}
16namespace MailCommon
17{
18class MAILCOMMON_TESTS_EXPORT SnippetSelectorWidget : public PimCommon::SimpleStringListEditor
19{
20 Q_OBJECT
21public:
22 explicit SnippetSelectorWidget(QWidget *parent = nullptr);
23 ~SnippetSelectorWidget() override;
24
25 void addNewEntry() override;
26 [[nodiscard]] QString customEntry(const QString &text) override;
27};
28
29class MAILCOMMON_TESTS_EXPORT SnippetSelectAttachmentWidget : public QWidget
30{
31 Q_OBJECT
32public:
33 explicit SnippetSelectAttachmentWidget(QWidget *parent = nullptr);
34 ~SnippetSelectAttachmentWidget() override;
35
36 void setAttachments(const QStringList &lst);
37 [[nodiscard]] QStringList attachments() const;
38
39private:
40 SnippetSelectorWidget *const mEditor;
41};
42}
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:12:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.