Messagelib

dkimmanagerkeytreeview.h
1 /*
2  SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 #pragma once
7 #include "dkimmanagerkey.h"
8 #include "messageviewer_private_export.h"
9 #include <QTreeView>
10 namespace MessageViewer
11 {
12 class DKIMManagerKeyProxyModel;
13 class DKIMManagerKeyModel;
14 class MESSAGEVIEWER_TESTS_EXPORT DKIMManagerKeyTreeView : public QTreeView
15 {
16  Q_OBJECT
17 public:
18  explicit DKIMManagerKeyTreeView(QWidget *parent = nullptr);
19  ~DKIMManagerKeyTreeView() override;
20 
21  void setFilterStr(const QString &str);
22 
23  void setKeyModel(DKIMManagerKeyModel *model);
24 
25  [[nodiscard]] QList<MessageViewer::KeyInfo> keyInfos() const;
26 
27  void clear();
28 
29 private:
30  void deleteSelectedItems();
31  void slotCustomContextMenuRequested(const QPoint &pos);
32  DKIMManagerKeyProxyModel *const mManagerKeyProxyModel;
33  DKIMManagerKeyModel *mManagerKeyModel = nullptr;
34 };
35 }
QAction * clear(const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Feb 15 2024 03:55:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.