Liblinphone  5.2.0
Public Member Functions | List of all members
linphone::XmlRpcRequest Class Reference

The XmlRpcRequest object representing a XML-RPC request to be sent. More...

#include <xml_rpc_request.hh>

Inheritance diagram for linphone::XmlRpcRequest:

Public Member Functions

 XmlRpcRequest (void *ptr, bool takeRef=true)
 
LINPHONECXX_PUBLIC _LinphoneXmlRpcRequest * cPtr ()
 
LINPHONECXX_PUBLIC void addListener (const std::shared_ptr< XmlRpcRequestListener > &listener)
 
LINPHONECXX_PUBLIC void removeListener (const std::shared_ptr< XmlRpcRequestListener > &listener)
 
LINPHONECXX_PUBLIC std::string getContent () const
 Get the content of the XML-RPC request. More...
 
LINPHONECXX_PUBLIC int getIntResponse () const
 Get the response to an XML-RPC request sent with XmlRpcSession::sendRequest() and returning an integer response. More...
 
LINPHONECXX_PUBLIC std::list< std::string > getListResponse () const
 Get the response to an XML-RPC request sent with XmlRpcSession::sendRequest() and returning a string response. More...
 
LINPHONECXX_PUBLIC std::string getRawResponse () const
 Get the raw response to an XML-RPC request sent with XmlRpcSession::sendRequest() and returning http body as string. More...
 
LINPHONECXX_PUBLIC linphone::XmlRpcStatus getStatus () const
 Get the status of the XML-RPC request. More...
 
LINPHONECXX_PUBLIC std::string getStringResponse () const
 Get the response to an XML-RPC request sent with XmlRpcSession::sendRequest() and returning a string response. More...
 
LINPHONECXX_PUBLIC void addIntArg (int value)
 Add an integer argument to an XML-RPC request. More...
 
LINPHONECXX_PUBLIC void addStringArg (const std::string &value)
 Add a string argument to an XML-RPC request. More...
 

Detailed Description

The XmlRpcRequest object representing a XML-RPC request to be sent.

Member Function Documentation

◆ addIntArg()

LINPHONECXX_PUBLIC void linphone::XmlRpcRequest::addIntArg ( int  value)

Add an integer argument to an XML-RPC request.

Parameters
valueThe integer value of the added argument.

◆ addStringArg()

LINPHONECXX_PUBLIC void linphone::XmlRpcRequest::addStringArg ( const std::string &  value)

Add a string argument to an XML-RPC request.

Parameters
valueThe string value of the added argument.

◆ getContent()

LINPHONECXX_PUBLIC std::string linphone::XmlRpcRequest::getContent ( ) const

Get the content of the XML-RPC request.

Returns
The string representation of the content of the XML-RPC request.

◆ getIntResponse()

LINPHONECXX_PUBLIC int linphone::XmlRpcRequest::getIntResponse ( ) const

Get the response to an XML-RPC request sent with XmlRpcSession::sendRequest() and returning an integer response.

Returns
The integer response to the XML-RPC request.

◆ getListResponse()

LINPHONECXX_PUBLIC std::list<std::string> linphone::XmlRpcRequest::getListResponse ( ) const

Get the response to an XML-RPC request sent with XmlRpcSession::sendRequest() and returning a string response.

Returns
A list of all string responses in the XML-RPC request.

◆ getRawResponse()

LINPHONECXX_PUBLIC std::string linphone::XmlRpcRequest::getRawResponse ( ) const

Get the raw response to an XML-RPC request sent with XmlRpcSession::sendRequest() and returning http body as string.

Returns
The string response to the XML-RPC request.

◆ getStatus()

LINPHONECXX_PUBLIC linphone::XmlRpcStatus linphone::XmlRpcRequest::getStatus ( ) const

Get the status of the XML-RPC request.

Returns
The XmlRpcStatus of the XML-RPC request.

◆ getStringResponse()

LINPHONECXX_PUBLIC std::string linphone::XmlRpcRequest::getStringResponse ( ) const

Get the response to an XML-RPC request sent with XmlRpcSession::sendRequest() and returning a string response.

Returns
The string response to the XML-RPC request.

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