KParts::BrowserRun Class Reference
This class extends KRun to provide additional functionality for browsers: "save or open" dialog boxes "save" functionality support for HTTP POST (including saving the result to a temp file if opening a separate application) warning before launching executables off the web custom error handling (i.e. More...
#include <browserrun.h>
Inheritance diagram for KParts::BrowserRun:

Public Methods | |
BrowserRun (const KURL &url, const KParts::URLArgs &args, KParts::ReadOnlyPart *part, QWidget *window, bool removeReferrer, bool trustedSource) | |
BrowserRun (const KURL &url, const KParts::URLArgs &args, KParts::ReadOnlyPart *part, QWidget *window, bool removeReferrer, bool trustedSource, bool hideErrorDialog) | |
Protected Types | |
enum | NonEmbeddableResult |
NotHandled means that foundMimeType should call KRun::foundMimeType, i.e. More... | |
Protected Methods | |
virtual void | scanFile () |
Reimplemented from KRun. | |
virtual void | init () |
Reimplemented from KRun. | |
virtual void | handleError (KIO::Job *job) |
Called when an error happens. | |
NonEmbeddableResult | handleNonEmbeddable (const QString &mimeType) |
Helper for foundMimeType: call this if the mimetype couldn't be embedded. |
Detailed Description
This class extends KRun to provide additional functionality for browsers: "save or open" dialog boxes "save" functionality support for HTTP POST (including saving the result to a temp file if opening a separate application) warning before launching executables off the web custom error handling (i.e.
- * - * - * - * - treating errors as HTML pages)
- generation of SSL metadata depending on the previous URL shown by the part
- Author:
- David Faure <faure@kde.org>
Definition at line 39 of file browserrun.h.
Member Enumeration Documentation
|
NotHandled means that foundMimeType should call KRun::foundMimeType, i.e. launch an external app. Definition at line 114 of file browserrun.h. |
Constructor & Destructor Documentation
|
Definition at line 41 of file browserrun.cpp. |
|
Definition at line 53 of file browserrun.cpp. |
Member Function Documentation
|
Reimplemented from KRun.
Definition at line 101 of file browserrun.cpp. References QObject::connect(), KParts::URLArgs::contentType(), KParts::URLArgs::doPost(), QString::find(), KMimeType::findByURL(), KRun::foundMimeType(), KIO::get(), KIO::http_post(), QMap< QString, QString >::insert(), KParts::URLArgs::metaData(), KIO::mimetype(), KParts::URLArgs::postData, KURL::protocol(), KMimeType::Ptr, KParts::URLArgs::reload, QMap< QString, QString >::remove(), and KParts::ReadOnlyPart::url(). |
|
Reimplemented from KRun.
Definition at line 69 of file browserrun.cpp. References QFile::encodeName(), and handleError(). |
|
Called when an error happens.
NOTE: Definition at line 363 of file browserrun.cpp. Referenced by init(). |
|
Helper for foundMimeType: call this if the mimetype couldn't be embedded.
Definition at line 198 of file browserrun.cpp. References QObject::connect(), KParts::URLArgs::doPost(), KIO::file_copy(), QString::findRev(), QString::fromLatin1(), QString::isEmpty(), QString::mid(), KTempFile::name(), KServiceTypeProfile::preferredService(), KIO::SimpleJob::removeOnHold(), and KURL::setPath(). |
The documentation for this class was generated from the following files: