File indexing completed on 2025-01-19 04:46:54
0001 /* 0002 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <MessageViewer/HeaderStrategy> 0010 #include <QStringList> 0011 0012 namespace MessageViewer 0013 { 0014 class BriefHeaderStrategy : public HeaderStrategy 0015 { 0016 public: 0017 BriefHeaderStrategy(); 0018 ~BriefHeaderStrategy() override = default; 0019 0020 public: 0021 const char *name() const override 0022 { 0023 return "brief"; 0024 } 0025 0026 [[nodiscard]] QStringList headersToDisplay() const override 0027 { 0028 return mHeadersToDisplay; 0029 } 0030 0031 [[nodiscard]] DefaultPolicy defaultPolicy() const override 0032 { 0033 return Hide; 0034 } 0035 0036 private: 0037 const QStringList mHeadersToDisplay; 0038 }; 0039 }