org.kde.koala
public class BrowserRun extends KRun
UNKNOWN: This class extends KRun to provide additional functionality for browsers:
Constructor Summary | |
---|---|
protected | BrowserRun(Class dummy) |
BrowserRun(KURL url, URLArgs args, ReadOnlyPart part, QWidget window, boolean removeReferrer, boolean trustedSource) | |
BrowserRun(KURL url, URLArgs args, ReadOnlyPart part, QWidget window, boolean removeReferrer, boolean trustedSource, boolean hideErrorDialog) |
Method Summary | |
---|---|
static boolean | allowExecution(String serviceType, KURL url) |
String | className() |
protected void | handleError(Job job)
Called when an error happens.
|
boolean | hideErrorDialog() |
protected void | init()
Reimplemented from KRun |
static boolean | isExecutable(String serviceType) BIC: Obsoleted by KRun.isExecutable( StringserviceType ); @short BIC: Obsoleted by KRun.isExecutable( StringserviceType ); |
static boolean | isTextExecutable(String serviceType) |
QMetaObject | metaObject() |
void | save(KURL url, String suggestedFilename) |
protected void | scanFile()
Reimplemented from KRun |
static void | simpleSave(KURL url, String suggestedFilename, QWidget window)
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). |
static void | simpleSave(KURL url, String suggestedFilename) BIC: Combine with the above function for KDE 4.0. |
protected void | slotBrowserMimetype(Job job, String type) |
protected void | slotBrowserScanFinished(Job job)
Helper for foundMimeType: call this if the mimetype couldn't be embedded |
protected void | slotCopyToTempFileResult(Job job) |
protected void | slotStatResult(Job job) |
String | suggestedFilename() |
KURL | url() |
Parameters: url the URL we're probing args URL args - includes data for a HTTP POST, etc. part the part going to open this URL - can be null if not created yet window the mainwindow - passed to KIO.Job.setWindow() removeReferrer if true, the "referrer" metadata from args
isn't passed on trustedSource if false, a warning will be shown before launching an executable
Always pass false for trustedSource
, except for local directory views.
UNKNOWN:
Parameters: url the URL we're probing args URL args - includes data for a HTTP POST, etc. part the part going to open this URL - can be null if not created yet window the mainwindow - passed to KIO.Job.setWindow() removeReferrer if true, the "referrer" metadata from args
isn't passed on trustedSource if false, a warning will be shown before launching an executable hideErrorDialog if true, no dialog will be shown in case of errors.
Always pass false for trustedSource
, except for local directory views.
UNKNOWN:
job
could be null, if you passed hideErrorDialog=true.
The default implementation shows a message box, but only when job != 0 ....
It is strongly recommended to reimplement this method if
you passed hideErrorDialog=true.UNKNOWN: Called when an error happens.
Returns: true if no dialog will be shown in case of errors
UNKNOWN:
UNKNOWN: Reimplemented from KRun
UNKNOWN: Reimplemented from KRun
Parameters: url the URL in question mimeType the mimetype of the URL suggestedFilename optional filename suggested by the server flags reserved for later use
Returns: Save, Open or Cancel.
UNKNOWN: 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).
UNKNOWN: Helper for foundMimeType: call this if the mimetype couldn't be embedded
Returns: Suggested filename given by the server (e.g. HTTP content-disposition)
UNKNOWN:
Returns: the URL we're probing
UNKNOWN: