#include <chat_connection.h>
Public Types | |
| enum | chat_capabilities { SEND_TEXT = 0x1, SEND_FILE = 0x2 } |
| enum | outcomes { OKAY = common::OKAY, NO_CONNECTION = communication_commons::NO_CONNECTION, NO_CAPABILITY, currently } |
Public Member Functions | |
| chat_connection (communicator &commlink, const extended_address &where, int capabilities) | |
| virtual | ~chat_connection () |
| const char * | outcome_name (const outcome &outcome) const |
| bool | connected () const |
| filename | download_path () const |
| void | download_path (const filename &path) |
| int | capabilities () const |
| void | capabilities (int new_capabilities) |
| outcome | renegotiate (int new_capability) |
| outcome | send_string (const istring &to_send) |
| outcome | send_file (const istring &filename) |
| bool | get_string (istring &received) |
| bool | get_file (istring &path) |
| virtual void | renegotiation () |
| virtual void | data_ready () |
Definition at line 33 of file chat_connection.h.
Definition at line 56 of file chat_connection.h.
| chat_connection::chat_connection | ( | communicator & | commlink, | |
| const extended_address & | where, | |||
| int | capabilities | |||
| ) |
| virtual chat_connection::~chat_connection | ( | ) | [virtual] |
| const char* chat_connection::outcome_name | ( | const outcome & | outcome | ) | const |
| bool chat_connection::connected | ( | ) | const |
| filename chat_connection::download_path | ( | ) | const |
| void chat_connection::download_path | ( | const filename & | path | ) |
| int chat_connection::capabilities | ( | ) | const |
| void chat_connection::capabilities | ( | int | new_capabilities | ) |
| outcome chat_connection::renegotiate | ( | int | new_capability | ) |
| bool chat_connection::get_string | ( | istring & | received | ) |
| bool chat_connection::get_file | ( | istring & | path | ) |
| virtual void chat_connection::renegotiation | ( | ) | [virtual] |
| virtual void chat_connection::data_ready | ( | ) | [virtual] |
1.5.1