#include <SugarUnixAccountHandler.h>
Public Member Functions | |
| SugarAccountHandler () | |
| virtual | ~SugarAccountHandler () |
| virtual UT_UTF8String | getStorageType () |
| virtual UT_UTF8String | getDescription () |
| virtual UT_UTF8String | getDisplayType () |
| virtual void | embedDialogWidgets (void *) |
| virtual void | removeDialogWidgets (void *) |
| virtual bool | canDelete () |
| virtual bool | canEditProperties () |
| virtual void | loadProperties () |
| virtual void | storeProperties () |
| virtual ConnectResult | connect () |
| virtual bool | disconnect () |
| virtual bool | isOnline () |
| virtual BuddyPtr | constructBuddy (const PropertyMap &props) |
| virtual BuddyPtr | constructBuddy (const std::string &descriptor, BuddyPtr pBuddy) |
| virtual bool | allowsManualBuddies () |
| virtual void | forceDisconnectBuddy (BuddyPtr pBuddy) |
| virtual bool | hasAccess (const std::vector< std::string > &vAcl, BuddyPtr pBuddy) |
| virtual bool | hasPersistentAccessControl () |
| virtual bool | recognizeBuddyIdentifier (const std::string &identifier) |
| virtual bool | allowsSessionTakeover () |
| virtual bool | canManuallyStartSession () |
| virtual bool | send (const Packet *pPacket) |
| virtual bool | send (const Packet *pPacket, BuddyPtr buddy) |
| Packet * | createPacket (const std::string &packet, BuddyPtr pBuddy) |
| void | handleEvent (Session &pSession) |
| virtual void | signal (const Event &event, BuddyPtr pSource) |
| SugarBuddyPtr | getBuddy (const UT_UTF8String &dbusAddress) |
| bool | offerTube (FV_View *pView, const UT_UTF8String &tubeDBusAddress) |
| bool | joinTube (FV_View *pView, const UT_UTF8String &tubeDBusAddress) |
| bool | disconnectTube (FV_View *pView) |
| bool | joinBuddy (FV_View *pView, const UT_UTF8String &buddyDBusAddress) |
| bool | disjoinBuddy (FV_View *pView, const UT_UTF8String &buddyDBusAddress) |
| bool | isIgnoredBuddy (const UT_UTF8String &buddyName) |
Static Public Member Functions | |
| static SugarAccountHandler * | getHandler () |
| static UT_UTF8String | getStaticStorageType () |
Protected Member Functions | |
| bool | _send (const Packet *pPacket, const char *dbusAddress) |
| void | _registerEditMethods () |
| virtual void | _handlePacket (Packet *packet, BuddyPtr buddy) |
Private Attributes | |
| DBusConnection * | m_pTube |
| bool | m_bIsInSession |
| std::set< UT_UTF8String > | m_ignoredBuddies |
| std::string | m_sSessionId |
Static Private Attributes | |
| static SugarAccountHandler * | m_pHandler = NULL |
| SugarAccountHandler::SugarAccountHandler | ( | ) |
References _registerEditMethods(), m_pHandler, and UT_DEBUGMSG.
| SugarAccountHandler::~SugarAccountHandler | ( | ) | [virtual] |
References disconnect(), and m_pHandler.
Reimplemented from AccountHandler.
References JoinSessionRequestResponseEvent::getSessionId(), m_sSessionId, PCT_JoinSessionRequestResponseEvent, UT_DEBUGMSG, and UT_return_if_fail.
| void SugarAccountHandler::_registerEditMethods | ( | ) | [protected] |
References EV_EditMethodContainer::addEditMethod(), XAP_App::getApp(), XAP_App::getEditMethodContainer(), s_buddyJoined(), s_buddyLeft(), s_disconnectTube(), s_joinTube(), s_offerTube(), and UT_DEBUGMSG.
Referenced by SugarAccountHandler().
| bool SugarAccountHandler::_send | ( | const Packet * | pPacket, | |
| const char * | dbusAddress | |||
| ) | [protected] |
References AccountHandler::_createPacketStream(), INTERFACE, m_pTube, SEND_ONE_METHOD, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by send().
| virtual bool SugarAccountHandler::allowsManualBuddies | ( | ) | [inline, virtual] |
Implements AccountHandler.
| virtual bool SugarAccountHandler::allowsSessionTakeover | ( | ) | [inline, virtual] |
Implements AccountHandler.
| virtual bool SugarAccountHandler::canDelete | ( | ) | [inline, virtual] |
Reimplemented from AccountHandler.
| virtual bool SugarAccountHandler::canEditProperties | ( | ) | [inline, virtual] |
Reimplemented from AccountHandler.
| virtual bool SugarAccountHandler::canManuallyStartSession | ( | ) | [inline, virtual] |
Reimplemented from AccountHandler.
| ConnectResult SugarAccountHandler::connect | ( | ) | [virtual] |
Implements AccountHandler.
References UT_ASSERT_HARMLESS, and UT_NOT_REACHED.
| BuddyPtr SugarAccountHandler::constructBuddy | ( | const std::string & | descriptor, | |
| BuddyPtr | pBuddy | |||
| ) | [virtual] |
Implements AccountHandler.
References getBuddy(), UT_DEBUGMSG, and UT_return_val_if_fail.
| BuddyPtr SugarAccountHandler::constructBuddy | ( | const PropertyMap & | props | ) | [virtual] |
Implements AccountHandler.
References UT_DEBUGMSG, and UT_return_val_if_fail.
References AccountHandler::_createPacket().
Referenced by s_dbus_handle_message().
| bool SugarAccountHandler::disconnect | ( | void | ) | [virtual] |
| bool SugarAccountHandler::disconnectTube | ( | FV_View * | pView | ) |
| bool SugarAccountHandler::disjoinBuddy | ( | FV_View * | pView, | |
| const UT_UTF8String & | buddyDBusAddress | |||
| ) |
References getBuddy(), FV_View::getDocument(), AbiCollabSessionManager::getManager(), m_ignoredBuddies, AbiCollabSessionManager::removeBuddy(), UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by s_buddyLeft().
| virtual void SugarAccountHandler::embedDialogWidgets | ( | void * | ) | [inline, virtual] |
Implements AccountHandler.
References UT_ASSERT_HARMLESS, and UT_NOT_REACHED.
| void SugarAccountHandler::forceDisconnectBuddy | ( | BuddyPtr | pBuddy | ) | [virtual] |
Implements AccountHandler.
References m_ignoredBuddies, and UT_return_if_fail.
| SugarBuddyPtr SugarAccountHandler::getBuddy | ( | const UT_UTF8String & | dbusAddress | ) |
References AccountHandler::getBuddies(), and UT_continue_if_fail.
Referenced by constructBuddy(), disjoinBuddy(), hasAccess(), and s_dbus_handle_message().
| UT_UTF8String SugarAccountHandler::getDescription | ( | ) | [virtual] |
Implements AccountHandler.
| UT_UTF8String SugarAccountHandler::getDisplayType | ( | ) | [virtual] |
Implements AccountHandler.
| SugarAccountHandler * SugarAccountHandler::getHandler | ( | ) | [static] |
References m_pHandler.
Referenced by s_buddyJoined(), s_buddyLeft(), s_disconnectTube(), s_joinTube(), and s_offerTube().
| UT_UTF8String SugarAccountHandler::getStaticStorageType | ( | ) | [static] |
Reimplemented from AccountHandler.
Referenced by getStorageType().
| virtual UT_UTF8String SugarAccountHandler::getStorageType | ( | ) | [inline, virtual] |
Implements AccountHandler.
References getStaticStorageType().
| void SugarAccountHandler::handleEvent | ( | Session & | pSession | ) |
| bool SugarAccountHandler::hasAccess | ( | const std::vector< std::string > & | vAcl, | |
| BuddyPtr | pBuddy | |||
| ) | [virtual] |
Reimplemented from AccountHandler.
References getBuddy(), UT_DEBUGMSG, and UT_return_val_if_fail.
| virtual bool SugarAccountHandler::hasPersistentAccessControl | ( | ) | [inline, virtual] |
Implements AccountHandler.
| bool SugarAccountHandler::isIgnoredBuddy | ( | const UT_UTF8String & | buddyName | ) | [inline] |
References m_ignoredBuddies.
Referenced by s_dbus_handle_message().
| bool SugarAccountHandler::isOnline | ( | ) | [virtual] |
Implements AccountHandler.
| bool SugarAccountHandler::joinBuddy | ( | FV_View * | pView, | |
| const UT_UTF8String & | buddyDBusAddress | |||
| ) |
References AccountHandler::addBuddy(), UT_DEBUGMSG, UT_return_val_if_fail, and UT_UTF8String::utf8_str().
Referenced by s_buddyJoined().
| bool SugarAccountHandler::joinTube | ( | FV_View * | pView, | |
| const UT_UTF8String & | tubeDBusAddress | |||
| ) |
| void SugarAccountHandler::loadProperties | ( | ) | [virtual] |
Implements AccountHandler.
| bool SugarAccountHandler::offerTube | ( | FV_View * | pView, | |
| const UT_UTF8String & | tubeDBusAddress | |||
| ) |
References FV_View::getDocument(), AbiCollabSessionManager::getManager(), m_bIsInSession, m_pTube, m_sSessionId, AbiCollabSessionManager::registerEventListener(), s_dbus_handle_message(), AbiCollabSessionManager::startSession(), UT_DEBUGMSG, UT_return_val_if_fail, and UT_UTF8String::utf8_str().
Referenced by s_offerTube().
| bool SugarAccountHandler::recognizeBuddyIdentifier | ( | const std::string & | identifier | ) | [virtual] |
Implements AccountHandler.
| virtual void SugarAccountHandler::removeDialogWidgets | ( | void * | ) | [inline, virtual] |
Implements AccountHandler.
References UT_ASSERT_HARMLESS, and UT_NOT_REACHED.
Implements AccountHandler.
References _send(), m_pTube, UT_DEBUGMSG, and UT_return_val_if_fail.
| bool SugarAccountHandler::send | ( | const Packet * | pPacket | ) | [virtual] |
Implements AccountHandler.
References _send(), m_pTube, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by joinTube().
Reimplemented from AccountHandler.
References disconnect(), AccountBuddyAddDocumentEvent::getDocHandle(), AbiCollabSessionManager::getManager(), CloseSessionEvent::getSessionId(), AbiCollabSessionManager::joinSessionInitiate(), m_bIsInSession, m_sSessionId, PCT_AccountBuddyAddDocumentEvent, PCT_CloseSessionEvent, UT_DEBUGMSG, and UT_return_if_fail.
| void SugarAccountHandler::storeProperties | ( | ) | [virtual] |
Implements AccountHandler.
bool SugarAccountHandler::m_bIsInSession [private] |
Referenced by offerTube(), and signal().
std::set<UT_UTF8String> SugarAccountHandler::m_ignoredBuddies [private] |
Referenced by disjoinBuddy(), forceDisconnectBuddy(), and isIgnoredBuddy().
SugarAccountHandler * SugarAccountHandler::m_pHandler = NULL [static, private] |
Referenced by getHandler(), SugarAccountHandler(), and ~SugarAccountHandler().
DBusConnection* SugarAccountHandler::m_pTube [private] |
Referenced by _send(), disconnect(), joinTube(), offerTube(), and send().
std::string SugarAccountHandler::m_sSessionId [private] |
Referenced by _handlePacket(), offerTube(), and signal().
1.7.1