KParts

browserhostextension.cpp
1 /*
2  This file is part of the KDE project
3  SPDX-FileCopyrightText: 1999 Simon Hausmann <[email protected]>
4  SPDX-FileCopyrightText: 1999 David Faure <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #include "browserhostextension.h"
10 
11 #include "readonlypart.h"
12 
13 using namespace KParts;
14 
15 #if KPARTS_BUILD_DEPRECATED_SINCE(5, 78)
16 
17 namespace KParts
18 {
19 class BrowserHostExtensionPrivate
20 {
21 public:
22  BrowserHostExtensionPrivate()
23  {
24  }
25  ~BrowserHostExtensionPrivate()
26  {
27  }
28 
29  KParts::ReadOnlyPart *m_part = nullptr;
30 };
31 
32 }
33 
34 BrowserHostExtension::BrowserHostExtension(KParts::ReadOnlyPart *parent)
35  : QObject(parent)
36  , d(new BrowserHostExtensionPrivate)
37 {
38  d->m_part = parent;
39 }
40 
41 BrowserHostExtension::~BrowserHostExtension() = default;
42 
44 {
45  return QStringList();
46 }
47 
49 {
51 }
52 
54 {
55  return false;
56 }
57 
59 {
61 }
62 
64 {
65  Q_UNUSED(callingPart);
66  Q_UNUSED(frame);
67  return nullptr;
68 }
69 
70 #endif
FindDirectChildrenOnly
BrowserArguments is a set of web-browsing-specific arguments, which allow specifying how a URL should...
virtual const QList< KParts::ReadOnlyPart * > frames() const
Returns a list of pointers to all hosted child objects.
virtual QStringList frameNames() const
Returns a list of the names of all hosted child objects.
static BrowserHostExtension * childObject(QObject *obj)
Queries obj for a child object which inherits from this BrowserHostExtension class.
An extension class for container parts, i.e.
virtual bool openUrlInFrame(const QUrl &url, const KParts::OpenUrlArguments &arguments, const KParts::BrowserArguments &browserArguments)
Opens the given url in a hosted child frame.
virtual BrowserHostExtension * findFrameParent(KParts::ReadOnlyPart *callingPart, const QString &frame)
Returns the part that contains frame and that may be accessed by callingPart.
QObject * parent() const const
The KParts namespace,.
OpenUrlArguments is the set of arguments that specify how a URL should be opened by KParts::ReadOnlyP...
Base class for any "viewer" part.
Definition: readonlypart.h:51
T findChild(const QString &name, Qt::FindChildOptions options) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Nov 29 2021 22:49:22 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.