File indexing completed on 2025-01-19 04:46:54

0001 /*  -*- c++ -*-
0002     messageviewer/headerstyle.h
0003 
0004     This file is part of KMail, the KDE mail client.
0005     SPDX-FileCopyrightText: 2003 Marc Mutz <mutz@kde.org>
0006     SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
0007 
0008     SPDX-License-Identifier: GPL-2.0-only
0009 */
0010 
0011 #pragma once
0012 
0013 #include <MessageViewer/HeaderStyle>
0014 #include <MessageViewer/HeaderStyle_Util>
0015 namespace MessageViewer
0016 {
0017 class BriefHeaderStyle : public HeaderStyle
0018 {
0019 public:
0020     BriefHeaderStyle()
0021         : HeaderStyle()
0022     {
0023     }
0024 
0025     ~BriefHeaderStyle() override = default;
0026 
0027 public:
0028     const char *name() const override
0029     {
0030         return "brief";
0031     }
0032 
0033 private:
0034     [[nodiscard]] QString format(KMime::Message *message) const override;
0035     MessageViewer::HeaderStyleUtil mHeaderStyleUtil;
0036 };
0037 }