File indexing completed on 2025-01-05 04:49:44
0001 /* 0002 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <MessageViewer/HeaderStrategy> 0010 #include <QStringList> 0011 0012 namespace MessageViewer 0013 { 0014 // 0015 // StandardHeaderStrategy: 0016 // BCC, CC, Date, From, Subject, To 0017 // 0018 0019 class StandardHeaderStrategy : public HeaderStrategy 0020 { 0021 public: 0022 StandardHeaderStrategy(); 0023 ~StandardHeaderStrategy() override; 0024 0025 public: 0026 const char *name() const override 0027 { 0028 return "standard"; 0029 } 0030 0031 QStringList headersToDisplay() const override 0032 { 0033 return mHeadersToDisplay; 0034 } 0035 0036 DefaultPolicy defaultPolicy() const override 0037 { 0038 return Hide; 0039 } 0040 0041 private: 0042 const QStringList mHeadersToDisplay; 0043 }; 0044 }