#include <astxx/manager/action/getvar.h>


Definition at line 41 of file getvar.h.
Public Member Functions | |
| message::action | action () const |
| Format this command as a header for sending to Asterisk. | |
| virtual void | action_id (const std::string &id) |
| Set the ActionID for this action. | |
| virtual std::string | action_id () const |
| Get the ActionID for this action. | |
| getvar (const std::string &channel, const std::string &variable) | |
| Get a channel variable. | |
| message::response | handle_response (message::response response) |
| Handle the response from Asterisk. | |
| operator std::string () | |
| std::string conversion operator. | |
| message::response | operator() (connection &c) |
| Send this action over this connection and handle the response. | |
| std::string | value () |
| Get the value. | |
| astxx::manager::action::getvar::getvar | ( | const std::string & | channel, | |
| const std::string & | variable | |||
| ) | [inline] |
| message::action astxx::manager::action::getvar::action | ( | ) | const [inline, virtual] |
Format this command as a header for sending to Asterisk.
This function is called by manager::connection::send_action() to get the data to send to Asterisk.
Implements astxx::manager::basic_action.
| virtual std::string astxx::manager::basic_action::action_id | ( | ) | const [inline, virtual, inherited] |
Get the ActionID for this action.
Definition at line 62 of file basic_action.h.
Referenced by astxx::manager::action::status::action(), and astxx::manager::connection::send_action_async().
| message::response astxx::manager::action::getvar::handle_response | ( | message::response | response | ) | [inline, virtual] |
Handle the response from Asterisk.
| response | the response |
Reimplemented from astxx::manager::basic_action.
Definition at line 61 of file getvar.h.
References astxx::manager::basic_action::handle_response().
| astxx::manager::action::getvar::operator std::string | ( | ) | [inline] |
| message::response astxx::manager::basic_action::operator() | ( | connection & | c | ) | [inherited] |
Send this action over this connection and handle the response.
| c | the connection to use |
Definition at line 103 of file basic_action.cc.
References astxx::manager::basic_action::handle_response().
| std::string astxx::manager::action::getvar::value | ( | ) | [inline] |
1.5.6