PyKDE - Python Bindings for KDE
class KLockFile
Table of contents
Modules
tdecore Classes
All Classes
Module
tdecore
Class
KLockFile
Inherits
KShared
enums
LockOptions
= {LockNoBlock, LockForce }
LockResult
= {LockOK, LockFail, LockError, LockStale }
methods
KLockFile
(file)
returns
a KLockFile instance
In versions KDE 3.3.0 and above only
Argument
Type
Default
file
TQString
getLockInfo
()
returns
(bool) pid (int) hostname (TQString) appname (TQString)
In versions KDE 3.3.0 and above only
isLocked
()
returns
(bool)
In versions KDE 3.3.0 and above only
lock
(options = 0)
returns
(KLockFile.LockResult)
In versions KDE 3.3.0 and above only
Argument
Type
Default
options
int
0
setStaleTime
(_staleTime)
returns
nothing
In versions KDE 3.3.0 and above only
Argument
Type
Default
_staleTime
int
staleTime
()
returns
(int)
In versions KDE 3.3.0 and above only
unlock
()
returns
nothing
In versions KDE 3.3.0 and above only