|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ActivityCallback
Defines the interface of a callback to notify about asynchronous backend events. The methods in this interface fall into the following categories:
| Method Summary | |
|---|---|
void |
addUpload(Uploader u)
Add an uploader to the upload window |
void |
handleMagnets(MagnetOptions[] magnets)
The core passes parsed magnets to the callback and asks it if it wants to handle them itself. |
void |
handleQuery(QueryRequest query,
String address,
int port)
Add a query string to the monitor screen |
void |
handleQueryResult(RemoteFileDesc rfd,
QueryReply queryReply,
Set<? extends IpPort> locs)
Notifies the UI that a new query result has come in to the backend. |
void |
handleSaveLocationException(DownloadAction downLoadAction,
SaveLocationException sle,
boolean supportsNewSaveDir)
Handles the supplied SaveLocation exception by prompting the user for a new savelocation or whether to overwrite the file. |
void |
handleSharedFileUpdate(File file)
|
void |
handleTorrent(File torrentFile)
Try to download the torrent file |
void |
installationCorrupted()
Notification that installation may be corrupted. |
boolean |
isQueryAlive(GUID guid)
|
void |
promptTorrentUploadCancel(ManagedTorrent torrent)
Validates with the user that the torrent upload should be cancelled. |
void |
removeUpload(Uploader u)
Remove an uploader from the upload window. |
void |
restoreApplication()
Tell to deiconify. |
String |
translate(String s)
Translate a String taking into account Locale. |
void |
uploadsComplete()
Notifies that all active uploads have been completed. |
| Methods inherited from interface com.limegroup.gnutella.DownloadCallback |
|---|
addDownload, downloadCompleted, downloadsComplete, promptAboutCorruptDownload |
| Method Detail |
|---|
void handleQueryResult(RemoteFileDesc rfd,
QueryReply queryReply,
Set<? extends IpPort> locs)
rfd - the descriptor for the remote filequeryReply - locs - the Set of alternate locations for the file
void handleQuery(QueryRequest query,
String address,
int port)
void addUpload(Uploader u)
void removeUpload(Uploader u)
void handleSharedFileUpdate(File file)
void uploadsComplete()
void restoreApplication()
boolean isQueryAlive(GUID guid)
guid that maps to a query result screen
is still available/viewable to the user.void installationCorrupted()
void handleMagnets(MagnetOptions[] magnets)
If this is the case the callback should return true, otherwise
the core starts the downloads itself.
magnets - Array of magnet information to handlevoid handleTorrent(File torrentFile)
String translate(String s)
I18nMarker.marktr(String).
s - The String to translate
void handleSaveLocationException(DownloadAction downLoadAction,
SaveLocationException sle,
boolean supportsNewSaveDir)
void promptTorrentUploadCancel(ManagedTorrent torrent)
torrent -
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||