Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes

TCPAccountHandler Class Reference

#include <TCPAccountHandler.h>

Inheritance diagram for TCPAccountHandler:
AccountHandler EventListener TCPUnixAccountHandler TCPWin32AccountHandler

List of all members.

Public Member Functions

 TCPAccountHandler ()
virtual ~TCPAccountHandler ()
virtual UT_UTF8String getStorageType ()
virtual UT_UTF8String getDescription ()
virtual UT_UTF8String getDisplayType ()
virtual void storeProperties ()
virtual ConnectResult connect ()
virtual bool disconnect ()
virtual bool isOnline ()
void addBuddy (BuddyPtr pBuddy)
virtual BuddyPtr constructBuddy (const PropertyMap &props)
virtual BuddyPtr constructBuddy (const std::string &descriptor, BuddyPtr pBuddy)
virtual bool recognizeBuddyIdentifier (const std::string &identifier)
virtual bool allowsManualBuddies ()
virtual void forceDisconnectBuddy (BuddyPtr buddy)
virtual bool hasPersistentAccessControl ()
virtual bool defaultShareState (BuddyPtr)
virtual bool allowsSessionTakeover ()
virtual bool send (const Packet *packet)
virtual bool send (const Packet *, BuddyPtr pBuddy)
void handleEvent (boost::shared_ptr< Session > session_ptr)

Static Public Member Functions

static UT_UTF8String getStaticStorageType ()

Private Member Functions

void _teardownAndDestroyHandler ()
void _handleMessages (boost::shared_ptr< Session > session_ptr)
TCPBuddyPtr _getBuddy (boost::shared_ptr< Session > session_ptr)
virtual UT_sint32 _getPort (const PropertyMap &props)
void _handleAccept (IOServerHandler *pHandler, boost::shared_ptr< Session > session)

Private Attributes

asio::io_service m_io_service
asio::io_service::work m_work
asio::thread * m_thread
bool m_bConnected
std::map< TCPBuddyPtr,
boost::shared_ptr< Session > > 

Constructor & Destructor Documentation

TCPAccountHandler::TCPAccountHandler (  ) 
TCPAccountHandler::~TCPAccountHandler (  )  [virtual]

Member Function Documentation

TCPBuddyPtr TCPAccountHandler::_getBuddy ( boost::shared_ptr< Session session_ptr  )  [private]
UT_sint32 TCPAccountHandler::_getPort ( const PropertyMap props  )  [private, virtual]

Referenced by connect(), and constructBuddy().

void TCPAccountHandler::_handleAccept ( IOServerHandler pHandler,
boost::shared_ptr< Session session 
) [private]
void TCPAccountHandler::_handleMessages ( boost::shared_ptr< Session session_ptr  )  [private]
void TCPAccountHandler::_teardownAndDestroyHandler (  )  [private]
virtual bool TCPAccountHandler::allowsManualBuddies (  )  [inline, virtual]

Implements AccountHandler.

virtual bool TCPAccountHandler::allowsSessionTakeover (  )  [inline, virtual]

Implements AccountHandler.

BuddyPtr TCPAccountHandler::constructBuddy ( const PropertyMap props  )  [virtual]
BuddyPtr TCPAccountHandler::constructBuddy ( const std::string &  descriptor,
BuddyPtr  pBuddy 
) [virtual]
bool TCPAccountHandler::defaultShareState ( BuddyPtr   )  [virtual]

Reimplemented from AccountHandler.

References AccountHandler::getProperty().

void TCPAccountHandler::forceDisconnectBuddy ( BuddyPtr  buddy  )  [virtual]

Implements AccountHandler.

References m_clients, UT_DEBUGMSG, and UT_return_if_fail.

UT_UTF8String TCPAccountHandler::getDescription (  )  [virtual]
UT_UTF8String TCPAccountHandler::getDisplayType (  )  [virtual]

Implements AccountHandler.

UT_UTF8String TCPAccountHandler::getStaticStorageType (  )  [static]
virtual UT_UTF8String TCPAccountHandler::getStorageType (  )  [inline, virtual]

Implements AccountHandler.

References getStaticStorageType().

virtual bool TCPAccountHandler::hasPersistentAccessControl (  )  [inline, virtual]

Implements AccountHandler.

bool TCPAccountHandler::isOnline (  )  [virtual]

Implements AccountHandler.

References m_bConnected.

bool TCPAccountHandler::recognizeBuddyIdentifier ( const std::string &  identifier  )  [virtual]
bool TCPAccountHandler::send ( const Packet packet,
BuddyPtr  pBuddy 
) [virtual]
bool TCPAccountHandler::send ( const Packet packet  )  [virtual]
void TCPAccountHandler::storeProperties (  )  [virtual]

Implements AccountHandler.

Reimplemented in TCPUnixAccountHandler, and TCPWin32AccountHandler.

References UT_DEBUGMSG.

Member Data Documentation

asio::io_service TCPAccountHandler::m_io_service [private]
asio::thread* TCPAccountHandler::m_thread [private]
asio::io_service::work TCPAccountHandler::m_work [private]

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