#include <AbiCollabSessionManager.h>
AbiCollabSessionManager::~AbiCollabSessionManager | ( | void | ) | [virtual] |
References destroyAccounts(), disconnectSessions(), and m_pManager.
AbiCollabSessionManager::AbiCollabSessionManager | ( | void | ) |
References m_pManager.
bool AbiCollabSessionManager::_canInitiateSessionTakeover | ( | AbiCollab * | pSession | ) | [private] |
References AccountHandler::allowsSessionTakeover(), AbiCollab::getCollaborators(), AbiCollab::isLocallyControlled(), and UT_return_val_if_fail.
Referenced by disconnectSession().
void AbiCollabSessionManager::_deleteAccount | ( | AccountHandler * | pHandler | ) | [private] |
References _nullUpdate(), DELETEP, m_asyncAccountOps, UT_DEBUGMSG, and UT_return_if_fail.
Referenced by addAccount(), destroyAccount(), destroyAccounts(), and loadProfile().
void AbiCollabSessionManager::_deleteSession | ( | AbiCollab * | pSession | ) | [private] |
References _nullUpdate(), DELETEP, m_asyncSessionOps, UT_DEBUGMSG, and UT_return_if_fail.
Referenced by destroySession().
bool AbiCollabSessionManager::_nullUpdate | ( | ) | [private] |
Referenced by _deleteAccount(), and _deleteSession().
bool AbiCollabSessionManager::_setupFrame | ( | XAP_Frame ** | pFrame, | |
PD_Document * | pDoc | |||
) | [private] |
References XAP_App::getApp(), XAP_Frame::getCurrentDoc(), AD_Document::getFilename(), XAP_App::getLastFocussedFrame(), PD_Document::isDirty(), isInSession(), XAP_App::newFrame(), UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by joinSession(), and startSession().
bool AbiCollabSessionManager::addAccount | ( | AccountHandler * | pHandler | ) |
References _deleteAccount(), AccountHandler::getStorageType(), m_vecAccounts, UT_continue_if_fail, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by AP_Dialog_CollaborationAccounts::_addAccount(), AbiCollab_Command::_doCmdDebug(), AbiCollab_Command::_doCmdRegression(), IE_Imp_AbiCollab::_getAccount(), loadProfile(), and registerAccountHandlers().
void AbiCollabSessionManager::beginAsyncOperation | ( | AccountHandler * | pSession | ) |
References m_asyncAccountOps, UT_DEBUGMSG, and UT_return_if_fail.
void AbiCollabSessionManager::beginAsyncOperation | ( | AbiCollab * | pSession | ) |
void AbiCollabSessionManager::closeSession | ( | AbiCollab * | pSession, | |
bool | canConfirm | |||
) |
References XAP_Dialog_MessageBox::a_YES, destroySession(), XAP_App::getApp(), AbiCollab::getCollaborators(), XAP_App::getLastFocussedFrame(), AbiCollab::getSessionId(), AbiCollab::isLocallyControlled(), XAP_Frame::showMessageBox(), signal(), UT_ASSERT, UT_DEBUGMSG, UT_NOT_REACHED, UT_return_if_fail, UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
Referenced by disconnectSession().
void AbiCollabSessionManager::closeSessions | ( | ) |
UT_Error AbiCollabSessionManager::deserializeDocument | ( | PD_Document ** | pDoc, | |
const std::string & | document, | |||
bool | isEncodedBase64 = true | |||
) | [static] |
References DELETEP, IE_Imp::importFile(), UT_ASSERT, UT_DEBUGMSG, UT_ERROR, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by ServiceAccountHandler::_handleJoinSessionRequestResponse(), AccountHandler::_handlePacket(), FakeAccountHandler::_loadDocument(), and ServiceAccountHandler::_openDocumentMaster().
bool AbiCollabSessionManager::destroyAccount | ( | AccountHandler * | pHandler | ) |
References _deleteAccount(), destroySession(), AbiCollab::getAclAccount(), AccountHandler::getDescription(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), AbiCollab::getSessionId(), m_vecAccounts, m_vecSessions, UT_continue_if_fail, UT_DEBUGMSG, UT_return_val_if_fail, and UT_UTF8String::utf8_str().
Referenced by AP_Dialog_CollaborationAccounts::_deleteAccount(), AbiCollab_Command::_doCmdDebug(), AbiCollab_Command::_doCmdRegression(), and AP_Win32Dialog_CollaborationAccounts::_onCommand().
void AbiCollabSessionManager::destroyAccounts | ( | void | ) |
References _deleteAccount(), and m_vecAccounts.
Referenced by abi_plugin_unregister(), and ~AbiCollabSessionManager().
bool AbiCollabSessionManager::destroySession | ( | PD_Document * | pDoc | ) |
References _deleteSession(), UT_GenericVector< T >::deleteNthItem(), AbiCollab::getDocument(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_vecSessions, UT_continue_if_fail, and UT_DEBUGMSG.
Referenced by FakeAccountHandler::cleanup(), closeSession(), destroyAccount(), disjoinSession(), processPacket(), and removeBuddy().
bool AbiCollabSessionManager::destroySession | ( | AbiCollab * | pSession | ) |
void AbiCollabSessionManager::disconnectSession | ( | AbiCollab * | pSession | ) |
References _canInitiateSessionTakeover(), closeSession(), disjoinSession(), AbiCollab::getCollaborators(), AbiCollab::getDocument(), AbiCollab::getSessionId(), AbiCollab::initiateSessionTakeover(), isLocallyControlled(), UT_DEBUGMSG, and UT_return_if_fail.
Referenced by disconnectSessions(), SugarAccountHandler::disconnectTube(), ABI_Collab_Export::removeDocument(), and ABI_Collab_Export::setNewDocument().
void AbiCollabSessionManager::disconnectSessions | ( | ) |
References disconnectSession(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_vecSessions, and UT_continue_if_fail.
Referenced by abi_plugin_unregister(), and ~AbiCollabSessionManager().
void AbiCollabSessionManager::disjoinSession | ( | const std::string & | sSessionId | ) |
References destroySession(), AbiCollab::getCollaborators(), AbiCollab::getDocument(), getSessionFromSessionId(), isLocallyControlled(), signal(), UT_ASSERT, UT_DEBUGMSG, UT_NOT_REACHED, and UT_return_if_fail.
Referenced by disconnectSession().
void AbiCollabSessionManager::endAsyncOperation | ( | AbiCollab * | pSession | ) |
References m_asyncSessionOps, UT_DEBUGMSG, and UT_return_if_fail.
Referenced by ServiceAccountHandler::_listDocuments_cb(), AbiCollabSaveInterceptor::_save_cb(), AbiCollab::_shutdownAsMaster(), and TelepathyChatroom::finalize().
void AbiCollabSessionManager::endAsyncOperation | ( | AccountHandler * | pSession | ) |
References m_asyncAccountOps, UT_DEBUGMSG, and UT_return_if_fail.
References XAP_App::getApp(), XAP_Frame::getCurrentDoc(), AbiCollab::getDocument(), XAP_App::getFrame(), XAP_App::getFrameCount(), UT_continue_if_fail, and UT_return_val_if_fail.
Referenced by s_abicollab_join().
const std::vector<AccountHandler *>& AbiCollabSessionManager::getAccounts | ( | ) | const [inline] |
References m_vecAccounts.
Referenced by AP_UnixDialog_CollaborationJoin::_constructModel(), AP_UnixDialog_CollaborationAccounts::_constructModel(), AP_UnixDialog_CollaborationJoin::_constructWindow(), AP_Dialog_CollaborationJoin::_eventAddBuddy(), IE_Imp_AbiCollab::_getAccount(), AP_Win32Dialog_CollaborationShare::_populateWindowData(), AP_Win32Dialog_CollaborationJoin::_populateWindowData(), AP_Win32Dialog_CollaborationAccounts::_populateWindowData(), AP_UnixDialog_CollaborationShare::_populateWindowData(), AP_UnixDialog_CollaborationAddBuddy::_populateWindowData(), AP_Dialog_CollaborationJoin::_refreshAccounts(), AP_Dialog_CollaborationJoin::_refreshAllDocHandlesAsync(), AP_UnixDialog_CollaborationJoin::eventOpen(), s_any_accounts_online(), and AbiCollabSaveInterceptor::save().
XAP_Dialog_Id AbiCollabSessionManager::getDialogAccountsId | ( | ) | [inline] |
References m_iDialogAccounts.
XAP_Dialog_Id AbiCollabSessionManager::getDialogAddAccountId | ( | ) | [inline] |
References m_iDialogAddAccount.
XAP_Dialog_Id AbiCollabSessionManager::getDialogAddBuddyId | ( | ) | [inline] |
References m_iDialogAddBuddy.
XAP_Dialog_Id AbiCollabSessionManager::getDialogEditAccountId | ( | ) | [inline] |
References m_iDialogEditAccount.
XAP_Dialog_Id AbiCollabSessionManager::getDialogJoinId | ( | ) | [inline] |
References m_iDialogJoin.
XAP_Dialog_Id AbiCollabSessionManager::getDialogShareId | ( | ) | [inline] |
References m_iDialogShare.
AbiCollabSessionManager * AbiCollabSessionManager::getManager | ( | ) | [static] |
References m_pManager.
Referenced by AP_Dialog_CollaborationAccounts::_addAccount(), AP_UnixDialog_CollaborationJoin::_constructModel(), AP_UnixDialog_CollaborationAccounts::_constructModel(), AP_UnixDialog_CollaborationJoin::_constructWindow(), FakeAccountHandler::_createSession(), AP_Dialog_CollaborationAccounts::_deleteAccount(), AbiCollab_Command::_doCmdDebug(), AbiCollab_Command::_doCmdRegression(), AP_Dialog_CollaborationJoin::_eventAddBuddy(), IE_Imp_AbiCollab::_getAccount(), AP_Dialog_CollaborationShare::_getActiveSession(), ServiceAccountHandler::_getConnections(), ServiceAccountHandler::_getPermissions(), ServiceAccountHandler::_handleJoinSessionRequestResponse(), ServiceAccountHandler::_handleMessages(), AccountHandler::_handlePacket(), ServiceAccountHandler::_handleRealmPacket(), AbiCollab::_handleSessionTakeover(), FakeAccountHandler::_import(), ServiceAccountHandler::_listDocuments_cb(), FakeAccountHandler::_loadDocument(), AP_Win32Dialog_CollaborationAccounts::_onCommand(), IE_Imp_AbiCollab::_openDocument(), ServiceAccountHandler::_openDocumentMaster(), AP_Win32Dialog_CollaborationShare::_populateBuddyModel(), AP_UnixDialog_CollaborationShare::_populateBuddyModel(), AP_Dialog_CollaborationShare::_populateShareState(), AP_Win32Dialog_CollaborationShare::_populateWindowData(), AP_Win32Dialog_CollaborationJoin::_populateWindowData(), AP_Win32Dialog_CollaborationEditAccount::_populateWindowData(), AP_Win32Dialog_CollaborationAddAccount::_populateWindowData(), AP_Win32Dialog_CollaborationAccounts::_populateWindowData(), AP_UnixDialog_CollaborationShare::_populateWindowData(), AP_UnixDialog_CollaborationAddBuddy::_populateWindowData(), AP_UnixDialog_CollaborationAddAccount::_populateWindowData(), AP_Dialog_CollaborationJoin::_refreshAccounts(), AP_Dialog_CollaborationJoin::_refreshAllDocHandlesAsync(), AbiCollabSaveInterceptor::_save_cb(), AbiCollab::_setDocument(), ServiceAccountHandler::_setPermissions(), AbiCollab::_shutdownAsMaster(), abi_plugin_register(), abi_plugin_unregister(), TCPAccountHandler::addBuddy(), AccountHandler::addBuddy(), AP_Dialog_CollaborationAccounts::AP_Dialog_CollaborationAccounts(), AP_Dialog_CollaborationJoin::AP_Dialog_CollaborationJoin(), AP_Dialog_CollaborationShare::AP_Dialog_CollaborationShare(), AP_Win32Dialog_CollaborationAccounts::AP_Win32Dialog_CollaborationAccounts(), AP_Win32Dialog_CollaborationAddAccount::AP_Win32Dialog_CollaborationAddAccount(), AP_Win32Dialog_CollaborationAddBuddy::AP_Win32Dialog_CollaborationAddBuddy(), AP_Win32Dialog_CollaborationEditAccount::AP_Win32Dialog_CollaborationEditAccount(), AP_Win32Dialog_CollaborationJoin::AP_Win32Dialog_CollaborationJoin(), AP_Win32Dialog_CollaborationShare::AP_Win32Dialog_CollaborationShare(), AP_Win32Dialog_GenericInput::AP_Win32Dialog_GenericInput(), AP_Win32Dialog_GenericProgress::AP_Win32Dialog_GenericProgress(), TelepathyAccountHandler::buddyDisconnected(), FakeAccountHandler::cleanup(), TelepathyAccountHandler::connect(), TCPAccountHandler::connect(), ServiceAccountHandler::connect(), AP_Dialog_CollaborationAccounts::createEditAccount(), AP_Dialog_CollaborationAccounts::createNewAccount(), Defun_EV_GetMenuItemState_Fn(), XMPPAccountHandler::disconnect(), TelepathyAccountHandler::disconnect(), TCPAccountHandler::disconnect(), ServiceAccountHandler::disconnect(), SugarAccountHandler::disconnectTube(), SugarAccountHandler::disjoinBuddy(), AP_UnixDialog_CollaborationJoin::eventOpen(), TelepathyChatroom::finalize(), ServiceAccountHandler::getSessionsAsync(), ServiceAccountHandler::getShareHint(), TCPAccountHandler::handleEvent(), TelepathyAccountHandler::handleMessage(), AccountHandler::handleMessage(), AbiCollab::initiateSessionTakeover(), AbiCollabSaveInterceptor::intercept(), TelepathyChatroom::isController(), TelepathyChatroom::isLocallyControlled(), ServiceAccountHandler::joinSessionAsync(), SugarAccountHandler::joinTube(), SugarAccountHandler::offerTube(), FakeAccountHandler::process(), ABI_Collab_Export::removeDocument(), s_abicollab_accounts(), s_abicollab_authors(), s_abicollab_join(), s_abicollab_offer(), s_any_accounts_online(), AbiCollabSaveInterceptor::save(), ServiceWin32AccountHandler::ServiceWin32AccountHandler(), ABI_Collab_Export::setNewDocument(), XMPPAccountHandler::setup(), AP_Dialog_CollaborationShare::share(), TelepathyAccountHandler::signal(), SugarAccountHandler::signal(), TelepathyAccountHandler::startSession(), ServiceAccountHandler::startSession(), TCPWin32AccountHandler::TCPWin32AccountHandler(), TelepathyChatroom::TelepathyChatroom(), AP_Dialog_CollaborationAccounts::~AP_Dialog_CollaborationAccounts(), AP_Dialog_CollaborationJoin::~AP_Dialog_CollaborationJoin(), and AP_Dialog_CollaborationShare::~AP_Dialog_CollaborationShare().
const std::map<UT_UTF8String, AccountHandlerConstructor>& AbiCollabSessionManager::getRegisteredAccountHandlers | ( | void | ) | [inline] |
AbiCollab * AbiCollabSessionManager::getSession | ( | PD_Document * | pDoc | ) |
References AbiCollab::getDocument(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_vecSessions, and UT_return_val_if_fail.
Referenced by AP_Dialog_CollaborationShare::_getActiveSession(), Defun_EV_GetMenuItemState_Fn(), SugarAccountHandler::disconnectTube(), AbiCollabSaveInterceptor::intercept(), AbiCollabSaveInterceptor::save(), and AP_Dialog_CollaborationShare::share().
AbiCollab * AbiCollabSessionManager::getSessionFromDocumentId | ( | const std::string & | sDocumentId | ) |
AbiCollab * AbiCollabSessionManager::getSessionFromSessionId | ( | const std::string & | sSessionId | ) |
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), AbiCollab::getSessionId(), and m_vecSessions.
Referenced by AccountHandler::_handlePacket(), disjoinSession(), TelepathyChatroom::isController(), TelepathyChatroom::isLocallyControlled(), processPacket(), and s_abicollab_join().
const UT_GenericVector<AbiCollab *>& AbiCollabSessionManager::getSessions | ( | void | ) | const [inline] |
References m_vecSessions.
Referenced by AccountHandler::_handlePacket(), and TCPAccountHandler::addBuddy().
bool AbiCollabSessionManager::isActive | ( | const std::string & | sSessionId | ) |
bool AbiCollabSessionManager::isInSession | ( | PD_Document * | pDoc | ) |
References AbiCollab::getDocument(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_vecSessions, and UT_return_val_if_fail.
Referenced by AP_Dialog_CollaborationShare::_getActiveSession(), AP_Dialog_CollaborationShare::_populateShareState(), _setupFrame(), Defun_EV_GetMenuItemState_Fn(), ServiceAccountHandler::getShareHint(), AbiCollabSaveInterceptor::intercept(), and AP_Dialog_CollaborationShare::share().
bool AbiCollabSessionManager::isLocallyControlled | ( | PD_Document * | pDoc | ) |
void AbiCollabSessionManager::joinSession | ( | const std::string & | sSessionId, | |
PD_Document * | pDoc, | |||
const std::string & | docUUID, | |||
UT_sint32 | iRev, | |||
UT_sint32 | iAuthorId, | |||
BuddyPtr | pCollaborator, | |||
AccountHandler * | pAclAccount, | |||
bool | bLocallyOwned, | |||
XAP_Frame * | pFrame | |||
) |
References _setupFrame(), XAP_App::getApp(), PD_Document::getAuthorByInt(), XAP_App::getLastFocussedFrame(), AccountHandler::getStorageType(), XAP_Frame::loadDocument(), m_vecSessions, UT_GenericVector< T >::push_back(), PD_Document::setMyAuthorInt(), signal(), UT_DEBUGMSG, and UT_return_if_fail.
Referenced by ServiceAccountHandler::_handleJoinSessionRequestResponse(), and AccountHandler::_handlePacket().
References DocHandle::getSessionId(), AccountHandler::joinSessionAsync(), UT_DEBUGMSG, and UT_return_if_fail.
Referenced by TelepathyAccountHandler::handleMessage(), s_abicollab_join(), and SugarAccountHandler::signal().
void AbiCollabSessionManager::loadProfile | ( | ) |
References _deleteAccount(), addAccount(), AccountHandler::addBuddy(), AccountHandler::addProperty(), AccountHandler::autoConnect(), AccountHandler::connect(), AccountHandler::constructBuddy(), FREEP, gchar, XAP_App::getApp(), in, m_regAccountHandlers, s, UT_UTF8String::size(), UT_continue_if_fail, UT_DEBUGMSG, UT_go_file_open(), UT_go_filename_to_uri(), UT_return_if_fail, and UT_UTF8String::utf8_str().
Referenced by abi_plugin_register().
bool AbiCollabSessionManager::processPacket | ( | AccountHandler & | handler, | |
Packet * | pPacket, | |||
BuddyPtr | buddy | |||
) |
References _PCT_FirstSessionPacket, _PCT_LastSessionPacket, destroySession(), XAP_App::getApp(), AbiCollab::getDocument(), AD_Document::getFilename(), XAP_App::getLastFocussedFrame(), getSessionFromSessionId(), CloseSessionEvent::getSessionId(), DisjoinSessionEvent::getSessionId(), JoinSessionEvent::getSessionId(), SessionPacket::getSessionId(), AbiCollab::import(), isLocallyControlled(), PCT_AccountAddBuddyRequestEvent, PCT_CloseSessionEvent, PCT_DisjoinSessionEvent, PCT_JoinSessionEvent, PCT_StartSessionEvent, AbiCollab::removeCollaborator(), XAP_Frame::showMessageBox(), signal(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_NOT_IMPLEMENTED, UT_NOT_REACHED, UT_return_val_if_fail, UT_SHOULD_NOT_HAPPEN, UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
Referenced by FakeAccountHandler::_import(), and AccountHandler::handleMessage().
bool AbiCollabSessionManager::registerAccountHandlers | ( | void | ) |
References addAccount(), AccountHandler::connect(), SIPSimpleAccountHandler::getStaticStorageType(), ServiceAccountHandler::getStaticStorageType(), TCPAccountHandler::getStaticStorageType(), XMPPAccountHandler::getStaticStorageType(), m_regAccountHandlers, m_vImpSniffers, IE_Imp::registerImporter(), ServiceAccountHandlerConstructor, SIPSimpleAccountHandlerConstructor, TCPAccountHandlerConstructor, tls_tunnel::Proxy::tls_tunnel_init(), UT_DEBUGMSG, and XMPPAccountHandlerConstructor.
Referenced by abi_plugin_register().
bool AbiCollabSessionManager::registerDialogs | ( | void | ) |
References ap_Dialog_CollaborationAccounts_Constructor, ap_Dialog_CollaborationAddAccount_Constructor, ap_Dialog_CollaborationAddBuddy_Constructor, ap_Dialog_CollaborationEditAccount_Constructor, ap_Dialog_CollaborationJoin_Constructor, ap_Dialog_CollaborationShare_Constructor, XAP_App::getApp(), XAP_App::getDialogFactory(), m_iDialogAccounts, m_iDialogAddAccount, m_iDialogAddBuddy, m_iDialogEditAccount, m_iDialogJoin, m_iDialogShare, XAP_DialogFactory::registerDialog(), and XAP_DLGT_NON_PERSISTENT.
Referenced by abi_plugin_register().
void AbiCollabSessionManager::registerEventListener | ( | EventListener * | pListener | ) |
References m_vecEventListeners, UT_GenericVector< T >::push_back(), and UT_return_if_fail.
Referenced by AP_Dialog_CollaborationAccounts::AP_Dialog_CollaborationAccounts(), AP_Dialog_CollaborationJoin::AP_Dialog_CollaborationJoin(), AP_Dialog_CollaborationShare::AP_Dialog_CollaborationShare(), TelepathyAccountHandler::connect(), TCPAccountHandler::connect(), ServiceAccountHandler::connect(), SugarAccountHandler::joinTube(), SugarAccountHandler::offerTube(), and XMPPAccountHandler::setup().
void AbiCollabSessionManager::removeBuddy | ( | BuddyPtr | pBuddy, | |
bool | graceful = true | |||
) |
References destroySession(), XAP_App::getApp(), AbiCollab::getDocument(), AD_Document::getFilename(), UT_GenericVector< T >::getItemCount(), XAP_App::getLastFocussedFrame(), UT_GenericVector< T >::getNthItem(), AbiCollab::isController(), AbiCollab::isLocallyControlled(), m_vecSessions, AbiCollab::removeCollaborator(), XAP_Frame::showMessageBox(), UT_continue_if_fail, UT_DEBUGMSG, UT_return_if_fail, UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
Referenced by ServiceAccountHandler::_handleMessages(), ServiceAccountHandler::_handleRealmPacket(), TelepathyAccountHandler::buddyDisconnected(), SugarAccountHandler::disjoinBuddy(), and TCPAccountHandler::handleEvent().
UT_Error AbiCollabSessionManager::serializeDocument | ( | const PD_Document * | pDoc, | |
std::string & | document, | |||
bool | encodeBase64 = true | |||
) | [static] |
References IE_Exp::fileTypeForSuffix(), XAP_App::getApp(), XAP_App::getPrefs(), PD_Document::isExportAuthorAtts(), XAP_Prefs::setIgnoreNextRecent(), size, UT_DEBUGMSG, UT_OK, and UT_return_val_if_fail.
Referenced by AccountHandler::_handlePacket(), ServiceAccountHandler::constructSaveDocumentCall(), AbiCollab::startRecording(), and ServiceAccountHandler::startSession().
void AbiCollabSessionManager::setDocumentHandles | ( | BuddyPtr | buddy, | |
const UT_GenericVector< DocHandle * > & | vDocHandle | |||
) |
References XAP_App::getApp(), DocHandle::getName(), UT_GenericVector< T >::getNthItem(), DocHandle::getSessionId(), XAP_App::getStringSet(), XAP_StringSet::getValueUTF8(), signal(), UT_GenericVector< T >::size(), UT_continue_if_fail, UT_DEBUGMSG, UT_return_if_fail, and UT_UTF8String_sprintf().
Referenced by AccountHandler::_handlePacket().
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_vecEventListeners, EventListener::signal(), and UT_DEBUGMSG.
Referenced by AP_Dialog_CollaborationJoin::_eventAddBuddy(), AccountHandler::addBuddy(), closeSession(), TelepathyAccountHandler::connect(), TCPAccountHandler::connect(), ServiceAccountHandler::connect(), XMPPAccountHandler::disconnect(), TelepathyAccountHandler::disconnect(), TCPAccountHandler::disconnect(), ServiceAccountHandler::disconnect(), disjoinSession(), joinSession(), processPacket(), setDocumentHandles(), XMPPAccountHandler::setup(), and startSession().
AbiCollab * AbiCollabSessionManager::startSession | ( | PD_Document * | pDoc, | |
std::string & | sNewSessionId, | |||
AccountHandler * | pAclAccount, | |||
bool | bLocallyOwned, | |||
XAP_Frame * | pFrame, | |||
const UT_UTF8String & | masterDescriptor | |||
) |
References _setupFrame(), PD_Document::addAuthor(), UT_UUIDGenerator::createUUID(), PD_Document::findFirstFreeAuthorInt(), gchar, XAP_App::getApp(), pp_Author::getAttrProp(), pp_Author::getAuthorInt(), PD_Document::getAuthors(), AD_Document::getDocUUIDString(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), pp_Author::getProperty(), XAP_App::getUUIDGenerator(), PP_AttrProp::hasProperties(), m_vecSessions, UT_GenericVector< T >::push_back(), PD_Document::sendAddAuthorCR(), PD_Document::sendChangeAuthorCR(), PD_Document::setMyAuthorInt(), PP_AttrProp::setProperty(), signal(), UT_UUID::toString(), UT_continue_if_fail, UT_DEBUGMSG, UT_return_val_if_fail, and UT_UTF8String::utf8_str().
Referenced by ServiceAccountHandler::_openDocumentMaster(), SugarAccountHandler::offerTube(), AP_Dialog_CollaborationShare::share(), TelepathyAccountHandler::startSession(), and ServiceAccountHandler::startSession().
void AbiCollabSessionManager::storeProfile | ( | ) |
References abicollab::service::error(), FREEP, gchar, XAP_App::getApp(), AccountHandler::getBuddies(), AccountHandler::getProperties(), AccountHandler::getStorageType(), m_vecAccounts, s, UT_ASSERT_HARMLESS, UT_continue_if_fail, UT_DEBUGMSG, UT_go_file_create(), UT_go_filename_to_uri(), UT_NOT_IMPLEMENTED, and UT_UTF8String::utf8_str().
Referenced by AP_Dialog_CollaborationAccounts::_addAccount(), AP_Dialog_CollaborationAccounts::_deleteAccount(), IE_Imp_AbiCollab::_getAccount(), ServiceAccountHandler::_getConnections(), ServiceAccountHandler::_getPermissions(), ServiceAccountHandler::_listDocuments_cb(), IE_Imp_AbiCollab::_openDocument(), AbiCollabSaveInterceptor::_save_cb(), ServiceAccountHandler::_setPermissions(), abi_plugin_unregister(), ServiceAccountHandler::joinSessionAsync(), and ServiceAccountHandler::startSession().
bool AbiCollabSessionManager::unregisterAccountHandlers | ( | void | ) |
References m_regAccountHandlers, tls_tunnel::Proxy::tls_tunnel_deinit(), and UT_DEBUGMSG.
Referenced by abi_plugin_unregister().
bool AbiCollabSessionManager::unregisterDialogs | ( | void | ) |
void AbiCollabSessionManager::unregisterEventListener | ( | EventListener * | pListener | ) |
References UT_GenericVector< T >::deleteNthItem(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_vecEventListeners, and UT_return_if_fail.
Referenced by XMPPAccountHandler::disconnect(), TelepathyAccountHandler::disconnect(), TCPAccountHandler::disconnect(), ServiceAccountHandler::disconnect(), AP_Dialog_CollaborationAccounts::~AP_Dialog_CollaborationAccounts(), AP_Dialog_CollaborationJoin::~AP_Dialog_CollaborationJoin(), and AP_Dialog_CollaborationShare::~AP_Dialog_CollaborationShare().
void AbiCollabSessionManager::unregisterSniffers | ( | void | ) |
References m_vImpSniffers, IE_Imp::unregisterImporter(), and UT_continue_if_fail.
Referenced by abi_plugin_unregister().
void AbiCollabSessionManager::updateAcl | ( | AbiCollab * | pSession, | |
AccountHandler * | pAccount, | |||
const std::vector< std::string > | acl | |||
) |
std::map<AccountHandler*, int> AbiCollabSessionManager::m_asyncAccountOps [private] |
Referenced by _deleteAccount(), beginAsyncOperation(), and endAsyncOperation().
std::map<AbiCollab*, int> AbiCollabSessionManager::m_asyncSessionOps [private] |
Referenced by _deleteSession(), beginAsyncOperation(), and endAsyncOperation().
Referenced by getDialogAccountsId(), registerDialogs(), and unregisterDialogs().
Referenced by getDialogAddAccountId(), registerDialogs(), and unregisterDialogs().
Referenced by getDialogAddBuddyId(), registerDialogs(), and unregisterDialogs().
Referenced by getDialogEditAccountId(), registerDialogs(), and unregisterDialogs().
Referenced by getDialogJoinId(), registerDialogs(), and unregisterDialogs().
Referenced by getDialogShareId(), registerDialogs(), and unregisterDialogs().
AbiCollabSessionManager * AbiCollabSessionManager::m_pManager = NULL [static, private] |
Referenced by AbiCollabSessionManager(), getManager(), and ~AbiCollabSessionManager().
std::map<UT_UTF8String, AccountHandlerConstructor> AbiCollabSessionManager::m_regAccountHandlers [private] |
Referenced by getRegisteredAccountHandlers(), loadProfile(), registerAccountHandlers(), and unregisterAccountHandlers().
std::vector<AccountHandler *> AbiCollabSessionManager::m_vecAccounts [private] |
Referenced by addAccount(), constructBuddy(), destroyAccount(), destroyAccounts(), getAccounts(), and storeProfile().
Referenced by registerEventListener(), signal(), and unregisterEventListener().
std::vector<IE_ImpSniffer*> AbiCollabSessionManager::m_vImpSniffers [private] |
Referenced by registerAccountHandlers(), and unregisterSniffers().