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
TQWidget
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
TQWidget
removeReferrer
bool
trustedSource
bool
hideErrorDialog
bool
allowExecution
(serviceType, url)
returns
(bool)
static
Argument
Type
Default
serviceType
TQString
url
KURL
askEmbedOrSave
(url, mimeType, suggestedFilename = TQString .null, flags = 0)
returns
(KParts.BrowserRun.AskSaveResult)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
url
KURL
mimeType
TQString
suggestedFilename
TQString
TQString .null
flags
int
0
askSave
(url, offer, mimeType, suggestedFilename = TQString .null)
returns
(KParts.BrowserRun.AskSaveResult)
static
Argument
Type
Default
url
KURL
offer
KService.Ptr
mimeType
TQString
suggestedFilename
TQString
TQString .null
contentDisposition
()
returns
(TQString)
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
TQString
isTextExecutable
(serviceType)
returns
(bool)
static
Argument
Type
Default
serviceType
TQString
save
(url, suggestedFilename)
returns
nothing
Argument
Type
Default
url
KURL
suggestedFilename
TQString
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
TQString
window
TQWidget
simpleSave
(url, suggestedFilename)
returns
nothing
static
Argument
Type
Default
url
KURL
suggestedFilename
TQString
slotBrowserMimetype
(job, type)
returns
nothing
Argument
Type
Default
job
KIO.Job
type
TQString
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
(TQString)
In versions KDE 3.2.0 and above only
url
()
returns
(KURL)