KParts
readonlypart.h
132 // TODO to avoid problems with the case where the loading fails, this could also be a openUrl() argument (heavy porting!).
133 // However we need to have setArguments in any case for updated made by the part, see e.g. KHTMLPart::openUrl.
170protected: // are parsed by doxygen (kapidox/ecm_add_qch): unhide for doxygen configured to skip private methods
This event is sent to a Part when its GUI has been activated or deactivated.
Definition guiactivateevent.h:30
OpenUrlArguments is the set of arguments that specify how a URL should be opened by KParts::ReadOnlyP...
Definition openurlarguments.h:35
void completedWithPendingAction()
This signal is similar to the KParts::ReadOnlyPart::completed() signal except it is only emitted if t...
bool isProgressInfoEnabled() const
Returns whether the part shows the progress info dialog used by the internal KIO job.
Definition readonlypart.cpp:86
bool openStream(const QString &mimeType, const QUrl &url)
Initiate sending data to this part.
Definition readonlypart.cpp:300
ReadOnlyPart(QObject *parent=nullptr, const KPluginMetaData &data={})
Constructor.
Definition readonlypart.cpp:29
virtual bool openUrl(const QUrl &url)
Only reimplement this if you don't want the network transparency support to download from the URL int...
Definition readonlypart.cpp:93
void setProgressInfoEnabled(bool show)
Call this to turn off the progress info dialog used by the internal KIO job.
Definition readonlypart.cpp:79
NavigationExtension * navigationExtension() const
This convenience method returns the NavigationExtension for this part, or nullptr if there isn't one.
Definition readonlypart.cpp:323
void urlChanged(const QUrl &url)
Emitted by the part when url() changes.
void setLocalFilePath(const QString &localFilePath)
Sets the local file path associated with this part.
Definition readonlypart.cpp:72
virtual bool doCloseStream()
This is called by closeStream(), to indicate that all the data has been sent.
Definition readonlypart.h:201
virtual bool openFile()
If the part uses the standard implementation of openUrl(), it must reimplement this to open the local...
Definition readonlypart.cpp:134
void setArguments(const OpenUrlArguments &arguments)
Sets the arguments to use for the next openUrl() call.
Definition readonlypart.cpp:328
void canceled(const QString &errMsg)
Emit this if loading is canceled by the user or by an error.
virtual bool closeUrl()
Called when closing the current URL (for example, a document), for instance when switching to another...
Definition readonlypart.cpp:216
virtual bool doWriteStream(const QByteArray &data)
Receive some data from the hosting application.
Definition readonlypart.h:191
void started(KIO::Job *job)
The part emits this when starting to load data.
virtual bool doOpenStream(const QString &mimeType)
Called by openStream to initiate sending of data.
Definition readonlypart.h:180
QString localFilePath() const
Returns the local file path associated with this part.
Definition readonlypart.cpp:65
void guiActivateEvent(GUIActivateEvent *event) override
Reimplemented from Part, so that the window caption is set to the current URL (decoded) when the part...
Definition readonlypart.cpp:286
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SLOTSQ_SLOTS
virtual bool event(QEvent *e)
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:58:23 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:58:23 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.