File indexing completed on 2025-01-05 04:49:43
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/HeaderStyleInterface> 0010 0011 namespace GrantleeTheme 0012 { 0013 class ThemeManager; 0014 } 0015 0016 class GrantleeHeaderStylePluginTest; 0017 0018 namespace MessageViewer 0019 { 0020 class GrantleeHeaderStyleInterface : public MessageViewer::HeaderStyleInterface 0021 { 0022 Q_OBJECT 0023 public: 0024 explicit GrantleeHeaderStyleInterface(HeaderStylePlugin *plugin, QObject *parent = nullptr); 0025 ~GrantleeHeaderStyleInterface() override; 0026 0027 void createAction(KActionMenu *menu, QActionGroup *actionGroup, KActionCollection *ac) override; 0028 void activateAction() override; 0029 0030 private: 0031 void slotGrantleeHeaders(); 0032 0033 friend ::GrantleeHeaderStylePluginTest; 0034 GrantleeTheme::ThemeManager *mThemeManager = nullptr; 0035 }; 0036 }