|
Liblinphone 5.5.0
|
#include <chat_params.hh>
Public Member Functions | |
| LINPHONECXX_PUBLIC | ChatParams (void *ptr, bool takeRef=true) |
| LINPHONECXX_PUBLIC _LinphoneChatParams * | cPtr () |
| LINPHONECXX_PUBLIC linphone::ChatRoom::Backend | getBackend () const |
| LINPHONECXX_PUBLIC void | setBackend (linphone::ChatRoom::Backend backend) |
| LINPHONECXX_PUBLIC linphone::ChatRoom::EncryptionBackend | getEncryptionBackend () const |
| LINPHONECXX_PUBLIC void | setEncryptionBackend (linphone::ChatRoom::EncryptionBackend backend) |
| LINPHONECXX_PUBLIC bool | encryptionEnabled () const |
| LINPHONECXX_PUBLIC long | getEphemeralLifetime () const |
| LINPHONECXX_PUBLIC void | setEphemeralLifetime (long time) |
| LINPHONECXX_PUBLIC linphone::ChatRoom::EphemeralMode | getEphemeralMode () const |
| LINPHONECXX_PUBLIC void | setEphemeralMode (linphone::ChatRoom::EphemeralMode mode) |
| LINPHONECXX_PUBLIC bool | rttEnabled () const |
| LINPHONECXX_PUBLIC void | enableRtt (bool rtt) |
| LINPHONECXX_PUBLIC std::shared_ptr< linphone::ChatParams > | clone () const |
Object defining settings strictly associated with ChatRoom objects such as ephemeral settings and backends.
It is automatically created when you enable chat capabilities in the ConferenceParams. If the ChatRoom backend is ChatRoom::Backend::Basic, then no other parameter is required, but ChatMessage sent and received won't benefit from all features a ChatRoom::Backend::FlexisipChat can offer like conversation with multiple participants and a subject, end-to-end encryption, ephemeral messages, etc... but this type is the only one that can interoperate with other SIP clients or with non-flexisip SIP proxies.
| LINPHONECXX_PUBLIC std::shared_ptr< linphone::ChatParams > linphone::ChatParams::clone | ( | ) | const |
Clone a ChatParams.
| LINPHONECXX_PUBLIC void linphone::ChatParams::enableRtt | ( | bool | rtt | ) |
Enables or disables real time text for the text capabilities of the chat associated with the given parameters.
| rtt | true to enable real time text, false to disable. |
| LINPHONECXX_PUBLIC bool linphone::ChatParams::encryptionEnabled | ( | ) | const |
Get the encryption status of the text capabilities of the chat associated with the given parameters.
| LINPHONECXX_PUBLIC linphone::ChatRoom::Backend linphone::ChatParams::getBackend | ( | ) | const |
Get the backend implementation of the text capabilities of the chat associated with the given parameters.
| LINPHONECXX_PUBLIC linphone::ChatRoom::EncryptionBackend linphone::ChatParams::getEncryptionBackend | ( | ) | const |
Get the encryption implementation of the text capabilities of the chat associated with the given parameters.
| LINPHONECXX_PUBLIC long linphone::ChatParams::getEphemeralLifetime | ( | ) | const |
Get lifetime (in seconds) for all new ephemeral messages in the text capabilities of the chat.
After the message is read, it will be deleted after "time" seconds.
| LINPHONECXX_PUBLIC linphone::ChatRoom::EphemeralMode linphone::ChatParams::getEphemeralMode | ( | ) | const |
Get the ephemeral message mode of the text capabilities of the chat associated with the given parameters.
| LINPHONECXX_PUBLIC bool linphone::ChatParams::rttEnabled | ( | ) | const |
Get the real time text status of the text capabilities of the chat associated with the given parameters.
| LINPHONECXX_PUBLIC void linphone::ChatParams::setBackend | ( | linphone::ChatRoom::Backend | backend | ) |
Set the backend implementation of these text capabilities of the chat parameters.
| backend | The ChatRoom::Backend enum value |
| LINPHONECXX_PUBLIC void linphone::ChatParams::setEncryptionBackend | ( | linphone::ChatRoom::EncryptionBackend | backend | ) |
Set the encryption backend implementation of these text capabilities of the chat parameters.
| backend | The ChatRoom::EncryptionBackend enum value |
| LINPHONECXX_PUBLIC void linphone::ChatParams::setEphemeralLifetime | ( | long | time | ) |
Set lifetime (in seconds) for all new ephemral messages in the text capabilities of the chat.
After the message is read, it will be deleted after "time" seconds.
| time | The ephemeral lifetime, default is disabled (0) |
| LINPHONECXX_PUBLIC void linphone::ChatParams::setEphemeralMode | ( | linphone::ChatRoom::EphemeralMode | mode | ) |
Enables or disables forcing of ephemeral messages for the text capabilities of the chat associated with the given parameters.
| mode | Ephemeral message mode ChatRoom::EphemeralMode. |