Mailcommon

snippetselectattachmentwidget.h
1 /*
2  SPDX-FileCopyrightText: 2019-2023 Laurent Montel <[email protected]>
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>
12 namespace PimCommon
13 {
14 class SimpleStringListEditor;
15 }
16 namespace MailCommon
17 {
18 class MAILCOMMON_TESTS_EXPORT SnippetSelectorWidget : public PimCommon::SimpleStringListEditor
19 {
20  Q_OBJECT
21 public:
22  explicit SnippetSelectorWidget(QWidget *parent = nullptr);
23  ~SnippetSelectorWidget() override;
24 
25  void addNewEntry() override;
26  QString customEntry(const QString &text) override;
27 };
28 
29 class MAILCOMMON_TESTS_EXPORT SnippetSelectAttachmentWidget : public QWidget
30 {
31  Q_OBJECT
32 public:
33  explicit SnippetSelectAttachmentWidget(QWidget *parent = nullptr);
34  ~SnippetSelectAttachmentWidget() override;
35 
36  void setAttachments(const QStringList &lst);
37  Q_REQUIRED_RESULT QStringList attachments() const;
38 
39 private:
40  SnippetSelectorWidget *const mEditor;
41 };
42 }
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:56:34 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.