LLTransferSourceAsset Class Reference

#include <lltransfersourceasset.h>

Inheritance diagram for LLTransferSourceAsset:

Inheritance graph
[legend]
Collaboration diagram for LLTransferSourceAsset:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLTransferSourceAsset (const LLUUID &request_id, const F32 priority)
virtual ~LLTransferSourceAsset ()

Static Public Member Functions

static void responderCallback (LLVFS *vfs, const LLUUID &uuid, LLAssetType::EType type, void *user_data, S32 result, LLExtStat ext_status)

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

LLTransferSourceParamsAsset mParams
BOOL mGotResponse
S32 mCurPos

Detailed Description

Definition at line 58 of file lltransfersourceasset.h.


Constructor & Destructor Documentation

LLTransferSourceAsset::LLTransferSourceAsset ( const LLUUID request_id,
const F32  priority 
)

Definition at line 42 of file lltransfersourceasset.cpp.

LLTransferSourceAsset::~LLTransferSourceAsset (  )  [virtual]

Definition at line 49 of file lltransfersourceasset.cpp.


Member Function Documentation

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

Implements LLTransferSource.

Definition at line 160 of file lltransfersourceasset.cpp.

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

Implements LLTransferSource.

Definition at line 95 of file lltransfersourceasset.cpp.

References FALSE, gAssetStorage, LLTransferSourceParamsAsset::getAssetID(), LLTransferSourceParamsAsset::getAssetType(), llendl, llerrs, LLTS_DONE, LLTS_ERROR, LLTS_OK, LLTS_SKIP, llwarns, mCurPos, mGotResponse, LLTransferSource::mLastPacketID, mParams, LLAssetStorage::mVFS, NULL, LLVFile::READ, and TRUE.

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

Implements LLTransferSource.

Definition at line 54 of file lltransfersourceasset.cpp.

References FALSE, gAssetStorage, LLAssetStorage::getAssetData(), LLTransferSourceParamsAsset::getAssetID(), LLTransferSourceParamsAsset::getAssetType(), LLTransferSource::getID(), is_asset_fetch_by_id_allowed(), llendl, LLTS_ERROR, llwarns, LLAssetType::lookupHumanReadable(), mParams, responderCallback(), and LLTransferSource::sendTransferStatus().

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

Implements LLTransferSource.

Definition at line 166 of file lltransfersourceasset.cpp.

References mParams, and LLTransferSourceParamsAsset::packParams().

void LLTransferSourceAsset::responderCallback ( LLVFS vfs,
const LLUUID uuid,
LLAssetType::EType  type,
void user_data,
S32  result,
LLExtStat  ext_status 
) [static]

Definition at line 179 of file lltransfersourceasset.cpp.

References LLTransferManager::findTransferSource(), gAssetStorage, LLAssetStorage::getErrorString(), LLVFile::getSize(), gTransferManager, LL_ERR_ASSET_REQUEST_NOT_IN_DATABASE, LL_ERR_NOERR, llendl, llinfos, LLTS_ERROR, LLTS_OK, LLTS_UNKNOWN_SOURCE, mGotResponse, LLTransferSource::mSize, LLAssetStorage::mVFS, NULL, LLVFile::READ, LLTransferSource::sendTransferStatus(), and TRUE.

Referenced by initTransfer().

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

Implements LLTransferSource.

Definition at line 172 of file lltransfersourceasset.cpp.

References mParams, and LLTransferSourceParamsAsset::unpackParams().

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

Implements LLTransferSource.

Definition at line 90 of file lltransfersourceasset.cpp.


Member Data Documentation

S32 LLTransferSourceAsset::mCurPos [protected]

Definition at line 83 of file lltransfersourceasset.h.

Referenced by dataCallback().

BOOL LLTransferSourceAsset::mGotResponse [protected]

Definition at line 81 of file lltransfersourceasset.h.

Referenced by dataCallback(), and responderCallback().

LLTransferSourceParamsAsset LLTransferSourceAsset::mParams [protected]

Definition at line 80 of file lltransfersourceasset.h.

Referenced by dataCallback(), 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