|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Callback to notify the GUI of asynchronous backend events. The methods in this fall into the following categories:
Method Summary | |
void |
acceptChat(Chatter ctr)
Add a new incoming chat connection |
void |
addDownload(Downloader d)
Add a file to the download window |
void |
addSharedDirectory(java.io.File directory,
java.io.File parent)
Notifies the GUI that the given directory has been shared. |
void |
addSharedFile(FileDesc file,
java.io.File parent)
Notifies the GUI that the given file has been shared. |
void |
addUpload(Uploader u)
Add an uploader to the upload window |
void |
browseHostFailed(GUID guid)
display an error message since the browse host failed. |
void |
chatErrorMessage(Chatter chatter,
java.lang.String str)
display an error message in the chat gui |
void |
chatUnavailable(Chatter chatter)
The given chatter is no longer available |
void |
clearSharedFiles()
The list of shared files has been emptied. |
void |
connectionClosed(Connection c)
Mark a connection as closed |
void |
connectionInitialized(Connection c)
Mark a connection as initialized |
void |
connectionInitializing(Connection c)
Add a new unitialized connection. |
void |
downloadsComplete()
Notifies the GUI that all active downloads have been completed. |
void |
fileManagerLoaded()
Notifies a user that the filemanager has completely loaded. |
java.lang.String |
getHostValue(java.lang.String key)
|
User |
getUserAuthenticationInfo(java.lang.String host)
Asks user to authenticate, and returns the information received from user |
void |
handleQueryResult(RemoteFileDesc rfd,
HostData data,
java.util.Set locs)
Add a query reply to the search result screen. |
void |
handleQueryString(java.lang.String query)
Add a query string to the monitor screen |
void |
handleSharedFileUpdate(java.io.File file)
Notifies the GUI that the given shared file has new information. |
void |
knownHost(Endpoint e)
Add the given host/port to the host catcher |
void |
notifyUserAboutUpdate(java.lang.String message,
boolean isPro,
boolean l)
A new version of LimeWire is available, notify user. |
void |
promptAboutCorruptDownload(Downloader dloader)
Shows the user a message informing her that a file being downloaded is corrupt. |
void |
receiveMessage(Chatter chr)
A new message is available from the given chatter |
void |
removeDownload(Downloader d)
Remove a downloader from the download window. |
void |
removeUpload(Uploader u)
Remove an uploader from the upload window. |
void |
restoreApplication()
Tell the GUI to deiconify. |
void |
setAnnotateEnabled(boolean enabled)
Sets the enabled/disabled state of file annotation. |
void |
showDownloads()
Show active downloads |
void |
uploadsComplete()
Notifies the GUI that all active uploads have been completed. |
Method Detail |
public void connectionInitializing(Connection c)
public void connectionInitialized(Connection c)
public void connectionClosed(Connection c)
public void knownHost(Endpoint e)
public void handleQueryResult(RemoteFileDesc rfd, HostData data, java.util.Set locs)
RouterService#query(String,int,MediaType)
,
RouterService.matchesType(byte[],Response)
public void handleQueryString(java.lang.String query)
public void addDownload(Downloader d)
public void removeDownload(Downloader d)
public void addUpload(Uploader u)
public void removeUpload(Uploader u)
public void acceptChat(Chatter ctr)
public void receiveMessage(Chatter chr)
public void chatUnavailable(Chatter chatter)
public void chatErrorMessage(Chatter chatter, java.lang.String str)
public void browseHostFailed(GUID guid)
guid
- The GUID of the browse host.public void notifyUserAboutUpdate(java.lang.String message, boolean isPro, boolean l)
public void fileManagerLoaded()
public void addSharedDirectory(java.io.File directory, java.io.File parent)
directory
- MUST be a directoryparent
- MUST be the parent of directory, or null if no parent
exists.public void addSharedFile(FileDesc file, java.io.File parent)
file
- MUST be a file descriptor for the file.parent
- MUST be the parent of directory, or null if no parent
exists.public void handleSharedFileUpdate(java.io.File file)
file
- The File that needs updatingpublic void clearSharedFiles()
public void setAnnotateEnabled(boolean enabled)
public void downloadsComplete()
public void uploadsComplete()
public User getUserAuthenticationInfo(java.lang.String host)
host
- The host who is requesting authentication
public void promptAboutCorruptDownload(Downloader dloader)
This method MUST call dloader.discardCorruptDownload(boolean b) otherwise there will be threads piling up waiting for a notification
public void restoreApplication()
public void showDownloads()
public java.lang.String getHostValue(java.lang.String key)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |