Messagelib

defaultgrantleeheaderstyleplugin.h
1 /*
2  SPDX-FileCopyrightText: 2015-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "messageviewer/headerstyleplugin.h"
10 
11 #include <QVariant>
12 
13 namespace MessageViewer
14 {
15 class GrantleeHeaderStyle;
16 class DefaultGrantleeHeaderStylePlugin : public MessageViewer::HeaderStylePlugin
17 {
18  Q_OBJECT
19 public:
20  explicit DefaultGrantleeHeaderStylePlugin(QObject *parent = nullptr, const QList<QVariant> & = QList<QVariant>());
21  ~DefaultGrantleeHeaderStylePlugin() override;
22 
23  Q_REQUIRED_RESULT HeaderStyle *headerStyle() const override;
24  Q_REQUIRED_RESULT HeaderStrategy *headerStrategy() const override;
25  Q_REQUIRED_RESULT HeaderStyleInterface *createView(KActionMenu *menu, QActionGroup *actionGroup, KActionCollection *ac, QObject *parent = nullptr) override;
26  Q_REQUIRED_RESULT QString name() const override;
27 
28 private:
29  void initializePlugin();
30  GrantleeHeaderStyle *const mHeaderStyle;
31  HeaderStrategy *const mHeaderStrategy;
32 };
33 }
const QLatin1String name
Q_OBJECTQ_OBJECT
The HeaderStylePlugin class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Nov 28 2021 23:05:43 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.