public interface MagicSearch
MagicSearch
is used to do specifics searchs.Modifier and Type | Method and Description |
---|---|
SearchResult[] |
getContactListFromFilter(java.lang.String filter,
java.lang.String domain)
Create a sorted list of SearchResult from SipUri, Contact name, Contact
displayname, Contact phone number, which match with a filter word The last item
list will be an address formed with "filter" if a proxy config exist During the
first search, a cache is created and used for the next search Use
resetSearchCache() to begin a new search. |
java.lang.String |
getDelimiter() |
boolean |
getLimitedSearch() |
int |
getMaxWeight() |
int |
getMinWeight() |
int |
getSearchLimit() |
boolean |
getUseDelimiter() |
java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
void |
resetSearchCache()
Reset the cache to begin a new search.
|
void |
setDelimiter(java.lang.String delimiter)
Set the delimiter used to find matched filter word.
|
void |
setLimitedSearch(boolean limited)
Enable or disable the limited search.
|
void |
setMaxWeight(int weight)
Set the maximum value used to calculate the weight in search.
|
void |
setMinWeight(int weight)
Set the minimum value used to calculate the weight in search.
|
void |
setSearchLimit(int limit)
Set the number of the maximum SearchResult which will be return.
|
void |
setUseDelimiter(boolean enable)
Enable or disable the delimiter in search.
|
void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
java.lang.String getDelimiter()
void setDelimiter(java.lang.String delimiter)
delimiter
- delimiter (example "-_.,")boolean getLimitedSearch()
void setLimitedSearch(boolean limited)
limited
- int getMaxWeight()
void setMaxWeight(int weight)
weight
- maximum weightint getMinWeight()
void setMinWeight(int weight)
weight
- minimum weightint getSearchLimit()
void setSearchLimit(int limit)
limit
- boolean getUseDelimiter()
void setUseDelimiter(boolean enable)
enable
- SearchResult[] getContactListFromFilter(java.lang.String filter, java.lang.String domain)
resetSearchCache()
to begin a new search.domain
- domain which we want to search onlySearchResult
objects.
LinphoneSearchResult The objects inside the list are freshly allocated with a
reference counter equal to one, so they need to be freed on list destruction
with bctbx_list_free_with_data() for instance.void resetSearchCache()
void setUserData(java.lang.Object data)
data
- the object to storejava.lang.Object getUserData()