public class DemuxContactSource extends java.lang.Object implements ProtocolAwareContactSourceService
CONTACT_LIST_TYPE, DEFAULT_TYPE, HISTORY_TYPE, SEARCH_TYPE
Constructor and Description |
---|
DemuxContactSource(ContactSourceService contactSource)
Create an instance of DemuxContactSource by specifying the
underlying ContactSourceService to be demuxed.
|
Modifier and Type | Method and Description |
---|---|
ContactQuery |
createContactQuery(java.lang.String queryString)
Creates query for the given queryString.
|
ContactQuery |
createContactQuery(java.lang.String queryString,
int contactCount)
Creates query for the given queryString.
|
java.lang.String |
getDisplayName()
Returns a user-friendly string that identifies the underlying contact
source.
|
int |
getIndex()
Returns the index of the contact source in the result list.
|
int |
getType()
Returns the type of the underlying contact source.
|
void |
setPreferredProtocolProvider(java.lang.Class<? extends OperationSet> opSetClass,
ProtocolProviderService protocolProvider)
Sets the preferred protocol provider for this contact source.
|
public DemuxContactSource(ContactSourceService contactSource)
contactSource
- the underlying ContactSourceService to be
demuxedpublic void setPreferredProtocolProvider(java.lang.Class<? extends OperationSet> opSetClass, ProtocolProviderService protocolProvider)
setPreferredProtocolProvider
in interface ProtocolAwareContactSourceService
opSetClass
- the operation set class, for which we set a preferred
providerprotocolProvider
- the ProtocolProviderService to setpublic 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 int getIndex()
getIndex
in interface ContactSourceService
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.