PyKDE - Python Bindings for KDE
class KService
Table of contents
Modules
tdeio Classes
All Classes
Module
tdeio
Class
KService
Inherits
KSycocaEntry
enums
DCOPServiceType_t
= {DCOP_None, DCOP_Unique, DCOP_Multi, DCOP_Wait }
methods
DCOPServiceType
()
returns
(DCOPServiceType_t)
KService
(_name, _exec, _icon)
returns
a KService instance
Argument
Type
Default
_name
TQString
_exec
TQString
_icon
TQString
KService
(_fullpath)
returns
a KService instance
Argument
Type
Default
_fullpath
TQString
KService
(config)
returns
a KService instance
Argument
Type
Default
config
KDesktopFile
KService
(_str, offset)
returns
a KService instance
Argument
Type
Default
_str
TQDataStream
offset
int
KService
(a0)
returns
a KService instance
In versions KDE 3.1.1 and above only
Argument
Type
Default
a0
KService
accessServiceTypes
()
returns
(TQStringList)
allInitServices
()
returns
(KService.List)
static
allServices
()
returns
(KService.List)
static
allowAsDefault
()
returns
(bool)
allowMultipleFiles
()
returns
(bool)
categories
()
returns
(TQStringList)
In versions KDE 3.1.0 and above only
comment
()
returns
(TQString)
desktopEntryName
()
returns
(TQString)
desktopEntryPath
()
returns
(TQString)
exec_
()
returns
(TQString)
Renamed: was
' exec '
in C++
genericName
()
returns
(TQString)
hasServiceType
(_service)
returns
(bool)
Argument
Type
Default
_service
TQString
icon
()
returns
(TQString)
init
()
returns
(TQString)
init
(config)
returns
nothing
Argument
Type
Default
config
KDesktopFile
initialPreference
()
returns
(int)
initialPreferenceForMimeType
(mimeType)
returns
(int)
In versions KDE 3.2.0 and above only
Argument
Type
Default
mimeType
TQString
isValid
()
returns
(bool)
keywords
()
returns
(TQStringList)
library
()
returns
(TQString)
load
(a0)
returns
nothing
Argument
Type
Default
a0
TQDataStream
locateLocal
()
returns
(TQString)
In versions KDE 3.2.0 and above only
menuId
()
returns
(TQString)
In versions KDE 3.2.0 and above only
name
()
returns
(TQString)
newServicePath
(showInMenu, suggestedName, menuId = 0, reservedMenuIds = 0)
returns
(TQString)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
showInMenu
bool
suggestedName
TQString
menuId
TQString
0
reservedMenuIds
TQStringList
0
noDisplay
()
returns
(bool)
parentApp
()
returns
(TQString)
In versions KDE 3.1.0 and above only
path
()
returns
(TQString)
pixmap
(_group, _force_size = 0, _state = 0, _path = 0)
returns
(TQPixmap)
Argument
Type
Default
_group
TDEIcon.Group
_force_size
int
0
_state
int
0
_path
TQString
0
property
(_name)
returns
(TQVariant)
Argument
Type
Default
_name
TQString
property
(_name, t)
returns
(TQVariant)
In versions KDE 3.2.0 and above only
Argument
Type
Default
_name
TQString
t
TQVariant.Type
propertyNames
()
returns
(TQStringList)
rebuildKSycoca
(parent)
returns
nothing
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
parent
TQWidget
save
(a0)
returns
nothing
Argument
Type
Default
a0
TQDataStream
serviceByDesktopName
(_name)
returns
(KService.Ptr)
static
Argument
Type
Default
_name
TQString
serviceByDesktopPath
(_path)
returns
(KService.Ptr)
static
Argument
Type
Default
_path
TQString
serviceByMenuId
(_menuId)
returns
(KService.Ptr)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
_menuId
TQString
serviceByName
(_name)
returns
(KService.Ptr)
static
Argument
Type
Default
_name
TQString
serviceByStorageId
(_storageId)
returns
(KService.Ptr)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
_storageId
TQString
serviceTypes
()
returns
(TQStringList)
setInitialPreference
(i)
returns
nothing
Argument
Type
Default
i
int
setMenuId
(menuId)
returns
nothing
In versions KDE 3.2.0 and above only
Argument
Type
Default
menuId
TQString
setTerminal
(b)
returns
nothing
In versions KDE 3.2.0 and above only
Argument
Type
Default
b
bool
setTerminalOptions
(options)
returns
nothing
In versions KDE 3.2.0 and above only
Argument
Type
Default
options
TQString
storageId
()
returns
(TQString)
In versions KDE 3.2.0 and above only
substituteUid
()
returns
(bool)
terminal
()
returns
(bool)
terminalOptions
()
returns
(TQString)
type
()
returns
(TQString)
untranslatedGenericName
()
returns
(TQString)
In versions KDE 3.2.0 and above only
username
()
returns
(TQString)