public interface Friend
Modifier and Type | Method and Description |
---|---|
void |
addAddress(Address addr)
Adds an address in this friend.
|
void |
addPhoneNumber(java.lang.String phone)
Adds a phone number in this friend.
|
boolean |
createVcard(java.lang.String name)
Creates a vCard object associated to this friend if there isn't one yet and if
the full name is available, either by the parameter or the one in the friend's
SIP URI.
|
void |
done()
Commits modification made to the friend configuration.
|
void |
edit()
Starts editing a friend configuration.
|
void |
enableSubscribes(boolean val)
Configure #LinphoneFriend to subscribe to presence information.
|
Address |
getAddress()
Get address of this friend.
|
Address[] |
getAddresses()
Returns a list of #LinphoneAddress for this friend.
|
int |
getCapabilities()
Returns the capabilities associated to this friend.
|
float |
getCapabilityVersion(FriendCapability capability)
Returns the version of a friend's capbility.
|
ConsolidatedPresence |
getConsolidatedPresence()
Get the consolidated presence of a friend.
|
Core |
getCore()
Returns the #LinphoneCore object managing this friend, if any.
|
SubscribePolicy |
getIncSubscribePolicy()
get current subscription policy for this #LinphoneFriend
|
java.lang.String |
getName()
Get the display name for this friend.
|
java.lang.String[] |
getPhoneNumbers()
Returns a list of phone numbers for this friend.
|
PresenceModel |
getPresenceModel()
Get the presence model of a friend.
|
PresenceModel |
getPresenceModelForUriOrTel(java.lang.String uriOrTel)
Get the presence model for a specific SIP URI or phone number of a friend.
|
java.lang.String |
getRefKey()
Get the reference key of a friend.
|
SubscriptionState |
getSubscriptionState()
Get subscription state of a friend.
|
java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
Vcard |
getVcard()
Returns the vCard object associated to this friend, if any.
|
boolean |
hasCapability(FriendCapability capability)
Returns whether or not a friend has a capbility.
|
boolean |
hasCapabilityWithVersion(FriendCapability capability,
float version)
Returns whether or not a friend has a capbility with a given version.
|
boolean |
hasCapabilityWithVersionOrMore(FriendCapability capability,
float version)
Returns whether or not a friend has a capbility with a given version or more.
|
boolean |
inList()
Check that the given friend is in a friend list.
|
boolean |
isPresenceReceived()
Tells whether we already received presence information for a friend.
|
Friend |
newFromVcard(Vcard vcard)
Contructor same as linphone_friend_new + linphone_friend_set_address()
|
void |
removeAddress(Address addr)
Removes an address in this friend.
|
void |
removePhoneNumber(java.lang.String phone)
Removes a phone number in this friend.
|
void |
save(Core lc)
Saves a friend either in database if configured, otherwise in linphonerc.
|
void |
setAddress(Address address)
Set #LinphoneAddress for this friend.
|
void |
setIncSubscribePolicy(SubscribePolicy pol)
Configure incoming subscription policy for this friend.
|
void |
setName(java.lang.String name)
Set the display name for this friend.
|
void |
setPresenceModel(PresenceModel presence)
Set the presence model of a friend.
|
void |
setPresenceModelForUriOrTel(java.lang.String uriOrTel,
PresenceModel presence)
Set the presence model for a specific SIP URI or phone number of a friend.
|
void |
setRefKey(java.lang.String key)
Set the reference key of a friend.
|
void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
void |
setVcard(Vcard vcard)
Binds a vCard object to a friend.
|
boolean |
subscribesEnabled()
get subscription flag value
|
Address getAddress()
void setAddress(Address address)
Address[] getAddresses()
int getCapabilities()
ConsolidatedPresence getConsolidatedPresence()
Core getCore()
SubscribePolicy getIncSubscribePolicy()
void setIncSubscribePolicy(SubscribePolicy pol)
boolean isPresenceReceived()
java.lang.String getName()
void setName(java.lang.String name)
java.lang.String[] getPhoneNumbers()
PresenceModel getPresenceModel()
void setPresenceModel(PresenceModel presence)
java.lang.String getRefKey()
void setRefKey(java.lang.String key)
boolean subscribesEnabled()
void enableSubscribes(boolean val)
SubscriptionState getSubscriptionState()
Vcard getVcard()
void setVcard(Vcard vcard)
void addAddress(Address addr)
void addPhoneNumber(java.lang.String phone)
boolean createVcard(java.lang.String name)
void done()
void edit()
float getCapabilityVersion(FriendCapability capability)
PresenceModel getPresenceModelForUriOrTel(java.lang.String uriOrTel)
boolean hasCapability(FriendCapability capability)
boolean hasCapabilityWithVersion(FriendCapability capability, float version)
boolean hasCapabilityWithVersionOrMore(FriendCapability capability, float version)
boolean inList()
void removeAddress(Address addr)
void removePhoneNumber(java.lang.String phone)
void save(Core lc)
void setPresenceModelForUriOrTel(java.lang.String uriOrTel, PresenceModel presence)
Friend newFromVcard(Vcard vcard)
void setUserData(java.lang.Object data)
java.lang.Object getUserData()