Messagelib

remotecontentmenu.h
1/*
2 SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "messageviewer_export.h"
10#include <QMenu>
11namespace MessageViewer
12{
13/**
14 * @brief The RemoteContentMenu class
15 * @author Laurent Montel <montel@kde.org>
16 */
17class MESSAGEVIEWER_EXPORT RemoteContentMenu : public QMenu
18{
19 Q_OBJECT
20public:
21 explicit RemoteContentMenu(QWidget *parent = nullptr);
22 ~RemoteContentMenu() override;
23
24 void updateMenu();
25
26 [[nodiscard]] QStringList urls() const;
27 void setUrls(const QStringList &urls);
28
29 void clearUrls();
30 void appendUrl(const QString &url);
31
32Q_SIGNALS:
33 void updateEmail();
34
35private:
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-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.