|
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.service.contactsource.GenericSourceContact
public class GenericSourceContact
Implements a generic SourceContact for the purposes of the support for the OS-specific Address Book.
| Constructor Summary | |
|---|---|
GenericSourceContact(ContactSourceService contactSource,
String displayName,
List<ContactDetail> contactDetails)
Initializes a new AddrBookSourceContact instance. |
|
| Method Summary | |
|---|---|
List<ContactDetail> |
getContactDetails()
Gets the ContactDetails of this SourceContact. |
List<ContactDetail> |
getContactDetails(Class<? extends OperationSet> operationSet)
Gets the ContactDetails of this SourceContact which support a specific OperationSet. |
List<ContactDetail> |
getContactDetails(String category)
Returns a list of all ContactDetails corresponding to the given category. |
ContactSourceService |
getContactSource()
Gets the ContactSourceService which has created this SourceContact. |
String |
getDisplayDetails()
Gets the display details of this SourceContact. |
String |
getDisplayName()
Gets the display name of this SourceContact. |
byte[] |
getImage()
Gets the image/avatar of this SourceContact. |
ContactDetail |
getPreferredContactDetail(Class<? extends OperationSet> operationSet)
Gets the preferred ContactDetail for a specific OperationSet. |
void |
setImage(byte[] image)
Sets the image/avatar of this SourceContact. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericSourceContact(ContactSourceService contactSource,
String displayName,
List<ContactDetail> contactDetails)
contactSource - the ContactSourceService which is creating
the new instancedisplayName - the display name of the new instancecontactDetails - the ContactDetails of the new instance| Method Detail |
|---|
public List<ContactDetail> getContactDetails()
getContactDetails in interface SourceContactSourceContact.getContactDetails()public List<ContactDetail> getContactDetails(Class<? extends OperationSet> operationSet)
getContactDetails in interface SourceContactoperationSet - the OperationSet the supporting
ContactDetails of which are to be returned
SourceContact.getContactDetails(Class)public List<ContactDetail> getContactDetails(String category)
getContactDetails in interface SourceContactcategory - the OperationSet class we're looking for
public ContactSourceService getContactSource()
getContactSource in interface SourceContactSourceContact.getContactSource()public String getDisplayDetails()
getDisplayDetails in interface SourceContactSourceContact.getDisplayDetails()public String getDisplayName()
getDisplayName in interface SourceContactSourceContact.getDisplayName()public byte[] getImage()
getImage in interface SourceContactSourceContact.getImage()public ContactDetail getPreferredContactDetail(Class<? extends OperationSet> operationSet)
getPreferredContactDetail in interface SourceContactoperationSet - the OperationSet to get the preferred
ContactDetail for
SourceContact.getPreferredContactDetail(Class)public void setImage(byte[] image)
image - the image/avatar to be set on this SourceContact
|
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 | |||||||||