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