Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.addrbook.macosx
Class MacOSXAddrBookContactSourceService

java.lang.Object
  extended by net.java.sip.communicator.service.contactsource.AsyncContactSourceService
      extended by net.java.sip.communicator.plugin.addrbook.macosx.MacOSXAddrBookContactSourceService
All Implemented Interfaces:
ContactSourceService, ExtendedContactSourceService

public class MacOSXAddrBookContactSourceService
extends AsyncContactSourceService

Implements ContactSourceService for the Address Book of Mac OS X.

Author:
Lyubomir Marinov

Field Summary
static String MACOSX_ADDR_BOOK_PREFIX
          the Mac OS X address book prefix.
 
Fields inherited from interface net.java.sip.communicator.service.contactsource.ContactSourceService
CALL_HISTORY
 
Constructor Summary
MacOSXAddrBookContactSourceService()
          Initializes a new MacOSXAddrBookContactSourceService instance.
 
Method Summary
 String getDisplayName()
          Gets a human-readable String which names this ContactSourceService implementation.
 String getIdentifier()
          Gets a String which uniquely identifies the instances of the MacOSXAddrBookContactSourceService implementation.
 String getPhoneNumberPrefix()
          Returns the global phone number prefix to be used when calling contacts from this contact source.
 ContactQuery queryContactSource(Pattern query)
          Queries this ContactSourceService for SourceContacts which match a specific query Pattern.
 void stop()
          Stops this ContactSourceService implementation and prepares it for garbage collection.
 
Methods inherited from class net.java.sip.communicator.service.contactsource.AsyncContactSourceService
queryContactSource, queryContactSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MACOSX_ADDR_BOOK_PREFIX

public static final String MACOSX_ADDR_BOOK_PREFIX
the Mac OS X address book prefix.

See Also:
Constant Field Values
Constructor Detail

MacOSXAddrBookContactSourceService

public MacOSXAddrBookContactSourceService()
Initializes a new MacOSXAddrBookContactSourceService instance.

Method Detail

getDisplayName

public String getDisplayName()
Gets a human-readable String which names this ContactSourceService implementation.

Returns:
a human-readable String which names this ContactSourceService implementation
See Also:
ContactSourceService.getDisplayName()

getIdentifier

public String getIdentifier()
Gets a String which uniquely identifies the instances of the MacOSXAddrBookContactSourceService implementation.

Returns:
a String which uniquely identifies the instances of the MacOSXAddrBookContactSourceService implementation
See Also:
ContactSourceService.getIdentifier()

queryContactSource

public ContactQuery queryContactSource(Pattern query)
Queries this ContactSourceService for SourceContacts which match a specific query Pattern.

Parameters:
query - the Pattern which this ContactSourceService is being queried for
Returns:
a ContactQuery which represents the query of this ContactSourceService implementation for the specified Pattern and via which the matching SourceContacts (if any) will be returned
See Also:
ExtendedContactSourceService.queryContactSource(Pattern)

stop

public void stop()
Stops this ContactSourceService implementation and prepares it for garbage collection.

Specified by:
stop in class AsyncContactSourceService
See Also:
AsyncContactSourceService.stop()

getPhoneNumberPrefix

public String getPhoneNumberPrefix()
Returns the global phone number prefix to be used when calling contacts from this contact source.

Returns:
the global phone number prefix

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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