Messagelib

pluginactiontype.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 "messagecomposer_export.h"
10 #include <QString>
11 class QAction;
12 
13 namespace MessageComposer
14 {
15 /**
16  * @brief The PluginActionType class
17  * @author Laurent Montel <[email protected]>
18  */
19 class MESSAGECOMPOSER_EXPORT PluginActionType
20 {
21 public:
22  enum Type {
23  Tools = 0,
24  Edit = 1,
25  File = 2,
26  Action = 3,
27  PopupMenu = 4,
28  ToolBar = 5,
29  Options = 6,
30  None = 7,
31  Insert = 8,
32  View = 9,
33  };
35 
36  PluginActionType(QAction *action, Type type);
37  Q_REQUIRED_RESULT QAction *action() const;
38  Q_REQUIRED_RESULT Type type() const;
39 
40  static QString actionXmlExtension(PluginActionType::Type type);
41 
42 private:
43  QAction *mAction = nullptr;
44  Type mType = Tools;
45 };
46 }
47 Q_DECLARE_TYPEINFO(MessageComposer::PluginActionType, Q_RELOCATABLE_TYPE);
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
The PluginActionType class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 03:53:39 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.