Messagelib

remotecontentmenu.h
1 /*
2  SPDX-FileCopyrightText: 2020-2023 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "messageviewer_export.h"
10 #include <QMenu>
11 namespace MessageViewer
12 {
13 /**
14  * @brief The RemoteContentMenu class
15  * @author Laurent Montel <[email protected]>
16  */
17 class MESSAGEVIEWER_EXPORT RemoteContentMenu : public QMenu
18 {
19  Q_OBJECT
20 public:
21  explicit RemoteContentMenu(QWidget *parent = nullptr);
22  ~RemoteContentMenu() override;
23 
24  void updateMenu();
25 
26  Q_REQUIRED_RESULT QStringList urls() const;
27  void setUrls(const QStringList &urls);
28 
29  void clearUrls();
30  void appendUrl(const QString &url);
31 
32 Q_SIGNALS:
33  void updateEmail();
34 
35 private:
36  MESSAGEVIEWER_NO_EXPORT void authorize(const QString &url);
37  MESSAGEVIEWER_NO_EXPORT void slotConfigure();
38  QStringList mUrls;
39  QAction *const mConfigureRemoteContentAction;
40  QList<QAction *> mListAction;
41 };
42 }
The RemoteContentMenu class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:01:57 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.