Messagelib

richheaderstrategy.h
1/* -*- c++ -*-
2 header/headerstrategy.h
3
4 This file is part of KMail, the KDE mail client.
5 SPDX-FileCopyrightText: 2003 Marc Mutz <mutz@kde.org>
6
7 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
8
9 SPDX-License-Identifier: GPL-2.0-or-later
10*/
11
12#pragma once
13#include "messageviewer/headerstrategy.h"
14#include "messageviewer_export.h"
15#include <QStringList>
16//
17namespace MessageViewer
18{
19//
20// RichHeaderStrategy:
21// Date, Subject, From, To, CC, ### what exactly?
22//
23/**
24 * @brief The RichHeaderStrategy class
25 */
26class MESSAGEVIEWER_EXPORT RichHeaderStrategy : public HeaderStrategy
27{
28public:
30 ~RichHeaderStrategy() override;
31
32public:
33 [[nodiscard]] const char *name() const override
34 {
35 return "rich";
36 }
37
38 [[nodiscard]] QStringList headersToDisplay() const override
39 {
40 return mHeadersToDisplay;
41 }
42
43 [[nodiscard]] DefaultPolicy defaultPolicy() const override
44 {
45 return Hide;
46 }
47
48private:
49 const QStringList mHeadersToDisplay;
50};
51}
The HeaderStrategy class.
The RichHeaderStrategy class.
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.