1 /*
2    SPDX-FileCopyrightText: 2015-2021 Laurent Montel <montel@kde.org>
3 
4    SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <MessageViewer/HeaderStrategy>
10 #include <QStringList>
11 
12 namespace MessageViewer
13 {
14 class BriefHeaderStrategy : public HeaderStrategy
15 {
16 public:
17     BriefHeaderStrategy();
~BriefHeaderStrategy()18     ~BriefHeaderStrategy() override
19     {
20     }
21 
22 public:
name()23     const char *name() const override
24     {
25         return "brief";
26     }
27 
headersToDisplay()28     Q_REQUIRED_RESULT QStringList headersToDisplay() const override
29     {
30         return mHeadersToDisplay;
31     }
32 
defaultPolicy()33     Q_REQUIRED_RESULT DefaultPolicy defaultPolicy() const override
34     {
35         return Hide;
36     }
37 
38 private:
39     const QStringList mHeadersToDisplay;
40 };
41 }
42