#include <AbiCollabImport.h>
Public Member Functions | |
| IE_Imp_AbiCollab (PD_Document *pDocument) | |
Protected Member Functions | |
| virtual UT_Error | _loadFile (GsfInput *input) |
Private Member Functions | |
| UT_Error | _openDocument (GsfInput *input, ServiceAccountHandler *pAccount, const std::string &email, const std::string &server, UT_sint64 doc_id, UT_sint64 revision) |
| bool | _parse (GsfInput *input, std::string &email, std::string &server, UT_sint64 &doc_id, UT_sint64 &revision) |
| ServiceAccountHandler * | _getAccount (const std::string &email, const std::string &server) |
| IE_Imp_AbiCollab::IE_Imp_AbiCollab | ( | PD_Document * | pDocument | ) |
References UT_DEBUGMSG.
| ServiceAccountHandler * IE_Imp_AbiCollab::_getAccount | ( | const std::string & | email, | |
| const std::string & | server | |||
| ) | [private] |
References AbiCollabSessionManager::addAccount(), AccountHandler::addProperty(), ServiceAccountHandler::askPassword(), ServiceAccountHandler::connect(), AbiCollabSessionManager::getAccounts(), AbiCollabSessionManager::getManager(), AccountHandler::getProperty(), AccountHandler::getStorageType(), ServiceAccountHandler::isOnline(), ServiceAccountHandlerConstructor, AbiCollabSessionManager::storeProfile(), UT_continue_if_fail, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by _loadFile().
| UT_Error IE_Imp_AbiCollab::_loadFile | ( | GsfInput * | input | ) | [protected, virtual] |
Implements IE_Imp.
References _getAccount(), _openDocument(), _parse(), UT_DEBUGMSG, UT_ERROR, and UT_return_val_if_fail.
| UT_Error IE_Imp_AbiCollab::_openDocument | ( | GsfInput * | input, | |
| ServiceAccountHandler * | pAccount, | |||
| const std::string & | email, | |||
| const std::string & | server, | |||
| UT_sint64 | doc_id, | |||
| UT_sint64 | revision | |||
| ) | [private] |
References AccountHandler::addProperty(), ServiceAccountHandler::askPassword(), XAP_App::getApp(), IE_Imp::getDoc(), AbiCollabSessionManager::getManager(), ServiceAccountHandler::openDocument(), abicollab::service::SOAP_ERROR_INVALID_PASSWORD, abicollab::service::SOAP_ERROR_OK, AbiCollabSessionManager::storeProfile(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_ERROR, and UT_return_val_if_fail.
Referenced by _loadFile().
| bool IE_Imp_AbiCollab::_parse | ( | GsfInput * | input, | |
| std::string & | email, | |||
| std::string & | server, | |||
| UT_sint64 & | doc_id, | |||
| UT_sint64 & | revision | |||
| ) | [private] |
References get_xml_str, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by _loadFile().
1.7.1