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 Types | |
| enum | AskSaveResult { Save, Open, Cancel } | 
| Public Member Functions | |
| 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) | |
| KURL | url () const | 
| bool | hideErrorDialog () const | 
| QString | suggestedFilename () const | 
| virtual void | save (const KURL &url, const QString &suggestedFilename) | 
| Static Public Member Functions | |
| AskSaveResult | askSave (const KURL &url, KService::Ptr offer, const QString &mimeType, const QString &suggestedFilename=QString::null) | 
| AskSaveResult | askEmbedOrSave (const KURL &url, const QString &mimeType, const QString &suggestedFilename=QString::null, int flags=0) | 
| void | simpleSave (const KURL &url, const QString &suggestedFilename, QWidget *window) | 
| void | simpleSave (const KURL &url, const QString &suggestedFilename) | 
| bool | allowExecution (const QString &serviceType, const KURL &url) | 
| bool | isExecutable (const QString &serviceType) | 
| bool | isTextExecutable (const QString &serviceType) | 
| Protected Types | |
| enum | NonEmbeddableResult { Handled, NotHandled, Delayed } | 
| Protected Slots | |
| void | slotBrowserScanFinished (KIO::Job *job) | 
| void | slotBrowserMimetype (KIO::Job *job, const QString &type) | 
| void | slotCopyToTempFileResult (KIO::Job *job) | 
| virtual void | slotStatResult (KIO::Job *job) | 
| Protected Member Functions | |
| virtual void | scanFile () | 
| virtual void | init () | 
| virtual void | handleError (KIO::Job *job) | 
| NonEmbeddableResult | handleNonEmbeddable (const QString &mimeType) | 
| Protected Attributes | |
| KParts::URLArgs | m_args | 
| KParts::ReadOnlyPart * | m_part | 
| QGuardedPtr< QWidget > | m_window | 
| QString | m_suggestedFilename | 
| QString | m_sMimeType | 
| bool | m_bRemoveReferrer | 
| bool | m_bTrustedSource | 
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 141 of file browserrun.h. | 
Constructor & Destructor Documentation
| 
 | ||||||||||||||||||||||||||||
| 
 
 | 
| 
 | ||||||||||||||||||||||||||||||||
| 
 
 | 
Member Function Documentation
| 
 | ||||||||||||||||||||
| Ask the user whether to save or open a url in another application. 
 
 
 | 
| 
 | ||||||||||||||||||||
| Similar to askSave but for the case where the current application is able to embed the url itself (instead of passing it to another app). 
 
 
 | 
| 
 | ||||||||||||
| BIC: Combine with the above function for KDE 4.0. 
 | 
| 
 | 
| BIC: Obsoleted by KRun::isExecutable( const QString &serviceType );. 
 Reimplemented from KRun. | 
| 
 | 
| Reimplemented from KRun. 
 Reimplemented from KRun. | 
| 
 | 
| Reimplemented from KRun. 
 Reimplemented from KRun. | 
| 
 | 
| Called when an error happens. 
NOTE:  | 
| 
 | 
| Helper for foundMimeType: call this if the mimetype couldn't be embedded. 
 | 
The documentation for this class was generated from the following file:

