LLTransferTargetFile Class Reference

#include <lltransfertargetfile.h>

Inheritance diagram for LLTransferTargetFile:

Inheritance graph
[legend]
Collaboration diagram for LLTransferTargetFile:

Collaboration graph
[legend]
List of all members.

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 &params)
LLTSCode dataCallback (const S32 packet_id, U8 *in_datap, const S32 in_size)
void completionCallback (const LLTSCode status)

Protected Attributes

LLTransferTargetParamsFile mParams
FILE * mFP

Detailed Description

Definition at line 54 of file lltransfertargetfile.h.


Constructor & Destructor Documentation

LLTransferTargetFile::LLTransferTargetFile ( const LLUUID uuid,
LLTransferSourceType  src_type 
)

Definition at line 40 of file lltransfertargetfile.cpp.

LLTransferTargetFile::~LLTransferTargetFile (  )  [virtual]

Definition at line 48 of file lltransfertargetfile.cpp.

References llendl, llerrs, mFP, and NULL.


Member Function Documentation

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.

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

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]

Implements LLTransferTarget.

Definition at line 59 of file lltransfertargetfile.cpp.


Member Data Documentation

FILE* LLTransferTargetFile::mFP [protected]

Definition at line 72 of file lltransfertargetfile.h.

Referenced by completionCallback(), dataCallback(), and ~LLTransferTargetFile().

LLTransferTargetParamsFile LLTransferTargetFile::mParams [protected]

Definition at line 70 of file lltransfertargetfile.h.

Referenced by applyParams(), completionCallback(), and dataCallback().


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