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/HeaderStylePlugin> 0010 0011 #include <QVariant> 0012 0013 namespace MessageViewer 0014 { 0015 class HeaderStyleInterface; 0016 class BriefHeaderStylePlugin : public MessageViewer::HeaderStylePlugin 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit BriefHeaderStylePlugin(QObject *parent = nullptr, const QList<QVariant> & = QList<QVariant>()); 0021 ~BriefHeaderStylePlugin() override; 0022 0023 HeaderStyle *headerStyle() const override; 0024 HeaderStrategy *headerStrategy() const override; 0025 HeaderStyleInterface *createView(KActionMenu *menu, QActionGroup *actionGroup, KActionCollection *ac, QObject *parent = nullptr) override; 0026 QString name() const override; 0027 0028 private: 0029 HeaderStyle *const mHeaderStyle; 0030 HeaderStrategy *const mHeaderStrategy; 0031 }; 0032 }