ListJob Class Reference
from PyKDE4.kio import *
Inherits: KIO.SimpleJob
Namespace: KIO
Detailed Description
A ListJob is allows you to get the get the content of a directory. Don't create the job directly, but use KIO.listRecursive() or KIO.listDir() instead.
- See also:
- KIO.listRecursive()
- See also:
- KIO.listDir()
Signals | |
entries (KIO.Job job, KIO.UDSEntryList list) | |
permanentRedirection (KIO.Job job, KUrl fromUrl, KUrl toUrl) | |
redirection (KIO.Job job, KUrl url) | |
Methods | |
__init__ (self, ListJobPrivate dd) | |
__init__ (self) | |
entries (self, KIO.Job job, KIO.UDSEntryList list) | |
permanentRedirection (self, KIO.Job job, KUrl fromUrl, KUrl toUrl) | |
redirection (self, KIO.Job job, KUrl url) | |
KUrl | redirectionUrl (self) |
setUnrestricted (self, bool unrestricted) | |
slotFinished (self) | |
slotMetaData (self, KIO.MetaData _metaData) | |
slotResult (self, KJob job) |
Method Documentation
__init__ | ( | self, | ||
ListJobPrivate | dd | |||
) |
__init__ | ( | self ) |
entries | ( | self, | ||
KIO.Job | job, | |||
KIO.UDSEntryList | list | |||
) |
This signal emits the entry found by the job while listing. The progress signals aren't specific to ListJob. It simply uses SimpleJob's processedSize (number of entries listed) and totalSize (total number of entries, if known), as well as percent.
- Parameters:
-
job the job that emitted this signal list the list of UDSEntries
- Signal syntax:
QObject.connect(source, SIGNAL("entries(Job*, const UDSEntryList&)"), target_slot)
Signals a permanent redirection. The redirection itself is handled internally.
- Parameters:
-
job the job that emitted this signal fromUrl the original URL toUrl the new URL
- Signal syntax:
QObject.connect(source, SIGNAL("permanentRedirection(Job*, const KUrl&, const KUrl&)"), target_slot)
Signals a redirection. Use to update the URL shown to the user. The redirection itself is handled internally.
- Parameters:
-
job the job that is redirected url the new url
- Signal syntax:
QObject.connect(source, SIGNAL("redirection(Job*, const KUrl&)"), target_slot)
KUrl redirectionUrl | ( | self ) |
Returns the ListJob's redirection URL. This will be invalid if there was no redirection.
- Returns:
- the redirection url
setUnrestricted | ( | self, | ||
bool | unrestricted | |||
) |
Do not apply any KIOSK restrictions to this job.
slotFinished | ( | self ) |
slotMetaData | ( | self, | ||
KIO.MetaData | _metaData | |||
) |
slotResult | ( | self, | ||
KJob | job | |||
) |