Liblinphone
5.3.0
|
Macros | |
#define | linphone_friend_get_send_subscribe linphone_friend_subscribes_enabled |
#define | linphone_friend_send_subscribe linphone_friend_enable_subscribes |
Typedefs | |
typedef void(* | LinphoneFriendListCbsContactCreatedCb) (LinphoneFriendList *friend_list, LinphoneFriend *linphone_friend) |
Callback used to notify a new contact has been created on the CardDAV server and downloaded locally. More... | |
typedef void(* | LinphoneFriendListCbsContactDeletedCb) (LinphoneFriendList *friend_list, LinphoneFriend *linphone_friend) |
Callback used to notify a contact has been deleted on the CardDAV server. More... | |
typedef void(* | LinphoneFriendListCbsContactUpdatedCb) (LinphoneFriendList *friend_list, LinphoneFriend *new_friend, LinphoneFriend *old_friend) |
Callback used to notify a contact has been updated on the CardDAV server. More... | |
typedef void(* | LinphoneFriendListCbsSyncStateChangedCb) (LinphoneFriendList *friend_list, LinphoneFriendListSyncStatus status, const char *message) |
Callback used to notify the status of the synchronization has changed. More... | |
typedef void(* | LinphoneFriendListCbsPresenceReceivedCb) (LinphoneFriendList *friend_list, const bctbx_list_t *friends) |
Callback used to notify a list with all friends that have received presence information. More... | |
typedef void(* | LinphoneFriendCbsPresenceReceivedCb) (LinphoneFriend *linphone_friend) |
Callback used to notify a friend that it has received presence information. More... | |
typedef struct _LinphoneFriend | LinphoneFriend |
This object is used to store a SIP address. More... | |
typedef struct _LinphoneFriendCbs | LinphoneFriendCbs |
An object to handle the callbacks for LinphoneFriend. | |
typedef enum _LinphoneFriendCapability | LinphoneFriendCapability |
Enum describing the capabilities of a LinphoneFriend, populated through presence subscribe/notify process. | |
typedef struct _LinphoneFriendList | LinphoneFriendList |
This object representing a list of LinphoneFriend. More... | |
typedef enum _LinphoneFriendListType | LinphoneFriendListType |
The types of FriendList. | |
typedef struct _LinphoneFriendListCbs | LinphoneFriendListCbs |
An object to handle the callbacks for LinphoneFriend synchronization. | |
typedef enum _LinphoneFriendListStatus | LinphoneFriendListStatus |
Enum describing the status of a LinphoneFriendList operation. | |
typedef enum _LinphoneFriendListSyncStatus | LinphoneFriendListSyncStatus |
Enum describing the status of a CardDAV synchronization. | |
typedef enum _LinphoneConsolidatedPresence | LinphoneConsolidatedPresence |
Consolidated presence information: 'online' means the user is open for communication, 'busy' means the user is open for communication but involved in an other activity, 'do not disturb' means the user is not open for communication, and 'offline' means that no presence information is available. | |
typedef struct _LinphonePresenceActivity | LinphonePresenceActivity |
Presence activity type holding information about a presence activity. | |
typedef enum LinphonePresenceActivityType | LinphonePresenceActivityType |
Activities as defined in section 3.2 of RFC 4480. | |
typedef enum LinphonePresenceBasicStatus | LinphonePresenceBasicStatus |
Basic status as defined in section 4.1.4 of RFC 3863. | |
typedef struct _LinphonePresenceModel | LinphonePresenceModel |
Presence model type holding information about the presence of a person. | |
typedef struct _LinphonePresenceNote | LinphonePresenceNote |
Presence note type holding information about a presence note. | |
typedef struct _LinphonePresencePerson | LinphonePresencePerson |
Presence person holding information about a presence person. | |
typedef struct _LinphonePresenceService | LinphonePresenceService |
Presence service type holding information about a presence service. | |
typedef enum _LinphoneSubscribePolicy | LinphoneSubscribePolicy |
Enum controlling behavior for incoming subscription request. More... | |
typedef enum _LinphoneMagicSearchSource | LinphoneMagicSearchSource |
Enum describing the search categories for Magic Search. | |
typedef enum _LinphoneMagicSearchAggregation | LinphoneMagicSearchAggregation |
Enum describing how to merge LinphoneSearchResult from LinphoneMagicSearch. | |
typedef struct _LinphoneFriendPhoneNumber | LinphoneFriendPhoneNumber |
Object that represents a LinphoneFriend's phone number. | |
Functions | |
LinphoneFriend * | linphone_core_create_friend (LinphoneCore *core) |
Create a default LinphoneFriend. More... | |
LinphoneFriend * | linphone_core_create_friend_with_address (LinphoneCore *core, const char *address) |
Create a LinphoneFriend from the given address. More... | |
void | linphone_core_set_presence_model (LinphoneCore *core, LinphonePresenceModel *presence) |
Set my presence model. More... | |
LinphonePresenceModel * | linphone_core_get_presence_model (const LinphoneCore *core) |
Get my presence model. More... | |
LinphoneConsolidatedPresence | linphone_core_get_consolidated_presence (const LinphoneCore *core) |
Get my consolidated presence. More... | |
void | linphone_core_set_consolidated_presence (LinphoneCore *core, LinphoneConsolidatedPresence presence) |
Set my consolidated presence. More... | |
void | linphone_core_reject_subscriber (LinphoneCore *core, LinphoneFriend *linphone_friend) |
Black list a friend. More... | |
void | linphone_core_notify_all_friends (LinphoneCore *core, LinphonePresenceModel *presence) |
Notify all friends that have subscribed. More... | |
LinphoneFriend * | linphone_core_find_friend (const LinphoneCore *core, const LinphoneAddress *address) |
Search a LinphoneFriend by its address. More... | |
LinphoneFriend * | linphone_core_find_friend_by_phone_number (const LinphoneCore *core, const char *phone_number) |
Search a LinphoneFriend by its phone number. More... | |
bctbx_list_t * | linphone_core_find_friends (const LinphoneCore *core, const LinphoneAddress *address) |
Search all LinphoneFriend matching an address. More... | |
LinphoneFriend * | linphone_core_get_friend_by_ref_key (const LinphoneCore *core, const char *key) |
Search a LinphoneFriend by its reference key. More... | |
LinphoneFriendList * | linphone_core_create_friend_list (LinphoneCore *core) |
Create a new empty LinphoneFriendList object. More... | |
void | linphone_core_add_friend_list (LinphoneCore *core, LinphoneFriendList *list) |
Add a friend list. More... | |
void | linphone_core_remove_friend_list (LinphoneCore *core, LinphoneFriendList *list) |
Removes a friend list. More... | |
const bctbx_list_t * | linphone_core_get_friends_lists (const LinphoneCore *core) |
Retrieves the list of LinphoneFriendList from the core. More... | |
LinphoneFriendList * | linphone_core_get_default_friend_list (const LinphoneCore *core) |
Retrieves the first list of LinphoneFriend from the core. More... | |
LinphoneFriendList * | linphone_core_get_friend_list_by_name (const LinphoneCore *core, const char *name) |
Retrieves the list of LinphoneFriend from the core that has the given display name. More... | |
void | linphone_core_enable_friend_list_subscription (LinphoneCore *core, bool_t enable) |
Sets whether or not to start friend lists subscription when in foreground. More... | |
bool_t | linphone_core_is_friend_list_subscription_enabled (LinphoneCore *core) |
Returns whether or not friend lists subscription are enabled. More... | |
bool_t | linphone_core_friend_list_subscription_enabled (LinphoneCore *core) |
Returns whether or not friend lists subscription are enabled. More... | |
const bctbx_list_t * | linphone_core_find_contacts_by_char (LinphoneCore *core, const char *filter, bool_t sip_only) |
Retrieves a list of LinphoneAddress sort and filter. More... | |
LinphonePresenceActivity * | linphone_core_create_presence_activity (LinphoneCore *core, LinphonePresenceActivityType acttype, const char *description) |
Create a LinphonePresenceActivity with the given type and description. More... | |
LinphonePresenceModel * | linphone_core_create_presence_model (LinphoneCore *core) |
Create a default LinphonePresenceModel. More... | |
LinphonePresenceModel * | linphone_core_create_presence_model_with_activity (LinphoneCore *core, LinphonePresenceActivityType acttype, const char *description) |
Create a LinphonePresenceModel with the given activity type and activity description. More... | |
LinphonePresenceModel * | linphone_core_create_presence_model_with_activity_and_note (LinphoneCore *core, LinphonePresenceActivityType acttype, const char *description, const char *note, const char *lang) |
Create a LinphonePresenceModel with the given activity type, activity description, note content and note language. More... | |
LinphonePresenceNote * | linphone_core_create_presence_note (LinphoneCore *core, const char *content, const char *lang) |
Create a LinphonePresenceNote with the given content and language. More... | |
LinphonePresencePerson * | linphone_core_create_presence_person (LinphoneCore *core, const char *id) |
Create a LinphonePresencePerson with the given id. More... | |
LinphonePresenceService * | linphone_core_create_presence_service (LinphoneCore *core, const char *id, LinphonePresenceBasicStatus basic_status, const char *contact) |
Create a LinphonePresenceService with the given id, basic status and contact. More... | |
void | linphone_core_notify_notify_presence_received (LinphoneCore *core, LinphoneFriend *linphone_friend) |
Notifies the upper layer that a presence status has been received by calling the appropriate callback if one has been set. More... | |
void | linphone_core_notify_notify_presence_received_for_uri_or_tel (LinphoneCore *core, LinphoneFriend *linphone_friend, const char *uri_or_tel, const LinphonePresenceModel *presence_model) |
Notifies the upper layer that a presence model change has been received for the uri or telephone number given as a parameter, by calling the appropriate callback if one has been set. More... | |
void | linphone_core_set_max_size_for_auto_download_incoming_files (LinphoneCore *core, int size) |
Sets the size under which incoming files in chat messages will be downloaded automatically. More... | |
int | linphone_core_get_max_size_for_auto_download_incoming_files (LinphoneCore *core) |
Gets the size under which incoming files in chat messages will be downloaded automatically. More... | |
void | linphone_core_set_auto_download_voice_recordings_enabled (LinphoneCore *core, bool_t auto_download_voice_recordings) |
Auto download files attach to a chat message if it's content type matches the one we use for voice recordings. More... | |
void | linphone_core_enable_auto_download_voice_recordings (LinphoneCore *core, bool_t auto_download_voice_recordings) |
Auto download files attach to a chat message if it's content type matches the one we use for voice recordings. More... | |
bool_t | linphone_core_is_auto_download_voice_recordings_enabled (LinphoneCore *core) |
Gets if the auto download for incoming voice recordings is enabled or not. More... | |
bool_t | linphone_core_auto_download_voice_recordings_enabled (LinphoneCore *core) |
Gets if the auto download for incoming voice recordings is enabled or not. More... | |
void | linphone_core_set_auto_download_icalendars_enabled (LinphoneCore *core, bool_t auto_download_icalendars) |
Auto download files attach to a chat message if it's content type matches the one we use for icalendars. More... | |
void | linphone_core_enable_auto_download_icalendars (LinphoneCore *core, bool_t auto_download_icalendars) |
Auto download files attach to a chat message if it's content type matches the one we use for icalendars. More... | |
bool_t | linphone_core_is_auto_download_icalendars_enabled (LinphoneCore *core) |
Gets if the auto download for incoming icalendars is enabled or not. More... | |
bool_t | linphone_core_auto_download_icalendars_enabled (LinphoneCore *core) |
Gets if the auto download for incoming icalendars is enabled or not. More... | |
bool_t | linphone_core_is_sender_name_hidden_in_forward_message (LinphoneCore *core) |
Returns whether or not sender name is hidden in forward message. More... | |
void | linphone_core_enable_sender_name_hidden_in_forward_message (LinphoneCore *core, bool_t enable) |
Enable whether or not to hide sender name in forward message. More... | |
void | linphone_core_set_record_aware_enabled (LinphoneCore *core, bool_t enable) |
Enables the record aware feature that will warn other users when recording. More... | |
void | linphone_core_enable_record_aware (LinphoneCore *core, bool_t enable) |
Enables the record aware feature that will warn other users when recording. More... | |
bool_t | linphone_core_is_record_aware_enabled (LinphoneCore *core) |
Gets if the record aware feature is enabled or not. More... | |
bool_t | linphone_core_record_aware_enabled (LinphoneCore *core) |
Gets if the record aware feature is enabled or not. More... | |
void | linphone_core_enable_auto_send_ringing (LinphoneCore *core, bool_t enable) |
Enables the automatic sending of 180 Ringing when receiving a call. More... | |
bool_t | linphone_core_auto_send_ringing_enabled (LinphoneCore *core) |
Gets if the automatic sending of 180 Ringing is enabled or not. More... | |
LinphoneStatus | linphone_friend_set_address (LinphoneFriend *fr, const LinphoneAddress *address) |
Set LinphoneAddress for this friend. More... | |
const LinphoneAddress * | linphone_friend_get_address (const LinphoneFriend *linphone_friend) |
Get address of this friend. More... | |
void | linphone_friend_add_address (LinphoneFriend *linphone_friend, const LinphoneAddress *address) |
Adds an address in this friend. More... | |
const bctbx_list_t * | linphone_friend_get_addresses (const LinphoneFriend *linphone_friend) |
Returns a list of LinphoneAddress for this friend. More... | |
void | linphone_friend_remove_address (LinphoneFriend *linphone_friend, const LinphoneAddress *address) |
Removes an address in this friend. More... | |
void | linphone_friend_add_phone_number (LinphoneFriend *linphone_friend, const char *phone_number) |
Adds a phone number in this friend. More... | |
void | linphone_friend_add_phone_number_with_label (LinphoneFriend *linphone_friend, LinphoneFriendPhoneNumber *phone_number) |
Adds a LinphoneFriendPhoneNumber to this friend. More... | |
bctbx_list_t * | linphone_friend_get_phone_numbers (const LinphoneFriend *linphone_friend) |
Returns a list of phone numbers for this friend. More... | |
bctbx_list_t * | linphone_friend_get_phone_numbers_with_label (const LinphoneFriend *linphone_friend) |
Returns a list of LinphoneFriendPhoneNumber for this friend. More... | |
bool_t | linphone_friend_has_phone_number (const LinphoneFriend *linphone_friend, const char *phone_number) |
Returns whether a friend contains the given phone number. More... | |
void | linphone_friend_remove_phone_number (LinphoneFriend *linphone_friend, const char *phone_number) |
Removes a phone number in this friend. More... | |
void | linphone_friend_remove_phone_number_with_label (LinphoneFriend *linphone_friend, const LinphoneFriendPhoneNumber *phone_number) |
Removes a LinphoneFriendPhoneNumber from this friend. More... | |
LinphoneStatus | linphone_friend_set_name (LinphoneFriend *linphone_friend, const char *name) |
Set the display name for this friend. More... | |
const char * | linphone_friend_get_name (const LinphoneFriend *linphone_friend) |
Get the display name for this friend. More... | |
bool_t | linphone_friend_subscribes_enabled (const LinphoneFriend *linphone_friend) |
get subscription flag value More... | |
LinphoneStatus | linphone_friend_enable_subscribes (LinphoneFriend *fr, bool_t enable) |
Configure LinphoneFriend to subscribe to presence information. More... | |
LinphoneStatus | linphone_friend_set_inc_subscribe_policy (LinphoneFriend *fr, LinphoneSubscribePolicy policy) |
Configure incoming subscription policy for this friend. More... | |
LinphoneSubscribePolicy | linphone_friend_get_inc_subscribe_policy (const LinphoneFriend *linphone_friend) |
get current subscription policy for this LinphoneFriend More... | |
void | linphone_friend_edit (LinphoneFriend *linphone_friend) |
Starts editing a friend configuration. More... | |
void | linphone_friend_done (LinphoneFriend *linphone_friend) |
Commits modification made to the friend configuration. More... | |
LinphoneSubscriptionState | linphone_friend_get_subscription_state (const LinphoneFriend *linphone_friend) |
Get subscription state of a friend. More... | |
const LinphonePresenceModel * | linphone_friend_get_presence_model (const LinphoneFriend *linphone_friend) |
Get the presence model of a friend. More... | |
LinphoneConsolidatedPresence | linphone_friend_get_consolidated_presence (const LinphoneFriend *linphone_friend) |
Get the consolidated presence of a friend. More... | |
const LinphonePresenceModel * | linphone_friend_get_presence_model_for_uri_or_tel (const LinphoneFriend *linphone_friend, const char *uri_or_tel) |
Get the presence model for a specific SIP URI or phone number of a friend. More... | |
void | linphone_friend_set_presence_model (LinphoneFriend *linphone_friend, LinphonePresenceModel *presence) |
Set the presence model of a friend. More... | |
void | linphone_friend_set_presence_model_for_uri_or_tel (LinphoneFriend *linphone_friend, const char *uri_or_tel, LinphonePresenceModel *presence) |
Set the presence model for a specific SIP URI or phone number of a friend. More... | |
bool_t | linphone_friend_is_presence_received (const LinphoneFriend *linphone_friend) |
Tells whether we already received presence information for a friend. More... | |
void | linphone_friend_set_user_data (LinphoneFriend *linphone_friend, void *user_data) |
Store user pointer to friend object. More... | |
void * | linphone_friend_get_user_data (const LinphoneFriend *linphone_friend) |
Retrieve user data associated with friend. More... | |
BuddyInfo * | linphone_friend_get_info (const LinphoneFriend *linphone_friend) |
void | linphone_friend_set_ref_key (LinphoneFriend *linphone_friend, const char *key) |
Set the reference key of a friend. More... | |
const char * | linphone_friend_get_ref_key (const LinphoneFriend *linphone_friend) |
Get the reference key of a friend. More... | |
bool_t | linphone_friend_in_list (const LinphoneFriend *linphone_friend) |
Check that the given friend is in a friend list. More... | |
LinphoneFriend * | linphone_friend_ref (LinphoneFriend *linphone_friend) |
Acquire a reference to the linphone friend. More... | |
void | linphone_friend_unref (LinphoneFriend *linphone_friend) |
Release a reference to the linphone friend. More... | |
LinphoneCore * | linphone_friend_get_core (const LinphoneFriend *linphone_friend) |
Returns the LinphoneCore object managing this friend, if any. More... | |
LinphoneVcard * | linphone_friend_get_vcard (const LinphoneFriend *linphone_friend) |
Returns the vCard object associated to this friend, if any. More... | |
void | linphone_friend_set_vcard (LinphoneFriend *linphone_friend, LinphoneVcard *vcard) |
Binds a vCard object to a friend. More... | |
bool_t | linphone_friend_create_vcard (LinphoneFriend *linphone_friend, const char *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. More... | |
LinphoneFriend * | linphone_friend_new_from_vcard (LinphoneVcard *vcard) |
Contructor same as linphone_friend_new() + linphone_friend_set_address() More... | |
void | linphone_friend_save (LinphoneFriend *linphone_friend, LinphoneCore *core) |
Saves a friend either in database if configured, otherwise in linphonerc. More... | |
int | linphone_friend_get_capabilities (const LinphoneFriend *linphone_friend) |
Returns the capabilities associated to this friend. More... | |
bool_t | linphone_friend_has_capability (const LinphoneFriend *linphone_friend, const LinphoneFriendCapability capability) |
Returns whether or not a friend has a capbility. More... | |
bool_t | linphone_friend_has_capability_with_version (const LinphoneFriend *linphone_friend, const LinphoneFriendCapability capability, float version) |
Returns whether or not a friend has a capbility with a given version. More... | |
bool_t | linphone_friend_has_capability_with_version_or_more (const LinphoneFriend *linphone_friend, const LinphoneFriendCapability capability, float version) |
Returns whether or not a friend has a capbility with a given version or more. More... | |
float | linphone_friend_get_capability_version (const LinphoneFriend *linphone_friend, const LinphoneFriendCapability capability) |
Returns the version of a friend's capbility. More... | |
void | linphone_friend_remove (LinphoneFriend *linphone_friend) |
Removes a friend from it's friend list and from the rc if exists. More... | |
void | linphone_friend_set_photo (LinphoneFriend *linphone_friend, const char *picture_uri) |
Sets the contact's picture URI. More... | |
const char * | linphone_friend_get_photo (const LinphoneFriend *linphone_friend) |
Gets the contact's picture URI. More... | |
void | linphone_friend_set_starred (LinphoneFriend *linphone_friend, bool_t is_starred) |
Sets if the friend is a user's favorite or important contact. More... | |
bool_t | linphone_friend_get_starred (const LinphoneFriend *linphone_friend) |
Gets if the friend is to be considered as important for the user. More... | |
void | linphone_friend_set_native_uri (LinphoneFriend *linphone_friend, const char *native_uri) |
Sets the contact's native URI. More... | |
const char * | linphone_friend_get_native_uri (const LinphoneFriend *linphone_friend) |
Gets the contact's native URI. More... | |
void | linphone_friend_set_organization (LinphoneFriend *linphone_friend, const char *organization) |
Sets the contact's organization. More... | |
const char * | linphone_friend_get_organization (const LinphoneFriend *linphone_friend) |
Gets the contact's organization from it's vCard. More... | |
void | linphone_friend_set_job_title (LinphoneFriend *linphone_friend, const char *job_title) |
Sets the contact's job title. More... | |
const char * | linphone_friend_get_job_title (const LinphoneFriend *linphone_friend) |
Gets the contact's job title from it's vCard. More... | |
void | linphone_friend_add_callbacks (LinphoneFriend *linphone_friend, LinphoneFriendCbs *cbs) |
Adds the LinphoneFriendCbs object associated with a LinphoneFriend. More... | |
void | linphone_friend_remove_callbacks (LinphoneFriend *linphone_friend, LinphoneFriendCbs *cbs) |
Removes the LinphoneFriendCbs object associated with a LinphoneFriend. More... | |
LinphoneFriendCbs * | linphone_friend_get_current_callbacks (const LinphoneFriend *linphone_friend) |
Get the current LinphoneFriendCbs object associated with a LinphoneFriend. More... | |
LinphoneFriendCbs * | linphone_friend_cbs_ref (LinphoneFriendCbs *cbs) |
Acquire a reference to a LinphoneFriendCbs object. More... | |
void | linphone_friend_cbs_unref (LinphoneFriendCbs *cbs) |
Release a reference to a LinphoneFriendCbs object. More... | |
void * | linphone_friend_cbs_get_user_data (const LinphoneFriendCbs *cbs) |
Retrieve the user pointer associated with a LinphoneFriendCbs object. More... | |
void | linphone_friend_cbs_set_user_data (LinphoneFriendCbs *cbs, void *user_data) |
Assign a user pointer to a LinphoneFriendCbs object. More... | |
LinphoneFriendCbsPresenceReceivedCb | linphone_friend_cbs_get_presence_received (const LinphoneFriendCbs *cbs) |
Get the presence received callback. More... | |
void | linphone_friend_cbs_set_presence_received (LinphoneFriendCbs *cbs, LinphoneFriendCbsPresenceReceivedCb cb) |
Set the presence received callback. More... | |
MS2_DEPRECATED LinphoneFriend * | linphone_friend_new (void) |
Contructor. More... | |
MS2_DEPRECATED LinphoneFriend * | linphone_friend_new_with_address (const char *addr) |
Contructor same as linphone_friend_new() + linphone_friend_set_address() More... | |
MS2_DEPRECATED void | linphone_friend_destroy (LinphoneFriend *linphone_friend) |
Destroy a LinphoneFriend. More... | |
MS2_DEPRECATED LinphoneOnlineStatus | linphone_friend_get_status (const LinphoneFriend *linphone_friend) |
Get the status of a friend. More... | |
LinphoneFriendList * | linphone_friend_list_ref (LinphoneFriendList *friend_list) |
Acquire a reference to the friend list. More... | |
void | linphone_friend_list_unref (LinphoneFriendList *friend_list) |
Release reference to the friend list. More... | |
void * | linphone_friend_list_get_user_data (const LinphoneFriendList *friend_list) |
Retrieve the user pointer associated with the friend list. More... | |
void | linphone_friend_list_set_user_data (LinphoneFriendList *friend_list, void *user_data) |
Assign a user pointer to the friend list. More... | |
void | linphone_friend_list_set_type (LinphoneFriendList *friend_list, LinphoneFriendListType type) |
Assign a friend list type to the friend list. More... | |
LinphoneFriendListType | linphone_friend_list_get_type (LinphoneFriendList *list) |
Get the LinphoneFriendListType of a friend list. More... | |
const char * | linphone_friend_list_get_display_name (const LinphoneFriendList *friend_list) |
Get the display name of the friend list. More... | |
void | linphone_friend_list_set_display_name (LinphoneFriendList *friend_list, const char *display_name) |
Set the display name of the friend list. More... | |
const char * | linphone_friend_list_get_rls_uri (const LinphoneFriendList *friend_list) |
Get the RLS (Resource List Server) URI associated with the friend list to subscribe to these friends presence. More... | |
void | linphone_friend_list_set_rls_uri (LinphoneFriendList *friend_list, const char *rls_uri) |
Set the RLS (Resource List Server) URI associated with the friend list to subscribe to these friends presence. More... | |
LinphoneAddress * | linphone_friend_list_get_rls_address (const LinphoneFriendList *friend_list) |
Get the RLS (Resource List Server) URI associated with the friend list to subscribe to these friends presence. More... | |
void | linphone_friend_list_set_rls_address (LinphoneFriendList *friend_list, const LinphoneAddress *rls_addr) |
Set the RLS (Resource List Server) URI associated with the friend list to subscribe to these friends presence. More... | |
LinphoneFriendListStatus | linphone_friend_list_add_friend (LinphoneFriendList *friend_list, LinphoneFriend *linphone_friend) |
Add a friend to a friend list. More... | |
LinphoneFriendListStatus | linphone_friend_list_add_local_friend (LinphoneFriendList *friend_list, LinphoneFriend *linphone_friend) |
Add a friend to a friend list. More... | |
LinphoneFriendListStatus | linphone_friend_list_remove_friend (LinphoneFriendList *friend_list, LinphoneFriend *linphone_friend) |
Remove a friend from a friend list. More... | |
const bctbx_list_t * | linphone_friend_list_get_friends (const LinphoneFriendList *friend_list) |
Retrieves the list of LinphoneFriend from this LinphoneFriendList. More... | |
LinphoneFriend * | linphone_friend_list_find_friend_by_address (const LinphoneFriendList *friend_list, const LinphoneAddress *address) |
Find a friend in the friend list using a LinphoneAddress. More... | |
LinphoneFriend * | linphone_friend_list_find_friend_by_phone_number (const LinphoneFriendList *friend_list, const char *phone_number) |
Find a friend in the friend list using a phone number. More... | |
bctbx_list_t * | linphone_friend_list_find_friends_by_address (const LinphoneFriendList *friend_list, const LinphoneAddress *address) |
Find all friends in the friend list using a LinphoneAddress. More... | |
LinphoneFriend * | linphone_friend_list_find_friend_by_uri (const LinphoneFriendList *friend_list, const char *uri) |
Find a friend in the friend list using an URI string. More... | |
bctbx_list_t * | linphone_friend_list_find_friends_by_uri (const LinphoneFriendList *friend_list, const char *uri) |
Find all friends in the friend list using an URI string. More... | |
LinphoneFriend * | linphone_friend_list_find_friend_by_ref_key (const LinphoneFriendList *friend_list, const char *ref_key) |
Find a friend in the friend list using a ref key. More... | |
void | linphone_friend_list_update_subscriptions (LinphoneFriendList *friend_list) |
Update presence subscriptions for the entire list. More... | |
void | linphone_friend_list_notify_presence (LinphoneFriendList *friend_list, LinphonePresenceModel *presence) |
Notify our presence to all the friends in the friend list that have subscribed to our presence directly (not using a RLS). More... | |
const char * | linphone_friend_list_get_uri (const LinphoneFriendList *friend_list) |
Get the URI associated with the friend list. More... | |
void | linphone_friend_list_set_uri (LinphoneFriendList *friend_list, const char *uri) |
Set the URI associated with the friend list. More... | |
bool_t | linphone_friend_list_is_subscription_bodyless (const LinphoneFriendList *friend_list) |
Get wheter the subscription of the friend list is bodyless or not. More... | |
void | linphone_friend_list_set_subscription_bodyless (LinphoneFriendList *friend_list, bool_t bodyless) |
Set wheter the subscription of the friend list is bodyless or not. More... | |
void | linphone_friend_list_update_revision (LinphoneFriendList *friend_list, int revision) |
Sets the revision from the last synchronization. More... | |
void | linphone_friend_list_add_callbacks (LinphoneFriendList *friend_list, LinphoneFriendListCbs *cbs) |
Adds the LinphoneFriendListCbs object associated with a LinphoneFriendList. More... | |
void | linphone_friend_list_remove_callbacks (LinphoneFriendList *friend_list, LinphoneFriendListCbs *cbs) |
Removes the LinphoneFriendListCbs object associated with a LinphoneFriendList. More... | |
LinphoneFriendListCbs * | linphone_friend_list_get_current_callbacks (const LinphoneFriendList *friend_list) |
Get the current LinphoneFriendListCbs object associated with a LinphoneFriendList. More... | |
LinphoneFriendListCbs * | linphone_friend_list_cbs_ref (LinphoneFriendListCbs *cbs) |
Acquire a reference to a LinphoneFriendListCbs object. More... | |
void | linphone_friend_list_cbs_unref (LinphoneFriendListCbs *cbs) |
Release a reference to a LinphoneFriendListCbs object. More... | |
void * | linphone_friend_list_cbs_get_user_data (const LinphoneFriendListCbs *cbs) |
Retrieve the user pointer associated with a LinphoneFriendListCbs object. More... | |
void | linphone_friend_list_cbs_set_user_data (LinphoneFriendListCbs *cbs, void *user_data) |
Assign a user pointer to a LinphoneFriendListCbs object. More... | |
LinphoneFriendListCbsContactCreatedCb | linphone_friend_list_cbs_get_contact_created (const LinphoneFriendListCbs *cbs) |
Get the contact created callback. More... | |
void | linphone_friend_list_cbs_set_contact_created (LinphoneFriendListCbs *cbs, LinphoneFriendListCbsContactCreatedCb cb) |
Set the contact created callback. More... | |
LinphoneFriendListCbsContactDeletedCb | linphone_friend_list_cbs_get_contact_deleted (const LinphoneFriendListCbs *cbs) |
Get the contact deleted callback. More... | |
void | linphone_friend_list_cbs_set_contact_deleted (LinphoneFriendListCbs *cbs, LinphoneFriendListCbsContactDeletedCb cb) |
Set the contact deleted callback. More... | |
LinphoneFriendListCbsContactUpdatedCb | linphone_friend_list_cbs_get_contact_updated (const LinphoneFriendListCbs *cbs) |
Get the contact updated callback. More... | |
void | linphone_friend_list_cbs_set_contact_updated (LinphoneFriendListCbs *cbs, LinphoneFriendListCbsContactUpdatedCb cb) |
Set the contact updated callback. More... | |
LinphoneFriendListCbsSyncStateChangedCb | linphone_friend_list_cbs_get_sync_status_changed (const LinphoneFriendListCbs *cbs) |
Get the sync status changed callback. More... | |
void | linphone_friend_list_cbs_set_sync_status_changed (LinphoneFriendListCbs *cbs, LinphoneFriendListCbsSyncStateChangedCb cb) |
Set the contact updated callback. More... | |
LinphoneFriendListCbsPresenceReceivedCb | linphone_friend_list_cbs_get_presence_received (const LinphoneFriendListCbs *cbs) |
Get the presence received callback. More... | |
void | linphone_friend_list_cbs_set_presence_received (LinphoneFriendListCbs *cbs, LinphoneFriendListCbsPresenceReceivedCb cb) |
Set the presence received callback. More... | |
void | linphone_friend_list_synchronize_friends_from_server (LinphoneFriendList *friend_list) |
Starts a CardDAV synchronization using value set using linphone_friend_list_set_uri. More... | |
void | linphone_friend_list_update_dirty_friends (LinphoneFriendList *friend_list) |
Goes through all the LinphoneFriend that are dirty and does a CardDAV PUT to update the server. More... | |
LinphoneCore * | linphone_friend_list_get_core (const LinphoneFriendList *friend_list) |
Returns the LinphoneCore object attached to this LinphoneFriendList. More... | |
int | linphone_friend_list_import_friends_from_vcard4_file (LinphoneFriendList *friend_list, const char *vcard_file) |
Creates and adds LinphoneFriend objects to LinphoneFriendList from a file that contains the vCard(s) to parse. More... | |
int | linphone_friend_list_import_friends_from_vcard4_buffer (LinphoneFriendList *friend_list, const char *vcard_buffer) |
Creates and adds LinphoneFriend objects to LinphoneFriendList from a buffer that contains the vCard(s) to parse. More... | |
void | linphone_friend_list_export_friends_as_vcard4_file (LinphoneFriendList *friend_list, const char *vcard_file) |
Creates and export LinphoneFriend objects from LinphoneFriendList to a file using vCard 4 format. More... | |
void | linphone_friend_list_enable_subscriptions (LinphoneFriendList *friend_list, bool_t enabled) |
Enable subscription to NOTIFYs. More... | |
bool_t | linphone_friend_list_subscriptions_enabled (LinphoneFriendList *friend_list) |
Gets whether subscription to NOTIFYs are enabled or not. More... | |
bool_t | linphone_friend_list_database_storage_enabled (const LinphoneFriendList *list) |
Gets whether this friend list and it's friends will be stored in DB or not. More... | |
void | linphone_friend_list_enable_database_storage (LinphoneFriendList *list, bool_t enable) |
Sets whether this friend list and it's friends will be stored in DB or not. More... | |
MS2_DEPRECATED LinphoneFriendListCbs * | linphone_friend_list_get_callbacks (const LinphoneFriendList *friend_list) |
Get the LinphoneFriendListCbs object associated with a LinphoneFriendList. More... | |
LinphonePresenceModel * | linphone_presence_model_new_with_activity (LinphonePresenceActivityType activity, const char *description) |
Creates a presence model specifying an activity. More... | |
LinphonePresenceModel * | linphone_presence_model_new_with_activity_and_note (LinphonePresenceActivityType activity, const char *description, const char *note, const char *lang) |
Creates a presence model specifying an activity and adding a note. More... | |
LinphonePresenceBasicStatus | linphone_presence_model_get_basic_status (const LinphonePresenceModel *model) |
Gets the basic status of a presence model. More... | |
LinphoneStatus | linphone_presence_model_set_basic_status (LinphonePresenceModel *model, LinphonePresenceBasicStatus basic_status) |
Sets the basic status of a presence model. More... | |
time_t | linphone_presence_model_get_timestamp (const LinphonePresenceModel *model) |
Gets the timestamp of a presence model. More... | |
time_t | linphone_presence_model_get_latest_activity_timestamp (const LinphonePresenceModel *model) |
Gets the latest activity timestamp of a presence model. More... | |
char * | linphone_presence_model_get_contact (const LinphonePresenceModel *model) |
Gets the contact of a presence model. More... | |
LinphoneStatus | linphone_presence_model_set_contact (LinphonePresenceModel *model, const char *contact) |
Sets the contact of a presence model. More... | |
LinphoneStatus | linphone_presence_model_set_presentity (LinphonePresenceModel *model, const LinphoneAddress *presentity) |
Sets the presentity of a presence model. More... | |
const LinphoneAddress * | linphone_presence_model_get_presentity (const LinphonePresenceModel *model) |
Gets the presentity of a presence model. More... | |
LinphonePresenceActivity * | linphone_presence_model_get_activity (const LinphonePresenceModel *model) |
Gets the first activity of a presence model (there is usually only one). More... | |
LinphoneStatus | linphone_presence_model_set_activity (LinphonePresenceModel *model, LinphonePresenceActivityType activity, const char *description) |
Sets the activity of a presence model (limits to only one activity). More... | |
unsigned int | linphone_presence_model_get_nb_activities (const LinphonePresenceModel *model) |
Gets the number of activities included in the presence model. More... | |
LinphonePresenceActivity * | linphone_presence_model_get_nth_activity (const LinphonePresenceModel *model, unsigned int index) |
Gets the nth activity of a presence model. More... | |
LinphoneStatus | linphone_presence_model_add_activity (LinphonePresenceModel *model, LinphonePresenceActivity *activity) |
Adds an activity to a presence model. More... | |
LinphoneStatus | linphone_presence_model_clear_activities (LinphonePresenceModel *model) |
Clears the activities of a presence model. More... | |
LinphonePresenceNote * | linphone_presence_model_get_note (const LinphonePresenceModel *model, const char *lang) |
Gets the first note of a presence model (there is usually only one). More... | |
LinphoneStatus | linphone_presence_model_add_note (LinphonePresenceModel *model, const char *note_content, const char *lang) |
Adds a note to a presence model. More... | |
LinphoneStatus | linphone_presence_model_clear_notes (LinphonePresenceModel *model) |
Clears all the notes of a presence model. More... | |
LinphoneConsolidatedPresence | linphone_presence_model_get_consolidated_presence (const LinphonePresenceModel *model) |
Get the consolidated presence from a presence model. More... | |
LinphonePresenceModel * | linphone_presence_model_new (void) |
Creates a default presence model. More... | |
unsigned int | linphone_presence_model_get_nb_services (const LinphonePresenceModel *model) |
Gets the number of services included in the presence model. More... | |
LinphonePresenceService * | linphone_presence_model_get_nth_service (const LinphonePresenceModel *model, unsigned int index) |
Gets the nth service of a presence model. More... | |
LinphoneStatus | linphone_presence_model_add_service (LinphonePresenceModel *model, LinphonePresenceService *service) |
Adds a service to a presence model. More... | |
LinphoneStatus | linphone_presence_model_clear_services (LinphonePresenceModel *model) |
Clears the services of a presence model. More... | |
unsigned int | linphone_presence_model_get_nb_persons (const LinphonePresenceModel *model) |
Gets the number of persons included in the presence model. More... | |
LinphonePresencePerson * | linphone_presence_model_get_nth_person (const LinphonePresenceModel *model, unsigned int index) |
Gets the nth person of a presence model. More... | |
LinphoneStatus | linphone_presence_model_add_person (LinphonePresenceModel *model, LinphonePresencePerson *person) |
Adds a person to a presence model. More... | |
LinphoneStatus | linphone_presence_model_clear_persons (LinphonePresenceModel *model) |
Clears the persons of a presence model. More... | |
bool_t | linphone_presence_model_is_online (const LinphonePresenceModel *model) |
Tells whether a presence model is considered online. More... | |
char * | linphone_presence_basic_status_to_string (LinphonePresenceBasicStatus basic_status) |
Gets the string representation of a presence basic status. More... | |
LinphonePresenceService * | linphone_presence_service_new (const char *id, LinphonePresenceBasicStatus basic_status, const char *contact) |
Creates a presence service. More... | |
char * | linphone_presence_service_get_id (const LinphonePresenceService *service) |
Gets the id of a presence service. More... | |
LinphoneStatus | linphone_presence_service_set_id (LinphonePresenceService *service, const char *id) |
Sets the id of a presence service. More... | |
LinphonePresenceBasicStatus | linphone_presence_service_get_basic_status (const LinphonePresenceService *service) |
Gets the basic status of a presence service. More... | |
LinphoneStatus | linphone_presence_service_set_basic_status (LinphonePresenceService *service, LinphonePresenceBasicStatus basic_status) |
Sets the basic status of a presence service. More... | |
char * | linphone_presence_service_get_contact (const LinphonePresenceService *service) |
Gets the contact of a presence service. More... | |
LinphoneStatus | linphone_presence_service_set_contact (LinphonePresenceService *service, const char *contact) |
Sets the contact of a presence service. More... | |
bctbx_list_t * | linphone_presence_service_get_service_descriptions (const LinphonePresenceService *service) |
Gets the service descriptions of a presence service. More... | |
LinphoneStatus | linphone_presence_service_set_service_descriptions (LinphonePresenceService *service, bctbx_list_t *descriptions) |
Sets the service descriptions of a presence service. More... | |
unsigned int | linphone_presence_service_get_nb_notes (const LinphonePresenceService *service) |
Gets the number of notes included in the presence service. More... | |
LinphonePresenceNote * | linphone_presence_service_get_nth_note (const LinphonePresenceService *service, unsigned int index) |
Gets the nth note of a presence service. More... | |
LinphoneStatus | linphone_presence_service_add_note (LinphonePresenceService *service, LinphonePresenceNote *note) |
Adds a note to a presence service. More... | |
LinphoneStatus | linphone_presence_service_clear_notes (LinphonePresenceService *service) |
Clears the notes of a presence service. More... | |
LinphonePresencePerson * | linphone_presence_person_new (const char *id) |
Creates a presence person. More... | |
char * | linphone_presence_person_get_id (const LinphonePresencePerson *person) |
Gets the id of a presence person. More... | |
LinphoneStatus | linphone_presence_person_set_id (LinphonePresencePerson *person, const char *id) |
Sets the id of a presence person. More... | |
unsigned int | linphone_presence_person_get_nb_activities (const LinphonePresencePerson *person) |
Gets the number of activities included in the presence person. More... | |
LinphonePresenceActivity * | linphone_presence_person_get_nth_activity (const LinphonePresencePerson *person, unsigned int index) |
Gets the nth activity of a presence person. More... | |
LinphoneStatus | linphone_presence_person_add_activity (LinphonePresencePerson *person, LinphonePresenceActivity *activity) |
Adds an activity to a presence person. More... | |
LinphoneStatus | linphone_presence_person_clear_activities (LinphonePresencePerson *person) |
Clears the activities of a presence person. More... | |
unsigned int | linphone_presence_person_get_nb_notes (const LinphonePresencePerson *person) |
Gets the number of notes included in the presence person. More... | |
LinphonePresenceNote * | linphone_presence_person_get_nth_note (const LinphonePresencePerson *person, unsigned int index) |
Gets the nth note of a presence person. More... | |
LinphoneStatus | linphone_presence_person_add_note (LinphonePresencePerson *person, LinphonePresenceNote *note) |
Adds a note to a presence person. More... | |
LinphoneStatus | linphone_presence_person_clear_notes (LinphonePresencePerson *person) |
Clears the notes of a presence person. More... | |
unsigned int | linphone_presence_person_get_nb_activities_notes (const LinphonePresencePerson *person) |
Gets the number of activities notes included in the presence person. More... | |
LinphonePresenceNote * | linphone_presence_person_get_nth_activities_note (const LinphonePresencePerson *person, unsigned int index) |
Gets the nth activities note of a presence person. More... | |
LinphoneStatus | linphone_presence_person_add_activities_note (LinphonePresencePerson *person, LinphonePresenceNote *note) |
Adds an activities note to a presence person. More... | |
LinphoneStatus | linphone_presence_person_clear_activities_notes (LinphonePresencePerson *person) |
Clears the activities notes of a presence person. More... | |
LinphonePresenceActivity * | linphone_presence_activity_new (LinphonePresenceActivityType acttype, const char *description) |
Creates a presence activity. More... | |
char * | linphone_presence_activity_to_string (const LinphonePresenceActivity *activity) |
Gets the string representation of a presence activity. More... | |
LinphonePresenceActivityType | linphone_presence_activity_get_type (const LinphonePresenceActivity *activity) |
Gets the activity type of a presence activity. More... | |
LinphoneStatus | linphone_presence_activity_set_type (LinphonePresenceActivity *activity, LinphonePresenceActivityType acttype) |
Sets the type of activity of a presence activity. More... | |
const char * | linphone_presence_activity_get_description (const LinphonePresenceActivity *activity) |
Gets the description of a presence activity. More... | |
LinphoneStatus | linphone_presence_activity_set_description (LinphonePresenceActivity *activity, const char *description) |
Sets the description of a presence activity. More... | |
LinphonePresenceNote * | linphone_presence_note_new (const char *content, const char *lang) |
Creates a presence note. More... | |
const char * | linphone_presence_note_get_content (const LinphonePresenceNote *note) |
Gets the content of a presence note. More... | |
LinphoneStatus | linphone_presence_note_set_content (LinphonePresenceNote *note, const char *content) |
Sets the content of a presence note. More... | |
const char * | linphone_presence_note_get_lang (const LinphonePresenceNote *note) |
Gets the language of a presence note. More... | |
LinphoneStatus | linphone_presence_note_set_lang (LinphonePresenceNote *note, const char *lang) |
Sets the language of a presence note. More... | |
LinphonePresenceModel * | linphone_presence_model_ref (LinphonePresenceModel *model) |
Increase the reference count of the LinphonePresenceModel object. More... | |
LinphonePresenceModel * | linphone_presence_model_unref (LinphonePresenceModel *model) |
Decrease the reference count of the LinphonePresenceModel object and destroy it if it reaches 0. More... | |
void | linphone_presence_model_set_user_data (LinphonePresenceModel *model, void *user_data) |
Sets the user data of a LinphonePresenceModel object. More... | |
void * | linphone_presence_model_get_user_data (const LinphonePresenceModel *model) |
Gets the user data of a LinphonePresenceModel object. More... | |
int | linphone_presence_model_get_capabilities (const LinphonePresenceModel *model) |
Gets the capabilities of a LinphonePresenceModel object. More... | |
bool_t | linphone_presence_model_has_capability (const LinphonePresenceModel *model, const LinphoneFriendCapability capability) |
Returns whether or not the LinphonePresenceModel object has a given capability. More... | |
bool_t | linphone_presence_model_has_capability_with_version (const LinphonePresenceModel *model, const LinphoneFriendCapability capability, float version) |
Returns whether or not the LinphonePresenceModel object has a given capability with a certain version. More... | |
bool_t | linphone_presence_model_has_capability_with_version_or_more (const LinphonePresenceModel *model, const LinphoneFriendCapability capability, float version) |
Returns whether or not the LinphonePresenceModel object has a given capability with a certain version or more. More... | |
float | linphone_presence_model_get_capability_version (const LinphonePresenceModel *model, const LinphoneFriendCapability capability) |
Returns the version of the capability of a LinphonePresenceModel. More... | |
LinphonePresenceService * | linphone_presence_service_ref (LinphonePresenceService *service) |
Increase the reference count of the LinphonePresenceService object. More... | |
LinphonePresenceService * | linphone_presence_service_unref (LinphonePresenceService *service) |
Decrease the reference count of the LinphonePresenceService object and destroy it if it reaches 0. More... | |
void | linphone_presence_service_set_user_data (LinphonePresenceService *service, void *user_data) |
Sets the user data of a LinphonePresenceService object. More... | |
void * | linphone_presence_service_get_user_data (const LinphonePresenceService *service) |
Gets the user data of a LinphonePresenceService object. More... | |
LinphonePresencePerson * | linphone_presence_person_ref (LinphonePresencePerson *person) |
Increase the reference count of the LinphonePresencePerson object. More... | |
LinphonePresencePerson * | linphone_presence_person_unref (LinphonePresencePerson *person) |
Decrease the reference count of the LinphonePresencePerson object and destroy it if it reaches 0. More... | |
void | linphone_presence_person_set_user_data (LinphonePresencePerson *person, void *user_data) |
Sets the user data of a LinphonePresencePerson object. More... | |
void * | linphone_presence_person_get_user_data (const LinphonePresencePerson *person) |
Gets the user data of a LinphonePresencePerson object. More... | |
LinphonePresenceActivity * | linphone_presence_activity_ref (LinphonePresenceActivity *activity) |
Increase the reference count of the LinphonePresenceActivity object. More... | |
LinphonePresenceActivity * | linphone_presence_activity_unref (LinphonePresenceActivity *activity) |
Decrease the reference count of the LinphonePresenceActivity object and destroy it if it reaches 0. More... | |
void | linphone_presence_activity_set_user_data (LinphonePresenceActivity *activity, void *user_data) |
Sets the user data of a LinphonePresenceActivity object. More... | |
void * | linphone_presence_activity_get_user_data (const LinphonePresenceActivity *activity) |
Gets the user data of a LinphonePresenceActivity object. More... | |
LinphonePresenceNote * | linphone_presence_note_ref (LinphonePresenceNote *note) |
Increase the reference count of the LinphonePresenceNote object. More... | |
LinphonePresenceNote * | linphone_presence_note_unref (LinphonePresenceNote *note) |
Decrease the reference count of the LinphonePresenceNote object and destroy it if it reaches 0. More... | |
void | linphone_presence_note_set_user_data (LinphonePresenceNote *note, void *user_data) |
Sets the user data of a LinphonePresenceNote object. More... | |
void * | linphone_presence_note_get_user_data (const LinphonePresenceNote *note) |
Gets the user data of a LinphonePresenceNote object. More... | |
LinphoneFriendPhoneNumber * | linphone_friend_phone_number_new (const char *phone_number, const char *label) |
Creates a new LinphoneFriendPhoneNumber. More... | |
LinphoneFriendPhoneNumber * | linphone_friend_phone_number_clone (const LinphoneFriendPhoneNumber *phone_number) |
Clones a phone number. More... | |
LinphoneFriendPhoneNumber * | linphone_friend_phone_number_ref (LinphoneFriendPhoneNumber *phone_number) |
Takes a reference on a LinphoneFriendPhoneNumber. More... | |
void | linphone_friend_phone_number_unref (LinphoneFriendPhoneNumber *phone_number) |
Releases a LinphoneFriendPhoneNumber. More... | |
void | linphone_friend_phone_number_set_phone_number (LinphoneFriendPhoneNumber *phone_number, const char *number) |
Sets the phone number. More... | |
const char * | linphone_friend_phone_number_get_phone_number (const LinphoneFriendPhoneNumber *phone_number) |
Gets the phone number. More... | |
void | linphone_friend_phone_number_set_label (LinphoneFriendPhoneNumber *phone_number, const char *label) |
Sets the label for this phone number. More... | |
const char * | linphone_friend_phone_number_get_label (const LinphoneFriendPhoneNumber *phone_number) |
Gets the label associated to this phone number. More... | |
typedef struct _LinphoneFriend LinphoneFriend |
This object is used to store a SIP address.
LinphoneFriend is mainly used to implement an adressbook feature, and are used as data for the LinphoneMagicSearch object. If your proxy supports it, you can also use it to subscribe to presence information.
The objects are stored in a LinphoneFriendList which are in turn stored inside the LinphoneCore. They can be stored inside a database if the path to it is configured, otherwise they will be lost after the LinphoneCore is destroyed.
Thanks to the vCard plugin, you can also store more information like phone numbers, organization, etc...
typedef void(* LinphoneFriendCbsPresenceReceivedCb) (LinphoneFriend *linphone_friend) |
Callback used to notify a friend that it has received presence information.
linphone_friend | The LinphoneFriend object for which the status has changed |
typedef struct _LinphoneFriendList LinphoneFriendList |
This object representing a list of LinphoneFriend.
You can use it to store contacts locally or synchronize them through CardDAV protocol.
typedef void(* LinphoneFriendListCbsContactCreatedCb) (LinphoneFriendList *friend_list, LinphoneFriend *linphone_friend) |
Callback used to notify a new contact has been created on the CardDAV server and downloaded locally.
friend_list | The LinphoneFriendList object the new contact is added to |
linphone_friend | The LinphoneFriend object that has been created |
typedef void(* LinphoneFriendListCbsContactDeletedCb) (LinphoneFriendList *friend_list, LinphoneFriend *linphone_friend) |
Callback used to notify a contact has been deleted on the CardDAV server.
friend_list | The LinphoneFriendList object a contact has been removed from |
linphone_friend | The LinphoneFriend object that has been deleted |
typedef void(* LinphoneFriendListCbsContactUpdatedCb) (LinphoneFriendList *friend_list, LinphoneFriend *new_friend, LinphoneFriend *old_friend) |
Callback used to notify a contact has been updated on the CardDAV server.
friend_list | The LinphoneFriendList object in which a contact has been updated |
new_friend | The new LinphoneFriend object corresponding to the updated contact |
old_friend | The old LinphoneFriend object before update |
typedef void(* LinphoneFriendListCbsPresenceReceivedCb) (LinphoneFriendList *friend_list, const bctbx_list_t *friends) |
Callback used to notify a list with all friends that have received presence information.
friend_list | The LinphoneFriendList object for which the status has changed |
friends | A of the relevant friends |
typedef void(* LinphoneFriendListCbsSyncStateChangedCb) (LinphoneFriendList *friend_list, LinphoneFriendListSyncStatus status, const char *message) |
Callback used to notify the status of the synchronization has changed.
friend_list | The LinphoneFriendList object for which the status has changed |
status | The new LinphoneFriendListSyncStatus |
message | An additional information on the status update |
typedef enum _LinphoneSubscribePolicy LinphoneSubscribePolicy |
Enum controlling behavior for incoming subscription request.
Enum describing the capabilities of a LinphoneFriend, populated through presence subscribe/notify process.
Enumerator | |
---|---|
LinphoneFriendCapabilityNone | No capabilities populated. |
LinphoneFriendCapabilityGroupChat | This friend can be invited in a Flexisip backend LinphoneChatRoom. |
LinphoneFriendCapabilityLimeX3dh | This friend can be invited in a Flexisip backend end-to-end encrypted LinphoneChatRoom. |
LinphoneFriendCapabilityEphemeralMessages | This friend is able to delete ephemeral messages once they have expired. |
Enum describing the status of a LinphoneFriendList operation.
Enumerator | |
---|---|
LinphoneFriendListOK | Operation went fine. |
LinphoneFriendListNonExistentFriend | LinphoneFriend wasn't found in the LinphoneFriendList |
LinphoneFriendListInvalidFriend | LinphoneFriend is already present in a LinphoneFriendList |
Enum describing how to merge LinphoneSearchResult from LinphoneMagicSearch.
Enum describing the search categories for Magic Search.
Enum controlling behavior for incoming subscription request.
Use by linphone_friend_set_inc_subscribe_policy()
Enumerator | |
---|---|
LinphoneSPWait | Does not automatically accept an incoming subscription request. This policy implies that a decision has to be taken for each incoming subscription request notified by callback LinphoneCoreVTable.new_subscription_requested |
LinphoneSPDeny | Rejects incoming subscription request. |
LinphoneSPAccept | Automatically accepts a subscription request. |
Activities as defined in section 3.2 of RFC 4480.
Basic status as defined in section 4.1.4 of RFC 3863.
void linphone_core_add_friend_list | ( | LinphoneCore * | core, |
LinphoneFriendList * | list | ||
) |
Add a friend list.
core | LinphoneCore object |
list | LinphoneFriendList object |
bool_t linphone_core_auto_download_icalendars_enabled | ( | LinphoneCore * | core | ) |
Gets if the auto download for incoming icalendars is enabled or not.
core | LinphoneCore object |
bool_t linphone_core_auto_download_voice_recordings_enabled | ( | LinphoneCore * | core | ) |
Gets if the auto download for incoming voice recordings is enabled or not.
core | LinphoneCore object |
bool_t linphone_core_auto_send_ringing_enabled | ( | LinphoneCore * | core | ) |
Gets if the automatic sending of 180 Ringing is enabled or not.
core | LinphoneCore object |
LinphoneFriend* linphone_core_create_friend | ( | LinphoneCore * | core | ) |
Create a default LinphoneFriend.
core | LinphoneCore object |
LinphoneFriendList* linphone_core_create_friend_list | ( | LinphoneCore * | core | ) |
Create a new empty LinphoneFriendList object.
core | LinphoneCore object. |
LinphoneFriend* linphone_core_create_friend_with_address | ( | LinphoneCore * | core, |
const char * | address | ||
) |
Create a LinphoneFriend from the given address.
core | LinphoneCore object |
address | A string containing the address to create the LinphoneFriend from |
LinphonePresenceActivity* linphone_core_create_presence_activity | ( | LinphoneCore * | core, |
LinphonePresenceActivityType | acttype, | ||
const char * | description | ||
) |
Create a LinphonePresenceActivity with the given type and description.
core | LinphoneCore object. |
acttype | The LinphonePresenceActivityType to set for the activity. |
description | An additional description of the activity to set for the activity. Can be NULL if no additional description is to be added. |
LinphonePresenceModel* linphone_core_create_presence_model | ( | LinphoneCore * | core | ) |
Create a default LinphonePresenceModel.
core | LinphoneCore object. |
LinphonePresenceModel* linphone_core_create_presence_model_with_activity | ( | LinphoneCore * | core, |
LinphonePresenceActivityType | acttype, | ||
const char * | description | ||
) |
Create a LinphonePresenceModel with the given activity type and activity description.
core | LinphoneCore object. |
acttype | The LinphonePresenceActivityType to set for the activity of the created model. |
description | An additional description of the activity to set for the activity. Can be NULL if no additional description is to be added. |
LinphonePresenceModel* linphone_core_create_presence_model_with_activity_and_note | ( | LinphoneCore * | core, |
LinphonePresenceActivityType | acttype, | ||
const char * | description, | ||
const char * | note, | ||
const char * | lang | ||
) |
Create a LinphonePresenceModel with the given activity type, activity description, note content and note language.
core | LinphoneCore object. |
acttype | The LinphonePresenceActivityType to set for the activity of the created model. |
description | An additional description of the activity to set for the activity. Can be NULL if no additional description is to be added. |
note | The content of the note to be added to the created model. |
lang | The language of the note to be added to the created model. |
LinphonePresenceNote* linphone_core_create_presence_note | ( | LinphoneCore * | core, |
const char * | content, | ||
const char * | lang | ||
) |
Create a LinphonePresenceNote with the given content and language.
core | LinphoneCore object. |
content | The content of the note to be created. |
lang | The language of the note to be created. |
LinphonePresencePerson* linphone_core_create_presence_person | ( | LinphoneCore * | core, |
const char * | id | ||
) |
Create a LinphonePresencePerson with the given id.
core | LinphoneCore object |
id | The id of the person to be created. |
LinphonePresenceService* linphone_core_create_presence_service | ( | LinphoneCore * | core, |
const char * | id, | ||
LinphonePresenceBasicStatus | basic_status, | ||
const char * | contact | ||
) |
Create a LinphonePresenceService with the given id, basic status and contact.
core | LinphoneCore object. |
id | The id of the service to be created. |
basic_status | The basic status of the service to be created. |
contact | A string containing a contact information corresponding to the service to be created. |
void linphone_core_enable_auto_download_icalendars | ( | LinphoneCore * | core, |
bool_t | auto_download_icalendars | ||
) |
Auto download files attach to a chat message if it's content type matches the one we use for icalendars.
core | LinphoneCore object |
auto_download_icalendars | TRUE to automatically download incoming icalendars, FALSE to disable it. |
void linphone_core_enable_auto_download_voice_recordings | ( | LinphoneCore * | core, |
bool_t | auto_download_voice_recordings | ||
) |
Auto download files attach to a chat message if it's content type matches the one we use for voice recordings.
core | LinphoneCore object |
auto_download_voice_recordings | TRUE to automatically download incoming voice recordings, FALSE to disable it. |
void linphone_core_enable_auto_send_ringing | ( | LinphoneCore * | core, |
bool_t | enable | ||
) |
Enables the automatic sending of 180 Ringing when receiving a call.
core | LinphoneCore object |
enable | TRUE to activate the automatic 180 Ringing, FALSE to disable it. |
void linphone_core_enable_friend_list_subscription | ( | LinphoneCore * | core, |
bool_t | enable | ||
) |
Sets whether or not to start friend lists subscription when in foreground.
core | The LinphoneCore |
enable | whether or not to enable the feature |
void linphone_core_enable_record_aware | ( | LinphoneCore * | core, |
bool_t | enable | ||
) |
Enables the record aware feature that will warn other users when recording.
core | LinphoneCore object |
enable | TRUE to activate the record aware feature, FALSE to disable it. |
void linphone_core_enable_sender_name_hidden_in_forward_message | ( | LinphoneCore * | core, |
bool_t | enable | ||
) |
Enable whether or not to hide sender name in forward message.
core | The LinphoneCore |
enable | whether or not to enable the feature |
const bctbx_list_t* linphone_core_find_contacts_by_char | ( | LinphoneCore * | core, |
const char * | filter, | ||
bool_t | sip_only | ||
) |
Retrieves a list of LinphoneAddress sort and filter.
core | LinphoneCore object |
filter | Chars used for the filter* |
sip_only | Only sip address or not |
LinphoneFriend* linphone_core_find_friend | ( | const LinphoneCore * | core, |
const LinphoneAddress * | address | ||
) |
Search a LinphoneFriend by its address.
core | LinphoneCore object. |
address | The LinphoneAddress to use to search the friend. |
LinphoneFriend* linphone_core_find_friend_by_phone_number | ( | const LinphoneCore * | core, |
const char * | phone_number | ||
) |
Search a LinphoneFriend by its phone number.
core | LinphoneCore object. |
phone_number | The phone number to use to search the friend. |
bctbx_list_t* linphone_core_find_friends | ( | const LinphoneCore * | core, |
const LinphoneAddress * | address | ||
) |
Search all LinphoneFriend matching an address.
core | LinphoneCore object. |
address | The address to use to search the friends. |
bool_t linphone_core_friend_list_subscription_enabled | ( | LinphoneCore * | core | ) |
Returns whether or not friend lists subscription are enabled.
core | The LinphoneCore |
LinphoneConsolidatedPresence linphone_core_get_consolidated_presence | ( | const LinphoneCore * | core | ) |
Get my consolidated presence.
core | LinphoneCore object |
LinphoneFriendList* linphone_core_get_default_friend_list | ( | const LinphoneCore * | core | ) |
Retrieves the first list of LinphoneFriend from the core.
core | LinphoneCore object |
LinphoneFriend* linphone_core_get_friend_by_ref_key | ( | const LinphoneCore * | core, |
const char * | key | ||
) |
Search a LinphoneFriend by its reference key.
core | LinphoneCore object. |
key | The reference key to use to search the friend. |
LinphoneFriendList* linphone_core_get_friend_list_by_name | ( | const LinphoneCore * | core, |
const char * | name | ||
) |
Retrieves the list of LinphoneFriend from the core that has the given display name.
core | LinphoneCore object |
name | the name of the list |
const bctbx_list_t* linphone_core_get_friends_lists | ( | const LinphoneCore * | core | ) |
Retrieves the list of LinphoneFriendList from the core.
core | LinphoneCore object |
int linphone_core_get_max_size_for_auto_download_incoming_files | ( | LinphoneCore * | core | ) |
Gets the size under which incoming files in chat messages will be downloaded automatically.
core | LinphoneCore object |
LinphonePresenceModel* linphone_core_get_presence_model | ( | const LinphoneCore * | core | ) |
Get my presence model.
core | LinphoneCore object |
bool_t linphone_core_is_auto_download_icalendars_enabled | ( | LinphoneCore * | core | ) |
Gets if the auto download for incoming icalendars is enabled or not.
core | LinphoneCore object |
bool_t linphone_core_is_auto_download_voice_recordings_enabled | ( | LinphoneCore * | core | ) |
Gets if the auto download for incoming voice recordings is enabled or not.
core | LinphoneCore object |
bool_t linphone_core_is_friend_list_subscription_enabled | ( | LinphoneCore * | core | ) |
Returns whether or not friend lists subscription are enabled.
core | The LinphoneCore |
bool_t linphone_core_is_record_aware_enabled | ( | LinphoneCore * | core | ) |
Gets if the record aware feature is enabled or not.
core | LinphoneCore object |
bool_t linphone_core_is_sender_name_hidden_in_forward_message | ( | LinphoneCore * | core | ) |
Returns whether or not sender name is hidden in forward message.
core | The LinphoneCore |
void linphone_core_notify_all_friends | ( | LinphoneCore * | core, |
LinphonePresenceModel * | presence | ||
) |
Notify all friends that have subscribed.
core | LinphoneCore object |
presence | LinphonePresenceModel to notify |
void linphone_core_notify_notify_presence_received | ( | LinphoneCore * | core, |
LinphoneFriend * | linphone_friend | ||
) |
Notifies the upper layer that a presence status has been received by calling the appropriate callback if one has been set.
This method is for advanced usage, where customization of the liblinphone's internal behavior is required.
core | the LinphoneCore object. |
linphone_friend | the LinphoneFriend whose presence information has been received. |
void linphone_core_notify_notify_presence_received_for_uri_or_tel | ( | LinphoneCore * | core, |
LinphoneFriend * | linphone_friend, | ||
const char * | uri_or_tel, | ||
const LinphonePresenceModel * | presence_model | ||
) |
Notifies the upper layer that a presence model change has been received for the uri or telephone number given as a parameter, by calling the appropriate callback if one has been set.
This method is for advanced usage, where customization of the liblinphone's internal behavior is required.
core | the LinphoneCore object. |
linphone_friend | the LinphoneFriend whose presence information has been received. |
uri_or_tel | telephone number or sip uri |
presence_model | the LinphonePresenceModel that has been modified |
bool_t linphone_core_record_aware_enabled | ( | LinphoneCore * | core | ) |
Gets if the record aware feature is enabled or not.
core | LinphoneCore object |
void linphone_core_reject_subscriber | ( | LinphoneCore * | core, |
LinphoneFriend * | linphone_friend | ||
) |
Black list a friend.
same as linphone_friend_set_inc_subscribe_policy() with LinphoneSPDeny policy;
core | LinphoneCore object |
linphone_friend | LinphoneFriend to reject |
void linphone_core_remove_friend_list | ( | LinphoneCore * | core, |
LinphoneFriendList * | list | ||
) |
Removes a friend list.
core | LinphoneCore object |
list | LinphoneFriendList object |
void linphone_core_set_auto_download_icalendars_enabled | ( | LinphoneCore * | core, |
bool_t | auto_download_icalendars | ||
) |
Auto download files attach to a chat message if it's content type matches the one we use for icalendars.
core | LinphoneCore object |
auto_download_icalendars | TRUE to automatically download incoming icalendars, FALSE to disable it. |
void linphone_core_set_auto_download_voice_recordings_enabled | ( | LinphoneCore * | core, |
bool_t | auto_download_voice_recordings | ||
) |
Auto download files attach to a chat message if it's content type matches the one we use for voice recordings.
core | LinphoneCore object |
auto_download_voice_recordings | TRUE to automatically download incoming voice recordings, FALSE to disable it. |
void linphone_core_set_consolidated_presence | ( | LinphoneCore * | core, |
LinphoneConsolidatedPresence | presence | ||
) |
Set my consolidated presence.
core | LinphoneCore object |
presence | LinphoneConsolidatedPresence value |
void linphone_core_set_max_size_for_auto_download_incoming_files | ( | LinphoneCore * | core, |
int | size | ||
) |
Sets the size under which incoming files in chat messages will be downloaded automatically.
core | LinphoneCore object |
size | The size in bytes, -1 to disable the autodownload feature, 0 to download them all no matter the size |
void linphone_core_set_presence_model | ( | LinphoneCore * | core, |
LinphonePresenceModel * | presence | ||
) |
Set my presence model.
core | LinphoneCore object |
presence | LinphonePresenceModel |
void linphone_core_set_record_aware_enabled | ( | LinphoneCore * | core, |
bool_t | enable | ||
) |
Enables the record aware feature that will warn other users when recording.
core | LinphoneCore object |
enable | TRUE to activate the record aware feature, FALSE to disable it. |
void linphone_friend_add_address | ( | LinphoneFriend * | linphone_friend, |
const LinphoneAddress * | address | ||
) |
Adds an address in this friend.
linphone_friend | LinphoneFriend object |
address | LinphoneAddress object |
void linphone_friend_add_callbacks | ( | LinphoneFriend * | linphone_friend, |
LinphoneFriendCbs * | cbs | ||
) |
Adds the LinphoneFriendCbs object associated with a LinphoneFriend.
linphone_friend | LinphoneFriend object |
cbs | The current LinphoneFriendCbs object to be added to the LinphoneFriend. |
void linphone_friend_add_phone_number | ( | LinphoneFriend * | linphone_friend, |
const char * | phone_number | ||
) |
Adds a phone number in this friend.
linphone_friend | LinphoneFriend object |
phone_number | number to add |
void linphone_friend_add_phone_number_with_label | ( | LinphoneFriend * | linphone_friend, |
LinphoneFriendPhoneNumber * | phone_number | ||
) |
Adds a LinphoneFriendPhoneNumber to this friend.
linphone_friend | LinphoneFriend object |
phone_number | the LinphoneFriendPhoneNumber to add |
LinphoneFriendCbsPresenceReceivedCb linphone_friend_cbs_get_presence_received | ( | const LinphoneFriendCbs * | cbs | ) |
Get the presence received callback.
cbs | LinphoneFriendCbs object. |
void* linphone_friend_cbs_get_user_data | ( | const LinphoneFriendCbs * | cbs | ) |
Retrieve the user pointer associated with a LinphoneFriendCbs object.
cbs | LinphoneFriendCbs object. |
LinphoneFriendCbs* linphone_friend_cbs_ref | ( | LinphoneFriendCbs * | cbs | ) |
Acquire a reference to a LinphoneFriendCbs object.
cbs | LinphoneFriendCbs object. |
void linphone_friend_cbs_set_presence_received | ( | LinphoneFriendCbs * | cbs, |
LinphoneFriendCbsPresenceReceivedCb | cb | ||
) |
Set the presence received callback.
cbs | LinphoneFriendCbs object. |
cb | The presence received callback to be used. |
void linphone_friend_cbs_set_user_data | ( | LinphoneFriendCbs * | cbs, |
void * | user_data | ||
) |
Assign a user pointer to a LinphoneFriendCbs object.
cbs | LinphoneFriendCbs object. |
user_data | The user pointer to associate with the LinphoneFriendCbs object. |
void linphone_friend_cbs_unref | ( | LinphoneFriendCbs * | cbs | ) |
Release a reference to a LinphoneFriendCbs object.
cbs | LinphoneFriendCbs object. |
bool_t linphone_friend_create_vcard | ( | LinphoneFriend * | linphone_friend, |
const char * | 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.
linphone_friend | LinphoneFriend object |
name | The full name of the friend or NULL to use the one from the friend's SIP URI |
MS2_DEPRECATED void linphone_friend_destroy | ( | LinphoneFriend * | linphone_friend | ) |
Destroy a LinphoneFriend.
linphone_friend | LinphoneFriend object |
void linphone_friend_done | ( | LinphoneFriend * | linphone_friend | ) |
Commits modification made to the friend configuration.
linphone_friend | LinphoneFriend object |
void linphone_friend_edit | ( | LinphoneFriend * | linphone_friend | ) |
Starts editing a friend configuration.
Because friend configuration must be consistent, applications MUST call linphone_friend_edit() before doing any attempts to modify friend configuration (such as linphone_friend_set_address() or linphone_friend_set_inc_subscribe_policy()). Once the modifications are done, then the application must call linphone_friend_done() to commit the changes.
linphone_friend | LinphoneFriend object |
LinphoneStatus linphone_friend_enable_subscribes | ( | LinphoneFriend * | fr, |
bool_t | enable | ||
) |
Configure LinphoneFriend to subscribe to presence information.
linphone_friend | LinphoneFriend object |
enable | if TRUE this friend will receive subscription message |
const LinphoneAddress* linphone_friend_get_address | ( | const LinphoneFriend * | linphone_friend | ) |
Get address of this friend.
linphone_friend | LinphoneFriend object |
const bctbx_list_t* linphone_friend_get_addresses | ( | const LinphoneFriend * | linphone_friend | ) |
Returns a list of LinphoneAddress for this friend.
linphone_friend | LinphoneFriend object |
int linphone_friend_get_capabilities | ( | const LinphoneFriend * | linphone_friend | ) |
Returns the capabilities associated to this friend.
linphone_friend | LinphoneFriend object |
float linphone_friend_get_capability_version | ( | const LinphoneFriend * | linphone_friend, |
const LinphoneFriendCapability | capability | ||
) |
Returns the version of a friend's capbility.
linphone_friend | LinphoneFriend object |
capability | LinphoneFriendCapability object |
LinphoneConsolidatedPresence linphone_friend_get_consolidated_presence | ( | const LinphoneFriend * | linphone_friend | ) |
Get the consolidated presence of a friend.
It will return the "most open" presence found if more than one presence model are found.
linphone_friend | LinphoneFriend object |
LinphoneCore* linphone_friend_get_core | ( | const LinphoneFriend * | linphone_friend | ) |
Returns the LinphoneCore object managing this friend, if any.
linphone_friend | LinphoneFriend object |
LinphoneFriendCbs* linphone_friend_get_current_callbacks | ( | const LinphoneFriend * | linphone_friend | ) |
Get the current LinphoneFriendCbs object associated with a LinphoneFriend.
linphone_friend | LinphoneFriend object |
LinphoneSubscribePolicy linphone_friend_get_inc_subscribe_policy | ( | const LinphoneFriend * | linphone_friend | ) |
get current subscription policy for this LinphoneFriend
linphone_friend | LinphoneFriend object |
const char* linphone_friend_get_job_title | ( | const LinphoneFriend * | linphone_friend | ) |
Gets the contact's job title from it's vCard.
It's a shortcut to linphone_friend_get_vcard() and linphone_vcard_get_job_title().
linphone_friend | the LinphoneFriend object. |
const char* linphone_friend_get_name | ( | const LinphoneFriend * | linphone_friend | ) |
Get the display name for this friend.
linphone_friend | LinphoneFriend object |
const char* linphone_friend_get_native_uri | ( | const LinphoneFriend * | linphone_friend | ) |
Gets the contact's native URI.
linphone_friend | the LinphoneFriend object. |
const char* linphone_friend_get_organization | ( | const LinphoneFriend * | linphone_friend | ) |
Gets the contact's organization from it's vCard.
It's a shortcut to linphone_friend_get_vcard() and linphone_vcard_get_organization().
linphone_friend | the LinphoneFriend object. |
bctbx_list_t* linphone_friend_get_phone_numbers | ( | const LinphoneFriend * | linphone_friend | ) |
Returns a list of phone numbers for this friend.
linphone_friend | LinphoneFriend object |
bctbx_list_t* linphone_friend_get_phone_numbers_with_label | ( | const LinphoneFriend * | linphone_friend | ) |
Returns a list of LinphoneFriendPhoneNumber for this friend.
linphone_friend | LinphoneFriend object |
const char* linphone_friend_get_photo | ( | const LinphoneFriend * | linphone_friend | ) |
Gets the contact's picture URI.
linphone_friend | the LinphoneFriend object. |
const LinphonePresenceModel* linphone_friend_get_presence_model | ( | const LinphoneFriend * | linphone_friend | ) |
Get the presence model of a friend.
If a friend has more than one SIP address and phone number, this method will return the most recent presence model using linphone_presence_model_get_timestamp().
linphone_friend | A LinphoneFriend object |
const LinphonePresenceModel* linphone_friend_get_presence_model_for_uri_or_tel | ( | const LinphoneFriend * | linphone_friend, |
const char * | uri_or_tel | ||
) |
Get the presence model for a specific SIP URI or phone number of a friend.
linphone_friend | A LinphoneFriend object |
uri_or_tel | The SIP URI or phone number for which to get the presence model |
const char* linphone_friend_get_ref_key | ( | const LinphoneFriend * | linphone_friend | ) |
Get the reference key of a friend.
linphone_friend | LinphoneFriend object. |
bool_t linphone_friend_get_starred | ( | const LinphoneFriend * | linphone_friend | ) |
Gets if the friend is to be considered as important for the user.
linphone_friend | the LinphoneFriend object. |
MS2_DEPRECATED LinphoneOnlineStatus linphone_friend_get_status | ( | const LinphoneFriend * | linphone_friend | ) |
Get the status of a friend.
lf | A LinphoneFriend object |
LinphoneSubscriptionState linphone_friend_get_subscription_state | ( | const LinphoneFriend * | linphone_friend | ) |
Get subscription state of a friend.
linphone_friend | A LinphoneFriend object |
void* linphone_friend_get_user_data | ( | const LinphoneFriend * | linphone_friend | ) |
Retrieve user data associated with friend.
linphone_friend | A LinphoneFriend object |
LinphoneVcard* linphone_friend_get_vcard | ( | const LinphoneFriend * | linphone_friend | ) |
Returns the vCard object associated to this friend, if any.
linphone_friend | LinphoneFriend object |
bool_t linphone_friend_has_capability | ( | const LinphoneFriend * | linphone_friend, |
const LinphoneFriendCapability | capability | ||
) |
Returns whether or not a friend has a capbility.
linphone_friend | LinphoneFriend object |
capability | LinphoneFriendCapability object |
bool_t linphone_friend_has_capability_with_version | ( | const LinphoneFriend * | linphone_friend, |
const LinphoneFriendCapability | capability, | ||
float | version | ||
) |
Returns whether or not a friend has a capbility with a given version.
linphone_friend | LinphoneFriend object |
capability | LinphoneFriendCapability object |
version | the version to test |
bool_t linphone_friend_has_capability_with_version_or_more | ( | const LinphoneFriend * | linphone_friend, |
const LinphoneFriendCapability | capability, | ||
float | version | ||
) |
Returns whether or not a friend has a capbility with a given version or more.
linphone_friend | LinphoneFriend object |
capability | LinphoneFriendCapability object |
version | the version to test |
bool_t linphone_friend_has_phone_number | ( | const LinphoneFriend * | linphone_friend, |
const char * | phone_number | ||
) |
Returns whether a friend contains the given phone number.
linphone_friend | LinphoneFriend object |
phone_number | the phone number to search for |
bool_t linphone_friend_in_list | ( | const LinphoneFriend * | linphone_friend | ) |
Check that the given friend is in a friend list.
linphone_friend | LinphoneFriend object. |
bool_t linphone_friend_is_presence_received | ( | const LinphoneFriend * | linphone_friend | ) |
Tells whether we already received presence information for a friend.
linphone_friend | A LinphoneFriend object |
void linphone_friend_list_add_callbacks | ( | LinphoneFriendList * | friend_list, |
LinphoneFriendListCbs * | cbs | ||
) |
Adds the LinphoneFriendListCbs object associated with a LinphoneFriendList.
friend_list | LinphoneFriendList object |
cbs | The current LinphoneFriendListCbs object to be added to the LinphoneFriendList. |
LinphoneFriendListStatus linphone_friend_list_add_friend | ( | LinphoneFriendList * | friend_list, |
LinphoneFriend * | linphone_friend | ||
) |
Add a friend to a friend list.
If or when a remote CardDAV server will be attached to the list, the friend will be sent to the server.
friend_list | LinphoneFriendList object. |
linphone_friend | LinphoneFriend object to add to the friend list. |
LinphoneFriendListStatus linphone_friend_list_add_local_friend | ( | LinphoneFriendList * | friend_list, |
LinphoneFriend * | linphone_friend | ||
) |
Add a friend to a friend list.
The friend will never be sent to a remote CardDAV server. Warning! #LinphoneFriends added this way will be removed on the next synchronization, and the callback contact_deleted will be called.
friend_list | LinphoneFriendList object. |
linphone_friend | LinphoneFriend object to add to the friend list. |
LinphoneFriendListCbsContactCreatedCb linphone_friend_list_cbs_get_contact_created | ( | const LinphoneFriendListCbs * | cbs | ) |
Get the contact created callback.
cbs | LinphoneFriendListCbs object. |
LinphoneFriendListCbsContactDeletedCb linphone_friend_list_cbs_get_contact_deleted | ( | const LinphoneFriendListCbs * | cbs | ) |
Get the contact deleted callback.
cbs | LinphoneFriendListCbs object. |
LinphoneFriendListCbsContactUpdatedCb linphone_friend_list_cbs_get_contact_updated | ( | const LinphoneFriendListCbs * | cbs | ) |
Get the contact updated callback.
cbs | LinphoneFriendListCbs object. |
LinphoneFriendListCbsPresenceReceivedCb linphone_friend_list_cbs_get_presence_received | ( | const LinphoneFriendListCbs * | cbs | ) |
Get the presence received callback.
cbs | LinphoneFriendListCbs object. |
LinphoneFriendListCbsSyncStateChangedCb linphone_friend_list_cbs_get_sync_status_changed | ( | const LinphoneFriendListCbs * | cbs | ) |
Get the sync status changed callback.
cbs | LinphoneFriendListCbs object. |
void* linphone_friend_list_cbs_get_user_data | ( | const LinphoneFriendListCbs * | cbs | ) |
Retrieve the user pointer associated with a LinphoneFriendListCbs object.
cbs | LinphoneFriendListCbs object. |
LinphoneFriendListCbs* linphone_friend_list_cbs_ref | ( | LinphoneFriendListCbs * | cbs | ) |
Acquire a reference to a LinphoneFriendListCbs object.
cbs | LinphoneFriendListCbs object. |
void linphone_friend_list_cbs_set_contact_created | ( | LinphoneFriendListCbs * | cbs, |
LinphoneFriendListCbsContactCreatedCb | cb | ||
) |
Set the contact created callback.
cbs | LinphoneFriendListCbs object. |
cb | The contact created to be used. |
void linphone_friend_list_cbs_set_contact_deleted | ( | LinphoneFriendListCbs * | cbs, |
LinphoneFriendListCbsContactDeletedCb | cb | ||
) |
Set the contact deleted callback.
cbs | LinphoneFriendListCbs object. |
cb | The contact deleted to be used. |
void linphone_friend_list_cbs_set_contact_updated | ( | LinphoneFriendListCbs * | cbs, |
LinphoneFriendListCbsContactUpdatedCb | cb | ||
) |
Set the contact updated callback.
cbs | LinphoneFriendListCbs object. |
cb | The contact updated to be used. |
void linphone_friend_list_cbs_set_presence_received | ( | LinphoneFriendListCbs * | cbs, |
LinphoneFriendListCbsPresenceReceivedCb | cb | ||
) |
Set the presence received callback.
cbs | LinphoneFriendListCbs object. |
cb | The presence received callback to be used. |
void linphone_friend_list_cbs_set_sync_status_changed | ( | LinphoneFriendListCbs * | cbs, |
LinphoneFriendListCbsSyncStateChangedCb | cb | ||
) |
Set the contact updated callback.
cbs | LinphoneFriendListCbs object. |
cb | The sync status changed to be used. |
void linphone_friend_list_cbs_set_user_data | ( | LinphoneFriendListCbs * | cbs, |
void * | user_data | ||
) |
Assign a user pointer to a LinphoneFriendListCbs object.
cbs | LinphoneFriendListCbs object. |
user_data | The user pointer to associate with the LinphoneFriendListCbs object. |
void linphone_friend_list_cbs_unref | ( | LinphoneFriendListCbs * | cbs | ) |
Release a reference to a LinphoneFriendListCbs object.
cbs | LinphoneFriendListCbs object. |
bool_t linphone_friend_list_database_storage_enabled | ( | const LinphoneFriendList * | list | ) |
Gets whether this friend list and it's friends will be stored in DB or not.
list | the LinphoneFriendList object |
void linphone_friend_list_enable_database_storage | ( | LinphoneFriendList * | list, |
bool_t | enable | ||
) |
Sets whether this friend list and it's friends will be stored in DB or not.
list | the LinphoneFriendList object |
enable | TRUE to enable this friend list storage in DB, FALSE to disable it. |
void linphone_friend_list_enable_subscriptions | ( | LinphoneFriendList * | friend_list, |
bool_t | enabled | ||
) |
Enable subscription to NOTIFYs.
friend_list | the LinphoneFriendList object |
enabled | should subscription be enabled or not |
void linphone_friend_list_export_friends_as_vcard4_file | ( | LinphoneFriendList * | friend_list, |
const char * | vcard_file | ||
) |
Creates and export LinphoneFriend objects from LinphoneFriendList to a file using vCard 4 format.
friend_list | the LinphoneFriendList object |
vcard_file | the path to a file that will contain the vCards |
LinphoneFriend* linphone_friend_list_find_friend_by_address | ( | const LinphoneFriendList * | friend_list, |
const LinphoneAddress * | address | ||
) |
Find a friend in the friend list using a LinphoneAddress.
friend_list | LinphoneFriendList object. |
address | LinphoneAddress object of the friend we want to search for. |
LinphoneFriend* linphone_friend_list_find_friend_by_phone_number | ( | const LinphoneFriendList * | friend_list, |
const char * | phone_number | ||
) |
Find a friend in the friend list using a phone number.
friend_list | LinphoneFriendList object. |
phone_number | a string of the phone number for which we want to find a friend. |
LinphoneFriend* linphone_friend_list_find_friend_by_ref_key | ( | const LinphoneFriendList * | friend_list, |
const char * | ref_key | ||
) |
Find a friend in the friend list using a ref key.
friend_list | LinphoneFriendList object. |
ref_key | The ref key string of the friend we want to search for. |
LinphoneFriend* linphone_friend_list_find_friend_by_uri | ( | const LinphoneFriendList * | friend_list, |
const char * | uri | ||
) |
Find a friend in the friend list using an URI string.
friend_list | LinphoneFriendList object. |
uri | A string containing the URI of the friend we want to search for. |
bctbx_list_t* linphone_friend_list_find_friends_by_address | ( | const LinphoneFriendList * | friend_list, |
const LinphoneAddress * | address | ||
) |
Find all friends in the friend list using a LinphoneAddress.
friend_list | LinphoneFriendList object. |
address | LinphoneAddress object of the friends we want to search for. |
bctbx_list_t* linphone_friend_list_find_friends_by_uri | ( | const LinphoneFriendList * | friend_list, |
const char * | uri | ||
) |
Find all friends in the friend list using an URI string.
friend_list | LinphoneFriendList object. |
uri | A string containing the URI of the friends we want to search for. |
MS2_DEPRECATED LinphoneFriendListCbs* linphone_friend_list_get_callbacks | ( | const LinphoneFriendList * | friend_list | ) |
Get the LinphoneFriendListCbs object associated with a LinphoneFriendList.
friend_list | LinphoneFriendList object |
LinphoneCore* linphone_friend_list_get_core | ( | const LinphoneFriendList * | friend_list | ) |
Returns the LinphoneCore object attached to this LinphoneFriendList.
friend_list | LinphoneFriendList object. |
LinphoneFriendListCbs* linphone_friend_list_get_current_callbacks | ( | const LinphoneFriendList * | friend_list | ) |
Get the current LinphoneFriendListCbs object associated with a LinphoneFriendList.
friend_list | LinphoneFriendList object |
const char* linphone_friend_list_get_display_name | ( | const LinphoneFriendList * | friend_list | ) |
Get the display name of the friend list.
friend_list | LinphoneFriendList object. |
const bctbx_list_t* linphone_friend_list_get_friends | ( | const LinphoneFriendList * | friend_list | ) |
Retrieves the list of LinphoneFriend from this LinphoneFriendList.
friend_list | LinphoneFriendList object |
LinphoneAddress* linphone_friend_list_get_rls_address | ( | const LinphoneFriendList * | friend_list | ) |
Get the RLS (Resource List Server) URI associated with the friend list to subscribe to these friends presence.
friend_list | LinphoneFriendList object. |
const char* linphone_friend_list_get_rls_uri | ( | const LinphoneFriendList * | friend_list | ) |
Get the RLS (Resource List Server) URI associated with the friend list to subscribe to these friends presence.
friend_list | LinphoneFriendList object. |
LinphoneFriendListType linphone_friend_list_get_type | ( | LinphoneFriendList * | list | ) |
Get the LinphoneFriendListType of a friend list.
friend_list | LinphoneFriendList object. |
const char* linphone_friend_list_get_uri | ( | const LinphoneFriendList * | friend_list | ) |
Get the URI associated with the friend list.
friend_list | LinphoneFriendList object. |
void* linphone_friend_list_get_user_data | ( | const LinphoneFriendList * | friend_list | ) |
Retrieve the user pointer associated with the friend list.
friend_list | LinphoneFriendList object. |
int linphone_friend_list_import_friends_from_vcard4_buffer | ( | LinphoneFriendList * | friend_list, |
const char * | vcard_buffer | ||
) |
Creates and adds LinphoneFriend objects to LinphoneFriendList from a buffer that contains the vCard(s) to parse.
friend_list | the LinphoneFriendList object |
vcard_buffer | the buffer that contains the vCard(s) to parse |
int linphone_friend_list_import_friends_from_vcard4_file | ( | LinphoneFriendList * | friend_list, |
const char * | vcard_file | ||
) |
Creates and adds LinphoneFriend objects to LinphoneFriendList from a file that contains the vCard(s) to parse.
friend_list | the LinphoneFriendList object |
vcard_file | the path to a file that contains the vCard(s) to parse |
bool_t linphone_friend_list_is_subscription_bodyless | ( | const LinphoneFriendList * | friend_list | ) |
Get wheter the subscription of the friend list is bodyless or not.
friend_list | LinphoneFriendList object. |
void linphone_friend_list_notify_presence | ( | LinphoneFriendList * | friend_list, |
LinphonePresenceModel * | presence | ||
) |
Notify our presence to all the friends in the friend list that have subscribed to our presence directly (not using a RLS).
friend_list | LinphoneFriendList object. |
presence | LinphonePresenceModel object. |
LinphoneFriendList* linphone_friend_list_ref | ( | LinphoneFriendList * | friend_list | ) |
Acquire a reference to the friend list.
friend_list | LinphoneFriendList object. |
void linphone_friend_list_remove_callbacks | ( | LinphoneFriendList * | friend_list, |
LinphoneFriendListCbs * | cbs | ||
) |
Removes the LinphoneFriendListCbs object associated with a LinphoneFriendList.
friend_list | LinphoneFriendList object |
cbs | The current LinphoneFriendListCbs object to be remove from the LinphoneFriendList. |
LinphoneFriendListStatus linphone_friend_list_remove_friend | ( | LinphoneFriendList * | friend_list, |
LinphoneFriend * | linphone_friend | ||
) |
Remove a friend from a friend list.
friend_list | LinphoneFriendList object. |
linphone_friend | LinphoneFriend object to remove from the friend list. |
void linphone_friend_list_set_display_name | ( | LinphoneFriendList * | friend_list, |
const char * | display_name | ||
) |
Set the display name of the friend list.
friend_list | LinphoneFriendList object. |
display_name | The new display name of the friend list. |
void linphone_friend_list_set_rls_address | ( | LinphoneFriendList * | friend_list, |
const LinphoneAddress * | rls_addr | ||
) |
Set the RLS (Resource List Server) URI associated with the friend list to subscribe to these friends presence.
friend_list | LinphoneFriendList object. |
rls_addr | The RLS URI to associate with the friend list. |
void linphone_friend_list_set_rls_uri | ( | LinphoneFriendList * | friend_list, |
const char * | rls_uri | ||
) |
Set the RLS (Resource List Server) URI associated with the friend list to subscribe to these friends presence.
friend_list | LinphoneFriendList object. |
rls_uri | The RLS URI to associate with the friend list. |
void linphone_friend_list_set_subscription_bodyless | ( | LinphoneFriendList * | friend_list, |
bool_t | bodyless | ||
) |
Set wheter the subscription of the friend list is bodyless or not.
friend_list | LinphoneFriendList object. |
bodyless | boolean telling if the subscription of the friend list is bodyless or not. |
void linphone_friend_list_set_type | ( | LinphoneFriendList * | friend_list, |
LinphoneFriendListType | type | ||
) |
Assign a friend list type to the friend list.
friend_list | LinphoneFriendList object. |
type | LinphoneFriendListType to assign |
void linphone_friend_list_set_uri | ( | LinphoneFriendList * | friend_list, |
const char * | uri | ||
) |
Set the URI associated with the friend list.
friend_list | LinphoneFriendList object. |
uri | The URI to associate with the friend list. |
void linphone_friend_list_set_user_data | ( | LinphoneFriendList * | friend_list, |
void * | user_data | ||
) |
Assign a user pointer to the friend list.
friend_list | LinphoneFriendList object. |
user_data | The user pointer to associate with the friend list. |
bool_t linphone_friend_list_subscriptions_enabled | ( | LinphoneFriendList * | friend_list | ) |
Gets whether subscription to NOTIFYs are enabled or not.
friend_list | the LinphoneFriendList object |
void linphone_friend_list_synchronize_friends_from_server | ( | LinphoneFriendList * | friend_list | ) |
Starts a CardDAV synchronization using value set using linphone_friend_list_set_uri.
friend_list | LinphoneFriendList object. |
void linphone_friend_list_unref | ( | LinphoneFriendList * | friend_list | ) |
Release reference to the friend list.
friend_list | LinphoneFriendList object. |
void linphone_friend_list_update_dirty_friends | ( | LinphoneFriendList * | friend_list | ) |
Goes through all the LinphoneFriend that are dirty and does a CardDAV PUT to update the server.
friend_list | LinphoneFriendList object. |
void linphone_friend_list_update_revision | ( | LinphoneFriendList * | friend_list, |
int | revision | ||
) |
Sets the revision from the last synchronization.
friend_list | LinphoneFriendList object. |
revision | The revision |
void linphone_friend_list_update_subscriptions | ( | LinphoneFriendList * | friend_list | ) |
Update presence subscriptions for the entire list.
Calling this function is necessary when list subscriptions are enabled, ie when a RLS presence server is used.
friend_list | the LinphoneFriendList |
MS2_DEPRECATED LinphoneFriend* linphone_friend_new | ( | void | ) |
Contructor.
LinphoneFriend* linphone_friend_new_from_vcard | ( | LinphoneVcard * | vcard | ) |
Contructor same as linphone_friend_new() + linphone_friend_set_address()
vcard | a LinphoneVcard object |
MS2_DEPRECATED LinphoneFriend* linphone_friend_new_with_address | ( | const char * | addr | ) |
Contructor same as linphone_friend_new() + linphone_friend_set_address()
addr | a buddy address, must be a sip uri like sip:joe@s ip.l inpho ne.o rg |
LinphoneFriendPhoneNumber* linphone_friend_phone_number_clone | ( | const LinphoneFriendPhoneNumber * | phone_number | ) |
Clones a phone number.
phone_number | The LinphoneFriendPhoneNumber object to be cloned. |
const char* linphone_friend_phone_number_get_label | ( | const LinphoneFriendPhoneNumber * | phone_number | ) |
Gets the label associated to this phone number.
phone_number | The LinphoneFriendPhoneNumber object. |
const char* linphone_friend_phone_number_get_phone_number | ( | const LinphoneFriendPhoneNumber * | phone_number | ) |
Gets the phone number.
phone_number | The LinphoneFriendPhoneNumber object. |
LinphoneFriendPhoneNumber* linphone_friend_phone_number_new | ( | const char * | phone_number, |
const char * | label | ||
) |
Creates a new LinphoneFriendPhoneNumber.
phone_number | The phone number. |
label | the type of phone number, for example "home", "cell", etc. Use NULL or empty for no label. |
LinphoneFriendPhoneNumber* linphone_friend_phone_number_ref | ( | LinphoneFriendPhoneNumber * | phone_number | ) |
Takes a reference on a LinphoneFriendPhoneNumber.
phone_number | The LinphoneFriendPhoneNumber object. |
void linphone_friend_phone_number_set_label | ( | LinphoneFriendPhoneNumber * | phone_number, |
const char * | label | ||
) |
Sets the label for this phone number.
phone_number | The LinphoneFriendPhoneNumber object. |
label | the label to set. |
void linphone_friend_phone_number_set_phone_number | ( | LinphoneFriendPhoneNumber * | phone_number, |
const char * | number | ||
) |
Sets the phone number.
phone_number | The LinphoneFriendPhoneNumber object. |
number | the phone number to set. |
void linphone_friend_phone_number_unref | ( | LinphoneFriendPhoneNumber * | phone_number | ) |
Releases a LinphoneFriendPhoneNumber.
phone_number | The LinphoneFriendPhoneNumber object. |
LinphoneFriend* linphone_friend_ref | ( | LinphoneFriend * | linphone_friend | ) |
Acquire a reference to the linphone friend.
linphone_friend | LinphoneFriend object |
void linphone_friend_remove | ( | LinphoneFriend * | linphone_friend | ) |
Removes a friend from it's friend list and from the rc if exists.
linphone_friend | LinphoneFriend object to delete |
void linphone_friend_remove_address | ( | LinphoneFriend * | linphone_friend, |
const LinphoneAddress * | address | ||
) |
Removes an address in this friend.
linphone_friend | LinphoneFriend object |
address | LinphoneAddress object |
void linphone_friend_remove_callbacks | ( | LinphoneFriend * | linphone_friend, |
LinphoneFriendCbs * | cbs | ||
) |
Removes the LinphoneFriendCbs object associated with a LinphoneFriend.
linphone_friend | LinphoneFriend object |
cbs | The current LinphoneFriendCbs object to be remove from the LinphoneFriend. |
void linphone_friend_remove_phone_number | ( | LinphoneFriend * | linphone_friend, |
const char * | phone_number | ||
) |
Removes a phone number in this friend.
linphone_friend | LinphoneFriend object |
phone_number | number to remove |
void linphone_friend_remove_phone_number_with_label | ( | LinphoneFriend * | linphone_friend, |
const LinphoneFriendPhoneNumber * | phone_number | ||
) |
Removes a LinphoneFriendPhoneNumber from this friend.
linphone_friend | LinphoneFriend object |
phone_number | the LinphoneFriendPhoneNumber to remove |
void linphone_friend_save | ( | LinphoneFriend * | linphone_friend, |
LinphoneCore * | core | ||
) |
Saves a friend either in database if configured, otherwise in linphonerc.
linphone_friend | the linphone friend to save |
core | the linphone core |
LinphoneStatus linphone_friend_set_address | ( | LinphoneFriend * | fr, |
const LinphoneAddress * | address | ||
) |
Set LinphoneAddress for this friend.
linphone_friend | LinphoneFriend object |
address | the LinphoneAddress to set return 0 if successful, -1 otherwise |
LinphoneStatus linphone_friend_set_inc_subscribe_policy | ( | LinphoneFriend * | fr, |
LinphoneSubscribePolicy | policy | ||
) |
Configure incoming subscription policy for this friend.
linphone_friend | LinphoneFriend object |
policy | LinphoneSubscribePolicy policy to apply. |
void linphone_friend_set_job_title | ( | LinphoneFriend * | linphone_friend, |
const char * | job_title | ||
) |
Sets the contact's job title.
It's a shortcut to linphone_friend_get_vcard() and linphone_vcard_set_job_title().
linphone_friend | the LinphoneFriend object. |
job_title | the job title to store in Friend's vCard. |
LinphoneStatus linphone_friend_set_name | ( | LinphoneFriend * | linphone_friend, |
const char * | name | ||
) |
Set the display name for this friend.
linphone_friend | LinphoneFriend object |
name | the display name to set |
void linphone_friend_set_native_uri | ( | LinphoneFriend * | linphone_friend, |
const char * | native_uri | ||
) |
Sets the contact's native URI.
linphone_friend | the LinphoneFriend object. |
native_uri | the URI that matches the contact on the native system. |
void linphone_friend_set_organization | ( | LinphoneFriend * | linphone_friend, |
const char * | organization | ||
) |
Sets the contact's organization.
It's a shortcut to linphone_friend_get_vcard() and linphone_vcard_set_organization().
linphone_friend | the LinphoneFriend object. |
organization | the organization to store in Friend's vCard. |
void linphone_friend_set_photo | ( | LinphoneFriend * | linphone_friend, |
const char * | picture_uri | ||
) |
Sets the contact's picture URI.
linphone_friend | the LinphoneFriend object. |
picture_uri | the picture URI to set. |
void linphone_friend_set_presence_model | ( | LinphoneFriend * | linphone_friend, |
LinphonePresenceModel * | presence | ||
) |
Set the presence model of a friend.
linphone_friend | A LinphoneFriend object |
presence | The LinphonePresenceModel object to set for the friend |
void linphone_friend_set_presence_model_for_uri_or_tel | ( | LinphoneFriend * | linphone_friend, |
const char * | uri_or_tel, | ||
LinphonePresenceModel * | presence | ||
) |
Set the presence model for a specific SIP URI or phone number of a friend.
linphone_friend | A LinphoneFriend object |
uri_or_tel | The SIP URI or phone number for which to set the presence model |
presence | The LinphonePresenceModel object to set |
void linphone_friend_set_ref_key | ( | LinphoneFriend * | linphone_friend, |
const char * | key | ||
) |
Set the reference key of a friend.
linphone_friend | LinphoneFriend object. |
key | The reference key to use for the friend. |
void linphone_friend_set_starred | ( | LinphoneFriend * | linphone_friend, |
bool_t | is_starred | ||
) |
Sets if the friend is a user's favorite or important contact.
linphone_friend | the LinphoneFriend object. |
is_starred | TRUE if the friend is to be considered as important, FALSE otherwise. |
void linphone_friend_set_user_data | ( | LinphoneFriend * | linphone_friend, |
void * | user_data | ||
) |
Store user pointer to friend object.
linphone_friend | A LinphoneFriend object |
user_data | the user data to store. |
void linphone_friend_set_vcard | ( | LinphoneFriend * | linphone_friend, |
LinphoneVcard * | vcard | ||
) |
Binds a vCard object to a friend.
linphone_friend | LinphoneFriend object |
vcard | The LinphoneVcard object to bind |
bool_t linphone_friend_subscribes_enabled | ( | const LinphoneFriend * | linphone_friend | ) |
get subscription flag value
linphone_friend | LinphoneFriend object |
void linphone_friend_unref | ( | LinphoneFriend * | linphone_friend | ) |
Release a reference to the linphone friend.
linphone_friend | LinphoneFriend object |
const char* linphone_presence_activity_get_description | ( | const LinphonePresenceActivity * | activity | ) |
Gets the description of a presence activity.
activity | A pointer to the LinphonePresenceActivity for which to get the description. |
LinphonePresenceActivityType linphone_presence_activity_get_type | ( | const LinphonePresenceActivity * | activity | ) |
Gets the activity type of a presence activity.
activity | A pointer to the LinphonePresenceActivity for which to get the type. |
void* linphone_presence_activity_get_user_data | ( | const LinphonePresenceActivity * | activity | ) |
Gets the user data of a LinphonePresenceActivity object.
activity | The LinphonePresenceActivity object for which to get the user data. |
LinphonePresenceActivity* linphone_presence_activity_new | ( | LinphonePresenceActivityType | acttype, |
const char * | description | ||
) |
Creates a presence activity.
acttype | The LinphonePresenceActivityType to set for the activity. |
description | An additional description of the activity to set for the activity. Can be NULL if no additional description is to be added. |
LinphonePresenceActivity* linphone_presence_activity_ref | ( | LinphonePresenceActivity * | activity | ) |
Increase the reference count of the LinphonePresenceActivity object.
activity | The LinphonePresenceActivity object for which the reference count is to be increased. |
LinphoneStatus linphone_presence_activity_set_description | ( | LinphonePresenceActivity * | activity, |
const char * | description | ||
) |
Sets the description of a presence activity.
activity | The LinphonePresenceActivity object for which to set the description. |
description | An additional description of the activity. Can be NULL if no additional description is to be added. |
LinphoneStatus linphone_presence_activity_set_type | ( | LinphonePresenceActivity * | activity, |
LinphonePresenceActivityType | acttype | ||
) |
Sets the type of activity of a presence activity.
activity | The LinphonePresenceActivity for which to set for the activity type. |
acttype | The LinphonePresenceActivityType to set for the activity. |
void linphone_presence_activity_set_user_data | ( | LinphonePresenceActivity * | activity, |
void * | user_data | ||
) |
Sets the user data of a LinphonePresenceActivity object.
activity | The LinphonePresenceActivity object for which to set the user data. |
user_data | A pointer to the user data to set. |
char* linphone_presence_activity_to_string | ( | const LinphonePresenceActivity * | activity | ) |
Gets the string representation of a presence activity.
activity | A pointer to the LinphonePresenceActivity object for which to get a string representation. |
The returned string is to be freed by calling ms_free().
LinphonePresenceActivity* linphone_presence_activity_unref | ( | LinphonePresenceActivity * | activity | ) |
Decrease the reference count of the LinphonePresenceActivity object and destroy it if it reaches 0.
activity | The LinphonePresenceActivity object for which the reference count is to be decreased. |
char* linphone_presence_basic_status_to_string | ( | LinphonePresenceBasicStatus | basic_status | ) |
Gets the string representation of a presence basic status.
basic_status | A LinphonePresenceBasicStatus for which to get a string representation. |
The returned string is to be freed by calling ms_free().
LinphoneStatus linphone_presence_model_add_activity | ( | LinphonePresenceModel * | model, |
LinphonePresenceActivity * | activity | ||
) |
Adds an activity to a presence model.
model | The LinphonePresenceModel object for which to add an activity. |
activity | The LinphonePresenceActivity object to add to the model. |
LinphoneStatus linphone_presence_model_add_note | ( | LinphonePresenceModel * | model, |
const char * | note_content, | ||
const char * | lang | ||
) |
Adds a note to a presence model.
model | The LinphonePresenceModel object to add a note to. |
note_content | The note to be added to the presence model. |
lang | The language of the note to be added. Can be NULL if no language is to be specified for the note. |
Only one note for each language can be set, so e.g. setting a note for the 'fr' language if there is only one will replace the existing one.
LinphoneStatus linphone_presence_model_add_person | ( | LinphonePresenceModel * | model, |
LinphonePresencePerson * | person | ||
) |
Adds a person to a presence model.
model | The LinphonePresenceModel object for which to add a person. |
person | The LinphonePresencePerson object to add to the model. |
LinphoneStatus linphone_presence_model_add_service | ( | LinphonePresenceModel * | model, |
LinphonePresenceService * | service | ||
) |
Adds a service to a presence model.
model | The LinphonePresenceModel object for which to add a service. |
service | The LinphonePresenceService object to add to the model. |
LinphoneStatus linphone_presence_model_clear_activities | ( | LinphonePresenceModel * | model | ) |
Clears the activities of a presence model.
model | The LinphonePresenceModel object for which to clear the activities. |
LinphoneStatus linphone_presence_model_clear_notes | ( | LinphonePresenceModel * | model | ) |
Clears all the notes of a presence model.
model | The LinphonePresenceModel for which to clear notes. |
LinphoneStatus linphone_presence_model_clear_persons | ( | LinphonePresenceModel * | model | ) |
Clears the persons of a presence model.
model | The LinphonePresenceModel object for which to clear the persons. |
LinphoneStatus linphone_presence_model_clear_services | ( | LinphonePresenceModel * | model | ) |
Clears the services of a presence model.
model | The LinphonePresenceModel object for which to clear the services. |
LinphonePresenceActivity* linphone_presence_model_get_activity | ( | const LinphonePresenceModel * | model | ) |
Gets the first activity of a presence model (there is usually only one).
model | The LinphonePresenceModel object to get the activity from. |
LinphonePresenceBasicStatus linphone_presence_model_get_basic_status | ( | const LinphonePresenceModel * | model | ) |
Gets the basic status of a presence model.
model | The LinphonePresenceModel object to get the basic status from. |
int linphone_presence_model_get_capabilities | ( | const LinphonePresenceModel * | model | ) |
Gets the capabilities of a LinphonePresenceModel object.
model | The LinphonePresenceModel object for which to set the contact. |
float linphone_presence_model_get_capability_version | ( | const LinphonePresenceModel * | model, |
const LinphoneFriendCapability | capability | ||
) |
Returns the version of the capability of a LinphonePresenceModel.
model | The LinphonePresenceModel object for which to set the contact. |
capability | The LinphoneFriendCapability to test. |
LinphoneConsolidatedPresence linphone_presence_model_get_consolidated_presence | ( | const LinphonePresenceModel * | model | ) |
Get the consolidated presence from a presence model.
model | LinphonePresenceModel object |
char* linphone_presence_model_get_contact | ( | const LinphonePresenceModel * | model | ) |
Gets the contact of a presence model.
model | The LinphonePresenceModel object to get the contact from. |
The returned string is to be freed by calling ms_free().
time_t linphone_presence_model_get_latest_activity_timestamp | ( | const LinphonePresenceModel * | model | ) |
Gets the latest activity timestamp of a presence model.
model | The LinphonePresenceModel object to get the timestamp from. |
unsigned int linphone_presence_model_get_nb_activities | ( | const LinphonePresenceModel * | model | ) |
Gets the number of activities included in the presence model.
model | The LinphonePresenceModel object to get the number of activities from. |
unsigned int linphone_presence_model_get_nb_persons | ( | const LinphonePresenceModel * | model | ) |
Gets the number of persons included in the presence model.
model | The LinphonePresenceModel object to get the number of persons from. |
unsigned int linphone_presence_model_get_nb_services | ( | const LinphonePresenceModel * | model | ) |
Gets the number of services included in the presence model.
model | The LinphonePresenceModel object to get the number of services from. |
LinphonePresenceNote* linphone_presence_model_get_note | ( | const LinphonePresenceModel * | model, |
const char * | lang | ||
) |
Gets the first note of a presence model (there is usually only one).
model | The LinphonePresenceModel object to get the note from. |
lang | The language of the note to get. Can be NULL to get a note that has no language specified or to get the first note whatever language it is written into. |
LinphonePresenceActivity* linphone_presence_model_get_nth_activity | ( | const LinphonePresenceModel * | model, |
unsigned int | index | ||
) |
Gets the nth activity of a presence model.
model | The LinphonePresenceModel object to get the activity from. |
index | The index of the activity to get (the first activity having the index 0). |
LinphonePresencePerson* linphone_presence_model_get_nth_person | ( | const LinphonePresenceModel * | model, |
unsigned int | index | ||
) |
Gets the nth person of a presence model.
model | The LinphonePresenceModel object to get the person from. |
index | The index of the person to get (the first person having the index 0). |
LinphonePresenceService* linphone_presence_model_get_nth_service | ( | const LinphonePresenceModel * | model, |
unsigned int | index | ||
) |
Gets the nth service of a presence model.
model | The LinphonePresenceModel object to get the service from. |
index | The index of the service to get (the first service having the index 0). |
const LinphoneAddress* linphone_presence_model_get_presentity | ( | const LinphonePresenceModel * | model | ) |
Gets the presentity of a presence model.
model | The LinphonePresenceModel object to get the contact from. |
time_t linphone_presence_model_get_timestamp | ( | const LinphonePresenceModel * | model | ) |
Gets the timestamp of a presence model.
model | The LinphonePresenceModel object to get the timestamp from. |
void* linphone_presence_model_get_user_data | ( | const LinphonePresenceModel * | model | ) |
Gets the user data of a LinphonePresenceModel object.
model | The LinphonePresenceModel object for which to get the user data. |
bool_t linphone_presence_model_has_capability | ( | const LinphonePresenceModel * | model, |
const LinphoneFriendCapability | capability | ||
) |
Returns whether or not the LinphonePresenceModel object has a given capability.
model | The LinphonePresenceModel object for which to set the contact. |
capability | The capability to test. |
bool_t linphone_presence_model_has_capability_with_version | ( | const LinphonePresenceModel * | model, |
const LinphoneFriendCapability | capability, | ||
float | version | ||
) |
Returns whether or not the LinphonePresenceModel object has a given capability with a certain version.
model | The LinphonePresenceModel object for which to set the contact. |
capability | The LinphoneFriendCapability to test. |
version | The wanted version to test. |
bool_t linphone_presence_model_has_capability_with_version_or_more | ( | const LinphonePresenceModel * | model, |
const LinphoneFriendCapability | capability, | ||
float | version | ||
) |
Returns whether or not the LinphonePresenceModel object has a given capability with a certain version or more.
model | The LinphonePresenceModel object for which to set the contact. |
capability | The LinphoneFriendCapability to test. |
version | The wanted version to test. |
bool_t linphone_presence_model_is_online | ( | const LinphonePresenceModel * | model | ) |
Tells whether a presence model is considered online.
It is any of theses cases:
model | LinphonePresenceModel object |
LinphonePresenceModel* linphone_presence_model_new | ( | void | ) |
Creates a default presence model.
The created presence model is considered 'offline'.
LinphonePresenceModel* linphone_presence_model_new_with_activity | ( | LinphonePresenceActivityType | activity, |
const char * | description | ||
) |
Creates a presence model specifying an activity.
activity | The LinphonePresenceActivityType to set for the created presence model. |
description | An additional description of the activity (mainly useful for the 'other' activity). Set it to NULL to not add a description. |
The created presence model has the activity specified in the parameters.
LinphonePresenceModel* linphone_presence_model_new_with_activity_and_note | ( | LinphonePresenceActivityType | activity, |
const char * | description, | ||
const char * | note, | ||
const char * | lang | ||
) |
Creates a presence model specifying an activity and adding a note.
activity | The LinphonePresenceActivityType to set for the created presence model. |
description | An additional description of the activity (mainly useful for the 'other' activity). Set it to NULL to not add a description. |
note | An additional note giving additional information about the contact presence. |
lang | The language the note is written in. It can be set to NULL in order to not specify the language of the note. |
The created presence model has the activity and the note specified in the parameters.
LinphonePresenceModel* linphone_presence_model_ref | ( | LinphonePresenceModel * | model | ) |
Increase the reference count of the LinphonePresenceModel object.
model | The LinphonePresenceModel object for which the reference count is to be increased. |
LinphoneStatus linphone_presence_model_set_activity | ( | LinphonePresenceModel * | model, |
LinphonePresenceActivityType | activity, | ||
const char * | description | ||
) |
Sets the activity of a presence model (limits to only one activity).
model | The LinphonePresenceModel object for which to set the activity. |
activity | The LinphonePresenceActivityType to set for the model. |
description | An additional description of the activity to set for the model. Can be NULL if no additional description is to be added. |
WARNING: This function will modify the basic status of the model according to the activity being set. If you don't want the basic status to be modified automatically, you can use the combination of linphone_presence_model_set_basic_status(), linphone_presence_model_clear_activities() and linphone_presence_model_add_activity().
LinphoneStatus linphone_presence_model_set_basic_status | ( | LinphonePresenceModel * | model, |
LinphonePresenceBasicStatus | basic_status | ||
) |
Sets the basic status of a presence model.
model | The LinphonePresenceModel object for which to set the basic status. |
basic_status | The LinphonePresenceBasicStatus to set for the LinphonePresenceModel object. |
LinphoneStatus linphone_presence_model_set_contact | ( | LinphonePresenceModel * | model, |
const char * | contact | ||
) |
Sets the contact of a presence model.
model | The LinphonePresenceModel object for which to set the contact. |
contact | The contact string to set. |
LinphoneStatus linphone_presence_model_set_presentity | ( | LinphonePresenceModel * | model, |
const LinphoneAddress * | presentity | ||
) |
Sets the presentity of a presence model.
model | The LinphonePresenceModel object for which to set the contact. |
presentity | The presentity address to set (presentity is copied). |
void linphone_presence_model_set_user_data | ( | LinphonePresenceModel * | model, |
void * | user_data | ||
) |
Sets the user data of a LinphonePresenceModel object.
model | The LinphonePresenceModel object for which to set the user data. |
user_data | A pointer to the user data to set. |
LinphonePresenceModel* linphone_presence_model_unref | ( | LinphonePresenceModel * | model | ) |
Decrease the reference count of the LinphonePresenceModel object and destroy it if it reaches 0.
model | The LinphonePresenceModel object for which the reference count is to be decreased. |
const char* linphone_presence_note_get_content | ( | const LinphonePresenceNote * | note | ) |
Gets the content of a presence note.
note | A pointer to the LinphonePresenceNote for which to get the content. |
const char* linphone_presence_note_get_lang | ( | const LinphonePresenceNote * | note | ) |
Gets the language of a presence note.
note | A pointer to the LinphonePresenceNote for which to get the language. |
void* linphone_presence_note_get_user_data | ( | const LinphonePresenceNote * | note | ) |
Gets the user data of a LinphonePresenceNote object.
note | The LinphonePresenceNote object for which to get the user data. |
LinphonePresenceNote* linphone_presence_note_new | ( | const char * | content, |
const char * | lang | ||
) |
Creates a presence note.
content | The content of the note to be created. |
lang | The language of the note to be created. Can be NULL if no language is to be specified for the note. |
LinphonePresenceNote* linphone_presence_note_ref | ( | LinphonePresenceNote * | note | ) |
Increase the reference count of the LinphonePresenceNote object.
note | The LinphonePresenceNote object for which the reference count is to be increased. |
LinphoneStatus linphone_presence_note_set_content | ( | LinphonePresenceNote * | note, |
const char * | content | ||
) |
Sets the content of a presence note.
note | The LinphonePresenceNote object for which to set the content. |
content | The content of the note. |
LinphoneStatus linphone_presence_note_set_lang | ( | LinphonePresenceNote * | note, |
const char * | lang | ||
) |
Sets the language of a presence note.
note | The LinphonePresenceNote object for which to set the language. |
lang | The language of the note. |
void linphone_presence_note_set_user_data | ( | LinphonePresenceNote * | note, |
void * | user_data | ||
) |
Sets the user data of a LinphonePresenceNote object.
note | The LinphonePresenceNote object for which to set the user data. |
user_data | A pointer to the user data to set. |
LinphonePresenceNote* linphone_presence_note_unref | ( | LinphonePresenceNote * | note | ) |
Decrease the reference count of the LinphonePresenceNote object and destroy it if it reaches 0.
note | The LinphonePresenceNote object for which the reference count is to be decreased. |
LinphoneStatus linphone_presence_person_add_activities_note | ( | LinphonePresencePerson * | person, |
LinphonePresenceNote * | note | ||
) |
Adds an activities note to a presence person.
person | The LinphonePresencePerson object for which to add an activities note. |
note | The LinphonePresenceNote object to add to the person. |
LinphoneStatus linphone_presence_person_add_activity | ( | LinphonePresencePerson * | person, |
LinphonePresenceActivity * | activity | ||
) |
Adds an activity to a presence person.
person | The LinphonePresencePerson object for which to add an activity. |
activity | The LinphonePresenceActivity object to add to the person. |
LinphoneStatus linphone_presence_person_add_note | ( | LinphonePresencePerson * | person, |
LinphonePresenceNote * | note | ||
) |
Adds a note to a presence person.
person | The LinphonePresencePerson object for which to add a note. |
note | The LinphonePresenceNote object to add to the person. |
LinphoneStatus linphone_presence_person_clear_activities | ( | LinphonePresencePerson * | person | ) |
Clears the activities of a presence person.
person | The LinphonePresencePerson object for which to clear the activities. |
LinphoneStatus linphone_presence_person_clear_activities_notes | ( | LinphonePresencePerson * | person | ) |
Clears the activities notes of a presence person.
person | The LinphonePresencePerson object for which to clear the activities notes. |
LinphoneStatus linphone_presence_person_clear_notes | ( | LinphonePresencePerson * | person | ) |
Clears the notes of a presence person.
person | The LinphonePresencePerson object for which to clear the notes. |
char* linphone_presence_person_get_id | ( | const LinphonePresencePerson * | person | ) |
Gets the id of a presence person.
person | The LinphonePresencePerson object to get the id from. |
The returned string is to be freed by calling ms_free().
unsigned int linphone_presence_person_get_nb_activities | ( | const LinphonePresencePerson * | person | ) |
Gets the number of activities included in the presence person.
person | The LinphonePresencePerson object to get the number of activities from. |
unsigned int linphone_presence_person_get_nb_activities_notes | ( | const LinphonePresencePerson * | person | ) |
Gets the number of activities notes included in the presence person.
person | The LinphonePresencePerson object to get the number of activities notes from. |
unsigned int linphone_presence_person_get_nb_notes | ( | const LinphonePresencePerson * | person | ) |
Gets the number of notes included in the presence person.
person | The LinphonePresencePerson object to get the number of notes from. |
LinphonePresenceNote* linphone_presence_person_get_nth_activities_note | ( | const LinphonePresencePerson * | person, |
unsigned int | index | ||
) |
Gets the nth activities note of a presence person.
person | The LinphonePresencePerson object to get the activities note from. |
index | The index of the activities note to get (the first note having the index 0). |
LinphonePresenceActivity* linphone_presence_person_get_nth_activity | ( | const LinphonePresencePerson * | person, |
unsigned int | index | ||
) |
Gets the nth activity of a presence person.
person | The LinphonePresencePerson object to get the activity from. |
index | The index of the activity to get (the first activity having the index 0). |
LinphonePresenceNote* linphone_presence_person_get_nth_note | ( | const LinphonePresencePerson * | person, |
unsigned int | index | ||
) |
Gets the nth note of a presence person.
person | The LinphonePresencePerson object to get the note from. |
index | The index of the note to get (the first note having the index 0). |
void* linphone_presence_person_get_user_data | ( | const LinphonePresencePerson * | person | ) |
Gets the user data of a LinphonePresencePerson object.
person | The LinphonePresencePerson object for which to get the user data. |
LinphonePresencePerson* linphone_presence_person_new | ( | const char * | id | ) |
Creates a presence person.
id | The id of the presence person to be created. Can be NULL to generate it automatically. |
LinphonePresencePerson* linphone_presence_person_ref | ( | LinphonePresencePerson * | person | ) |
Increase the reference count of the LinphonePresencePerson object.
person | The LinphonePresencePerson object for which the reference count is to be increased. |
LinphoneStatus linphone_presence_person_set_id | ( | LinphonePresencePerson * | person, |
const char * | id | ||
) |
Sets the id of a presence person.
person | The LinphonePresencePerson object for which to set the id. |
id | The id string to set. Can be NULL to generate it automatically. |
void linphone_presence_person_set_user_data | ( | LinphonePresencePerson * | person, |
void * | user_data | ||
) |
Sets the user data of a LinphonePresencePerson object.
person | The LinphonePresencePerson object for which to set the user data. |
user_data | A pointer to the user data to set. |
LinphonePresencePerson* linphone_presence_person_unref | ( | LinphonePresencePerson * | person | ) |
Decrease the reference count of the LinphonePresencePerson object and destroy it if it reaches 0.
person | The LinphonePresencePerson object for which the reference count is to be decreased. |
LinphoneStatus linphone_presence_service_add_note | ( | LinphonePresenceService * | service, |
LinphonePresenceNote * | note | ||
) |
Adds a note to a presence service.
service | The LinphonePresenceService object for which to add a note. |
note | The LinphonePresenceNote object to add to the service. |
LinphoneStatus linphone_presence_service_clear_notes | ( | LinphonePresenceService * | service | ) |
Clears the notes of a presence service.
service | The LinphonePresenceService object for which to clear the notes. |
LinphonePresenceBasicStatus linphone_presence_service_get_basic_status | ( | const LinphonePresenceService * | service | ) |
Gets the basic status of a presence service.
service | The LinphonePresenceService object to get the basic status from. |
char* linphone_presence_service_get_contact | ( | const LinphonePresenceService * | service | ) |
Gets the contact of a presence service.
service | The LinphonePresenceService object to get the contact from. |
The returned string is to be freed by calling ms_free().
char* linphone_presence_service_get_id | ( | const LinphonePresenceService * | service | ) |
Gets the id of a presence service.
service | The LinphonePresenceService object to get the id from. |
The returned string is to be freed by calling ms_free().
unsigned int linphone_presence_service_get_nb_notes | ( | const LinphonePresenceService * | service | ) |
Gets the number of notes included in the presence service.
service | The LinphonePresenceService object to get the number of notes from. |
LinphonePresenceNote* linphone_presence_service_get_nth_note | ( | const LinphonePresenceService * | service, |
unsigned int | index | ||
) |
Gets the nth note of a presence service.
service | The LinphonePresenceService object to get the note from. |
index | The index of the note to get (the first note having the index 0). |
bctbx_list_t* linphone_presence_service_get_service_descriptions | ( | const LinphonePresenceService * | service | ) |
Gets the service descriptions of a presence service.
service | The LinphonePresenceService object to get the contact from. |
The returned string is to be freed.
void* linphone_presence_service_get_user_data | ( | const LinphonePresenceService * | service | ) |
Gets the user data of a LinphonePresenceService object.
service | The LinphonePresenceService object for which to get the user data. |
LinphonePresenceService* linphone_presence_service_new | ( | const char * | id, |
LinphonePresenceBasicStatus | basic_status, | ||
const char * | contact | ||
) |
Creates a presence service.
id | The id of the presence service to be created. Can be NULL to generate it automatically. |
basic_status | The LinphonePresenceBasicStatus to set for the LinphonePresenceService object. |
contact | The contact string to set. |
The created presence service has the basic status 'closed'.
LinphonePresenceService* linphone_presence_service_ref | ( | LinphonePresenceService * | service | ) |
Increase the reference count of the LinphonePresenceService object.
service | The LinphonePresenceService object for which the reference count is to be increased. |
LinphoneStatus linphone_presence_service_set_basic_status | ( | LinphonePresenceService * | service, |
LinphonePresenceBasicStatus | basic_status | ||
) |
Sets the basic status of a presence service.
service | The LinphonePresenceService object for which to set the basic status. |
basic_status | The LinphonePresenceBasicStatus to set for the LinphonePresenceService object. |
LinphoneStatus linphone_presence_service_set_contact | ( | LinphonePresenceService * | service, |
const char * | contact | ||
) |
Sets the contact of a presence service.
service | The LinphonePresenceService object for which to set the contact. |
contact | The contact string to set. |
LinphoneStatus linphone_presence_service_set_id | ( | LinphonePresenceService * | service, |
const char * | id | ||
) |
Sets the id of a presence service.
service | The LinphonePresenceService object for which to set the id. |
id | The id string to set. Can be NULL to generate it automatically. |
LinphoneStatus linphone_presence_service_set_service_descriptions | ( | LinphonePresenceService * | service, |
bctbx_list_t * | descriptions | ||
) |
Sets the service descriptions of a presence service.
service | The LinphonePresenceService object for which to set the contact. |
descriptions | The service descriptions. |
void linphone_presence_service_set_user_data | ( | LinphonePresenceService * | service, |
void * | user_data | ||
) |
Sets the user data of a LinphonePresenceService object.
service | The LinphonePresenceService object for which to set the user data. |
user_data | A pointer to the user data to set. |
LinphonePresenceService* linphone_presence_service_unref | ( | LinphonePresenceService * | service | ) |
Decrease the reference count of the LinphonePresenceService object and destroy it if it reaches 0.
service | The LinphonePresenceService object for which the reference count is to be decreased. |