Messagelib

pluginactiontype.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 "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 { Tools = 0, Edit = 1, File = 2, Action = 3, PopupMenu = 4, ToolBar = 5, Options = 6, None = 7, Insert = 8, View = 9 };
24 
25  PluginActionType(QAction *action, Type type);
26  Q_REQUIRED_RESULT QAction *action() const;
27  Q_REQUIRED_RESULT Type type() const;
28 
29  static QString actionXmlExtension(PluginActionType::Type type);
30 
31 private:
32  QAction *mAction = nullptr;
33  Type mType = Tools;
34 };
35 }
36 Q_DECLARE_TYPEINFO(MessageComposer::PluginActionType, Q_MOVABLE_TYPE);
37 
PartitionTable::TableType type
The PluginActionType class.
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-2021 The KDE developers.
Generated on Tue Nov 30 2021 23:05:47 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.