Messagelib

plugineditorgrammarmanager.h
1 /*
2  SPDX-FileCopyrightText: 2019-2023 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "messagecomposer_export.h"
10 #include <PimCommon/PluginUtil>
11 #include <QObject>
12 #include <memory>
13 namespace PimCommon
14 {
15 class CustomToolsPlugin;
16 }
17 namespace MessageComposer
18 {
19 class PluginEditorGrammarManagerPrivate;
20 /**
21  * @brief The PluginEditorGrammarManager class
22  * @author Laurent Montel <[email protected]>
23  */
24 class MESSAGECOMPOSER_EXPORT PluginEditorGrammarManager : public QObject
25 {
26  Q_OBJECT
27 public:
28  explicit PluginEditorGrammarManager(QObject *parent = nullptr);
29  ~PluginEditorGrammarManager() override;
30 
31  static PluginEditorGrammarManager *self();
32 
33  Q_REQUIRED_RESULT QVector<PimCommon::CustomToolsPlugin *> pluginsList() const;
34 
35  Q_REQUIRED_RESULT QString configGroupName() const;
36  Q_REQUIRED_RESULT QString configPrefixSettingKey() const;
37  Q_REQUIRED_RESULT QVector<PimCommon::PluginUtilData> pluginsDataList() const;
38  Q_REQUIRED_RESULT PimCommon::CustomToolsPlugin *pluginFromIdentifier(const QString &id);
39 
40 private:
41  std::unique_ptr<PluginEditorGrammarManagerPrivate> const d;
42 };
43 }
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Mar 22 2023 04:07:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.