public class MacOSXAddrBookContactQuery extends AbstractAddrBookContactQuery<MacOSXAddrBookContactSourceService>
Type | Property and Description |
---|---|
static long |
kABAddress
Gets the value of the kABAddressProperty constant.
|
static long |
kABAIMInstant
Gets the value of the kABAIMInstantProperty constant.
|
static long |
kABBirthday
Gets the value of the kABBirthdayProperty constant.
|
static long |
kABCalendarURIs
Gets the value of the kABCalendarURIsProperty constant.
|
static long |
kABDepartment
Gets the value of the kABDepartmentProperty constant.
|
static long |
kABEmail
Gets the value of the kABEmailProperty constant.
|
static long |
kABFirstNamePhonetic
Gets the value of the kABFirstNamePhoneticProperty constant.
|
static long |
kABFirstName
Gets the value of the kABFirstNameProperty constant.
|
static long |
kABHomePage
Gets the value of the kABHomePageProperty constant.
|
static long |
kABICQInstant
Gets the value of the kABICQInstantProperty constant.
|
static long |
kABInstantMessage
Gets the value of the kABInstantMessageProperty constant.
|
static long |
kABJabberInstant
Gets the value of the kABJabberInstantProperty constant.
|
static long |
kABJobTitle
Gets the value of the kABJobTitleProperty constant.
|
static long |
kABLastNamePhonetic
Gets the value of the kABLastNamePhoneticProperty constant.
|
static long |
kABLastName
Gets the value of the kABLastNameProperty constant.
|
static long |
kABMaidenName
Gets the value of the kABMaidenNameProperty constant.
|
static long |
kABMiddleNamePhonetic
Gets the value of the kABMiddleNamePhoneticProperty constant.
|
static long |
kABMiddleName
Gets the value of the kABMiddleNameProperty constant.
|
static long |
kABMSNInstant
Gets the value of the kABMSNInstantProperty constant.
|
static long |
kABNickname
Gets the value of the kABNicknameProperty constant.
|
static long |
kABNote
Gets the value of the kABNoteProperty constant.
|
static long |
kABOrganization
Gets the value of the kABOrganizationProperty constant.
|
static long |
kABOtherDates
Gets the value of the kABOtherDatesProperty constant.
|
static long |
kABPhone
Gets the value of the kABPhoneProperty constant.
|
static long |
kABRelatedNames
Gets the value of the kABRelatedNamesProperty constant.
|
static long |
kABSuffix
Gets the value of the kABSuffixProperty constant.
|
static long |
kABTitle
Gets the value of the kABTitleProperty constant.
|
static long |
kABURLs
Gets the value of the kABURLsProperty constant.
|
static long |
kABYahooInstant
Gets the value of the kABYahooInstantProperty constant.
|
Modifier and Type | Field and Description |
---|---|
static long[] |
ABPERSON_PROPERTIES
The properties of ABPerson which are to be queried by the
MacOSXAddrBookContactQuery instances.
|
static int |
kABAddressProperty
The index of the kABAddressProperty ABPerson
property in
ABPERSON_PROPERTIES . |
static int |
kABAIMInstantProperty
The index of the kABAIMInstantProperty ABPerson
property in
ABPERSON_PROPERTIES . |
static int |
kABBirthdayProperty
The index of the kABBirthdayProperty ABPerson
property in
ABPERSON_PROPERTIES . |
static int |
kABCalendarURIsProperty
The index of the kABCalendarURIsProperty ABPerson
property in
ABPERSON_PROPERTIES . |
static int |
kABDepartmentProperty
The index of the kABDepartmentProperty ABPerson
property in
ABPERSON_PROPERTIES . |
static int |
kABEmailProperty
The index of the kABEmailProperty ABPerson property in
ABPERSON_PROPERTIES . |
static int |
kABFirstNamePhoneticProperty
The index of the kABFirstNamePhoneticProperty ABPerson
property in
ABPERSON_PROPERTIES . |
static int |
kABFirstNameProperty
The index of the kABFirstNameProperty ABPerson property
in
ABPERSON_PROPERTIES . |
static int |
kABHomePageProperty
The index of the kABHomePageProperty ABPerson
property in
ABPERSON_PROPERTIES . |
static int |
kABICQInstantProperty
The index of the kABICQInstantProperty ABPerson
property in
ABPERSON_PROPERTIES . |
static int |
kABJabberInstantProperty
The index of the kABJabberInstantProperty ABPerson
property in
ABPERSON_PROPERTIES . |
static int |
kABJobTitleProperty
The index of the kABJobTitleProperty ABPerson
property in
ABPERSON_PROPERTIES . |
static int |
kABLastNamePhoneticProperty
The index of the kABLastNamePhoneticProperty ABPerson
property in
ABPERSON_PROPERTIES . |
static int |
kABLastNameProperty
The index of the kABLastNameProperty ABPerson property
in
ABPERSON_PROPERTIES . |
static int |
kABMaidenNameProperty
The index of the kABMaidenNameProperty ABPerson
property in
ABPERSON_PROPERTIES . |
static int |
kABMiddleNamePhoneticProperty
The index of the kABMiddleNamePhoneticProperty ABPerson
property in
ABPERSON_PROPERTIES . |
static int |
kABMiddleNameProperty
The index of the kABMiddleNameProperty ABPerson
property in
ABPERSON_PROPERTIES . |
static int |
kABMSNInstantProperty
The index of the kABMSNInstantProperty ABPerson
property in
ABPERSON_PROPERTIES . |
static int |
kABNicknameProperty
The index of the kABNicknameProperty ABPerson property
in
ABPERSON_PROPERTIES . |
static int |
kABNoteProperty
The index of the kABNoteProperty ABPerson
property in
ABPERSON_PROPERTIES . |
static int |
kABOrganizationProperty
The index of the kABOrganizationProperty ABPerson
property in
ABPERSON_PROPERTIES . |
static int |
kABOtherDatesProperty
The index of the kABOtherDatesProperty ABPerson
property in
ABPERSON_PROPERTIES . |
static int |
kABPersonFlags
The index of the kABPersonFlags ABPerson property in
ABPERSON_PROPERTIES . |
static int |
kABPhoneProperty
The index of the kABPhoneProperty ABPerson property in
ABPERSON_PROPERTIES . |
static int |
kABRelatedNamesProperty
The index of the kABRelatedNamesProperty ABPerson
property in
ABPERSON_PROPERTIES . |
static long |
kABShowAsCompany
The flag which indicates that an ABRecord is to be displayed as
a company.
|
static long |
kABShowAsMask
The mask which extracts the kABShowAsXXX flag from the
personFlags of an ABPerson.
|
static int |
kABSuffixProperty
The index of the kABSuffixProperty ABPerson
property in
ABPERSON_PROPERTIES . |
static int |
kABTitleProperty
The index of the kABTitleProperty ABPerson
property in
ABPERSON_PROPERTIES . |
static int |
kABURLsProperty
The index of the kABURLsProperty ABPerson
property in
ABPERSON_PROPERTIES . |
static int |
kABYahooInstantProperty
The index of the kABYahooInstantProperty ABPerson
property in
ABPERSON_PROPERTIES . |
sourceContacts
query
QUERY_CANCELED, QUERY_COMPLETED, QUERY_ERROR, QUERY_IN_PROGRESS
Constructor and Description |
---|
MacOSXAddrBookContactQuery(MacOSXAddrBookContactSourceService contactSource,
java.util.regex.Pattern query)
Initializes a new MacOSXAddrBookContactQuery which is to perform
a specific query in the Address Book of Mac OS X on behalf of a
specific MacOSXAddrBookContactSourceService.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
ABPerson_imageData(long person)
Gets the imageData of a specific ABPerson instance.
|
static java.lang.String |
ABRecord_uniqueId(long record)
Returns the unique id of a record.
|
static java.lang.Object[] |
ABRecord_valuesForProperties(long record,
long[] properties)
Gets the values of a specific set of ABRecord properties for a
specific ABRecord instance.
|
void |
addEmptyContact(java.lang.String id)
Adds a new empty contact, which will be filled in later.
|
void |
contactChanged(SourceContact sourceContact)
Fires a contact changed event for the given contact.
|
static java.lang.String |
createContact()
Creates a new address book contact.
|
static boolean |
deleteContact(java.lang.String id)
Removes a contact from the address book.
|
void |
deleted(java.lang.String id)
Callback method when receiving notifications for deleted items.
|
static long |
getContactPointer(java.lang.String id)
Gets the pointer of the given contact.
|
static java.lang.String |
getLabel(int property,
ContactDetail.SubCategory subCategory,
java.lang.String subProperty)
Finds the label from category and sub categories.
|
static int |
getProperty(ContactDetail.Category category,
java.util.Collection<ContactDetail.SubCategory> subCategories)
Find the property from category and subcategories.
|
void |
inserted(long person)
Callback method when receiving notifications for inserted items.
|
static java.lang.String |
kABAddressCityKey() |
static java.lang.String |
kABAddressCountryKey() |
static java.lang.String |
kABAddressHomeLabel() |
static long |
kABAddressProperty()
Gets the value of the kABAddressProperty constant.
|
static java.lang.String |
kABAddressStateKey() |
static java.lang.String |
kABAddressStreetKey() |
static java.lang.String |
kABAddressWorkLabel() |
static java.lang.String |
kABAddressZIPKey() |
static long |
kABAIMInstantProperty()
Gets the value of the kABAIMInstantProperty constant.
|
static long |
kABBirthdayProperty()
Gets the value of the kABBirthdayProperty constant.
|
static long |
kABCalendarURIsProperty()
Gets the value of the kABCalendarURIsProperty constant.
|
static long |
kABDepartmentProperty()
Gets the value of the kABDepartmentProperty constant.
|
static java.lang.String |
kABEmailHomeLabel() |
static long |
kABEmailProperty()
Gets the value of the kABEmailProperty constant.
|
static java.lang.String |
kABEmailWorkLabel() |
static long |
kABFirstNamePhoneticProperty()
Gets the value of the kABFirstNamePhoneticProperty constant.
|
static long |
kABFirstNameProperty()
Gets the value of the kABFirstNameProperty constant.
|
static java.lang.String |
kABHomeLabel() |
static long |
kABHomePageProperty()
Gets the value of the kABHomePageProperty constant.
|
static long |
kABICQInstantProperty()
Gets the value of the kABICQInstantProperty constant.
|
static long |
kABInstantMessageProperty()
Gets the value of the kABInstantMessageProperty constant.
|
static long |
kABJabberInstantProperty()
Gets the value of the kABJabberInstantProperty constant.
|
static long |
kABJobTitleProperty()
Gets the value of the kABJobTitleProperty constant.
|
static long |
kABLastNamePhoneticProperty()
Gets the value of the kABLastNamePhoneticProperty constant.
|
static long |
kABLastNameProperty()
Gets the value of the kABLastNameProperty constant.
|
static long |
kABMaidenNameProperty()
Gets the value of the kABMaidenNameProperty constant.
|
static long |
kABMiddleNamePhoneticProperty()
Gets the value of the kABMiddleNamePhoneticProperty constant.
|
static long |
kABMiddleNameProperty()
Gets the value of the kABMiddleNameProperty constant.
|
static long |
kABMSNInstantProperty()
Gets the value of the kABMSNInstantProperty constant.
|
static long |
kABNicknameProperty()
Gets the value of the kABNicknameProperty constant.
|
static long |
kABNoteProperty()
Gets the value of the kABNoteProperty constant.
|
static long |
kABOrganizationProperty()
Gets the value of the kABOrganizationProperty constant.
|
static long |
kABOtherDatesProperty()
Gets the value of the kABOtherDatesProperty constant.
|
static java.lang.String |
kABOtherLabel() |
static long |
kABPersonFlags()
Gets the value of the kABPersonFlags constant.
|
static java.lang.String |
kABPhoneHomeLabel() |
static java.lang.String |
kABPhoneMainLabel() |
static java.lang.String |
kABPhoneMobileLabel() |
static long |
kABPhoneProperty()
Gets the value of the kABPhoneProperty constant.
|
static java.lang.String |
kABPhoneWorkFAXLabel() |
static java.lang.String |
kABPhoneWorkLabel() |
static long |
kABRelatedNamesProperty()
Gets the value of the kABRelatedNamesProperty constant.
|
static long |
kABSuffixProperty()
Gets the value of the kABSuffixProperty constant.
|
static long |
kABTitleProperty()
Gets the value of the kABTitleProperty constant.
|
static long |
kABURLsProperty()
Gets the value of the kABURLsProperty constant.
|
static java.lang.String |
kABWorkLabel() |
static long |
kABYahooInstantProperty()
Gets the value of the kABYahooInstantProperty constant.
|
static boolean |
removeProperty(java.lang.String id,
long property)
Remove a property.
|
protected void |
run()
Performs this AsyncContactQuery in a background Thread.
|
static boolean |
setProperty(java.lang.String id,
long property,
java.lang.String subPropety,
java.lang.Object value)
Sets property for the supplied person id.
|
void |
updated(long person)
Callback method when receiving notifications for updated items.
|
clear, findSourceContactByID, fireContactReceived, fireContactRemoved
addQueryResult, addQueryResult, addQueryResults, getPhoneNumberQuery, getQueryResultCount, getQueryResults, getQueryString, phoneNumberMatches, removeQueryResult, start, stopped
addContactQueryListener, cancel, fireContactChanged, fireContactReceived, fireQueryStatusChanged, getContactSource, getStatus, removeContactQueryListener, setStatus
public static long kABAIMInstantProperty
public static long kABEmailProperty
public static long kABFirstNameProperty
public static long kABFirstNamePhoneticProperty
public static long kABICQInstantProperty
public static long kABJabberInstantProperty
public static long kABLastNameProperty
public static long kABLastNamePhoneticProperty
public static long kABMiddleNameProperty
public static long kABMiddleNamePhoneticProperty
public static long kABMSNInstantProperty
public static long kABNicknameProperty
public static long kABOrganizationProperty
public static long kABPhoneProperty
public static long kABYahooInstantProperty
public static long kABMaidenNameProperty
public static long kABBirthdayProperty
public static long kABJobTitleProperty
public static long kABHomePageProperty
public static long kABURLsProperty
public static long kABCalendarURIsProperty
public static long kABAddressProperty
public static long kABOtherDatesProperty
public static long kABRelatedNamesProperty
public static long kABDepartmentProperty
public static long kABInstantMessageProperty
public static long kABNoteProperty
public static long kABTitleProperty
public static long kABSuffixProperty
public static final long[] ABPERSON_PROPERTIES
public static final int kABAIMInstantProperty
ABPERSON_PROPERTIES
.public static final int kABEmailProperty
ABPERSON_PROPERTIES
.public static final int kABFirstNameProperty
ABPERSON_PROPERTIES
.public static final int kABFirstNamePhoneticProperty
ABPERSON_PROPERTIES
.public static final int kABICQInstantProperty
ABPERSON_PROPERTIES
.public static final int kABJabberInstantProperty
ABPERSON_PROPERTIES
.public static final int kABLastNameProperty
ABPERSON_PROPERTIES
.public static final int kABLastNamePhoneticProperty
ABPERSON_PROPERTIES
.public static final int kABMiddleNameProperty
ABPERSON_PROPERTIES
.public static final int kABMiddleNamePhoneticProperty
ABPERSON_PROPERTIES
.public static final int kABMSNInstantProperty
ABPERSON_PROPERTIES
.public static final int kABNicknameProperty
ABPERSON_PROPERTIES
.public static final int kABOrganizationProperty
ABPERSON_PROPERTIES
.public static final int kABPersonFlags
ABPERSON_PROPERTIES
.public static final int kABPhoneProperty
ABPERSON_PROPERTIES
.public static final long kABShowAsCompany
public static final long kABShowAsMask
public static final int kABYahooInstantProperty
ABPERSON_PROPERTIES
.public static final int kABMaidenNameProperty
ABPERSON_PROPERTIES
.public static final int kABBirthdayProperty
ABPERSON_PROPERTIES
.public static final int kABJobTitleProperty
ABPERSON_PROPERTIES
.public static final int kABHomePageProperty
ABPERSON_PROPERTIES
.public static final int kABURLsProperty
ABPERSON_PROPERTIES
.public static final int kABCalendarURIsProperty
ABPERSON_PROPERTIES
.public static final int kABAddressProperty
ABPERSON_PROPERTIES
.public static final int kABOtherDatesProperty
ABPERSON_PROPERTIES
.public static final int kABRelatedNamesProperty
ABPERSON_PROPERTIES
.public static final int kABDepartmentProperty
ABPERSON_PROPERTIES
.public static final int kABNoteProperty
ABPERSON_PROPERTIES
.public static final int kABTitleProperty
ABPERSON_PROPERTIES
.public static final int kABSuffixProperty
ABPERSON_PROPERTIES
.public MacOSXAddrBookContactQuery(MacOSXAddrBookContactSourceService contactSource, java.util.regex.Pattern query)
contactSource
- the MacOSXAddrBookContactSourceService
which is to perform the new ContactQuery instancequery
- the Pattern for which contactSource i.e.
the Address Book of Mac OS X is being queriedpublic static byte[] ABPerson_imageData(long person)
person
- the pointer to the ABPerson instance to get the
imageData ofpublic static java.lang.Object[] ABRecord_valuesForProperties(long record, long[] properties)
record
- the pointer to the ABRecord to get the property
values ofproperties
- the set of ABRecord properties to get the
values ofpublic static java.lang.String ABRecord_uniqueId(long record)
record
- the record which id is retrieved.public static boolean setProperty(java.lang.String id, long property, java.lang.String subPropety, java.lang.Object value)
id
- the person idproperty
- the property to use.subPropety
- any sub property if available.value
- the value to set.public static boolean removeProperty(java.lang.String id, long property)
id
- the person id.property
- the property.public static boolean deleteContact(java.lang.String id)
id
- the person id.public static java.lang.String createContact()
public static long getContactPointer(java.lang.String id)
id
- the person id.public static long kABAIMInstantProperty()
public static long kABEmailProperty()
public static long kABFirstNameProperty()
public static long kABFirstNamePhoneticProperty()
public static long kABICQInstantProperty()
public static long kABJabberInstantProperty()
public static long kABLastNameProperty()
public static long kABLastNamePhoneticProperty()
public static long kABMiddleNameProperty()
public static long kABMiddleNamePhoneticProperty()
public static long kABMSNInstantProperty()
public static long kABNicknameProperty()
public static long kABOrganizationProperty()
public static long kABPersonFlags()
public static long kABPhoneProperty()
public static long kABYahooInstantProperty()
public static long kABMaidenNameProperty()
public static long kABBirthdayProperty()
public static long kABJobTitleProperty()
public static long kABHomePageProperty()
public static long kABURLsProperty()
public static long kABCalendarURIsProperty()
public static long kABAddressProperty()
public static long kABOtherDatesProperty()
public static long kABRelatedNamesProperty()
public static long kABDepartmentProperty()
public static long kABInstantMessageProperty()
public static long kABNoteProperty()
public static long kABTitleProperty()
public static long kABSuffixProperty()
public static java.lang.String kABEmailWorkLabel()
public static java.lang.String kABEmailHomeLabel()
public static java.lang.String kABAddressHomeLabel()
public static java.lang.String kABAddressWorkLabel()
public static java.lang.String kABPhoneWorkLabel()
public static java.lang.String kABPhoneHomeLabel()
public static java.lang.String kABPhoneMobileLabel()
public static java.lang.String kABPhoneMainLabel()
public static java.lang.String kABPhoneWorkFAXLabel()
public static java.lang.String kABHomeLabel()
public static java.lang.String kABWorkLabel()
public static java.lang.String kABOtherLabel()
public static java.lang.String kABAddressStreetKey()
public static java.lang.String kABAddressCityKey()
public static java.lang.String kABAddressStateKey()
public static java.lang.String kABAddressZIPKey()
public static java.lang.String kABAddressCountryKey()
protected void run()
run
in class AsyncContactQuery<MacOSXAddrBookContactSourceService>
AsyncContactQuery.run()
public void inserted(long person)
public void updated(long person)
public void deleted(java.lang.String id)
public static int getProperty(ContactDetail.Category category, java.util.Collection<ContactDetail.SubCategory> subCategories)
category
- subCategories
- public static java.lang.String getLabel(int property, ContactDetail.SubCategory subCategory, java.lang.String subProperty)
subCategory
- public void addEmptyContact(java.lang.String id)
id
- The ID of the contact to add.public void contactChanged(SourceContact sourceContact)
sourceContact
- The contact which has changed.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.