public class ProtocolContactSourceServiceImpl extends java.lang.Object implements ContactSourceService
Modifier and Type | Field and Description |
---|---|
(package private) MetaContactListService |
metaContactListService
The MetaContactListService, providing the meta contact list.
|
CONTACT_LIST_TYPE, DEFAULT_TYPE, HISTORY_TYPE, SEARCH_TYPE
Constructor and Description |
---|
ProtocolContactSourceServiceImpl(ProtocolProviderService protocolProvider,
java.lang.Class<? extends OperationSet> opSetClass)
Creates an instance of ProtocolContactSourceServiceImpl.
|
Modifier and Type | Method and Description |
---|---|
ContactQuery |
createContactQuery(java.lang.String queryString)
Creates query for the given searchPattern.
|
ContactQuery |
createContactQuery(java.lang.String queryString,
int contactCount)
Creates query for the given searchPattern.
|
java.lang.String |
getDisplayName()
Returns a user-friendly string that identifies this contact source.
|
int |
getIndex()
Returns the index of the contact source in the result list.
|
int |
getType()
Returns the type of this contact source.
|
void |
removeQuery(ContactQuery contactQuery)
Removes query from the list.
|
MetaContactListService metaContactListService
public ProtocolContactSourceServiceImpl(ProtocolProviderService protocolProvider, java.lang.Class<? extends OperationSet> opSetClass)
protocolProvider
- the protocol provider which is the contact sourceopSetClass
- the OperationSet class that is supported by
source contactspublic int getType()
getType
in interface ContactSourceService
public java.lang.String getDisplayName()
getDisplayName
in interface ContactSourceService
public ContactQuery createContactQuery(java.lang.String queryString)
createContactQuery
in interface ContactSourceService
queryString
- the string to search forpublic ContactQuery createContactQuery(java.lang.String queryString, int contactCount)
createContactQuery
in interface ContactSourceService
queryString
- the string to search forcontactCount
- the maximum count of result contactspublic void removeQuery(ContactQuery contactQuery)
contactQuery
- the querypublic int getIndex()
getIndex
in interface ContactSourceService
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.