File indexing completed on 2024-04-28 15:29:19

0001 /*
0002     This file is part of the KDE project
0003     SPDX-FileCopyrightText: 1999 Simon Hausmann <hausmann@kde.org>
0004     SPDX-FileCopyrightText:  1999 David Faure <faure@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.0-or-later
0007 */
0008 
0009 #include "browserhostextension.h"
0010 
0011 #include "readonlypart.h"
0012 
0013 using namespace KParts;
0014 
0015 #if KPARTS_BUILD_DEPRECATED_SINCE(5, 78)
0016 
0017 namespace KParts
0018 {
0019 class BrowserHostExtensionPrivate
0020 {
0021 public:
0022     BrowserHostExtensionPrivate()
0023     {
0024     }
0025     ~BrowserHostExtensionPrivate()
0026     {
0027     }
0028 
0029     KParts::ReadOnlyPart *m_part = nullptr;
0030 };
0031 
0032 }
0033 
0034 BrowserHostExtension::BrowserHostExtension(KParts::ReadOnlyPart *parent)
0035     : QObject(parent)
0036     , d(new BrowserHostExtensionPrivate)
0037 {
0038     d->m_part = parent;
0039 }
0040 
0041 BrowserHostExtension::~BrowserHostExtension() = default;
0042 
0043 QStringList BrowserHostExtension::frameNames() const
0044 {
0045     return QStringList();
0046 }
0047 
0048 const QList<KParts::ReadOnlyPart *> BrowserHostExtension::frames() const
0049 {
0050     return QList<KParts::ReadOnlyPart *>();
0051 }
0052 
0053 bool BrowserHostExtension::openUrlInFrame(const QUrl &, const KParts::OpenUrlArguments &, const KParts::BrowserArguments &)
0054 {
0055     return false;
0056 }
0057 
0058 BrowserHostExtension *BrowserHostExtension::childObject(QObject *obj)
0059 {
0060     return obj->findChild<KParts::BrowserHostExtension *>(QString(), Qt::FindDirectChildrenOnly);
0061 }
0062 
0063 BrowserHostExtension *BrowserHostExtension::findFrameParent(KParts::ReadOnlyPart *callingPart, const QString &frame)
0064 {
0065     Q_UNUSED(callingPart);
0066     Q_UNUSED(frame);
0067     return nullptr;
0068 }
0069 
0070 #include "moc_browserhostextension.cpp"
0071 
0072 #endif