public interface FriendList
Modifier and Type | Interface and Description |
---|---|
static class |
FriendList.Status |
static class |
FriendList.SyncStatus |
Modifier and Type | Method and Description |
---|---|
FriendList.Status |
addFriend(Friend lf)
Add a friend to a friend list.
|
void |
addListener(FriendListListener listener) |
FriendList.Status |
addLocalFriend(Friend lf)
Add a friend to a friend list.
|
void |
enableSubscriptions(boolean enabled)
Enable subscription to NOTIFYes of all friends list.
|
void |
exportFriendsAsVcard4File(java.lang.String vcardFile)
Creates and export #LinphoneFriend objects from #LinphoneFriendList to a file
using vCard 4 format.
|
Friend |
findFriendByAddress(Address address)
Find a friend in the friend list using a LinphoneAddress.
|
Friend |
findFriendByRefKey(java.lang.String refKey)
Find a friend in the friend list using a ref key.
|
Friend |
findFriendByUri(java.lang.String uri)
Find a friend in the friend list using an URI string.
|
Friend[] |
findFriendsByAddress(Address address)
Find all friends in the friend list using a LinphoneAddress.
|
Friend[] |
findFriendsByUri(java.lang.String uri)
Find all friends in the friend list using an URI string.
|
Core |
getCore()
Returns the #LinphoneCore object attached to this LinphoneFriendList.
|
java.lang.String |
getDisplayName()
Get the display name of the friend list.
|
Friend[] |
getFriends()
Retrieves the list of #LinphoneFriend from this LinphoneFriendList.
|
Address |
getRlsAddress()
Get the RLS (Resource List Server) URI associated with the friend list to
subscribe to these friends presence.
|
java.lang.String |
getRlsUri()
Get the RLS (Resource List Server) URI associated with the friend list to
subscribe to these friends presence.
|
java.lang.String |
getUri()
Get the URI associated with the friend list.
|
java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
void |
importFriendsFromVcard4Buffer(java.lang.String vcardBuffer)
Creates and adds #LinphoneFriend objects to #LinphoneFriendList from a buffer
that contains the vCard(s) to parse.
|
void |
importFriendsFromVcard4File(java.lang.String vcardFile)
Creates and adds #LinphoneFriend objects to #LinphoneFriendList from a file
that contains the vCard(s) to parse.
|
boolean |
isSubscriptionBodyless()
Get wheter the subscription of the friend list is bodyless or not.
|
void |
notifyPresence(PresenceModel presence)
Notify our presence to all the friends in the friend list that have subscribed
to our presence directly (not using a RLS).
|
FriendList.Status |
removeFriend(Friend lf)
Remove a friend from a friend list.
|
void |
removeListener(FriendListListener listener) |
void |
setDisplayName(java.lang.String displayName)
Set the display name of the friend list.
|
void |
setListener(FriendListListener listener) |
void |
setRlsAddress(Address rlsAddr)
Set the RLS (Resource List Server) URI associated with the friend list to
subscribe to these friends presence.
|
void |
setRlsUri(java.lang.String rlsUri)
Set the RLS (Resource List Server) URI associated with the friend list to
subscribe to these friends presence.
|
void |
setSubscriptionBodyless(boolean bodyless)
Set wheter the subscription of the friend list is bodyless or not.
|
void |
setUri(java.lang.String uri)
Set the URI associated with the friend list.
|
void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
boolean |
subscriptionsEnabled()
Gets whether subscription to NOTIFYes of all friends list are enabled or not.
|
void |
synchronizeFriendsFromServer()
Starts a CardDAV synchronization using value set using
linphone_friend_list_set_uri.
|
void |
updateDirtyFriends()
Goes through all the #LinphoneFriend that are dirty and does a CardDAV PUT to
update the server.
|
void |
updateRevision(int rev)
Sets the revision from the last synchronization.
|
void |
updateSubscriptions()
Update presence subscriptions for the entire list.
|
Core getCore()
java.lang.String getDisplayName()
void setDisplayName(java.lang.String displayName)
Friend[] getFriends()
boolean isSubscriptionBodyless()
Address getRlsAddress()
void setRlsAddress(Address rlsAddr)
java.lang.String getRlsUri()
void setRlsUri(java.lang.String rlsUri)
void setSubscriptionBodyless(boolean bodyless)
boolean subscriptionsEnabled()
void enableSubscriptions(boolean enabled)
java.lang.String getUri()
void setUri(java.lang.String uri)
FriendList.Status addFriend(Friend lf)
FriendList.Status addLocalFriend(Friend lf)
void exportFriendsAsVcard4File(java.lang.String vcardFile)
Friend findFriendByAddress(Address address)
Friend findFriendByRefKey(java.lang.String refKey)
Friend findFriendByUri(java.lang.String uri)
Friend[] findFriendsByAddress(Address address)
Friend[] findFriendsByUri(java.lang.String uri)
void importFriendsFromVcard4Buffer(java.lang.String vcardBuffer)
void importFriendsFromVcard4File(java.lang.String vcardFile)
void notifyPresence(PresenceModel presence)
FriendList.Status removeFriend(Friend lf)
void synchronizeFriendsFromServer()
void updateDirtyFriends()
void updateRevision(int rev)
void updateSubscriptions()
void addListener(FriendListListener listener)
void removeListener(FriendListListener listener)
void setListener(FriendListListener listener)
void setUserData(java.lang.Object data)
java.lang.Object getUserData()