PyKDE - Python Bindings for KDE
class KFileItem
Table of contents
Modules
kio Classes
All Classes
Module
kio
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
KIO.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
QString
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
(KIO.UDSEntry)
extraData
(key)
Not Implemented
getStatusBarInfo
()
returns
(QString)
getToolTipText
(maxcount = 6)
returns
(QString)
Argument
Type
Default
maxcount
int
6
group
()
returns
(QString)
hasExtendedACL
()
returns
(bool)
In versions KDE 3.5.0 and above only
iconName
()
returns
(QString)
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
(QString)
localPath
()
returns
(QString)
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
(QString)
mimeTypePtr
()
returns
(KMimeType.Ptr)
mimetype
()
returns
(QString)
mode
()
returns
(mode_t)
mostLocalURL
()
returns
(KURL) local (bool)
In versions KDE 3.4.0 and above only
name
(lowerCase = 0)
returns
(QString)
Argument
Type
Default
lowerCase
bool
0
overlays
()
returns
(int)
parsePermissions
(perm)
returns
(QString)
Argument
Type
Default
perm
mode_t
permissions
()
returns
(mode_t)
permissionsString
()
returns
(QString)
pixmap
(_size, _state = 0)
returns
(QPixmap)
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
QString
setName
(name)
returns
nothing
In versions KDE 3.2.0 and above only
Argument
Type
Default
name
QString
setUDSEntry
(entry, url, determineMimeTypeOnDemand = 0, urlIsDirectory = 0)
returns
nothing
In versions KDE 3.4.3 and above only
Argument
Type
Default
entry
KIO.UDSEntry
url
KURL
determineMimeTypeOnDemand
bool
0
urlIsDirectory
bool
0
setURL
(url)
returns
nothing
Argument
Type
Default
url
KURL
size
()
returns
(KIO.filesize_t)
size
()
returns
(KIO.filesize_t) hasSize (bool)
In versions KDE 3.5.0 and above only
text
()
returns
(QString)
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 = KIO .UDS_MODIFICATION_TIME)
returns
(QString)
Argument
Type
Default
which
uint
KIO .UDS_MODIFICATION_TIME
unmark
()
returns
nothing
url
()
returns
(KURL)
user
()
returns
(QString)