|
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.GoogleContactsServiceImpl
public class GoogleContactsServiceImpl
Implementation of Google Contacts service.
We first get MAX_RESULT contacts from Google Contacts then
we filter it to get MAX_RESULT that matched our query.
If MAX_RESULT is not reach, we try with additional
contacts (if there are more than MAX_RESULT contacts).
| Field Summary | |
|---|---|
static int |
MAX_NUMBER
Maximum number of contacts retrieved for a query. |
static int |
MAX_RESULT
Maximum number of results for a query. |
| Constructor Summary | |
|---|---|
GoogleContactsServiceImpl()
Constructor. |
|
| Method Summary | |
|---|---|
void |
addContactSource(GoogleContactsConnection cnx,
boolean googleTalk)
Add a contact source service with the specified GoogleContactsConnection. |
void |
addContactSource(String login,
String password)
Add a contact source service with the specified GoogleContactsConnection. |
static byte[] |
downloadPhoto(com.google.gdata.data.ILink photoLink,
com.google.gdata.client.contacts.ContactsService service)
Retrieve photo of a contact. |
List<GoogleContactsConnectionImpl> |
getAccounts()
Get list of stored connections. |
GoogleContactsConnection |
getConnection(String login,
String password)
Get a GoogleContactsConnection. |
List<GoogleContactsEntry> |
getContacts()
Get the full contacts list. |
void |
removeConfig(GoogleContactsConnection cnx)
Remove a connection. |
void |
removeContactSource(GoogleContactsConnection cnx)
Add a contact source service with the specified. |
void |
removeContactSource(String login)
Remove a contact source service with the specified GoogleContactsConnection. |
void |
saveConfig(GoogleContactsConnection cnx)
Save configuration. |
List<GoogleContactsEntry> |
searchContact(GoogleContactsConnection cnx,
GoogleQuery gQuery,
int count,
GoogleEntryCallback callback)
Perform a search for a contact using regular expression. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_RESULT
public static final int MAX_NUMBER
| Constructor Detail |
|---|
public GoogleContactsServiceImpl()
| Method Detail |
|---|
public List<GoogleContactsConnectionImpl> getAccounts()
public void removeConfig(GoogleContactsConnection cnx)
cnx - connection to savepublic void saveConfig(GoogleContactsConnection cnx)
cnx - connection to save
public List<GoogleContactsEntry> searchContact(GoogleContactsConnection cnx,
GoogleQuery gQuery,
int count,
GoogleEntryCallback callback)
searchContact in interface GoogleContactsServicecnx - GoogleContactsConnection to perform the querygQuery - Google querycount - maximum number of matched contactscallback - object that will be notified for each new
GoogleContactsEntry found
public List<GoogleContactsEntry> getContacts()
getContacts in interface GoogleContactsService
public GoogleContactsConnection getConnection(String login,
String password)
getConnection in interface GoogleContactsServicelogin - login to connect to the servicepassword - password to connect to the service
public void addContactSource(GoogleContactsConnection cnx,
boolean googleTalk)
addContactSource in interface GoogleContactsServicecnx - GoogleContactsConnection.googleTalk - if the contact source has been created as GoogleTalk
account or via external Google Contacts
public void addContactSource(String login,
String password)
addContactSource in interface GoogleContactsServicelogin - loginpassword - passwordpublic void removeContactSource(GoogleContactsConnection cnx)
removeContactSource in interface GoogleContactsServicecnx - GoogleContactsConnection.public void removeContactSource(String login)
removeContactSource in interface GoogleContactsServicelogin - login
public static byte[] downloadPhoto(com.google.gdata.data.ILink photoLink,
com.google.gdata.client.contacts.ContactsService service)
photoLink - photo linkservice -
|
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 | |||||||||