public class MacOSXAddrBookContactSourceService extends AsyncContactSourceService implements EditableContactSourceService, PrefixedContactSourceService
Modifier and Type | Class and Description |
---|---|
class |
MacOSXAddrBookContactSourceService.NotificationsDelegate
Delegate class to be notified for addressbook changes.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MACOSX_ADDR_BOOK_PREFIX
the Mac OS X address book prefix.
|
static java.lang.String |
PNAME_MACOSX_ADDR_BOOK_SEARCH_FIELD_DISABLED
Boolean property that defines whether using this contact source service
as result for the search field is authorized.
|
CONTACT_LIST_TYPE, DEFAULT_TYPE, HISTORY_TYPE, SEARCH_TYPE
Constructor and Description |
---|
MacOSXAddrBookContactSourceService()
Initializes a new MacOSXAddrBookContactSourceService instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addEmptyContact(java.lang.String id)
Adds a new empty contact, which will be filled in later.
|
boolean |
canBeUsedToSearchContacts()
Defines whether using this contact source service can be used as result
for the search field.
|
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.
|
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.
|
MacOSXAddrBookContactQuery |
getLatestQuery()
Returns the latest query created.
|
int |
getNbRemainingNotifications()
Returns the number of contact notifications to deal with.
|
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
MacOSXAddrBookContactSourceService implementation.
|
int |
getVersion()
Returns the version of this contact source service.
|
static void |
setDelegate(long ptr,
MacOSXAddrBookContactSourceService.NotificationsDelegate delegate)
Sets notifier delegate.
|
void |
stop()
Stops this ContactSourceService implementation and prepares it
for garbage collection.
|
createContactQuery, createContactQuery
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createContactQuery, createContactQuery
public static final java.lang.String MACOSX_ADDR_BOOK_PREFIX
public static final java.lang.String PNAME_MACOSX_ADDR_BOOK_SEARCH_FIELD_DISABLED
public MacOSXAddrBookContactSourceService()
public java.lang.String getDisplayName()
getDisplayName
in interface ContactSourceService
ContactSourceService.getDisplayName()
public int getType()
getType
in interface ContactSourceService
ContactSourceService.getType()
public ContactQuery createContactQuery(java.util.regex.Pattern query)
createContactQuery
in interface ExtendedContactSourceService
query
- the Pattern which this
ContactSourceService is being queried forExtendedContactSourceService#queryContactSource(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 static void setDelegate(long ptr, MacOSXAddrBookContactSourceService.NotificationsDelegate delegate)
ptr
- delegate
- public MacOSXAddrBookContactQuery getLatestQuery()
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 int getBitness()
getBitness
in interface EditableContactSourceService
public int getVersion()
getVersion
in interface EditableContactSourceService
public int getNbRemainingNotifications()
getNbRemainingNotifications
in interface EditableContactSourceService
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.