#include <search_result.hh>
The SearchResult object represents a result of a search initiated from a MagicSearch.
◆ getAddress()
| LINPHONECXX_PUBLIC std::shared_ptr< const linphone::Address > linphone::SearchResult::getAddress |
( |
| ) |
const |
Gets the address of the search result if any.
- Returns
- The associed Address or nullptr.
◆ getCapabilities()
| LINPHONECXX_PUBLIC int linphone::SearchResult::getCapabilities |
( |
| ) |
const |
Returns the capabilities mask of the search result.
- Returns
- the capabilities mask associated to the search result
◆ getFriend()
| LINPHONECXX_PUBLIC std::shared_ptr< linphone::Friend > linphone::SearchResult::getFriend |
( |
| ) |
const |
Gets the friend of the search result if any.
- Returns
- The associated Friend or nullptr.
◆ getPhoneNumber()
| LINPHONECXX_PUBLIC std::string linphone::SearchResult::getPhoneNumber |
( |
| ) |
const |
Gets the phone number of the search result if any.
- Returns
- The associed phone number or nullptr.
◆ getSourceFlags()
| LINPHONECXX_PUBLIC int linphone::SearchResult::getSourceFlags |
( |
| ) |
const |
◆ getWeight()
| LINPHONECXX_PUBLIC unsigned int linphone::SearchResult::getWeight |
( |
| ) |
const |
Gets the weight of the search result.
- Returns
- the result weight
◆ hasCapability()
Returns whether or not the search result has the given capability.
- Parameters
-
- Returns
- true if it has the capability, false otherwise.
◆ hasSourceFlag()
Returns whether or not the search result has the given source flag.
- Parameters
-
- Returns
- true if it has the source flag, false otherwise.
The documentation for this class was generated from the following file: