|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SearchResultHandler
Handles incoming search results from the network. This class parses the results from QueryReply instances and performs the logic necessary to pass those results up to the UI.
| Field Summary | |
|---|---|
static int |
MAX_RESULTS
The maximum number of results to send in a QueryStatusResponse - basically sent to say 'shut off query'. |
static int |
REPORT_INTERVAL
The "delay" between responses to wait to send a QueryStatusResponse. |
| Method Summary | |
|---|---|
void |
addQuery(QueryRequest qr)
Adds the Query to the list of queries kept track of. |
int |
getNumResultsForQuery(GUID guid)
Use this to see how many results have been displayed to the user for the specified query. |
List<QueryRequest> |
getQueriesToReSend()
Returns a List of queries that require replanting into the network, based on the number of results they've had and/or whether or not they're new enough. |
void |
handleQueryReply(QueryReply qr)
Handles the given query reply. |
void |
removeQuery(GUID guid)
Removes the Query from the list of queries kept track of. |
void |
setResponseFilter(ResponseFilter responseFilter)
Sets the new filter to use for response filters. |
| Field Detail |
|---|
static final int REPORT_INTERVAL
static final int MAX_RESULTS
| Method Detail |
|---|
void addQuery(QueryRequest qr)
qr - The query that has been started. We really just access the guid.void removeQuery(GUID guid)
guid - the guid of the query that has been removed.List<QueryRequest> getQueriesToReSend()
int getNumResultsForQuery(GUID guid)
guid - the guid of the query.
void handleQueryReply(QueryReply qr)
void setResponseFilter(ResponseFilter responseFilter)
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||