Messagelib
7#include "webengineembedpart.h"
9using namespace MessageViewer;
11WebEngineEmbedPart::WebEngineEmbedPart(
QObject *parent)
16WebEngineEmbedPart::~WebEngineEmbedPart() =
default;
18WebEngineEmbedPart *WebEngineEmbedPart::self()
20 static WebEngineEmbedPart s_self;
24QString WebEngineEmbedPart::contentUrl(
const QString &contentId)
const
26 return mEmbeddedPartMap.value(contentId);
29void WebEngineEmbedPart::addEmbedPart(
const QByteArray &contentId,
const QString &contentURL)
31 mEmbeddedPartMap[QLatin1StringView(contentId)] = contentURL;
34void WebEngineEmbedPart::clear()
36 mEmbeddedPartMap.
clear();
39bool WebEngineEmbedPart::isEmpty()
const
41 return mEmbeddedPartMap.isEmpty();
44QMap<QString, QString> WebEngineEmbedPart::embeddedPartMap()
const
46 return mEmbeddedPartMap;
49#include "moc_webengineembedpart.cpp"
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:47:40 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.