#include <lltransfersourcefile.h>


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 |
| LLFILE * | mFP |
Definition at line 56 of file lltransfersourcefile.h.
Definition at line 41 of file lltransfersourcefile.cpp.
| LLTransferSourceFile::~LLTransferSourceFile | ( | ) | [virtual] |
| 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().

| F32 LLTransferSourceFile::updatePriority | ( | ) | [protected, virtual] |
| 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::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().

| 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().

Definition at line 76 of file lltransfersourcefile.h.
Referenced by completionCallback(), initTransfer(), packParams(), and unpackParams().
LLFILE* LLTransferSourceFile::mFP [protected] |
Definition at line 77 of file lltransfersourcefile.h.
Referenced by completionCallback(), dataCallback(), initTransfer(), and ~LLTransferSourceFile().
1.5.5