Messagelib

headerstylemenumanager.h
1 /*
2  SPDX-FileCopyrightText: 2015-2021 Laurent Montel <[email protected]>
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>
12 class KActionMenu;
13 class KActionCollection;
14 namespace MessageViewer
15 {
16 class HeaderStylePlugin;
17 class HeaderStyleMenuManagerPrivate;
18 /**
19  * @brief The HeaderStyleMenuManager class
20  * @author Laurent Montel <[email protected]>
21  */
22 class MESSAGEVIEWER_EXPORT HeaderStyleMenuManager : public QObject
23 {
24  Q_OBJECT
25 public:
26  explicit HeaderStyleMenuManager(KActionCollection *ac, QObject *parent = nullptr);
27  ~HeaderStyleMenuManager() override;
28 
29  Q_REQUIRED_RESULT KActionMenu *menu() const;
30 
31  void setPluginName(const QString &pluginName);
32  void readConfig();
33 
34 public Q_SLOTS:
35  void slotStyleChanged(MessageViewer::HeaderStylePlugin *plugin);
36 Q_SIGNALS:
37  void styleChanged(MessageViewer::HeaderStylePlugin *plugin);
38  void styleUpdated();
39 
40 private:
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-2021 The KDE developers.
Generated on Mon Dec 6 2021 23:04:57 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.