#include <lltransfersourceasset.h>
Inheritance diagram for LLTransferSourceAsset:


| 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 | 
Definition at line 58 of file lltransfersourceasset.h.
Definition at line 42 of file lltransfersourceasset.cpp.
| LLTransferSourceAsset::~LLTransferSourceAsset | ( | ) |  [virtual] | 
Definition at line 49 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] | 
| S32 LLTransferSourceAsset::mCurPos  [protected] | 
| BOOL LLTransferSourceAsset::mGotResponse  [protected] | 
Definition at line 81 of file lltransfersourceasset.h.
Referenced by dataCallback(), and responderCallback().
Definition at line 80 of file lltransfersourceasset.h.
Referenced by dataCallback(), initTransfer(), packParams(), and unpackParams().
 1.4.7
 1.4.7