PyKDE - Python Bindings for KDE
class KParts.BrowserRun
Table of contents
Modules
kparts Classes
All Classes
Module
kparts
Class
KParts.BrowserRun
Inherits
KRun
enums
AskEmbedOrSaveFlags
= {InlineDisposition, AttachmentDisposition }
AskSaveResult
= {Save, Open, Cancel }
methods
BrowserRun
(url, args, part, window, removeReferrer, trustedSource)
returns
a BrowserRun instance
Argument
Type
Default
url
KURL
args
KParts.URLArgs
part
KParts.ReadOnlyPart
window
QWidget
removeReferrer
bool
trustedSource
bool
BrowserRun
(url, args, part, window, removeReferrer, trustedSource, hideErrorDialog)
returns
a BrowserRun instance
In versions KDE 3.1.0 and above only
Argument
Type
Default
url
KURL
args
KParts.URLArgs
part
KParts.ReadOnlyPart
window
QWidget
removeReferrer
bool
trustedSource
bool
hideErrorDialog
bool
allowExecution
(serviceType, url)
returns
(bool)
static
Argument
Type
Default
serviceType
QString
url
KURL
askEmbedOrSave
(url, mimeType, suggestedFilename = QString .null, flags = 0)
returns
(KParts.BrowserRun.AskSaveResult)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
url
KURL
mimeType
QString
suggestedFilename
QString
QString .null
flags
int
0
askSave
(url, offer, mimeType, suggestedFilename = QString .null)
returns
(KParts.BrowserRun.AskSaveResult)
static
Argument
Type
Default
url
KURL
offer
KService.Ptr
mimeType
QString
suggestedFilename
QString
QString .null
contentDisposition
()
returns
(QString)
In versions KDE 3.5.2 and above only
handleError
(job)
returns
nothing
Argument
Type
Default
job
KIO.Job
handleNonEmbeddable
(mimeType)
Not Implemented
hideErrorDialog
()
returns
(bool)
In versions KDE 3.1.0 and above only
init
()
returns
nothing
In versions KDE 3.1.0 and above only
isExecutable
(serviceType)
returns
(bool)
static
Argument
Type
Default
serviceType
QString
isTextExecutable
(serviceType)
returns
(bool)
static
Argument
Type
Default
serviceType
QString
save
(url, suggestedFilename)
returns
nothing
Argument
Type
Default
url
KURL
suggestedFilename
QString
scanFile
()
returns
nothing
serverSuggestsSave
()
returns
(bool)
In versions KDE 3.5.2 and above only
simpleSave
(url, suggestedFilename, window)
returns
nothing
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
url
KURL
suggestedFilename
QString
window
QWidget
simpleSave
(url, suggestedFilename)
returns
nothing
static
Argument
Type
Default
url
KURL
suggestedFilename
QString
slotBrowserMimetype
(job, type)
returns
nothing
Argument
Type
Default
job
KIO.Job
type
QString
slotBrowserScanFinished
(job)
returns
nothing
Argument
Type
Default
job
KIO.Job
slotCopyToTempFileResult
(job)
returns
nothing
Argument
Type
Default
job
KIO.Job
slotStatResult
(job)
returns
nothing
Argument
Type
Default
job
KIO.Job
suggestedFilename
()
returns
(QString)
In versions KDE 3.2.0 and above only
url
()
returns
(KURL)