#include <DiskSessionRecorder.h>
Public Member Functions | |
DiskSessionRecorder (AbiCollab *pSession) | |
~DiskSessionRecorder () | |
void | storeOutgoing (const Packet *pPacket) |
void | storeOutgoing (const Packet *pPacket, BuddyPtr toBuddy) |
void | storeIncoming (const Packet *pPacket, BuddyPtr fromBuddy) |
Static Public Member Functions | |
static const char * | getTargetDirectory () |
static const char * | getPrefix () |
static bool | getPackets (const std::string &filename, bool &bLocallyControlled, std::vector< RecordedPacket * > &packets) |
static bool | dumpSession (const std::string &filename) |
static const char * | getHeader () |
Protected Member Functions | |
void | destroy () |
void | store (bool incoming, const Packet *pPacket, BuddyPtr pBuddy) |
void | write (const void *data, int count) |
Protected Attributes | |
GsfOutput * | m_GsfStream |
GError * | m_Error |
const char * | m_URI |
DiskSessionRecorder::DiskSessionRecorder | ( | AbiCollab * | pSession | ) |
DiskSessionRecorder::~DiskSessionRecorder | ( | ) |
References destroy().
void DiskSessionRecorder::destroy | ( | ) | [protected] |
References FREEP, m_GsfStream, m_URI, and UT_DEBUGMSG.
Referenced by ~DiskSessionRecorder().
bool DiskSessionRecorder::dumpSession | ( | const std::string & | filename | ) | [static] |
static const char* DiskSessionRecorder::getHeader | ( | ) | [inline, static] |
Referenced by DiskSessionRecorder(), and getPackets().
bool DiskSessionRecorder::getPackets | ( | const std::string & | filename, | |
bool & | bLocallyControlled, | |||
std::vector< RecordedPacket * > & | packets | |||
) | [static] |
References Packet::createPacket(), IStrArchive::EndOfFile(), getHeader(), in, is, IStrArchive::Skip(), UT_DEBUGMSG, UT_go_file_open(), and UT_return_val_if_fail.
Referenced by FakeAccountHandler::_loadDocument(), and dumpSession().
static const char* DiskSessionRecorder::getPrefix | ( | ) | [inline, static] |
Referenced by DiskSessionRecorder().
static const char* DiskSessionRecorder::getTargetDirectory | ( | ) | [inline, static] |
References XAP_App::getApp(), and XAP_App::getUserPrivateDirectory().
Referenced by DiskSessionRecorder().
void DiskSessionRecorder::store | ( | bool | incoming, | |
const Packet * | pPacket, | |||
BuddyPtr | pBuddy | |||
) | [protected] |
References StrArchive::getData(), m_GsfStream, StrArchive::Size(), time, UT_DEBUGMSG, UT_return_if_fail, and write().
Referenced by storeIncoming(), and storeOutgoing().
void DiskSessionRecorder::storeIncoming | ( | const Packet * | pPacket, | |
BuddyPtr | fromBuddy | |||
) | [inline, virtual] |
Implements SessionRecorderInterface.
References store().
void DiskSessionRecorder::storeOutgoing | ( | const Packet * | pPacket | ) | [inline, virtual] |
Implements SessionRecorderInterface.
References store().
void DiskSessionRecorder::storeOutgoing | ( | const Packet * | pPacket, | |
BuddyPtr | toBuddy | |||
) | [inline, virtual] |
Implements SessionRecorderInterface.
References store().
void DiskSessionRecorder::write | ( | const void * | data, | |
int | count | |||
) | [protected] |
References m_GsfStream, UT_DEBUGMSG, and UT_return_if_fail.
Referenced by DiskSessionRecorder(), and store().
GError* DiskSessionRecorder::m_Error [protected] |
Referenced by DiskSessionRecorder().
GsfOutput* DiskSessionRecorder::m_GsfStream [protected] |
Referenced by destroy(), DiskSessionRecorder(), store(), and write().
const char* DiskSessionRecorder::m_URI [protected] |
Referenced by destroy(), and DiskSessionRecorder().