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


Definition at line 41 of file events.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. | |
| events (bool mask) | |
| Set all events either on or off. | |
| events (const std::string &mask) | |
| Set the mask using a text mask. | |
| events (unsigned short mask) | |
| Set the mask using an integer mask. | |
| virtual message::response | handle_response (message::response response) |
| Handle a response from Asterisk. | |
| message::response | operator() (connection &c) |
| Send this action over this connection and handle the response. | |
Static Public Attributes | |
| static const unsigned short | agent = 1 << 5 |
| Ability to read/set agent info. | |
| static const unsigned short | call = 1 << 1 |
| Call event, such as state change, etc. | |
| static const unsigned short | command = 1 << 4 |
| Ability to read/set commands. | |
| static const unsigned short | config = 1 << 7 |
| Ability to modify configurations. | |
| static const unsigned short | log = 1 << 2 |
| Log events. | |
| static const unsigned short | system = 1 << 0 |
| System events such as module load/unload. | |
| static const unsigned short | user = 1 << 6 |
| Ability to read/set user info. | |
| static const unsigned short | verbose = 1 << 3 |
| Verbose messages. | |
| astxx::manager::action::events::events | ( | unsigned short | mask | ) | [inline] |
Set the mask using an integer mask.
| mask | the integer mask |
| astxx::manager::action::events::events | ( | const std::string & | mask | ) | [inline] |
| astxx::manager::action::events::events | ( | bool | mask | ) | [inline] |
| message::action astxx::manager::action::events::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::basic_action::handle_response | ( | message::response | response | ) | [virtual, inherited] |
Handle a response from Asterisk.
| response | the response to handle |
| manager::permission_denied | on a permission error | |
| manager::authentication_required | on an authentication error | |
| manager::action::missing_data | if required data was not provided | |
| manager::action::bad_data | if the given data was invalid (invalid priority, channel, timeout...) | |
| manager::action::channel_not_found | if the given channel was not found |
Reimplemented in astxx::manager::action::command, astxx::manager::action::getvar, and astxx::manager::action::login.
Definition at line 48 of file basic_action.cc.
References astxx::manager::basic_action::action().
Referenced by astxx::manager::action::login::handle_response(), astxx::manager::action::getvar::handle_response(), astxx::manager::action::command::handle_response(), and astxx::manager::basic_action::operator()().
| 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().
1.5.6