Messagelib

defaultgrantleeheaderstyleplugin.h
1/*
2 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
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
13namespace MessageViewer
14{
15class GrantleeHeaderStyle;
16class DefaultGrantleeHeaderStylePlugin : public MessageViewer::HeaderStylePlugin
17{
19public:
20 explicit DefaultGrantleeHeaderStylePlugin(QObject *parent = nullptr, const QList<QVariant> & = QList<QVariant>());
21 ~DefaultGrantleeHeaderStylePlugin() override;
22
23 [[nodiscard]] HeaderStyle *headerStyle() const override;
24 [[nodiscard]] HeaderStrategy *headerStrategy() const override;
25 [[nodiscard]] HeaderStyleInterface *createView(KActionMenu *menu, QActionGroup *actionGroup, KActionCollection *ac, QObject *parent = nullptr) override;
26 [[nodiscard]] QString name() const override;
27
28private:
29 void initializePlugin();
30 GrantleeHeaderStyle *const mHeaderStyle;
31 HeaderStrategy *const mHeaderStrategy;
32};
33}
The HeaderStylePlugin class.
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:05:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.