Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.callhistory
Class CallHistoryContactSource

java.lang.Object
  extended by net.java.sip.communicator.impl.callhistory.CallHistoryContactSource
All Implemented Interfaces:
ContactSourceService

public class CallHistoryContactSource
extends Object
implements ContactSourceService

The CallHistoryContactSource is the contact source for the call history.

Author:
Yana Stamcheva

Field Summary
 
Fields inherited from interface net.java.sip.communicator.service.contactsource.ContactSourceService
CALL_HISTORY
 
Constructor Summary
CallHistoryContactSource()
           
 
Method Summary
 String getDisplayName()
          Returns the display name of this contact source.
 String getIdentifier()
          Returns the identifier of this contact source.
 ContactQuery queryContactSource(String queryString)
          Queries this contact source for the given searchString.
 ContactQuery queryContactSource(String queryString, int contactCount)
          Queries this contact source for the given searchString.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallHistoryContactSource

public CallHistoryContactSource()
Method Detail

getDisplayName

public String getDisplayName()
Returns the display name of this contact source.

Specified by:
getDisplayName in interface ContactSourceService
Returns:
the display name of this contact source

queryContactSource

public ContactQuery queryContactSource(String queryString)
Queries this contact source for the given searchString.

Specified by:
queryContactSource in interface ContactSourceService
Parameters:
queryString - the string to search for
Returns:
the created query

queryContactSource

public ContactQuery queryContactSource(String queryString,
                                       int contactCount)
Queries this contact source for the given searchString.

Specified by:
queryContactSource in interface ContactSourceService
Parameters:
queryString - the string to search for
contactCount - the maximum count of result contacts
Returns:
the created query

getIdentifier

public String getIdentifier()
Returns the identifier of this contact source. Some of the common identifiers are defined here (For example the CALL_HISTORY identifier should be returned by all call history implementations of this interface)

Specified by:
getIdentifier in interface ContactSourceService
Returns:
the identifier of this contact source

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.