Liblinphone 5.0.0
Public Member Functions | List of all members
linphone::CoreListener Class Reference
Inheritance diagram for linphone::CoreListener:

Public Member Functions

virtual LINPHONECXX_PUBLIC void onGlobalStateChanged (const std::shared_ptr< linphone::Core > &core, linphone::GlobalState state, const std::string &message)
 Global state notification callback. More...
 
virtual LINPHONECXX_PUBLIC void onRegistrationStateChanged (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::ProxyConfig > &proxyConfig, linphone::RegistrationState state, const std::string &message)
 Registration state notification callback prototype. More...
 
virtual LINPHONECXX_PUBLIC void onCallStateChanged (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::Call > &call, linphone::Call::State state, const std::string &message)
 Call state notification callback. More...
 
virtual LINPHONECXX_PUBLIC void onNotifyPresenceReceived (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::Friend > &linphoneFriend)
 Report status change for a friend previously added to the LinphoneCore with linphone_core_add_friend(). More...
 
virtual LINPHONECXX_PUBLIC void onNotifyPresenceReceivedForUriOrTel (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::Friend > &linphoneFriend, const std::string &uriOrTel, const std::shared_ptr< const linphone::PresenceModel > &presenceModel)
 Reports presence model change for a specific URI or phone number of a friend. More...
 
virtual LINPHONECXX_PUBLIC void onNewSubscriptionRequested (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::Friend > &linphoneFriend, const std::string &url)
 Reports that a new subscription request has been received and wait for a decision. More...
 
virtual LINPHONECXX_PUBLIC void onAuthenticationRequested (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::AuthInfo > &authInfo, linphone::AuthMethod method)
 Callback for requesting authentication information to application or user. More...
 
virtual LINPHONECXX_PUBLIC void onCallLogUpdated (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::CallLog > &callLog)
 Callback to notify a new call-log entry has been added. More...
 
virtual LINPHONECXX_PUBLIC void onCallIdUpdated (const std::shared_ptr< linphone::Core > &core, const std::string &previousCallId, const std::string &currentCallId)
 Callback to notify the callid of a call has been updated. More...
 
virtual LINPHONECXX_PUBLIC void onMessageReceived (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::ChatRoom > &chatRoom, const std::shared_ptr< linphone::ChatMessage > &message)
 Chat message callback prototype. More...
 
virtual LINPHONECXX_PUBLIC void onMessageSent (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::ChatRoom > &chatRoom, const std::shared_ptr< linphone::ChatMessage > &message)
 Called after the #send method of the LinphoneChatMessage was called. More...
 
virtual LINPHONECXX_PUBLIC void onChatRoomRead (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::ChatRoom > &chatRoom)
 Chat room marked as read callback. More...
 
virtual LINPHONECXX_PUBLIC void onMessageReceivedUnableDecrypt (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::ChatRoom > &chatRoom, const std::shared_ptr< linphone::ChatMessage > &message)
 Chat message not decrypted callback prototype. More...
 
virtual LINPHONECXX_PUBLIC void onIsComposingReceived (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::ChatRoom > &chatRoom)
 Is composing notification callback prototype. More...
 
virtual LINPHONECXX_PUBLIC void onDtmfReceived (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::Call > &call, int dtmf)
 Callback for being notified of DTMFs received. More...
 
virtual LINPHONECXX_PUBLIC void onReferReceived (const std::shared_ptr< linphone::Core > &core, const std::string &referTo)
 Callback prototype for when a refer is received. More...
 
virtual LINPHONECXX_PUBLIC void onCallEncryptionChanged (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::Call > &call, bool mediaEncryptionEnabled, const std::string &authenticationToken)
 Call encryption changed callback. More...
 
virtual LINPHONECXX_PUBLIC void onTransferStateChanged (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::Call > &transfered, linphone::Call::State callState)
 Callback for notifying progresses of transfers. More...
 
virtual LINPHONECXX_PUBLIC void onBuddyInfoUpdated (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::Friend > &linphoneFriend)
 Callback prototype when using the buddy plugin. More...
 
virtual LINPHONECXX_PUBLIC void onCallStatsUpdated (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::Call > &call, const std::shared_ptr< const linphone::CallStats > &callStats)
 Callback for receiving quality statistics for calls. More...
 
virtual LINPHONECXX_PUBLIC void onInfoReceived (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::Call > &call, const std::shared_ptr< const linphone::InfoMessage > &message)
 Callback prototype for receiving info messages. More...
 
virtual LINPHONECXX_PUBLIC void onSubscriptionStateChanged (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::Event > &linphoneEvent, linphone::SubscriptionState state)
 Callback prototype for notifying the application about changes of subscription states, including arrival of new subscriptions. More...
 
virtual LINPHONECXX_PUBLIC void onNotifyReceived (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::Event > &linphoneEvent, const std::string &notifiedEvent, const std::shared_ptr< const linphone::Content > &body)
 Callback prototype for notifying the application about notification received from the network. More...
 
virtual LINPHONECXX_PUBLIC void onSubscribeReceived (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::Event > &linphoneEvent, const std::string &subscribeEvent, const std::shared_ptr< const linphone::Content > &body)
 Callback prototype for notifying the application about subscription received from the network. More...
 
virtual LINPHONECXX_PUBLIC void onPublishStateChanged (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::Event > &linphoneEvent, linphone::PublishState state)
 Callback prototype for notifying the application about changes of publish states. More...
 
virtual LINPHONECXX_PUBLIC void onConfiguringStatus (const std::shared_ptr< linphone::Core > &core, linphone::ConfiguringState status, const std::string &message)
 Callback prototype for configuring status changes notification. More...
 
virtual LINPHONECXX_PUBLIC void onNetworkReachable (const std::shared_ptr< linphone::Core > &core, bool reachable)
 Callback prototype for reporting network change either automatically detected or notified by linphone_core_set_network_reachable. More...
 
virtual LINPHONECXX_PUBLIC void onLogCollectionUploadStateChanged (const std::shared_ptr< linphone::Core > &core, linphone::Core::LogCollectionUploadState state, const std::string &info)
 Callback prototype for reporting log collection upload state change. More...
 
virtual LINPHONECXX_PUBLIC void onLogCollectionUploadProgressIndication (const std::shared_ptr< linphone::Core > &core, size_t offset, size_t total)
 Callback prototype for reporting log collection upload progress indication. More...
 
virtual LINPHONECXX_PUBLIC void onFriendListCreated (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::FriendList > &friendList)
 Callback prototype for reporting when a friend list has been added to the core friends list. More...
 
virtual LINPHONECXX_PUBLIC void onFriendListRemoved (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::FriendList > &friendList)
 Callback prototype for reporting when a friend list has been removed from the core friends list. More...
 
virtual LINPHONECXX_PUBLIC void onCallCreated (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::Call > &call)
 Callback notifying that a new LinphoneCall (either incoming or outgoing) has been created. More...
 
virtual LINPHONECXX_PUBLIC void onVersionUpdateCheckResultReceived (const std::shared_ptr< linphone::Core > &core, linphone::VersionUpdateCheckResult result, const std::string &version, const std::string &url)
 Callback prototype for reporting the result of a version update check. More...
 
virtual LINPHONECXX_PUBLIC void onConferenceStateChanged (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::Conference > &conference, linphone::Conference::State state)
 Callback prototype telling that a LinphoneConference state has changed. More...
 
virtual LINPHONECXX_PUBLIC void onChatRoomStateChanged (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::ChatRoom > &chatRoom, linphone::ChatRoom::State state)
 Callback prototype telling that a LinphoneChatRoom state has changed. More...
 
virtual LINPHONECXX_PUBLIC void onChatRoomSubjectChanged (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::ChatRoom > &chatRoom)
 Callback prototype telling that a LinphoneChatRoom subject has changed. More...
 
virtual LINPHONECXX_PUBLIC void onChatRoomEphemeralMessageDeleted (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::ChatRoom > &chatRoom)
 Callback prototype telling that a LinphoneChatRoom ephemeral message has expired. More...
 
virtual LINPHONECXX_PUBLIC void onImeeUserRegistration (const std::shared_ptr< linphone::Core > &core, const bool status, const std::string &userId, const std::string &info)
 Callback prototype telling that an Instant Message Encryption Engine user registered on the server with or without success. More...
 
virtual LINPHONECXX_PUBLIC void onQrcodeFound (const std::shared_ptr< linphone::Core > &core, const std::string &result)
 Callback prototype telling the result of decoded qrcode. More...
 
virtual LINPHONECXX_PUBLIC void onFirstCallStarted (const std::shared_ptr< linphone::Core > &core)
 Callback prototype telling a call has started (incoming or outgoing) while there was no other call. More...
 
virtual LINPHONECXX_PUBLIC void onLastCallEnded (const std::shared_ptr< linphone::Core > &core)
 Callback prototype telling the last call has ended (#LinphoneCore.get_calls_nb() returns 0) More...
 
virtual LINPHONECXX_PUBLIC void onAudioDeviceChanged (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::AudioDevice > &audioDevice)
 Callback prototype telling that the audio device for at least one call has changed. More...
 
virtual LINPHONECXX_PUBLIC void onAudioDevicesListUpdated (const std::shared_ptr< linphone::Core > &core)
 Callback prototype telling the audio devices list has been updated. More...
 
virtual LINPHONECXX_PUBLIC void onEcCalibrationResult (const std::shared_ptr< linphone::Core > &core, linphone::EcCalibratorStatus status, int delayMs)
 Function prototype used by #linphone_core_cbs_set_ec_calibrator_result(). More...
 
virtual LINPHONECXX_PUBLIC void onEcCalibrationAudioInit (const std::shared_ptr< linphone::Core > &core)
 Function prototype used by #linphone_core_cbs_set_ec_calibrator_audio_init(). More...
 
virtual LINPHONECXX_PUBLIC void onEcCalibrationAudioUninit (const std::shared_ptr< linphone::Core > &core)
 Function prototype used by #linphone_core_cbs_set_ec_calibrator_audio_uninit(). More...
 
virtual LINPHONECXX_PUBLIC void onAccountRegistrationStateChanged (const std::shared_ptr< linphone::Core > &core, const std::shared_ptr< linphone::Account > &account, linphone::RegistrationState state, const std::string &message)
 Callback notifying that a LinphoneAccount has its registration state changed. More...
 

Member Function Documentation

◆ onAccountRegistrationStateChanged()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onAccountRegistrationStateChanged ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::Account > &  account,
linphone::RegistrationState  state,
const std::string &  message 
)
inlinevirtual

Callback notifying that a LinphoneAccount has its registration state changed.

Parameters
messagea non nullptr informational message about the state

◆ onAudioDeviceChanged()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onAudioDeviceChanged ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::AudioDevice > &  audioDevice 
)
inlinevirtual

Callback prototype telling that the audio device for at least one call has changed.

Parameters
audioDevicethe newly used LinphoneAudioDevice object

◆ onAudioDevicesListUpdated()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onAudioDevicesListUpdated ( const std::shared_ptr< linphone::Core > &  core)
inlinevirtual

Callback prototype telling the audio devices list has been updated.

Either a new device is available or a previously available device isn't anymore. You can call linphone_core_get_audio_devices to get the new list.

Parameters
coreLinphoneCore object

◆ onAuthenticationRequested()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onAuthenticationRequested ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::AuthInfo > &  authInfo,
linphone::AuthMethod  method 
)
inlinevirtual

Callback for requesting authentication information to application or user.

Parameters
methodthe type of authentication requested as LinphoneAuthMethod enum
Application shall reply to this callback using linphone_core_add_auth_info.

◆ onBuddyInfoUpdated()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onBuddyInfoUpdated ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::Friend > &  linphoneFriend 
)
inlinevirtual

Callback prototype when using the buddy plugin.

Parameters
linphoneFriendthe LinphoneFriend that has been updated

◆ onCallCreated()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onCallCreated ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::Call > &  call 
)
inlinevirtual

Callback notifying that a new LinphoneCall (either incoming or outgoing) has been created.

Parameters
callThe newly created LinphoneCall object

◆ onCallEncryptionChanged()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onCallEncryptionChanged ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::Call > &  call,
bool  mediaEncryptionEnabled,
const std::string &  authenticationToken 
)
inlinevirtual

Call encryption changed callback.

Parameters
authenticationTokenan authentication_token, currently set for ZRTP kind of encryption only.

◆ onCallIdUpdated()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onCallIdUpdated ( const std::shared_ptr< linphone::Core > &  core,
const std::string &  previousCallId,
const std::string &  currentCallId 
)
inlinevirtual

Callback to notify the callid of a call has been updated.

This is done typically when a call retry.

Parameters
currentCallIdthe new callid.

◆ onCallLogUpdated()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onCallLogUpdated ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::CallLog > &  callLog 
)
inlinevirtual

Callback to notify a new call-log entry has been added.

This is done typically when a call terminates.

Parameters
callLogthe new LinphoneCallLog entry added.

◆ onCallStateChanged()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onCallStateChanged ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::Call > &  call,
linphone::Call::State  state,
const std::string &  message 
)
inlinevirtual

Call state notification callback.

Parameters
messagea non nullptr informational message about the state.

◆ onCallStatsUpdated()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onCallStatsUpdated ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::Call > &  call,
const std::shared_ptr< const linphone::CallStats > &  callStats 
)
inlinevirtual

Callback for receiving quality statistics for calls.

Parameters
callStatsthe call statistics.

◆ onChatRoomEphemeralMessageDeleted()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onChatRoomEphemeralMessageDeleted ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::ChatRoom > &  chatRoom 
)
inlinevirtual

Callback prototype telling that a LinphoneChatRoom ephemeral message has expired.

Parameters
chatRoomThe LinphoneChatRoom object for which a message has expired.

◆ onChatRoomRead()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onChatRoomRead ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::ChatRoom > &  chatRoom 
)
inlinevirtual

Chat room marked as read callback.

Parameters
chatRoomLinphoneChatRoom that has been marked as read.

◆ onChatRoomStateChanged()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onChatRoomStateChanged ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::ChatRoom > &  chatRoom,
linphone::ChatRoom::State  state 
)
inlinevirtual

Callback prototype telling that a LinphoneChatRoom state has changed.

Parameters
statethe current LinphoneChatRoomState

◆ onChatRoomSubjectChanged()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onChatRoomSubjectChanged ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::ChatRoom > &  chatRoom 
)
inlinevirtual

Callback prototype telling that a LinphoneChatRoom subject has changed.

Parameters
chatRoomThe LinphoneChatRoom object for which the subject has changed

◆ onConferenceStateChanged()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onConferenceStateChanged ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::Conference > &  conference,
linphone::Conference::State  state 
)
inlinevirtual

Callback prototype telling that a LinphoneConference state has changed.

Parameters
statethe current LinphoneChatRoomState

◆ onConfiguringStatus()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onConfiguringStatus ( const std::shared_ptr< linphone::Core > &  core,
linphone::ConfiguringState  status,
const std::string &  message 
)
inlinevirtual

Callback prototype for configuring status changes notification.

Parameters
messageinformational message.

◆ onDtmfReceived()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onDtmfReceived ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::Call > &  call,
int  dtmf 
)
inlinevirtual

Callback for being notified of DTMFs received.

Parameters
dtmfthe ascii code of the dtmf

◆ onEcCalibrationAudioInit()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onEcCalibrationAudioInit ( const std::shared_ptr< linphone::Core > &  core)
inlinevirtual

Function prototype used by #linphone_core_cbs_set_ec_calibrator_audio_init().

Parameters
coreThe LinphoneCore.

◆ onEcCalibrationAudioUninit()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onEcCalibrationAudioUninit ( const std::shared_ptr< linphone::Core > &  core)
inlinevirtual

Function prototype used by #linphone_core_cbs_set_ec_calibrator_audio_uninit().

Parameters
coreThe LinphoneCore.

◆ onEcCalibrationResult()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onEcCalibrationResult ( const std::shared_ptr< linphone::Core > &  core,
linphone::EcCalibratorStatus  status,
int  delayMs 
)
inlinevirtual

Function prototype used by #linphone_core_cbs_set_ec_calibrator_result().

Parameters
delayMsThe measured delay if available.

◆ onFirstCallStarted()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onFirstCallStarted ( const std::shared_ptr< linphone::Core > &  core)
inlinevirtual

Callback prototype telling a call has started (incoming or outgoing) while there was no other call.

Parameters
coreLinphoneCore object

◆ onFriendListCreated()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onFriendListCreated ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::FriendList > &  friendList 
)
inlinevirtual

Callback prototype for reporting when a friend list has been added to the core friends list.

Parameters
friendListLinphoneFriendList object

◆ onFriendListRemoved()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onFriendListRemoved ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::FriendList > &  friendList 
)
inlinevirtual

Callback prototype for reporting when a friend list has been removed from the core friends list.

Parameters
friendListLinphoneFriendList object

◆ onGlobalStateChanged()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onGlobalStateChanged ( const std::shared_ptr< linphone::Core > &  core,
linphone::GlobalState  state,
const std::string &  message 
)
inlinevirtual

Global state notification callback.

Parameters
messageinformational message.

◆ onImeeUserRegistration()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onImeeUserRegistration ( const std::shared_ptr< linphone::Core > &  core,
const bool  status,
const std::string &  userId,
const std::string &  info 
)
inlinevirtual

Callback prototype telling that an Instant Message Encryption Engine user registered on the server with or without success.

Parameters
infoinformation about failure

◆ onInfoReceived()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onInfoReceived ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::Call > &  call,
const std::shared_ptr< const linphone::InfoMessage > &  message 
)
inlinevirtual

Callback prototype for receiving info messages.

Parameters
messagethe info message.

◆ onIsComposingReceived()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onIsComposingReceived ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::ChatRoom > &  chatRoom 
)
inlinevirtual

Is composing notification callback prototype.

Parameters
chatRoomLinphoneChatRoom involved in the conversation.

◆ onLastCallEnded()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onLastCallEnded ( const std::shared_ptr< linphone::Core > &  core)
inlinevirtual

Callback prototype telling the last call has ended (#LinphoneCore.get_calls_nb() returns 0)

Parameters
coreLinphoneCore object

◆ onLogCollectionUploadProgressIndication()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onLogCollectionUploadProgressIndication ( const std::shared_ptr< linphone::Core > &  core,
size_t  offset,
size_t  total 
)
inlinevirtual

Callback prototype for reporting log collection upload progress indication.

Parameters
totalthe total number of bytes to upload

◆ onLogCollectionUploadStateChanged()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onLogCollectionUploadStateChanged ( const std::shared_ptr< linphone::Core > &  core,
linphone::Core::LogCollectionUploadState  state,
const std::string &  info 
)
inlinevirtual

Callback prototype for reporting log collection upload state change.

Parameters
infoAdditional information: error message in case of error state, URL of uploaded file in case of success.

◆ onMessageReceived()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onMessageReceived ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::ChatRoom > &  chatRoom,
const std::shared_ptr< linphone::ChatMessage > &  message 
)
inlinevirtual

Chat message callback prototype.

Parameters
messageLinphoneChatMessage incoming message

◆ onMessageReceivedUnableDecrypt()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onMessageReceivedUnableDecrypt ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::ChatRoom > &  chatRoom,
const std::shared_ptr< linphone::ChatMessage > &  message 
)
inlinevirtual

Chat message not decrypted callback prototype.

Parameters
messageLinphoneChatMessage incoming message

◆ onMessageSent()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onMessageSent ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::ChatRoom > &  chatRoom,
const std::shared_ptr< linphone::ChatMessage > &  message 
)
inlinevirtual

Called after the #send method of the LinphoneChatMessage was called.

The message will be in state InProgress. In case of resend this callback won't be called.

Parameters
messageLinphoneChatMessage outgoing message

◆ onNetworkReachable()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onNetworkReachable ( const std::shared_ptr< linphone::Core > &  core,
bool  reachable 
)
inlinevirtual

Callback prototype for reporting network change either automatically detected or notified by linphone_core_set_network_reachable.

Parameters
reachabletrue if network is reachable.

◆ onNewSubscriptionRequested()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onNewSubscriptionRequested ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::Friend > &  linphoneFriend,
const std::string &  url 
)
inlinevirtual

Reports that a new subscription request has been received and wait for a decision.

Note
A subscription request is notified by this function only if the LinphoneSubscribePolicy for the given LinphoneFriend has been set to LinphoneSPWait. See linphone_friend_set_inc_subscribe_policy.
Parameters
urlURI of the subscriber

◆ onNotifyPresenceReceived()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onNotifyPresenceReceived ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::Friend > &  linphoneFriend 
)
inlinevirtual

Report status change for a friend previously added to the LinphoneCore with linphone_core_add_friend().

Parameters
linphoneFriendUpdated LinphoneFriend

◆ onNotifyPresenceReceivedForUriOrTel()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onNotifyPresenceReceivedForUriOrTel ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::Friend > &  linphoneFriend,
const std::string &  uriOrTel,
const std::shared_ptr< const linphone::PresenceModel > &  presenceModel 
)
inlinevirtual

Reports presence model change for a specific URI or phone number of a friend.

Parameters
presenceModelThe new LinphonePresenceModel

◆ onNotifyReceived()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onNotifyReceived ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::Event > &  linphoneEvent,
const std::string &  notifiedEvent,
const std::shared_ptr< const linphone::Content > &  body 
)
inlinevirtual

Callback prototype for notifying the application about notification received from the network.

Parameters
bodythe LinphoneContent of the event

◆ onPublishStateChanged()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onPublishStateChanged ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::Event > &  linphoneEvent,
linphone::PublishState  state 
)
inlinevirtual

Callback prototype for notifying the application about changes of publish states.

Parameters
statethe new LinphonePublishState

◆ onQrcodeFound()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onQrcodeFound ( const std::shared_ptr< linphone::Core > &  core,
const std::string &  result 
)
inlinevirtual

Callback prototype telling the result of decoded qrcode.

Parameters
resultThe result of the decoded qrcode

◆ onReferReceived()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onReferReceived ( const std::shared_ptr< linphone::Core > &  core,
const std::string &  referTo 
)
inlinevirtual

Callback prototype for when a refer is received.

Parameters
referTothe address of the refer

◆ onRegistrationStateChanged()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onRegistrationStateChanged ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::ProxyConfig > &  proxyConfig,
linphone::RegistrationState  state,
const std::string &  message 
)
inlinevirtual

Registration state notification callback prototype.

Parameters
messagea non nullptr informational message about the state
Deprecated:
06/04/2020 Use LinphoneCoreCbsAccountRegistrationStateChangedCb instead

◆ onSubscribeReceived()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onSubscribeReceived ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::Event > &  linphoneEvent,
const std::string &  subscribeEvent,
const std::shared_ptr< const linphone::Content > &  body 
)
inlinevirtual

Callback prototype for notifying the application about subscription received from the network.

Parameters
bodythe LinphoneContent of the event

◆ onSubscriptionStateChanged()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onSubscriptionStateChanged ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::Event > &  linphoneEvent,
linphone::SubscriptionState  state 
)
inlinevirtual

Callback prototype for notifying the application about changes of subscription states, including arrival of new subscriptions.

Parameters
statethe new LinphoneSubscriptionState

◆ onTransferStateChanged()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onTransferStateChanged ( const std::shared_ptr< linphone::Core > &  core,
const std::shared_ptr< linphone::Call > &  transfered,
linphone::Call::State  callState 
)
inlinevirtual

Callback for notifying progresses of transfers.

Parameters
callStatethe LinphoneCallState of the call to transfer target at the far end.

◆ onVersionUpdateCheckResultReceived()

virtual LINPHONECXX_PUBLIC void linphone::CoreListener::onVersionUpdateCheckResultReceived ( const std::shared_ptr< linphone::Core > &  core,
linphone::VersionUpdateCheckResult  result,
const std::string &  version,
const std::string &  url 
)
inlinevirtual

Callback prototype for reporting the result of a version update check.

Parameters
urlThe url where to download the new version if the result is #LinphoneVersionUpdateCheckNewVersionAvailable

The documentation for this class was generated from the following file: