Warning, file /pim/mailcommon/src/snippets/snippetselectattachmentwidget.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-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #pragma once 0008 0009 #include "mailcommon_private_export.h" 0010 #include <PimCommon/SimpleStringListEditor> 0011 #include <QWidget> 0012 namespace PimCommon 0013 { 0014 class SimpleStringListEditor; 0015 } 0016 namespace MailCommon 0017 { 0018 class MAILCOMMON_TESTS_EXPORT SnippetSelectorWidget : public PimCommon::SimpleStringListEditor 0019 { 0020 Q_OBJECT 0021 public: 0022 explicit SnippetSelectorWidget(QWidget *parent = nullptr); 0023 ~SnippetSelectorWidget() override; 0024 0025 void addNewEntry() override; 0026 QString customEntry(const QString &text) override; 0027 }; 0028 0029 class MAILCOMMON_TESTS_EXPORT SnippetSelectAttachmentWidget : public QWidget 0030 { 0031 Q_OBJECT 0032 public: 0033 explicit SnippetSelectAttachmentWidget(QWidget *parent = nullptr); 0034 ~SnippetSelectAttachmentWidget() override; 0035 0036 void setAttachments(const QStringList &lst); 0037 [[nodiscard]] QStringList attachments() const; 0038 0039 private: 0040 SnippetSelectorWidget *const mEditor; 0041 }; 0042 }