#include <FakeAccountHandler.h>
FakeAccountHandler::FakeAccountHandler | ( | const UT_UTF8String & | sSessionURI, | |
XAP_Frame * | pFrame | |||
) |
References UT_DEBUGMSG.
FakeAccountHandler::~FakeAccountHandler | ( | ) | [virtual] |
bool FakeAccountHandler::_createSession | ( | ) | [private] |
References AccountHandler::addBuddy(), SessionPacket::getDocUUID(), AbiCollabSessionManager::getManager(), SessionPacket::getSessionId(), SessionPacket::isInstanceOf(), m_bLocallyControlled, m_packets, m_pDoc, m_pSession, UT_continue_if_fail, UT_DEBUGMSG, UT_return_val_if_fail, and UT_UTF8String::utf8_str().
Referenced by initialize().
bool FakeAccountHandler::_import | ( | const RecordedPacket & | rp | ) | [private] |
References ABI_Collab_Import::_import(), AccountHandler::addBuddy(), AbiCollab::addCollaborator(), getBuddy(), AbiCollab::getImport(), AbiCollabSessionManager::getManager(), AbstractChangeRecordSessionPacket::isInstanceOf(), SessionPacket::isInstanceOf(), RecordedPacket::m_bHasBuddy, RecordedPacket::m_bIncoming, m_bLocallyControlled, RecordedPacket::m_buddyName, RecordedPacket::m_pPacket, m_pSession, PCT_RevertAckSessionPacket, PCT_RevertSessionPacket, PCT_SignalSessionPacket, AbiCollabSessionManager::processPacket(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_NOT_IMPLEMENTED, UT_return_val_if_fail, UT_SHOULD_NOT_HAPPEN, and UT_UTF8String::utf8_str().
Referenced by process(), step(), and stepToRemoteRev().
bool FakeAccountHandler::_loadDocument | ( | UT_UTF8String * | pForceSessionId | ) | [private] |
References AbiCollabSessionManager::deserializeDocument(), FL_DocLayout::fillLayouts(), XAP_App::getApp(), AbiCollabSessionManager::getManager(), DiskSessionRecorder::getPackets(), SessionPacket::isInstanceOf(), XAP_Frame::loadDocument(), m_bLocallyControlled, m_iLocalRev, m_iRemoteRev, m_packets, m_pDoc, m_pFrame, RecordedPacket::m_pPacket, m_sSessionURI, GR_Graphics::newNullGraphics(), PD_Document::setCRNumber(), XAP_Frame::setDoc(), AD_Document::setFilename(), FV_View::setPoint(), SessionPacket::setSessionId(), XAP_Frame::setView(), UT_continue_if_fail, UT_DEBUGMSG, UT_OK, UT_return_val_if_fail, and UT_UTF8String::utf8_str().
Referenced by initialize().
virtual bool FakeAccountHandler::allowsManualBuddies | ( | ) | [inline, virtual] |
Implements AccountHandler.
virtual bool FakeAccountHandler::allowsSessionTakeover | ( | ) | [inline, virtual] |
Implements AccountHandler.
bool FakeAccountHandler::canStep | ( | ) |
void FakeAccountHandler::cleanup | ( | ) |
References AbiCollabSessionManager::destroySession(), AbiCollabSessionManager::getManager(), m_pSession, and UT_return_if_fail.
Referenced by AbiCollab_Command::_doCmdDebug().
ConnectResult FakeAccountHandler::connect | ( | ) | [virtual] |
Implements AccountHandler.
References UT_ASSERT_HARMLESS, and UT_NOT_REACHED.
BuddyPtr FakeAccountHandler::constructBuddy | ( | const PropertyMap & | props | ) | [virtual] |
Implements AccountHandler.
References UT_DEBUGMSG, and UT_return_val_if_fail.
BuddyPtr FakeAccountHandler::constructBuddy | ( | const std::string & | descriptor, | |
BuddyPtr | pBuddy | |||
) | [virtual] |
Implements AccountHandler.
References UT_ASSERT_HARMLESS, and UT_NOT_IMPLEMENTED.
bool FakeAccountHandler::disconnect | ( | void | ) | [virtual] |
Implements AccountHandler.
References UT_ASSERT_HARMLESS, and UT_NOT_REACHED.
virtual void FakeAccountHandler::embedDialogWidgets | ( | void * | ) | [inline, virtual] |
Implements AccountHandler.
References UT_ASSERT_HARMLESS, and UT_NOT_REACHED.
void FakeAccountHandler::forceDisconnectBuddy | ( | BuddyPtr | pBuddy | ) | [virtual] |
Implements AccountHandler.
References UT_ASSERT_HARMLESS, UT_NOT_IMPLEMENTED, and UT_return_if_fail.
FakeBuddyPtr FakeAccountHandler::getBuddy | ( | const UT_UTF8String & | description | ) |
References AccountHandler::getBuddies(), and UT_continue_if_fail.
Referenced by _import().
References m_iLocalRev, m_iRemoteRev, m_packets, m_pDoc, m_pSession, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by AbiCollab_Command::_doCmdDebug().
UT_UTF8String FakeAccountHandler::getDescription | ( | ) | [virtual] |
Implements AccountHandler.
UT_UTF8String FakeAccountHandler::getDisplayType | ( | ) | [virtual] |
Implements AccountHandler.
XAP_Frame* FakeAccountHandler::getFrame | ( | ) | [inline] |
References m_pFrame.
Referenced by AbiCollab_Command::_doCmdDebug().
UT_UTF8String FakeAccountHandler::getStaticStorageType | ( | ) | [static] |
Reimplemented from AccountHandler.
Referenced by getStorageType().
virtual UT_UTF8String FakeAccountHandler::getStorageType | ( | ) | [inline, virtual] |
Implements AccountHandler.
References getStaticStorageType().
virtual bool FakeAccountHandler::hasPersistentAccessControl | ( | ) | [inline, virtual] |
Implements AccountHandler.
bool FakeAccountHandler::initialize | ( | UT_UTF8String * | pForceSessionId | ) |
References _createSession(), _loadDocument(), AccountHandler::addProperty(), AbiCollab::getSessionId(), m_pSession, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by AbiCollab_Command::_doCmdDebug().
bool FakeAccountHandler::isLocallyControlled | ( | ) | [inline] |
bool FakeAccountHandler::isOnline | ( | ) | [virtual] |
Implements AccountHandler.
void FakeAccountHandler::loadProperties | ( | ) | [virtual] |
Implements AccountHandler.
bool FakeAccountHandler::process | ( | ) |
bool FakeAccountHandler::recognizeBuddyIdentifier | ( | const std::string & | identifier | ) | [virtual] |
Implements AccountHandler.
References UT_ASSERT_HARMLESS, and UT_NOT_IMPLEMENTED.
virtual void FakeAccountHandler::removeDialogWidgets | ( | void * | ) | [inline, virtual] |
Implements AccountHandler.
References UT_ASSERT_HARMLESS, and UT_NOT_REACHED.
Implements AccountHandler.
References UT_DEBUGMSG, and UT_return_val_if_fail.
bool FakeAccountHandler::send | ( | const Packet * | pPacket | ) | [virtual] |
Implements AccountHandler.
References UT_DEBUGMSG, and UT_return_val_if_fail.
bool FakeAccountHandler::step | ( | UT_sint32 & | iLocalRev | ) |
References _import(), AbstractChangeRecordSessionPacket::isInstanceOf(), SessionPacket::isInstanceOf(), RecordedPacket::m_bIncoming, m_iIndex, m_iLocalRev, m_iRemoteRev, m_packets, m_pDoc, RecordedPacket::m_pPacket, m_pSession, UT_continue_if_fail, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by AbiCollab_Command::_doCmdDebug().
bool FakeAccountHandler::stepToRemoteRev | ( | UT_sint32 | iRemoteRev | ) |
void FakeAccountHandler::storeProperties | ( | ) | [virtual] |
Implements AccountHandler.
bool FakeAccountHandler::m_bLocallyControlled [private] |
Referenced by _createSession(), _import(), and _loadDocument().
UT_sint32 FakeAccountHandler::m_iIndex [private] |
Referenced by canStep(), step(), and stepToRemoteRev().
UT_sint32 FakeAccountHandler::m_iLocalRev [private] |
Referenced by _loadDocument(), getCurrentRev(), step(), and stepToRemoteRev().
UT_sint32 FakeAccountHandler::m_iRemoteRev [private] |
Referenced by _loadDocument(), getCurrentRev(), step(), and stepToRemoteRev().
std::vector<RecordedPacket*> FakeAccountHandler::m_packets [private] |
Referenced by _createSession(), _loadDocument(), canStep(), getCurrentRev(), process(), step(), and stepToRemoteRev().
PD_Document* FakeAccountHandler::m_pDoc [private] |
Referenced by _createSession(), _loadDocument(), canStep(), getCurrentRev(), process(), step(), and stepToRemoteRev().
XAP_Frame* FakeAccountHandler::m_pFrame [private] |
Referenced by _loadDocument(), and getFrame().
AbiCollab* FakeAccountHandler::m_pSession [private] |
Referenced by _createSession(), _import(), canStep(), cleanup(), getCurrentRev(), initialize(), process(), step(), and stepToRemoteRev().
Referenced by _loadDocument(), and process().