LLXfer_VFile Class Reference

#include <llxfer_vfile.h>

Inheritance diagram for LLXfer_VFile:

Inheritance graph
[legend]
Collaboration diagram for LLXfer_VFile:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLXfer_VFile ()
 LLXfer_VFile (LLVFS *vfs, const LLUUID &local_id, LLAssetType::EType type)
virtual ~LLXfer_VFile ()
virtual void init (LLVFS *vfs, const LLUUID &local_id, LLAssetType::EType type)
virtual void free ()
virtual S32 initializeRequest (U64 xfer_id, LLVFS *vfs, const LLUUID &local_id, const LLUUID &remote_id, const LLAssetType::EType type, const LLHost &remote_host, void(*callback)(void **, S32, LLExtStat), void **user_data)
virtual S32 startDownload ()
virtual S32 processEOF ()
virtual S32 startSend (U64 xfer_id, const LLHost &remote_host)
virtual S32 suck (S32 start_position)
virtual S32 flush ()
virtual BOOL matchesLocalFile (const LLUUID &id, LLAssetType::EType type)
virtual BOOL matchesRemoteFile (const LLUUID &id, LLAssetType::EType type)
virtual void setXferSize (S32 xfer_size)
virtual S32 getMaxBufferSize ()
virtual U32 getXferTypeTag ()
virtual const char * getName ()

Protected Attributes

LLUUID mLocalID
LLUUID mRemoteID
LLUUID mTempID
LLAssetType::EType mType
LLVFilemVFile
LLVFSmVFS
char mName [MAX_STRING]


Detailed Description

Definition at line 41 of file llxfer_vfile.h.


Constructor & Destructor Documentation

LLXfer_VFile::LLXfer_VFile (  ) 

Definition at line 47 of file llxfer_vfile.cpp.

References LLAssetType::AT_NONE, init(), LLUUID::null, and NULL.

Here is the call graph for this function:

LLXfer_VFile::LLXfer_VFile ( LLVFS vfs,
const LLUUID local_id,
LLAssetType::EType  type 
)

Definition at line 53 of file llxfer_vfile.cpp.

References init().

Here is the call graph for this function:

LLXfer_VFile::~LLXfer_VFile (  )  [virtual]

Definition at line 61 of file llxfer_vfile.cpp.

References free().

Here is the call graph for this function:


Member Function Documentation

void LLXfer_VFile::init ( LLVFS vfs,
const LLUUID local_id,
LLAssetType::EType  type 
) [virtual]

Definition at line 68 of file llxfer_vfile.cpp.

References LLAssetType::lookup(), mLocalID, mName, mType, mVFile, mVFS, NULL, LLUUID::toString(), and UUID_STR_LENGTH.

Referenced by LLXfer_VFile().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLXfer_VFile::free ( void   )  [virtual]

Reimplemented from LLXfer.

Definition at line 85 of file llxfer_vfile.cpp.

References LLXfer::free(), mTempID, mType, mVFile, mVFS, NULL, LLVFile::remove(), and LLVFile::WRITE.

Referenced by ~LLXfer_VFile().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLXfer_VFile::initializeRequest ( U64  xfer_id,
LLVFS vfs,
const LLUUID local_id,
const LLUUID remote_id,
const LLAssetType::EType  type,
const LLHost remote_host,
void(*)(void **, S32, LLExtStat callback,
void **  user_data 
) [virtual]

S32 LLXfer_VFile::startDownload (  )  [virtual]

S32 LLXfer_VFile::processEOF (  )  [virtual]

Reimplemented from LLXfer.

Definition at line 287 of file llxfer_vfile.cpp.

References e_LL_XFER_COMPLETE, flush(), llendl, llinfos, LLXfer::mCallbackResult, mLocalID, LLXfer::mStatus, mTempID, mType, mVFile, mVFS, NULL, LLXfer::processEOF(), LLVFile::rename(), S32, and LLVFile::WRITE.

Here is the call graph for this function:

S32 LLXfer_VFile::startSend ( U64  xfer_id,
const LLHost remote_host 
) [virtual]

S32 LLXfer_VFile::suck ( S32  start_position  )  [virtual]

S32 LLXfer_VFile::flush (  )  [virtual]

Reimplemented from LLXfer.

Definition at line 271 of file llxfer_vfile.cpp.

References LLVFile::APPEND, LLXfer::mBuffer, LLXfer::mBufferLength, mTempID, mType, mVFS, S32, and LLVFile::write().

Referenced by processEOF().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXfer_VFile::matchesLocalFile ( const LLUUID id,
LLAssetType::EType  type 
) [virtual]

Definition at line 317 of file llxfer_vfile.cpp.

References mLocalID, and mType.

BOOL LLXfer_VFile::matchesRemoteFile ( const LLUUID id,
LLAssetType::EType  type 
) [virtual]

Definition at line 324 of file llxfer_vfile.cpp.

References mRemoteID, and mType.

void LLXfer_VFile::setXferSize ( S32  xfer_size  )  [virtual]

Reimplemented from LLXfer.

Definition at line 213 of file llxfer_vfile.cpp.

References LLVFile::APPEND, mTempID, mType, mVFile, mVFS, LLVFile::setMaxSize(), and LLXfer::setXferSize().

Referenced by startSend().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLXfer_VFile::getMaxBufferSize (  )  [virtual]

Reimplemented from LLXfer.

Definition at line 228 of file llxfer_vfile.cpp.

References LL_MAX_XFER_FILE_BUFFER.

U32 LLXfer_VFile::getXferTypeTag (  )  [virtual]

Reimplemented from LLXfer.

Definition at line 340 of file llxfer_vfile.cpp.

References LLXfer::XFER_VFILE.

const char * LLXfer_VFile::getName ( void   )  [virtual]

Reimplemented from LLXfer.

Definition at line 331 of file llxfer_vfile.cpp.

References mName.


Member Data Documentation

Definition at line 44 of file llxfer_vfile.h.

Referenced by init(), initializeRequest(), matchesLocalFile(), processEOF(), startSend(), and suck().

Definition at line 45 of file llxfer_vfile.h.

Referenced by initializeRequest(), matchesRemoteFile(), and startDownload().

Definition at line 46 of file llxfer_vfile.h.

Referenced by flush(), free(), initializeRequest(), processEOF(), setXferSize(), and startDownload().

Definition at line 49 of file llxfer_vfile.h.

Referenced by free(), init(), processEOF(), setXferSize(), startSend(), and suck().

LLVFS* LLXfer_VFile::mVFS [protected]

char LLXfer_VFile::mName[MAX_STRING] [protected]

Definition at line 53 of file llxfer_vfile.h.

Referenced by getName(), init(), and initializeRequest().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:40:54 2008 for SecondLife by  doxygen 1.5.5