|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KDirListerSignals
Method Summary | |
---|---|
void |
canceled()
Tell the view that the user canceled the listing. |
void |
canceled(KURL _url)
Tell the view that the listing of the directory _url was canceled. |
void |
clear()
Signal to clear all items. |
void |
clear(KURL _url)
Signal to empty the directory _url.
It is only emitted if the lister is holding more than one directory. |
void |
completed()
Tell the view that listing is finished. |
void |
completed(KURL _url)
Tell the view that the listing of the directory _url is finished. |
void |
deleteItem(KFileItem _fileItem)
Signal an item to remove. |
void |
infoMessage(java.lang.String msg)
Emitted to display information about running jobs. |
void |
itemsFilteredByMime(java.util.ArrayList items)
Send a list of items filtered-out by mime-type. |
void |
newItems(java.util.ArrayList items)
Signal new items. |
void |
percent(int percent)
Progress signal showing the overall progress of the KDirLister. |
void |
processedSize(long size)
Regularly emitted to show the progress of this KDirLister. |
void |
redirection(KURL _url)
Signal a redirection. |
void |
redirection(KURL oldUrl,
KURL newUrl)
Signal a redirection. |
void |
refreshItems(java.util.ArrayList items)
Signal an item to refresh (its mimetype/icon/name has changed). |
void |
speed(int bytes_per_second)
Emitted to display information about the speed of the jobs. |
void |
started(KURL _url)
Tell the view that we started to list _url. NOTE: this does _not_ imply that there
is really a job running! I.e. |
void |
totalSize(long size)
Emitted when we know the size of the jobs. |
Method Detail |
---|
void started(KURL _url)
_url.
NOTE: this does _not_ imply that there
is really a job running! I.e. KDirLister.jobs() may return an empty list. In this case
the items are taken from the cache.
The view knows that openURL should start it, so it might seem useless,
but the view also needs to know when an automatic update happens.
_url
- the URL to listvoid completed()
void completed(KURL _url)
_url
is finished.
There might be other running jobs left.
This signal is only emitted if KDirLister is watching more than one directory.
_url
- the directory URLvoid canceled()
void canceled(KURL _url)
_url
was canceled.
There might be other running jobs left.
This signal is only emitted if KDirLister is watching more than one directory.
_url
- the directory URLvoid redirection(KURL _url)
_keep
== false.
_url
- the new URLvoid redirection(KURL oldUrl, KURL newUrl)
oldUrl
- the original URLnewUrl
- the new URLvoid clear()
void clear(KURL _url)
_url.
It is only emitted if the lister is holding more than one directory.
_url
- the directory that will be emptiedvoid newItems(java.util.ArrayList items)
items
- a list of new itemsvoid itemsFilteredByMime(java.util.ArrayList items)
items
- the list of filtered itemsvoid deleteItem(KFileItem _fileItem)
_fileItem
== rootItem() the directory this lister
is holding was deleted and you HAVE to release especially the
rootItem() of this lister, otherwise your app will CRASH!!
The clear() signals have been emitted already.
_fileItem
- the fileItem to deletevoid refreshItems(java.util.ArrayList items)
items
- the items to refreshvoid infoMessage(java.lang.String msg)
msg
- the info messagevoid percent(int percent)
percent
- the progress in percentvoid totalSize(long size)
size
- the total size in bytesvoid processedSize(long size)
size
- the processed size in bytesvoid speed(int bytes_per_second)
bytes_per_second
- the speed in bytes/s
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |