Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.addrbook.msoutlook
Class MsOutlookAddrBookContactSourceService

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

public class MsOutlookAddrBookContactSourceService
extends AsyncContactSourceService

Implements ContactSourceService for the Address Book of Microsoft Outlook.

Author:
Lyubomir Marinov

Field Summary
static String OUTLOOK_ADDR_BOOK_PREFIX
          The outlook address book prefix.
 
Fields inherited from interface net.java.sip.communicator.service.contactsource.ContactSourceService
CALL_HISTORY
 
Constructor Summary
MsOutlookAddrBookContactSourceService()
          Initializes a new MsOutlookAddrBookContactSourceService 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 MsOutlookAddrBookContactSourceService 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.
(package private)  void stopped(MsOutlookAddrBookContactQuery msoabcq)
          Notifies this MsOutlookAddrBookContactSourceService that a specific MsOutlookAddrBookContactQuery has stopped.
 
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

OUTLOOK_ADDR_BOOK_PREFIX

public static final String OUTLOOK_ADDR_BOOK_PREFIX
The outlook address book prefix.

See Also:
Constant Field Values
Constructor Detail

MsOutlookAddrBookContactSourceService

public MsOutlookAddrBookContactSourceService()
                                      throws MsOutlookMAPIHResultException
Initializes a new MsOutlookAddrBookContactSourceService instance.

Throws:
MsOutlookMAPIHResultException - if anything goes wrong while initializing the new MsOutlookAddrBookContactSourceService 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 MsOutlookAddrBookContactSourceService implementation.

Returns:
a String which uniquely identifies the instances of the MsOutlookAddrBookContactSourceService 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

stopped

void stopped(MsOutlookAddrBookContactQuery msoabcq)
Notifies this MsOutlookAddrBookContactSourceService that a specific MsOutlookAddrBookContactQuery has stopped.

Parameters:
msoabcq - the MsOutlookAddrBookContactQuery which has stopped

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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