Messagelib

convertsnippetvariablemenu.h
1/*
2 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "messagecomposer_export.h"
10#include <MessageComposer/ConvertSnippetVariablesUtil>
11#include <QObject>
12class QMenu;
13namespace MessageComposer
14{
15/**
16 * @brief The ConvertSnippetVariableMenu class
17 * @author Laurent Montel <montel@kde.org>
18 */
19class MESSAGECOMPOSER_EXPORT ConvertSnippetVariableMenu : public QObject
20{
21 Q_OBJECT
22public:
23 explicit ConvertSnippetVariableMenu(bool onlyMenuForCustomizeAttachmentFileName, QWidget *parentWidget, QObject *parent = nullptr);
25 [[nodiscard]] QMenu *menu() const;
26
27Q_SIGNALS:
28 void insertVariable(MessageComposer::ConvertSnippetVariablesUtil::VariableType type);
29
30private:
31 MESSAGECOMPOSER_NO_EXPORT void initializeMenu(bool onlyMenuForCustomizeAttachmentFileName);
32 QWidget *const mParentWidget;
33 QMenu *mMenu = nullptr;
34};
35}
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 Fri Nov 22 2024 12:05:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.