Messagelib

headerstylepluginmanager.h
1 /*
2  SPDX-FileCopyrightText: 2015-2023 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 <PimCommon/PluginUtil>
11 #include <QObject>
12 namespace MessageViewer
13 {
14 class HeaderStylePlugin;
15 class HeaderStylePluginManagerPrivate;
16 /**
17  * @brief The HeaderStylePluginManager class
18  * @author Laurent Montel <[email protected]>
19  */
20 class MESSAGEVIEWER_EXPORT HeaderStylePluginManager : public QObject
21 {
22  Q_OBJECT
23 public:
24  static HeaderStylePluginManager *self();
25 
26  explicit HeaderStylePluginManager(QObject *parent = nullptr);
27  ~HeaderStylePluginManager() override;
28 
29  Q_REQUIRED_RESULT QVector<MessageViewer::HeaderStylePlugin *> pluginsList() const;
30  Q_REQUIRED_RESULT QStringList pluginListName() const;
31 
32  Q_REQUIRED_RESULT QVector<PimCommon::PluginUtilData> pluginsDataList() const;
33  Q_REQUIRED_RESULT QString configPrefixSettingKey() const;
34  Q_REQUIRED_RESULT QString configGroupName() const;
35  Q_REQUIRED_RESULT MessageViewer::HeaderStylePlugin *pluginFromIdentifier(const QString &id);
36 
37 private:
38  std::unique_ptr<HeaderStylePluginManagerPrivate> const d;
39 };
40 }
The HeaderStylePluginManager class.
The HeaderStylePlugin class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:01:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.