public class CallHistoryQueryImpl extends java.lang.Object implements CallHistoryQuery
Constructor and Description |
---|
CallHistoryQueryImpl(HistoryQuery query)
Creates an instance of CallHistoryQueryImpl by specifying the
underlying HistoryQuery.
|
Modifier and Type | Method and Description |
---|---|
void |
addQueryListener(CallHistoryQueryListener l)
Adds the given CallHistoryQueryListener to the list of
listeners interested in query result changes.
|
void |
cancel()
Cancels this query.
|
java.util.Collection<CallRecord> |
getCallRecords()
Returns a collection of the results for this query.
|
java.lang.String |
getQueryString()
Returns the query string, this query was created for.
|
void |
removeQueryListener(CallHistoryQueryListener l)
Removes the given CallHistoryQueryListener from the list of
listeners interested in query result changes.
|
public CallHistoryQueryImpl(HistoryQuery query)
query
- the underlying HistoryQuery this query is based onpublic void cancel()
cancel
in interface CallHistoryQuery
public java.util.Collection<CallRecord> getCallRecords()
This method could be used in order to obtain first fast initial results and then obtain the additional results through the CallHistoryQueryListener, which should improve user experience when waiting for results.
getCallRecords
in interface CallHistoryQuery
public void addQueryListener(CallHistoryQueryListener l)
addQueryListener
in interface CallHistoryQuery
l
- the CallHistoryQueryListener to addpublic void removeQueryListener(CallHistoryQueryListener l)
removeQueryListener
in interface CallHistoryQuery
l
- the CallHistoryQueryListener to removepublic java.lang.String getQueryString()
getQueryString
in interface CallHistoryQuery
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.