public class MsOutlookAddrBookContactSourceService extends AsyncContactSourceService implements EditableContactSourceService, PrefixedContactSourceService
Modifier and Type | Class and Description |
---|---|
class |
MsOutlookAddrBookContactSourceService.NotificationsDelegate
Delegate class to be notified for addressbook changes.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OUTLOOK_ADDR_BOOK_PREFIX
The outlook address book prefix.
|
static java.lang.String |
PNAME_OUTLOOK_ADDR_BOOK_SEARCH_FIELD_DISABLED
Boolean property that defines whether using this contact source service
as result for the search field is authorized.
|
static java.lang.String |
PNAME_OUTLOOK_ADDR_BOOK_SHOW_DEFAULTMAILCLIENT_WARNING
Boolean property that defines whether the warning for the default mail
client should be shown or not.
|
CONTACT_LIST_TYPE, DEFAULT_TYPE, HISTORY_TYPE, SEARCH_TYPE
Constructor and Description |
---|
MsOutlookAddrBookContactSourceService() |
Modifier and Type | Method and Description |
---|---|
void |
addEmptyContact(java.lang.String id)
Adds a new empty contact, which will be filled in later.
|
void |
addNotification(java.lang.String id,
char function)
Collects a new notification and adds it to the notification thread.
|
boolean |
canBeUsedToSearchContacts()
Defines whether using this contact source service can be used as result
for the search field.
|
void |
clearRemainingNotifications()
Cancels the contact notifications.
|
java.lang.String |
createContact()
Creates a new contact from the database (i.e "contacts" or
"msoutlook", etc.).
|
ContactQuery |
createContactQuery(java.util.regex.Pattern query)
Creates query that searches for SourceContacts
which match a specific query Pattern.
|
MsOutlookAddrBookContactSourceService.NotificationsDelegate |
createNotificationDelegate()
Creates new NotificationsDelegate instance.
|
void |
deleteContact(java.lang.String id)
Removes the given contact from the database (i.e "contacts" or
"msoutlook", etc.).
|
int |
getBitness()
Returns the bitness of this contact source service.
|
java.lang.String |
getDisplayName()
Gets a human-readable String which names this
ContactSourceService implementation.
|
int |
getIndex()
Returns the index of the contact source in the result list.
|
int |
getNbRemainingNotifications()
Returns the number of contact notifications to deal with.
|
static int |
getOutlookBitnessVersion() |
static int |
getOutlookVersion() |
java.lang.String |
getPhoneNumberPrefix()
Returns the global phone number prefix to be used when calling contacts
from this contact source.
|
int |
getType()
Gets a String which uniquely identifies the instances of the
MsOutlookAddrBookContactSourceService implementation.
|
int |
getVersion()
Returns the version of this contact source service.
|
static void |
initMAPI(MsOutlookAddrBookContactSourceService.NotificationsDelegate notificationDelegate)
Initializes a new MsOutlookAddrBookContactSourceService
instance.
|
void |
stop()
Stops this ContactSourceService implementation and prepares it
for garbage collection.
|
static void |
UninitializeMAPI()
Uninitializes MAPI.
|
createContactQuery, createContactQuery
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createContactQuery, createContactQuery
public static final java.lang.String OUTLOOK_ADDR_BOOK_PREFIX
public static final java.lang.String PNAME_OUTLOOK_ADDR_BOOK_SEARCH_FIELD_DISABLED
public static final java.lang.String PNAME_OUTLOOK_ADDR_BOOK_SHOW_DEFAULTMAILCLIENT_WARNING
public MsOutlookAddrBookContactSourceService()
public static void initMAPI(MsOutlookAddrBookContactSourceService.NotificationsDelegate notificationDelegate) throws MsOutlookMAPIHResultException
notificationDelegate
- the object to be notified for addressbook
changesMsOutlookMAPIHResultException
- if anything goes wrong while
initializing the new MsOutlookAddrBookContactSourceService
instancepublic MsOutlookAddrBookContactSourceService.NotificationsDelegate createNotificationDelegate()
public java.lang.String getDisplayName()
getDisplayName
in interface ContactSourceService
ContactSourceService.getDisplayName()
public int getType()
getType
in interface ContactSourceService
ContactSourceService.getType()
public static void UninitializeMAPI()
public static int getOutlookBitnessVersion()
public static int getOutlookVersion()
public ContactQuery createContactQuery(java.util.regex.Pattern query)
createContactQuery
in interface ExtendedContactSourceService
query
- the Pattern which this
ContactSourceService is being queried forExtendedContactSourceService.createContactQuery(Pattern)
public void stop()
stop
in class AsyncContactSourceService
AsyncContactSourceService.stop()
public java.lang.String getPhoneNumberPrefix()
getPhoneNumberPrefix
in interface PrefixedContactSourceService
public int getIndex()
getIndex
in interface ContactSourceService
public java.lang.String createContact()
createContact
in interface EditableContactSourceService
public void addEmptyContact(java.lang.String id)
addEmptyContact
in interface EditableContactSourceService
id
- The ID of the contact to add.public void deleteContact(java.lang.String id)
deleteContact
in interface EditableContactSourceService
id
- The ID of the contact to remove.public boolean canBeUsedToSearchContacts()
canBeUsedToSearchContacts
in class AsyncContactSourceService
public void addNotification(java.lang.String id, char function)
id
- The contact id.function
- The kind of notification: 'd' for deleted, 'u' for
updated and 'i' for inserted.public int getBitness()
getBitness
in interface EditableContactSourceService
public int getVersion()
getVersion
in interface EditableContactSourceService
public int getNbRemainingNotifications()
getNbRemainingNotifications
in interface EditableContactSourceService
public void clearRemainingNotifications()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.