|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.limegroup.gnutella.Main
The command-line UI for the Gnutella servent.
| Constructor Summary | |
Main()
|
|
| Method Summary | |
void |
acceptChat(Chatter chat)
Add a new incoming chat connection |
void |
addDownload(Downloader mgr)
Add a file to the download window |
void |
addSharedDirectory(java.io.File file,
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 mgr)
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 st)
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 |
error(int errorCode)
|
void |
error(int message,
java.lang.Throwable t)
|
void |
error(java.lang.Throwable problem)
Implements ActivityCallback. |
void |
error(java.lang.Throwable problem,
java.lang.String msg)
Displays an error stack trace to the user with a specific message. |
void |
fileManagerLoaded()
Notifies a user that the filemanager has completely loaded. |
java.lang.String |
getHostValue(java.lang.String key)
|
int |
getNumUploads()
|
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 loc)
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 |
static void |
main(java.lang.String[] args)
|
void |
notifyUserAboutUpdate(java.lang.String message,
boolean isPro,
boolean loc)
A new version of LimeWire is available, notify user. |
boolean |
overwriteFile(java.lang.String file)
|
void |
promptAboutCorruptDownload(Downloader dloader)
Shows the user a message informing her that a file being downloaded is corrupt. |
void |
receiveMessage(Chatter chat)
A new message is available from the given chatter |
void |
removeDownload(Downloader mgr)
Remove a downloader from the download window. |
void |
removeUpload(Uploader mgr)
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 |
setPort(int port)
|
void |
showDownloads()
Show active downloads |
static java.lang.String[] |
split(java.lang.String s)
Returns an array of strings containing the words of s, where a word is any sequence of characters not containing a space. |
void |
uploadsComplete()
Notifies the GUI that all active uploads have been completed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Main()
| Method Detail |
public static void main(java.lang.String[] args)
public void connectionInitializing(Connection c)
ActivityCallback
connectionInitializing in interface ActivityCallbackpublic void connectionInitialized(Connection c)
ActivityCallback
connectionInitialized in interface ActivityCallbackpublic void connectionClosed(Connection c)
ActivityCallback
connectionClosed in interface ActivityCallbackpublic void knownHost(Endpoint e)
ActivityCallback
knownHost in interface ActivityCallback
public void handleQueryResult(RemoteFileDesc rfd,
HostData data,
java.util.Set loc)
ActivityCallback
handleQueryResult in interface ActivityCallbackRouterService#query(String,int,MediaType),
RouterService.matchesType(byte[],Response)public void handleQueryString(java.lang.String query)
handleQueryString in interface ActivityCallbackpublic void error(int errorCode)
public void error(java.lang.Throwable problem,
java.lang.String msg)
ErrorCallback
error in interface ErrorCallbackproblem - the Throwable instance containing the stack
trace to displaymsg - the message to display.public void error(java.lang.Throwable problem)
error in interface ErrorCallbackproblem - the Throwable instance containing the
stack trace to display
public void error(int message,
java.lang.Throwable t)
public static java.lang.String[] split(java.lang.String s)
public boolean overwriteFile(java.lang.String file)
public void addDownload(Downloader mgr)
ActivityCallback
addDownload in interface ActivityCallbackpublic void removeDownload(Downloader mgr)
ActivityCallback
removeDownload in interface ActivityCallbackpublic void addUpload(Uploader mgr)
ActivityCallback
addUpload in interface ActivityCallbackpublic void removeUpload(Uploader mgr)
ActivityCallback
removeUpload in interface ActivityCallbackpublic void setPort(int port)
public int getNumUploads()
public void addSharedDirectory(java.io.File file,
java.io.File parent)
ActivityCallback
addSharedDirectory in interface ActivityCallbackfile - 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)
ActivityCallback
addSharedFile in interface ActivityCallbackfile - 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)
ActivityCallback
handleSharedFileUpdate in interface ActivityCallbackfile - The File that needs updatingpublic void clearSharedFiles()
ActivityCallback
clearSharedFiles in interface ActivityCallbackpublic void acceptChat(Chatter chat)
ActivityCallback
acceptChat in interface ActivityCallbackpublic void receiveMessage(Chatter chat)
ActivityCallback
receiveMessage in interface ActivityCallbackpublic void chatUnavailable(Chatter chatter)
ActivityCallback
chatUnavailable in interface ActivityCallback
public void chatErrorMessage(Chatter chatter,
java.lang.String st)
ActivityCallback
chatErrorMessage in interface ActivityCallbackpublic void downloadsComplete()
ActivityCallback
downloadsComplete in interface ActivityCallbackpublic void fileManagerLoaded()
ActivityCallback
fileManagerLoaded in interface ActivityCallbackpublic User getUserAuthenticationInfo(java.lang.String host)
ActivityCallback
getUserAuthenticationInfo in interface ActivityCallbackhost - The host who is requesting authentication
public void uploadsComplete()
ActivityCallback
uploadsComplete in interface ActivityCallbackpublic void promptAboutCorruptDownload(Downloader dloader)
ActivityCallbackThis method MUST call dloader.discardCorruptDownload(boolean b) otherwise there will be threads piling up waiting for a notification
promptAboutCorruptDownload in interface ActivityCallbackpublic void restoreApplication()
ActivityCallback
restoreApplication in interface ActivityCallbackpublic void showDownloads()
ActivityCallback
showDownloads in interface ActivityCallbackpublic java.lang.String getHostValue(java.lang.String key)
getHostValue in interface ActivityCallbackpublic void browseHostFailed(GUID guid)
ActivityCallback
browseHostFailed in interface ActivityCallbackguid - The GUID of the browse host.public void setAnnotateEnabled(boolean enabled)
ActivityCallback
setAnnotateEnabled in interface ActivityCallback
public void notifyUserAboutUpdate(java.lang.String message,
boolean isPro,
boolean loc)
ActivityCallback
notifyUserAboutUpdate in interface ActivityCallback
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||