Messagelib

webengineembedpart.h
1/*
2 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QMap>
10#include <QObject>
11namespace MessageViewer
12{
13class WebEngineEmbedPart : public QObject
14{
16public:
17 explicit WebEngineEmbedPart(QObject *parent = nullptr);
18 ~WebEngineEmbedPart() override;
19
20 void clear();
21 [[nodiscard]] bool isEmpty() const;
22
23 [[nodiscard]] QMap<QString, QString> embeddedPartMap() const;
24
25 void addEmbedPart(const QByteArray &contentId, const QString &contentURL);
26 [[nodiscard]] QString contentUrl(const QString &contentId) const;
27
28 static WebEngineEmbedPart *self();
29
30private:
31 // Key is Content-Id, value is URL
32 QMap<QString, QString> mEmbeddedPartMap;
33};
34}
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.