Messagelib

pluginactiontype.h
1/*
2 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "messagecomposer_export.h"
10#include <QString>
11class QAction;
12
13namespace MessageComposer
14{
15/**
16 * @brief The PluginActionType class
17 * @author Laurent Montel <montel@kde.org>
18 */
19class MESSAGECOMPOSER_EXPORT PluginActionType
20{
21public:
22 enum Type : uint8_t {
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 explicit PluginActionType(QAction *action, Type type);
37 [[nodiscard]] QAction *action() const;
38 [[nodiscard]] Type type() const;
39
40 static QString actionXmlExtension(PluginActionType::Type type);
41
42private:
43 QAction *mAction = nullptr;
44 Type mType = Tools;
45};
46}
47Q_DECLARE_TYPEINFO(MessageComposer::PluginActionType, Q_RELOCATABLE_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-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.