Messagelib

mimeparttreeview.h
1/*
2 SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <KMime/Message>
10#include <QTreeView>
11
12namespace MessageViewer
13{
14class MimeTreeModel;
15class MimePartTreeView : public QTreeView
16{
18public:
19 explicit MimePartTreeView(QWidget *parent = nullptr);
20 ~MimePartTreeView() override;
21
22 MessageViewer::MimeTreeModel *mimePartModel() const;
23
24 void clearModel();
25 void setRoot(KMime::Content *root);
26
27 [[nodiscard]] KMime::Content::List selectedContents() const;
28
29private:
30 void saveMimePartTreeConfig();
31 void restoreMimePartTreeConfig();
32 MimeTreeModel *const mMimePartModel;
33};
34}
A model representing the mime part tree of a message.
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.