|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.googlecontacts.GoogleContactsSourceService
public class GoogleContactsSourceService
Implements ContactSourceService for Google Contacts.
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.contactsource.ContactSourceService |
|---|
CALL_HISTORY |
| Constructor Summary | |
|---|---|
GoogleContactsSourceService(GoogleContactsConnection cnx)
Constructor. |
|
GoogleContactsSourceService(String login,
String password)
Constructor. |
|
| Method Summary | |
|---|---|
GoogleContactsConnectionImpl |
getConnection()
Returns the Google Contacts connection. |
String |
getDisplayName()
Returns a user-friendly string that identifies this contact source. |
String |
getIdentifier()
Returns the identifier of this contact source. |
String |
getLogin()
Returns login. |
String |
getPhoneNumberPrefix()
Returns the phoneNumber prefix for all phone numbers. |
boolean |
isGoogleTalk()
Returns whether or not the account has been created via GoogleTalk wizard or via external Google Contacts. |
ContactQuery |
queryContactSource(Pattern queryPattern)
Queries this search source for the given searchPattern. |
ContactQuery |
queryContactSource(Pattern queryPattern,
int count)
Queries this search source for the given searchPattern. |
ContactQuery |
queryContactSource(String query)
Queries this search source for the given queryString. |
ContactQuery |
queryContactSource(String query,
int contactCount)
Queries this search source for the given queryString. |
void |
setGoogleTalk(boolean googleTalk)
Set whether or not the account has been created via GoogleTalk wizard or external Google contacts. |
void |
setPhoneNumberPrefix(String phoneNumberprefix)
Sets the phone number prefix. |
void |
stop()
Stops this ContactSourceService implementation and prepares it for garbage collection. |
(package private) void |
stopped(GoogleContactsQuery query)
Notifies this GoogleContactsSourceService that a specific GoogleContactsQuery has stopped. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GoogleContactsSourceService(String login,
String password)
login - loginpassword - passwordpublic GoogleContactsSourceService(GoogleContactsConnection cnx)
cnx - connection| Method Detail |
|---|
public String getLogin()
public void setGoogleTalk(boolean googleTalk)
googleTalk - value to setpublic boolean isGoogleTalk()
public ContactQuery queryContactSource(Pattern queryPattern)
queryContactSource in interface ExtendedContactSourceServicequeryPattern - the pattern to search for
public ContactQuery queryContactSource(Pattern queryPattern,
int count)
queryPattern - the pattern to search forcount - maximum number of contact returned
public GoogleContactsConnectionImpl getConnection()
public String getDisplayName()
getDisplayName in interface ContactSourceServicepublic String getIdentifier()
getIdentifier in interface ContactSourceServicepublic ContactQuery queryContactSource(String query)
queryContactSource in interface ContactSourceServicequery - the string to search for
public ContactQuery queryContactSource(String query,
int contactCount)
queryContactSource in interface ContactSourceServicequery - the string to search forcontactCount - the maximum count of result contacts
public void stop()
AsyncContactSourceService.stop()void stopped(GoogleContactsQuery query)
query - the GoogleContactsQuery which has stoppedpublic String getPhoneNumberPrefix()
getPhoneNumberPrefix in interface ExtendedContactSourceServicepublic void setPhoneNumberPrefix(String phoneNumberprefix)
phoneNumberprefix - the phone number prefix to set
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||