PyKDE - Python Bindings for KDE
class KFileItem
Table of contents
Modules
tdeio Classes
All Classes
Module
tdeio
Class
KFileItem
Inherits
enums
(anonymous)
= {Unknown }
methods
ACL
()
returns
(KACL)
In versions KDE 3.5.0 and above only
KFileItem
(_entry, _url, _determineMimeTypeOnDemand = 0, _urlIsDirectory = 0)
returns
a KFileItem instance
Argument
Type
Default
_entry
_TDEIO.UDSEntry
_url
KURL
_determineMimeTypeOnDemand
bool
0
_urlIsDirectory
bool
0
KFileItem
(_mode, _permissions, _url, _determineMimeTypeOnDemand = 0)
returns
a KFileItem instance
Argument
Type
Default
_mode
mode_t
_permissions
mode_t
_url
KURL
_determineMimeTypeOnDemand
bool
0
KFileItem
(url, mimeType, mode)
returns
a KFileItem instance
Argument
Type
Default
url
KURL
mimeType
TQString
mode
mode_t
KFileItem
(item)
returns
a KFileItem instance
Argument
Type
Default
item
KFileItem
acceptsDrops
()
returns
(bool)
assign
(item)
returns
nothing
Argument
Type
Default
item
KFileItem
cmp
(item)
returns
(bool)
Argument
Type
Default
item
KFileItem
defaultACL
()
returns
(KACL)
In versions KDE 3.5.0 and above only
determineMimeType
()
returns
(KMimeType.Ptr)
entry
()
returns
(_TDEIO.UDSEntry)
extraData
(key)
Not Implemented
getStatusBarInfo
()
returns
(TQString)
getToolTipText
(maxcount = 6)
returns
(TQString)
Argument
Type
Default
maxcount
int
6
group
()
returns
(TQString)
hasExtendedACL
()
returns
(bool)
In versions KDE 3.5.0 and above only
iconName
()
returns
(TQString)
init
(_determineMimeTypeOnDemand)
returns
nothing
Argument
Type
Default
_determineMimeTypeOnDemand
bool
isDir
()
returns
(bool)
isFile
()
returns
(bool)
isHidden
()
returns
(bool)
In versions KDE 3.3.0 and above only
isLink
()
returns
(bool)
isLocalFile
()
returns
(bool)
isMarked
()
returns
(bool)
isMimeTypeKnown
()
returns
(bool)
isReadable
()
returns
(bool)
isWritable
()
returns
(bool)
In versions KDE 3.4.0 and above only
linkDest
()
returns
(TQString)
localPath
()
returns
(TQString)
In versions KDE 3.4.0 and above only
mark
()
returns
nothing
metaInfo
(autoget = 1, what = KFileMetaInfo .Fastest)
returns
(KFileMetaInfo)
Argument
Type
Default
autoget
bool
1
what
int
KFileMetaInfo .Fastest
mimeComment
()
returns
(TQString)
mimeTypePtr
()
returns
(KMimeType.Ptr)
mimetype
()
returns
(TQString)
mode
()
returns
(mode_t)
mostLocalURL
()
returns
(KURL) local (bool)
In versions KDE 3.4.0 and above only
name
(lowerCase = 0)
returns
(TQString)
Argument
Type
Default
lowerCase
bool
0
overlays
()
returns
(int)
parsePermissions
(perm)
returns
(TQString)
Argument
Type
Default
perm
mode_t
permissions
()
returns
(mode_t)
permissionsString
()
returns
(TQString)
pixmap
(_size, _state = 0)
returns
(TQPixmap)
Argument
Type
Default
_size
int
_state
int
0
readUDSEntry
(_urlIsDirectory)
returns
nothing
In versions KDE 3.4.3 and above only
Argument
Type
Default
_urlIsDirectory
bool
refresh
()
returns
nothing
refreshMimeType
()
returns
nothing
removeExtraData
(key)
Not Implemented
run
()
returns
nothing
setExtraData
(key, value)
Not Implemented
setFileMode
(m)
returns
nothing
In versions KDE 3.5.0 and above only
Argument
Type
Default
m
mode_t
setMetaInfo
(info)
returns
nothing
Argument
Type
Default
info
KFileMetaInfo
setMimeType
(mimetype)
returns
nothing
In versions KDE 3.5.0 and above only
Argument
Type
Default
mimetype
TQString
setName
(name)
returns
nothing
In versions KDE 3.2.0 and above only
Argument
Type
Default
name
TQString
setUDSEntry
(entry, url, determineMimeTypeOnDemand = 0, urlIsDirectory = 0)
returns
nothing
In versions KDE 3.4.3 and above only
Argument
Type
Default
entry
_TDEIO.UDSEntry
url
KURL
determineMimeTypeOnDemand
bool
0
urlIsDirectory
bool
0
setURL
(url)
returns
nothing
Argument
Type
Default
url
KURL
size
()
returns
(_TDEIO.filesize_t)
size
()
returns
(_TDEIO.filesize_t) hasSize (bool)
In versions KDE 3.5.0 and above only
text
()
returns
(TQString)
time
(which)
returns
(time_t)
Argument
Type
Default
which
uint
time
(which)
returns
(time_t) hasTime (bool)
In versions KDE 3.5.0 and above only
Argument
Type
Default
which
uint
timeString
(which = TDEIO .UDS_MODIFICATION_TIME)
returns
(TQString)
Argument
Type
Default
which
uint
TDEIO .UDS_MODIFICATION_TIME
unmark
()
returns
nothing
url
()
returns
(KURL)
user
()
returns
(TQString)