chat_connection Class Reference

#include <chat_connection.h>

List of all members.

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 ()


Detailed Description

Definition at line 33 of file chat_connection.h.


Member Enumeration Documentation

enum chat_connection::chat_capabilities

Enumerator:
SEND_TEXT 
SEND_FILE 

Definition at line 36 of file chat_connection.h.

enum chat_connection::outcomes

Enumerator:
OKAY 
NO_CONNECTION 
NO_CAPABILITY 
currently 

Definition at line 56 of file chat_connection.h.


Constructor & Destructor Documentation

chat_connection::chat_connection ( communicator &  commlink,
const extended_address &  where,
int  capabilities 
)

virtual chat_connection::~chat_connection (  )  [virtual]


Member Function Documentation

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  ) 

outcome chat_connection::send_string ( const istring to_send  ) 

outcome chat_connection::send_file ( const istring filename  ) 

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]


The documentation for this class was generated from the following file:
Generated on Fri Sep 5 04:30:24 2008 for HOOPLE Libraries by  doxygen 1.5.1