Messagelib

headerstylemenumanager.h
1/*
2 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "messageviewer_export.h"
10#include <QObject>
11#include <memory>
12class KActionMenu;
14namespace MessageViewer
15{
16class HeaderStylePlugin;
17class HeaderStyleMenuManagerPrivate;
18/**
19 * @brief The HeaderStyleMenuManager class
20 * @author Laurent Montel <montel@kde.org>
21 */
22class MESSAGEVIEWER_EXPORT HeaderStyleMenuManager : public QObject
23{
24 Q_OBJECT
25public:
26 explicit HeaderStyleMenuManager(KActionCollection *ac, QObject *parent = nullptr);
27 ~HeaderStyleMenuManager() override;
28
29 [[nodiscard]] KActionMenu *menu() const;
30
31 void setPluginName(const QString &pluginName);
32 void readConfig();
33
34public Q_SLOTS:
35 void slotStyleChanged(MessageViewer::HeaderStylePlugin *plugin);
36Q_SIGNALS:
37 void styleChanged(MessageViewer::HeaderStylePlugin *plugin);
38 void styleUpdated();
39
40private:
41 std::unique_ptr<HeaderStyleMenuManagerPrivate> const d;
42};
43}
The HeaderStyleMenuManager class.
The HeaderStylePlugin class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.