LLTransferSourceFile Class Reference

#include <lltransfersourcefile.h>

Inheritance diagram for LLTransferSourceFile:

Inheritance graph
[legend]
Collaboration diagram for LLTransferSourceFile:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLTransferSourceFile (const LLUUID &transfer_id, const F32 priority)
virtual ~LLTransferSourceFile ()

Protected Member Functions

void initTransfer ()
F32 updatePriority ()
LLTSCode dataCallback (const S32 packet_id, const S32 max_bytes, U8 **datap, S32 &returned_bytes, BOOL &delete_returned)
void completionCallback (const LLTSCode status)
virtual void packParams (LLDataPacker &dp) const
BOOL unpackParams (LLDataPacker &dp)

Protected Attributes

LLTransferSourceParamsFile mParams
FILE * mFP

Detailed Description

Definition at line 56 of file lltransfersourcefile.h.


Constructor & Destructor Documentation

LLTransferSourceFile::LLTransferSourceFile ( const LLUUID transfer_id,
const F32  priority 
)

Definition at line 41 of file lltransfersourcefile.cpp.

LLTransferSourceFile::~LLTransferSourceFile (  )  [virtual]

Definition at line 47 of file lltransfersourcefile.cpp.

References llendl, llerrs, and mFP.


Member Function Documentation

void LLTransferSourceFile::completionCallback ( const LLTSCode  status  )  [protected, virtual]

Implements LLTransferSource.

Definition at line 126 of file lltransfersourcefile.cpp.

References LLTransferSourceParamsFile::getDeleteOnCompletion(), LLTransferSourceParamsFile::getFilename(), mFP, mParams, NULL, and LLFile::remove().

LLTSCode LLTransferSourceFile::dataCallback ( const S32  packet_id,
const S32  max_bytes,
U8 **  datap,
S32 returned_bytes,
BOOL delete_returned 
) [protected, virtual]

Implements LLTransferSource.

Definition at line 90 of file lltransfersourcefile.cpp.

References FALSE, llendl, llerrs, LLTS_DONE, LLTS_ERROR, LLTS_OK, mFP, LLTransferSource::mLastPacketID, NULL, S32, and TRUE.

void LLTransferSourceFile::initTransfer (  )  [protected, virtual]

Implements LLTransferSource.

Definition at line 55 of file lltransfersourcefile.cpp.

References LLFile::fopen(), gDirUtilp, LLDir::getDirDelimiter(), LLTransferSourceParamsFile::getFilename(), llendl, LLTS_ERROR, LLTS_OK, llwarns, mFP, mParams, LLTransferSource::mSize, and LLTransferSource::sendTransferStatus().

void LLTransferSourceFile::packParams ( LLDataPacker dp  )  const [protected, virtual]

Implements LLTransferSource.

Definition at line 143 of file lltransfersourcefile.cpp.

References mParams, and LLTransferSourceParamsFile::packParams().

BOOL LLTransferSourceFile::unpackParams ( LLDataPacker dp  )  [protected, virtual]

Implements LLTransferSource.

Definition at line 149 of file lltransfersourcefile.cpp.

References mParams, and LLTransferSourceParamsFile::unpackParams().

F32 LLTransferSourceFile::updatePriority (  )  [protected, virtual]

Implements LLTransferSource.

Definition at line 85 of file lltransfersourcefile.cpp.


Member Data Documentation

FILE* LLTransferSourceFile::mFP [protected]

Definition at line 77 of file lltransfersourcefile.h.

Referenced by completionCallback(), dataCallback(), initTransfer(), and ~LLTransferSourceFile().

LLTransferSourceParamsFile LLTransferSourceFile::mParams [protected]

Definition at line 76 of file lltransfersourcefile.h.

Referenced by completionCallback(), initTransfer(), packParams(), and unpackParams().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:53 2010 for Second Life Viewer by  doxygen 1.4.7