public class MetaContactPhoneUtil
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
MetaContactPhoneUtil(MetaContact metaContact)
Creates utility instance for metaContact.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getLocalizedPhoneNumber(ServerStoredDetails.GenericDetail d)
Returns localized phone number.
|
MetaContact |
getMetaContact()
Returns the metaContact we work on.
|
java.util.List<java.lang.String> |
getPhones(Contact contact)
Returns localized addition phones list for contact, if any.
|
java.util.List<java.lang.String> |
getPhones(Contact contact,
OperationSetServerStoredContactInfo.DetailsResponseListener listener,
boolean localized)
List of phones for contact, localized if localized is
true, and not otherwise.
|
static MetaContactPhoneUtil |
getPhoneUtil(MetaContact metaContact)
Obtains the util for metaContact
|
java.util.List<java.lang.String> |
getVideoPhones(Contact contact,
OperationSetServerStoredContactInfo.DetailsResponseListener listener)
Returns list of video phones for contact, localized.
|
boolean |
isCallEnabled()
Is call enabled for metaContact.
|
boolean |
isCallEnabled(boolean checkForTelephonyOpSet)
Is call enabled for metaContact.
|
boolean |
isCallEnabled(Contact contact)
Is call enabled for contact.
|
boolean |
isCallEnabled(OperationSetServerStoredContactInfo.DetailsResponseListener listener)
Is call enabled for metaContact.
|
boolean |
isCallEnabled(OperationSetServerStoredContactInfo.DetailsResponseListener listener,
boolean checkForTelephonyOpSet)
Is call enabled for metaContact.
|
boolean |
isDesktopSharingEnabled()
Is desktop sharing enabled for metaContact.
|
boolean |
isDesktopSharingEnabled(Contact contact)
Is desktop sharing enabled for contact.
|
boolean |
isDesktopSharingEnabled(OperationSetServerStoredContactInfo.DetailsResponseListener listener)
Is desktop sharing enabled for metaContact.
|
boolean |
isVideoCallEnabled()
Is video called is enabled for metaContact.
|
boolean |
isVideoCallEnabled(Contact contact)
Is video call enabled for contact.
|
boolean |
isVideoCallEnabled(OperationSetServerStoredContactInfo.DetailsResponseListener listener)
Is video called is enabled for metaContact.
|
protected MetaContactPhoneUtil(MetaContact metaContact)
metaContact
- the metacontact checked in the utility.public static MetaContactPhoneUtil getPhoneUtil(MetaContact metaContact)
metaContact
- the metaconctact.public MetaContact getMetaContact()
public java.util.List<java.lang.String> getPhones(Contact contact)
contact
- the contactpublic java.util.List<java.lang.String> getVideoPhones(Contact contact, OperationSetServerStoredContactInfo.DetailsResponseListener listener)
contact
- the contact to check for video phones.listener
- the DetailsResponseListener to listen for result
detailspublic java.util.List<java.lang.String> getPhones(Contact contact, OperationSetServerStoredContactInfo.DetailsResponseListener listener, boolean localized)
contact
- the contact to check for video phones.listener
- the DetailsResponseListener to listen for result
detailslocalized
- whether to localize the phones, put a description text.public boolean isVideoCallEnabled(OperationSetServerStoredContactInfo.DetailsResponseListener listener)
listener
- the DetailsResponseListener to listen for result
detailspublic boolean isVideoCallEnabled()
public boolean isVideoCallEnabled(Contact contact)
contact
- to check for video capabilities.public boolean isDesktopSharingEnabled(OperationSetServerStoredContactInfo.DetailsResponseListener listener)
listener
- the DetailsResponseListener to listen for result
detailspublic boolean isDesktopSharingEnabled()
public boolean isDesktopSharingEnabled(Contact contact)
contact
- to check for desktop sharing capabilities.public boolean isCallEnabled(OperationSetServerStoredContactInfo.DetailsResponseListener listener)
listener
- the DetailsResponseListener to listen for result
detailspublic boolean isCallEnabled(OperationSetServerStoredContactInfo.DetailsResponseListener listener, boolean checkForTelephonyOpSet)
listener
- the DetailsResponseListener to listen for result
detailscheckForTelephonyOpSet
- whether we should check for registered
telephony operation sets that can be used to dial out, can be used
in plugins dialing out using methods outside the provider.public boolean isCallEnabled()
public boolean isCallEnabled(boolean checkForTelephonyOpSet)
checkForTelephonyOpSet
- whether we should check for registered
telephony operation sets that can be used to dial out, can be used
in plugins dialing out using methods outside the provider.public boolean isCallEnabled(Contact contact)
contact
- to check for call capabilities.protected java.lang.String getLocalizedPhoneNumber(ServerStoredDetails.GenericDetail d)
d
- the detail.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.