|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.limegroup.gnutella.gui.VisualConnectionCallback
This class is the interface from the backend to the frontend. It delegates all callbacks to the appropriate frontend classes, and it also handles putting an necessary calls onto the Swing thread. It implements the ActivityCallback callback interface, designed to make it easy to swap UIs.
| Method Summary | |
void |
acceptChat(com.limegroup.gnutella.chat.Chatter chatter)
Adds a new chat session, encapsulated in the specified Chatter instance. |
void |
addDownload(com.limegroup.gnutella.Downloader mgr)
|
void |
addSharedDirectory(java.io.File dir,
java.io.File parent)
|
void |
addSharedFile(com.limegroup.gnutella.FileDesc file,
java.io.File parent)
NOTE: We have to share the FileDesc if we want to be able to to display any qualities of the shared file Things that could be displayed range from... |
void |
addUpload(com.limegroup.gnutella.Uploader mgr)
|
void |
browseHostFailed(com.limegroup.gnutella.GUID guid)
Display an error message for a ResultPanel (if it still exists) |
void |
chatErrorMessage(com.limegroup.gnutella.chat.Chatter chatter,
java.lang.String str)
Display an error message for the specified chat session. |
void |
chatUnavailable(com.limegroup.gnutella.chat.Chatter chatter)
Specifies that the given chat host is no longer available, thereby ending the chat session. |
void |
clearSharedFiles()
|
void |
connectionClosed(com.limegroup.gnutella.Connection c)
Handle a removed connection. |
void |
connectionInitialized(com.limegroup.gnutella.Connection c)
Change the status of a connection when it's been fully initialized |
void |
connectionInitializing(com.limegroup.gnutella.Connection c)
Handle a new connection. |
void |
downloadsComplete()
|
void |
fileManagerLoaded()
File manager finished loading. |
java.lang.String |
getHostValue(java.lang.String key)
|
com.limegroup.gnutella.security.User |
getUserAuthenticationInfo(java.lang.String host)
Asks user to authenticate, and returns the information received from user |
void |
handleQueryResult(com.limegroup.gnutella.RemoteFileDesc rfd,
com.limegroup.gnutella.search.HostData data,
java.util.Set locs)
Add a query reply to a query screen |
void |
handleQueryString(java.lang.String query)
Add a query string to the monitor screen |
void |
handleSharedFileUpdate(java.io.File file)
This method notifies the frontend that the data for the specified shared File instance has been updated. |
void |
knownHost(com.limegroup.gnutella.Endpoint e)
Add a known host to the host catcher |
void |
notifyUserAboutUpdate(java.lang.String m,
boolean isPro,
boolean loc)
called by backend when it realizes a new version is available |
void |
promptAboutCorruptDownload(com.limegroup.gnutella.Downloader downloader)
Shows the user a message informing her that a file being downloaded is corrupt. |
void |
receiveMessage(com.limegroup.gnutella.chat.Chatter chatter)
Receives a new chat message for a specific Chatter instance. |
void |
removeDownload(com.limegroup.gnutella.Downloader mgr)
|
void |
removeUpload(com.limegroup.gnutella.Uploader mgr)
|
void |
restoreApplication()
Tell the GUI to deiconify. |
void |
setAnnotateEnabled(boolean enabled)
|
void |
showDownloads()
Show active downloads |
void |
uploadsComplete()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void connectionInitializing(com.limegroup.gnutella.Connection c)
connectionInitializing in interface com.limegroup.gnutella.ActivityCallbackpublic void connectionInitialized(com.limegroup.gnutella.Connection c)
connectionInitialized in interface com.limegroup.gnutella.ActivityCallbackpublic void connectionClosed(com.limegroup.gnutella.Connection c)
connectionClosed in interface com.limegroup.gnutella.ActivityCallbackpublic void knownHost(com.limegroup.gnutella.Endpoint e)
knownHost in interface com.limegroup.gnutella.ActivityCallback
public void handleQueryResult(com.limegroup.gnutella.RemoteFileDesc rfd,
com.limegroup.gnutella.search.HostData data,
java.util.Set locs)
handleQueryResult in interface com.limegroup.gnutella.ActivityCallbackpublic void handleQueryString(java.lang.String query)
handleQueryString in interface com.limegroup.gnutella.ActivityCallbackpublic void fileManagerLoaded()
fileManagerLoaded in interface com.limegroup.gnutella.ActivityCallback
public void addSharedDirectory(java.io.File dir,
java.io.File parent)
addSharedDirectory in interface com.limegroup.gnutella.ActivityCallback
public void addSharedFile(com.limegroup.gnutella.FileDesc file,
java.io.File parent)
addSharedFile in interface com.limegroup.gnutella.ActivityCallbackpublic void handleSharedFileUpdate(java.io.File file)
handleSharedFileUpdate in interface com.limegroup.gnutella.ActivityCallbackfile - the File instance for the shared file whose
data has been updatedpublic void clearSharedFiles()
clearSharedFiles in interface com.limegroup.gnutella.ActivityCallbackpublic void setAnnotateEnabled(boolean enabled)
setAnnotateEnabled in interface com.limegroup.gnutella.ActivityCallbackpublic void addDownload(com.limegroup.gnutella.Downloader mgr)
addDownload in interface com.limegroup.gnutella.ActivityCallbackpublic void removeDownload(com.limegroup.gnutella.Downloader mgr)
removeDownload in interface com.limegroup.gnutella.ActivityCallbackpublic void downloadsComplete()
downloadsComplete in interface com.limegroup.gnutella.ActivityCallbackpublic void addUpload(com.limegroup.gnutella.Uploader mgr)
addUpload in interface com.limegroup.gnutella.ActivityCallbackpublic void removeUpload(com.limegroup.gnutella.Uploader mgr)
removeUpload in interface com.limegroup.gnutella.ActivityCallbackpublic void uploadsComplete()
uploadsComplete in interface com.limegroup.gnutella.ActivityCallback
public void notifyUserAboutUpdate(java.lang.String m,
boolean isPro,
boolean loc)
notifyUserAboutUpdate in interface com.limegroup.gnutella.ActivityCallbackpublic void acceptChat(com.limegroup.gnutella.chat.Chatter chatter)
acceptChat in interface com.limegroup.gnutella.ActivityCallbackchatter - the Chatter instance that provides all
data access regarding the chat sessionpublic void receiveMessage(com.limegroup.gnutella.chat.Chatter chatter)
receiveMessage in interface com.limegroup.gnutella.ActivityCallbackchatter - the Chatter instance that is receiving
a new messagepublic void chatUnavailable(com.limegroup.gnutella.chat.Chatter chatter)
chatUnavailable in interface com.limegroup.gnutella.ActivityCallbackchatter - the Chatter instance for the chat session
that is terminating
public void chatErrorMessage(com.limegroup.gnutella.chat.Chatter chatter,
java.lang.String str)
chatErrorMessage in interface com.limegroup.gnutella.ActivityCallbackchatter - the Chatter instance to show an error forstr - the error to displaypublic void browseHostFailed(com.limegroup.gnutella.GUID guid)
browseHostFailed in interface com.limegroup.gnutella.ActivityCallbackguid - The GUID of the ResultPanel.public com.limegroup.gnutella.security.User getUserAuthenticationInfo(java.lang.String host)
getUserAuthenticationInfo in interface com.limegroup.gnutella.ActivityCallbackhost - The host who is requesting authentication
public void promptAboutCorruptDownload(com.limegroup.gnutella.Downloader downloader)
This method MUST call dloader.discardCorruptDownload(boolean b) otherwise there will be threads piling up waiting for a notification
promptAboutCorruptDownload in interface com.limegroup.gnutella.ActivityCallbackpublic void restoreApplication()
restoreApplication in interface com.limegroup.gnutella.ActivityCallbackpublic void showDownloads()
showDownloads in interface com.limegroup.gnutella.ActivityCallbackpublic java.lang.String getHostValue(java.lang.String key)
getHostValue in interface com.limegroup.gnutella.ActivityCallback
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||