Public Member Functions | Private Attributes

TelepathyChatroom Class Reference

#include <TelepathyChatroom.h>

List of all members.

Public Member Functions

 TelepathyChatroom (TelepathyAccountHandler *pHandler, TpChannel *pChannel, PD_Document *pDoc, const std::string &sSessionId)
bool running ()
bool tubeOffered ()
void stop ()
void finalize ()
void setChannel (TpChannel *pChannel)
boost::shared_ptr
< TelepathyChatroom
ptr ()
TelepathyAccountHandlergetHandler ()
void addBuddy (DTubeBuddyPtr pBuddy)
const std::vector
< DTubeBuddyPtr > & 
getBuddies ()
DTubeBuddyPtr getBuddy (TpHandle handle)
DTubeBuddyPtr getBuddy (UT_UTF8String dbusName)
void removeBuddy (TpHandle handle)
DBusConnection * getTube ()
const std::string & getSessionId () const
void setSessionId (const std::string &sSessionId)
std::string getDocName ()
void queue (const std::string &dbusName, const std::string &packet)
void acceptTube (const char *address)
void queueInvite (TelepathyBuddyPtr pBuddy)
bool offerTube ()
void finalizeOfferTube (DBusConnection *pTube)
bool isController (DTubeBuddyPtr pBuddy)
bool isLocallyControlled ()

Private Attributes

TelepathyAccountHandlerm_pHandler
TpChannel * m_pChannel
PD_Documentm_pDoc
DBusConnection * m_pTube
std::string m_sSessionId
std::vector< DTubeBuddyPtrm_buddies
std::vector< TelepathyBuddyPtrm_pending_invitees
std::map< std::string,
std::vector< std::string > > 
m_packet_queue
bool m_bShuttingDown
std::vector< std::string > m_offered_tubes

Constructor & Destructor Documentation

TelepathyChatroom::TelepathyChatroom ( TelepathyAccountHandler pHandler,
TpChannel *  pChannel,
PD_Document pDoc,
const std::string &  sSessionId 
)

Member Function Documentation

void TelepathyChatroom::acceptTube ( const char *  address  ) 
void TelepathyChatroom::addBuddy ( DTubeBuddyPtr  pBuddy  ) 
void TelepathyChatroom::finalize (  ) 
void TelepathyChatroom::finalizeOfferTube ( DBusConnection *  pTube  ) 
const std::vector<DTubeBuddyPtr>& TelepathyChatroom::getBuddies (  )  [inline]

References m_buddies.

DTubeBuddyPtr TelepathyChatroom::getBuddy ( TpHandle  handle  ) 

References m_buddies, and UT_continue_if_fail.

Referenced by s_dbus_handle_message().

DTubeBuddyPtr TelepathyChatroom::getBuddy ( UT_UTF8String  dbusName  ) 

References m_buddies, and UT_continue_if_fail.

std::string TelepathyChatroom::getDocName (  ) 
TelepathyAccountHandler* TelepathyChatroom::getHandler (  )  [inline]
const std::string& TelepathyChatroom::getSessionId (  )  const [inline]

References m_sSessionId.

DBusConnection* TelepathyChatroom::getTube (  )  [inline]

References m_pTube.

bool TelepathyChatroom::isController ( DTubeBuddyPtr  pBuddy  ) 
bool TelepathyChatroom::isLocallyControlled (  ) 
bool TelepathyChatroom::offerTube (  ) 
boost::shared_ptr<TelepathyChatroom> TelepathyChatroom::ptr (  )  [inline]
void TelepathyChatroom::queue ( const std::string &  dbusName,
const std::string &  packet 
)

References m_packet_queue, and UT_DEBUGMSG.

Referenced by s_dbus_handle_message().

void TelepathyChatroom::queueInvite ( TelepathyBuddyPtr  pBuddy  ) 
void TelepathyChatroom::removeBuddy ( TpHandle  handle  ) 
bool TelepathyChatroom::running (  )  [inline]

References m_pChannel.

void TelepathyChatroom::setChannel ( TpChannel *  pChannel  ) 

References m_pChannel.

Referenced by muc_channel_ready_cb().

void TelepathyChatroom::setSessionId ( const std::string &  sSessionId  )  [inline]

References m_sSessionId.

void TelepathyChatroom::stop (  ) 
bool TelepathyChatroom::tubeOffered (  )  [inline]

References m_pTube.

Referenced by group_call_add_members_cb().


Member Data Documentation

std::vector<std::string> TelepathyChatroom::m_offered_tubes [private]

Referenced by offerTube(), and queueInvite().

std::map<std::string, std::vector<std::string> > TelepathyChatroom::m_packet_queue [private]

Referenced by addBuddy(), and queue().

TpChannel* TelepathyChatroom::m_pChannel [private]

Referenced by getDocName().

Referenced by offerTube(), and queueInvite().

DBusConnection* TelepathyChatroom::m_pTube [private]
std::string TelepathyChatroom::m_sSessionId [private]

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