#include <lltransfertargetfile.h>
Inheritance diagram for LLTransferTargetFile:
Public Member Functions | |
LLTransferTargetFile (const LLUUID &uuid, LLTransferSourceType src_type) | |
virtual | ~LLTransferTargetFile () |
Static Public Member Functions | |
static void | requestTransfer (LLTransferTargetChannel *channelp, const char *local_filename, const LLTransferSourceParams &source_params, LLTTFCompleteCallback callback) |
Protected Member Functions | |
virtual bool | unpackParams (LLDataPacker &dp) |
void | applyParams (const LLTransferTargetParams ¶ms) |
LLTSCode | dataCallback (const S32 packet_id, U8 *in_datap, const S32 in_size) |
void | completionCallback (const LLTSCode status) |
Protected Attributes | |
LLTransferTargetParamsFile | mParams |
FILE * | mFP |
Definition at line 54 of file lltransfertargetfile.h.
LLTransferTargetFile::LLTransferTargetFile | ( | const LLUUID & | uuid, | |
LLTransferSourceType | src_type | |||
) |
Definition at line 40 of file lltransfertargetfile.cpp.
LLTransferTargetFile::~LLTransferTargetFile | ( | ) | [virtual] |
void LLTransferTargetFile::applyParams | ( | const LLTransferTargetParams & | params | ) | [protected, virtual] |
Implements LLTransferTarget.
Definition at line 65 of file lltransfertargetfile.cpp.
References llendl, llwarns, mParams, LLTransferTarget::mType, and params.
Implements LLTransferTarget.
Definition at line 105 of file lltransfertargetfile.cpp.
References llendl, llinfos, LLTS_ABORT, LLTS_DONE, LLTS_ERROR, llwarns, LLTransferTargetParamsFile::mCompleteCallback, LLTransferTargetParamsFile::mFilename, mFP, mParams, LLTransferTargetParamsFile::mUserData, NULL, and LLFile::remove().
LLTSCode LLTransferTargetFile::dataCallback | ( | const S32 | packet_id, | |
U8 * | in_datap, | |||
const S32 | in_size | |||
) | [protected, virtual] |
Implements LLTransferTarget.
Definition at line 76 of file lltransfertargetfile.cpp.
References count, LLFile::fopen(), llendl, LLTS_ERROR, LLTS_OK, llwarns, LLTransferTargetParamsFile::mFilename, mFP, mParams, and S32.
static void LLTransferTargetFile::requestTransfer | ( | LLTransferTargetChannel * | channelp, | |
const char * | local_filename, | |||
const LLTransferSourceParams & | source_params, | |||
LLTTFCompleteCallback | callback | |||
) | [static] |
bool LLTransferTargetFile::unpackParams | ( | LLDataPacker & | dp | ) | [protected, virtual] |
FILE* LLTransferTargetFile::mFP [protected] |
Definition at line 72 of file lltransfertargetfile.h.
Referenced by completionCallback(), dataCallback(), and ~LLTransferTargetFile().
Definition at line 70 of file lltransfertargetfile.h.
Referenced by applyParams(), completionCallback(), and dataCallback().