File indexing completed on 2025-03-09 04:54:32
0001 /* 0002 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "headerstyle.h" 0010 #include "messageviewer_export.h" 0011 0012 namespace MessageViewer 0013 { 0014 class GrantleeHeaderTestStylePrivate; 0015 /** 0016 * @brief The GrantleeHeaderTestStyle class 0017 * @author Laurent Montel <montel@kde.org> 0018 */ 0019 class MESSAGEVIEWER_EXPORT GrantleeHeaderTestStyle : public HeaderStyle 0020 { 0021 friend class GrantleeHeaderStyle; 0022 0023 public: 0024 GrantleeHeaderTestStyle(); 0025 ~GrantleeHeaderTestStyle() override; 0026 0027 public: 0028 const char *name() const override; 0029 0030 [[nodiscard]] QString format(KMime::Message *message) const override; 0031 0032 void setAbsolutePath(const QString &); 0033 void setMainFilename(const QString &); 0034 void setExtraDisplayHeaders(const QStringList &); 0035 0036 private: 0037 std::unique_ptr<GrantleeHeaderTestStylePrivate> const d; 0038 }; 0039 }