#include <lltransfersourcefile.h>
Inheritance diagram for LLTransferSourceFile:
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 |
Definition at line 56 of file lltransfersourcefile.h.
Definition at line 41 of file lltransfersourcefile.cpp.
LLTransferSourceFile::~LLTransferSourceFile | ( | ) | [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] |
FILE* LLTransferSourceFile::mFP [protected] |
Definition at line 77 of file lltransfersourcefile.h.
Referenced by completionCallback(), dataCallback(), initTransfer(), and ~LLTransferSourceFile().
Definition at line 76 of file lltransfersourcefile.h.
Referenced by completionCallback(), initTransfer(), packParams(), and unpackParams().