Messagelib

convertsnippetvariablemenu.h
1 /*
2  SPDX-FileCopyrightText: 2019-2021 Laurent Montel <[email protected]>
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>
12 class QMenu;
13 namespace MessageComposer
14 {
15 /**
16  * @brief The ConvertSnippetVariableMenu class
17  * @author Laurent Montel <[email protected]>
18  */
19 class MESSAGECOMPOSER_EXPORT ConvertSnippetVariableMenu : public QObject
20 {
21  Q_OBJECT
22 public:
23  explicit ConvertSnippetVariableMenu(bool onlyMenuForCustomizeAttachmentFileName, QWidget *parentWidget, QObject *parent = nullptr);
24  ~ConvertSnippetVariableMenu() override;
25  Q_REQUIRED_RESULT QMenu *menu() const;
26 
27 Q_SIGNALS:
28  void insertVariable(MessageComposer::ConvertSnippetVariablesUtil::VariableType type);
29 
30 private:
31  void initializeMenu(bool onlyMenuForCustomizeAttachmentFileName);
32  QWidget *const mParentWidget;
33  QMenu *mMenu = nullptr;
34 };
35 }
PartitionTable::TableType type
The ConvertSnippetVariableMenu 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:46 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.