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 <[email protected]>
6 
7  SPDX-FileCopyrightText: 2013-2021 Laurent Montel <[email protected]>
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 //
17 namespace MessageViewer
18 {
19 //
20 // RichHeaderStrategy:
21 // Date, Subject, From, To, CC, ### what exactly?
22 //
23 /**
24  * @brief The RichHeaderStrategy class
25  */
26 class MESSAGEVIEWER_EXPORT RichHeaderStrategy : public HeaderStrategy
27 {
28 public:
30  ~RichHeaderStrategy() override;
31 
32 public:
33  Q_REQUIRED_RESULT const char *name() const override
34  {
35  return "rich";
36  }
37 
38  Q_REQUIRED_RESULT QStringList headersToDisplay() const override
39  {
40  return mHeadersToDisplay;
41  }
42 
43  Q_REQUIRED_RESULT DefaultPolicy defaultPolicy() const override
44  {
45  return Hide;
46  }
47 
48 private:
49  const QStringList mHeadersToDisplay;
50 };
51 }
52 
The HeaderStrategy class.
const QLatin1String name
The RichHeaderStrategy class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Nov 30 2021 23:05:47 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.