|
Liblinphone 5.4.71
|
Object that represents a remote contact directory such as a LDAP or CardDAV server; used as a MagicSearch source. More...
#include <remote_contact_directory.hh>
Public Types | |
| enum class | Type { CardDav = 0 , Ldap = 1 } |
| Enum describing the type of RemoteContactDirectory (currently CardDAV or LDAP). More... | |
Public Member Functions | |
| LINPHONECXX_PUBLIC | RemoteContactDirectory (void *ptr, bool takeRef=true) |
| LINPHONECXX_PUBLIC _LinphoneRemoteContactDirectory * | cPtr () |
| LINPHONECXX_PUBLIC std::shared_ptr< linphone::CardDavParams > | getCardDavParams () |
| Gets the CardDAV remote contact directory if getType() returns CardDAV. | |
| LINPHONECXX_PUBLIC std::shared_ptr< linphone::LdapParams > | getLdapParams () |
| Gets the LDAP remote_contact_directory if getType() returns LDAP. | |
| LINPHONECXX_PUBLIC unsigned int | getLimit () const |
| Gets the maximum number of results to fetch, 0 means no limit. | |
| LINPHONECXX_PUBLIC void | setLimit (unsigned int limit) |
| Sets the maximum number of results to fetch, 0 means no limit. | |
| LINPHONECXX_PUBLIC unsigned int | getMinCharacters () const |
| Gets the minimum number of characters to have before sending the query to the server. | |
| LINPHONECXX_PUBLIC void | setMinCharacters (unsigned int min) |
| Sets the minimum number of characters to have before sending the query to the server. | |
| LINPHONECXX_PUBLIC std::string | getServerUrl () const |
| Gets the configured remote contact directory server URL. | |
| LINPHONECXX_PUBLIC void | setServerUrl (const std::string &serverUrl) |
| Sets the server URL to use to reach the remote contact directory server. | |
| LINPHONECXX_PUBLIC unsigned int | getTimeout () const |
| Gets the timeout (in seconds) after which the query is abandonned. | |
| LINPHONECXX_PUBLIC void | setTimeout (unsigned int seconds) |
| Sets the timeout (in seconds) after which the query is abandonned. | |
| LINPHONECXX_PUBLIC Type | getType () const |
| Gets the type of remote contact directory (LDAP, CardDAV). | |
Object that represents a remote contact directory such as a LDAP or CardDAV server; used as a MagicSearch source.
|
strong |
Enum describing the type of RemoteContactDirectory (currently CardDAV or LDAP).
| Enumerator | |
|---|---|
| CardDav | Remote contact directory will use CardDavParams. |
| Ldap | Remote contact directory will use LdapParams. |
| LINPHONECXX_PUBLIC std::shared_ptr< linphone::CardDavParams > linphone::RemoteContactDirectory::getCardDavParams | ( | ) |
Gets the CardDAV remote contact directory if getType() returns CardDAV.
| LINPHONECXX_PUBLIC std::shared_ptr< linphone::LdapParams > linphone::RemoteContactDirectory::getLdapParams | ( | ) |
Gets the LDAP remote_contact_directory if getType() returns LDAP.
| LINPHONECXX_PUBLIC unsigned int linphone::RemoteContactDirectory::getLimit | ( | ) | const |
Gets the maximum number of results to fetch, 0 means no limit.
| LINPHONECXX_PUBLIC unsigned int linphone::RemoteContactDirectory::getMinCharacters | ( | ) | const |
Gets the minimum number of characters to have before sending the query to the server.
| LINPHONECXX_PUBLIC std::string linphone::RemoteContactDirectory::getServerUrl | ( | ) | const |
Gets the configured remote contact directory server URL.
| LINPHONECXX_PUBLIC unsigned int linphone::RemoteContactDirectory::getTimeout | ( | ) | const |
Gets the timeout (in seconds) after which the query is abandonned.
| LINPHONECXX_PUBLIC Type linphone::RemoteContactDirectory::getType | ( | ) | const |
Gets the type of remote contact directory (LDAP, CardDAV).
| LINPHONECXX_PUBLIC void linphone::RemoteContactDirectory::setLimit | ( | unsigned int | limit | ) |
Sets the maximum number of results to fetch, 0 means no limit.
| limit | the maximum number of results to return. |
| LINPHONECXX_PUBLIC void linphone::RemoteContactDirectory::setMinCharacters | ( | unsigned int | min | ) |
Sets the minimum number of characters to have before sending the query to the server.
| min | the minimum characters to have in user input filter before sending the query. |
| LINPHONECXX_PUBLIC void linphone::RemoteContactDirectory::setServerUrl | ( | const std::string & | serverUrl | ) |
Sets the server URL to use to reach the remote contact directory server.
| serverUrl | the remote contact directory server URL. |
| LINPHONECXX_PUBLIC void linphone::RemoteContactDirectory::setTimeout | ( | unsigned int | seconds | ) |
Sets the timeout (in seconds) after which the query is abandonned.
| seconds | the number of seconds before considering the query as timed-out. |