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>
10namespace MessageViewer
11{
12class DKIMManagerKeyProxyModel;
13class DKIMManagerKeyModel;
14class MESSAGEVIEWER_TESTS_EXPORT DKIMManagerKeyTreeView : public QTreeView
15{
16 Q_OBJECT
17public:
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
29private:
30 MESSAGEVIEWER_NO_EXPORT void deleteSelectedItems();
31 MESSAGEVIEWER_NO_EXPORT void slotCustomContextMenuRequested(const QPoint &pos);
32 DKIMManagerKeyProxyModel *const mManagerKeyProxyModel;
33 DKIMManagerKeyModel *mManagerKeyModel = nullptr;
34};
35}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.