LLAssetStorage Class Reference

#include <llassetstorage.h>

Inheritance diagram for LLAssetStorage:

Inheritance graph
[legend]
Collaboration diagram for LLAssetStorage:

Collaboration graph
[legend]
List of all members.

Public Types

typedef void(*) LLStoreAssetCallback (const LLUUID &asset_id, void *user_data, S32 status, LLExtStat ext_status)
 RT_INVALID = -1
 RT_DOWNLOAD = 0
 RT_UPLOAD = 1
 RT_LOCALUPLOAD = 2
 RT_COUNT = 3
enum  ERequestType {
  RT_INVALID = -1, RT_DOWNLOAD = 0, RT_UPLOAD = 1, RT_LOCALUPLOAD = 2,
  RT_COUNT = 3
}

Public Member Functions

 LLAssetStorage (LLMessageSystem *msg, LLXferManager *xfer, LLVFS *vfs, const LLHost &upstream_host)
 LLAssetStorage (LLMessageSystem *msg, LLXferManager *xfer, LLVFS *vfs)
virtual ~LLAssetStorage ()
void setUpstream (const LLHost &upstream_host)
virtual BOOL hasLocalAsset (const LLUUID &uuid, LLAssetType::EType type)
virtual void getAssetData (const LLUUID uuid, LLAssetType::EType atype, LLGetAssetCallback cb, void *user_data, BOOL is_priority=FALSE)
virtual void storeAssetData (const LLTransactionID &tid, LLAssetType::EType atype, LLStoreAssetCallback callback, void *user_data, bool temp_file=false, bool is_priority=false, bool store_local=false, bool user_waiting=false, F64 timeout=LL_ASSET_STORAGE_TIMEOUT)
virtual void storeAssetData (const LLUUID &asset_id, LLAssetType::EType asset_type, LLStoreAssetCallback callback, void *user_data, bool temp_file=false, bool is_priority=false, bool store_local=false, const LLUUID &requesting_agent_id=LLUUID::null, bool user_waiting=false, F64 timeout=LL_ASSET_STORAGE_TIMEOUT)
virtual void checkForTimeouts ()
void getEstateAsset (const LLHost &object_sim, const LLUUID &agent_id, const LLUUID &session_id, const LLUUID &asset_id, LLAssetType::EType atype, EstateAssetType etype, LLGetAssetCallback callback, void *user_data, BOOL is_priority)
void getInvItemAsset (const LLHost &object_sim, const LLUUID &agent_id, const LLUUID &session_id, const LLUUID &owner_id, const LLUUID &task_id, const LLUUID &item_id, const LLUUID &asset_id, LLAssetType::EType atype, LLGetAssetCallback cb, void *user_data, BOOL is_priority=FALSE)
request_list_tgetRequestList (ERequestType rt)
const request_list_tgetRequestList (ERequestType rt) const
S32 getNumPendingDownloads () const
S32 getNumPendingUploads () const
S32 getNumPendingLocalUploads ()
S32 getNumPending (ERequestType rt) const
virtual LLSD getPendingDetails (ERequestType rt, LLAssetType::EType asset_type, const std::string &detail_prefix) const
virtual LLSD getPendingRequest (ERequestType rt, LLAssetType::EType asset_type, const LLUUID &asset_id) const
virtual bool deletePendingRequest (ERequestType rt, LLAssetType::EType asset_type, const LLUUID &asset_id)
void getAssetData (const LLUUID uuid, LLAssetType::EType type, void(*callback)(const char *, const LLUUID &, void *, S32, LLExtStat), void *user_data, BOOL is_priority=FALSE)
virtual void storeAssetData (const char *filename, const LLUUID &asset_id, LLAssetType::EType type, LLStoreAssetCallback callback, void *user_data, bool temp_file=false, bool is_priority=false, bool user_waiting=false, F64 timeout=LL_ASSET_STORAGE_TIMEOUT)
virtual void storeAssetData (const char *filename, const LLTransactionID &transaction_id, LLAssetType::EType type, LLStoreAssetCallback callback, void *user_data, bool temp_file=false, bool is_priority=false, bool user_waiting=false, F64 timeout=LL_ASSET_STORAGE_TIMEOUT)
virtual void addTempAssetData (const LLUUID &asset_id, const LLUUID &agent_id, const std::string &host_name)
virtual BOOL hasTempAssetData (const LLUUID &texture_id) const
virtual std::string getTempAssetHostName (const LLUUID &texture_id) const
virtual LLUUID getTempAssetAgentID (const LLUUID &texture_id) const
virtual void removeTempAssetData (const LLUUID &asset_id)
virtual void removeTempAssetDataByAgentID (const LLUUID &agent_id)
virtual void dumpTempAssetData (const LLUUID &avatar_id) const
virtual void clearTempAssetData ()

Static Public Member Functions

static const LLAssetRequestfindRequest (const request_list_t *requests, LLAssetType::EType asset_type, const LLUUID &asset_id)
static LLAssetRequestfindRequest (request_list_t *requests, LLAssetType::EType asset_type, const LLUUID &asset_id)
static std::string getRequestName (ERequestType rt)
static void downloadCompleteCallback (S32 result, const LLUUID &file_id, LLAssetType::EType file_type, void *user_data, LLExtStat ext_status)
static void downloadEstateAssetCompleteCallback (S32 result, const LLUUID &file_id, LLAssetType::EType file_type, void *user_data, LLExtStat ext_status)
static void downloadInvItemCompleteCallback (S32 result, const LLUUID &file_id, LLAssetType::EType file_type, void *user_data, LLExtStat ext_status)
static void uploadCompleteCallback (const LLUUID &, void *user_data, S32 result, LLExtStat ext_status)
static void processUploadComplete (LLMessageSystem *msg, void **this_handle)
static const char * getErrorString (S32 status)
static void legacyGetDataCallback (LLVFS *vfs, const LLUUID &uuid, LLAssetType::EType, void *user_data, S32 status, LLExtStat ext_status)
static void legacyStoreDataCallback (const LLUUID &uuid, void *user_data, S32 status, LLExtStat ext_status)

Public Attributes

LLVFSmVFS

Protected Types

typedef std::list< LLAssetRequest * > request_list_t

Protected Member Functions

virtual LLSD getPendingDetails (const request_list_t *requests, LLAssetType::EType asset_type, const std::string &detail_prefix) const
virtual LLSD getPendingRequest (const request_list_t *requests, LLAssetType::EType asset_type, const LLUUID &asset_id) const
virtual bool deletePendingRequest (request_list_t *requests, LLAssetType::EType asset_type, const LLUUID &asset_id)
void _cleanupRequests (BOOL all, S32 error)
void _callUploadCallbacks (const LLUUID &uuid, const LLAssetType::EType asset_type, BOOL success, LLExtStat ext_status)
virtual void _queueDataRequest (const LLUUID &uuid, LLAssetType::EType type, void(*callback)(LLVFS *vfs, const LLUUID &, LLAssetType::EType, void *, S32, LLExtStat), void *user_data, BOOL duplicate, BOOL is_priority)

Protected Attributes

BOOL mShutDown
LLHost mUpstreamHost
LLMessageSystemmMessageSys
LLXferManagermXferManager
request_list_t mPendingDownloads
request_list_t mPendingUploads
request_list_t mPendingLocalUploads

Private Member Functions

void _init (LLMessageSystem *msg, LLXferManager *xfer, LLVFS *vfs, const LLHost &upstream_host)

Detailed Description

Definition at line 205 of file llassetstorage.h.


Member Typedef Documentation

typedef void(*) LLAssetStorage::LLStoreAssetCallback(const LLUUID &asset_id, void *user_data, S32 status, LLExtStat ext_status)

Definition at line 210 of file llassetstorage.h.

typedef std::list<LLAssetRequest*> LLAssetStorage::request_list_t [protected]

Definition at line 229 of file llassetstorage.h.


Member Enumeration Documentation

enum LLAssetStorage::ERequestType

Enumerator:
RT_INVALID 
RT_DOWNLOAD 
RT_UPLOAD 
RT_LOCALUPLOAD 
RT_COUNT 

Definition at line 212 of file llassetstorage.h.


Constructor & Destructor Documentation

LLAssetStorage::LLAssetStorage ( LLMessageSystem msg,
LLXferManager xfer,
LLVFS vfs,
const LLHost upstream_host 
)

---------------------------------------------------------------------------- LLAssetStorage ----------------------------------------------------------------------------

Definition at line 275 of file llassetstorage.cpp.

References _init().

LLAssetStorage::LLAssetStorage ( LLMessageSystem msg,
LLXferManager xfer,
LLVFS vfs 
)

Definition at line 281 of file llassetstorage.cpp.

References _init(), and LLHost::invalid.

LLAssetStorage::~LLAssetStorage (  )  [virtual]

Definition at line 302 of file llassetstorage.cpp.

References _cleanupRequests(), _PREHASH_AssetUploadComplete, gMessageSystem, LL_ERR_CIRCUIT_GONE, mShutDown, NULL, LLMessageSystem::setHandlerFuncFast(), and TRUE.


Member Function Documentation

void LLAssetStorage::_callUploadCallbacks ( const LLUUID uuid,
const LLAssetType::EType  asset_type,
BOOL  success,
LLExtStat  ext_status 
) [protected]

Definition at line 884 of file llassetstorage.cpp.

References LLAssetRequest::getType(), LLAssetRequest::getUUID(), LL_ERR_ASSET_REQUEST_FAILED, LL_ERR_NOERR, mPendingLocalUploads, mPendingUploads, LLAssetRequest::mUpCallback, and LLAssetRequest::mUserData.

Referenced by LLHTTPAssetStorage::checkForTimeouts(), and processUploadComplete().

void LLAssetStorage::_cleanupRequests ( BOOL  all,
S32  error 
) [protected]

Definition at line 328 of file llassetstorage.cpp.

References LLMessageSystem::getMessageTimeSeconds(), getRequestList(), getRequestName(), LLAssetRequest::getType(), LLAssetRequest::getUUID(), LL_ASSET_STORAGE_TIMEOUT, LL_EXSTAT_NONE, llendl, llwarns, LLAssetType::lookup(), LLAssetRequest::mDownCallback, LLAssetRequest::mInfoCallback, LLAssetRequest::mTime, LLAssetRequest::mUpCallback, LLAssetRequest::mUserData, mVFS, RT_COUNT, RT_DOWNLOAD, and S32.

Referenced by checkForTimeouts(), and ~LLAssetStorage().

void LLAssetStorage::_init ( LLMessageSystem msg,
LLXferManager xfer,
LLVFS vfs,
const LLHost upstream_host 
) [private]

Definition at line 288 of file llassetstorage.cpp.

References _PREHASH_AssetUploadComplete, FALSE, mMessageSys, mShutDown, mVFS, mXferManager, processUploadComplete(), LLMessageSystem::setHandlerFuncFast(), and setUpstream().

Referenced by LLAssetStorage().

virtual void LLAssetStorage::_queueDataRequest ( const LLUUID uuid,
LLAssetType::EType  type,
void(*)(LLVFS *vfs, const LLUUID &, LLAssetType::EType, void *, S32, LLExtStat callback,
void user_data,
BOOL  duplicate,
BOOL  is_priority 
) [protected, virtual]

Reimplemented in LLHTTPAssetStorage.

void LLAssetStorage::addTempAssetData ( const LLUUID asset_id,
const LLUUID agent_id,
const std::string &  host_name 
) [virtual]

Reimplemented in LLHTTPAssetStorage.

Definition at line 1345 of file llassetstorage.cpp.

void LLAssetStorage::checkForTimeouts (  )  [virtual]

Reimplemented in LLHTTPAssetStorage.

Definition at line 323 of file llassetstorage.cpp.

References _cleanupRequests(), FALSE, and LL_ERR_TCP_TIMEOUT.

Referenced by LLHTTPAssetStorage::checkForTimeouts(), idle_network(), and LLMessageSystem::processAcks().

void LLAssetStorage::clearTempAssetData (  )  [virtual]

Reimplemented in LLHTTPAssetStorage.

Definition at line 1373 of file llassetstorage.cpp.

bool LLAssetStorage::deletePendingRequest ( ERequestType  rt,
LLAssetType::EType  asset_type,
const LLUUID asset_id 
) [virtual]

Definition at line 1112 of file llassetstorage.cpp.

References deletePendingRequest(), getRequestList(), getRequestName(), llinfos, and LLAssetType::lookup().

bool LLAssetStorage::deletePendingRequest ( request_list_t requests,
LLAssetType::EType  asset_type,
const LLUUID asset_id 
) [protected, virtual]

Definition at line 1128 of file llassetstorage.cpp.

References findRequest(), LL_ERR_TCP_TIMEOUT, LL_EXSTAT_REQUEST_DROPPED, mVFS, and S32.

Referenced by deletePendingRequest().

void LLAssetStorage::downloadCompleteCallback ( S32  result,
const LLUUID file_id,
LLAssetType::EType  file_type,
void user_data,
LLExtStat  ext_status 
) [static]

Definition at line 511 of file llassetstorage.cpp.

References gAssetStorage, LLAssetRequest::getType(), LLAssetRequest::getUUID(), LL_ERR_ASSET_REQUEST_NOT_IN_DATABASE, LL_ERR_NOERR, lldebugs, llwarns, LLAssetType::lookup(), LLAssetRequest::mDownCallback, mPendingDownloads, LLAssetRequest::mUserData, mVFS, LLAssetRequest::setType(), and LLAssetRequest::setUUID().

Referenced by LLHTTPAssetStorage::checkForTimeouts().

void LLAssetStorage::downloadEstateAssetCompleteCallback ( S32  result,
const LLUUID file_id,
LLAssetType::EType  file_type,
void user_data,
LLExtStat  ext_status 
) [static]

Definition at line 661 of file llassetstorage.cpp.

References gAssetStorage, LLEstateAssetRequest::getAType(), LLEstateAssetRequest::getUUID(), LL_ERR_ASSET_REQUEST_NOT_IN_DATABASE, LL_ERR_NOERR, llwarns, LLEstateAssetRequest::mDownCallback, LLEstateAssetRequest::mUserData, mVFS, LLEstateAssetRequest::setType(), and LLEstateAssetRequest::setUUID().

Referenced by getEstateAsset().

void LLAssetStorage::downloadInvItemCompleteCallback ( S32  result,
const LLUUID file_id,
LLAssetType::EType  file_type,
void user_data,
LLExtStat  ext_status 
) [static]

Definition at line 798 of file llassetstorage.cpp.

References gAssetStorage, LLInvItemRequest::getType(), LLInvItemRequest::getUUID(), LL_ERR_ASSET_REQUEST_NOT_IN_DATABASE, LL_ERR_NOERR, llwarns, LLInvItemRequest::mDownCallback, LLInvItemRequest::mUserData, mVFS, LLInvItemRequest::setType(), and LLInvItemRequest::setUUID().

Referenced by getInvItemAsset().

void LLAssetStorage::dumpTempAssetData ( const LLUUID avatar_id  )  const [virtual]

Reimplemented in LLHTTPAssetStorage.

Definition at line 1369 of file llassetstorage.cpp.

LLAssetRequest * LLAssetStorage::findRequest ( request_list_t requests,
LLAssetType::EType  asset_type,
const LLUUID asset_id 
) [static]

Definition at line 1065 of file llassetstorage.cpp.

References end, and NULL.

const LLAssetRequest * LLAssetStorage::findRequest ( const request_list_t requests,
LLAssetType::EType  asset_type,
const LLUUID asset_id 
) [static]

Definition at line 1042 of file llassetstorage.cpp.

References end, and NULL.

Referenced by deletePendingRequest(), and getPendingRequest().

void LLAssetStorage::getAssetData ( const LLUUID  uuid,
LLAssetType::EType  type,
void(*)(const char *, const LLUUID &, void *, S32, LLExtStat callback,
void user_data,
BOOL  is_priority = FALSE 
)

Definition at line 1198 of file llassetstorage.cpp.

References getAssetData(), legacyGetDataCallback(), llinfos, LLLegacyAssetRequest::mDownCallback, mPendingDownloads, and LLLegacyAssetRequest::mUserData.

virtual void LLAssetStorage::getAssetData ( const LLUUID  uuid,
LLAssetType::EType  atype,
LLGetAssetCallback  cb,
void user_data,
BOOL  is_priority = FALSE 
) [virtual]

Referenced by LLGestureManager::activateGestureWithAsset(), LLWearableList::getAsset(), LLLandmarkList::getAsset(), getAssetData(), LLTransferSourceAsset::initTransfer(), LLPreviewGesture::loadAsset(), LLKeyframeMotion::onInitialize(), LLWearableList::processGetAssetReply(), LLGestureManager::replaceGesture(), and LLAudioEngine::startNextTransfer().

const char * LLAssetStorage::getErrorString ( S32  status  )  [static]

Definition at line 1160 of file llassetstorage.cpp.

References LL_ERR_ASSET_REQUEST_FAILED, LL_ERR_ASSET_REQUEST_NONEXISTENT_FILE, LL_ERR_ASSET_REQUEST_NOT_IN_DATABASE, LL_ERR_CANNOT_OPEN_FILE, LL_ERR_CIRCUIT_GONE, LL_ERR_EOF, LL_ERR_FILE_NOT_FOUND, LL_ERR_NOERR, and LL_ERR_TCP_TIMEOUT.

Referenced by LLAudioEngine::assetCallback(), auction_j2c_upload_done(), auction_tga_upload_done(), LLLiveLSLEditor::onSaveBytecodeComplete(), LLPreviewLSL::onSaveBytecodeComplete(), LLFloaterCompileQueue::onSaveBytecodeComplete(), LLPreviewLSL::onSaveComplete(), LLPreviewNotecard::onSaveComplete(), LLPreviewGesture::onSaveComplete(), LLLiveLSLEditor::onSaveTextComplete(), LLFloaterCompileQueue::onSaveTextComplete(), LLWearableList::processGetAssetReply(), LLTransferSourceAsset::responderCallback(), upload_done_callback(), LLFloaterPostcard::uploadCallback(), uploadCompleteCallback(), and LLFloaterReporter::uploadDoneCallback().

void LLAssetStorage::getEstateAsset ( const LLHost object_sim,
const LLUUID agent_id,
const LLUUID session_id,
const LLUUID asset_id,
LLAssetType::EType  atype,
EstateAssetType  etype,
LLGetAssetCallback  callback,
void user_data,
BOOL  is_priority 
)

Definition at line 575 of file llassetstorage.cpp.

References downloadEstateAssetCompleteCallback(), f, LLVFS::getExists(), LLVFile::getSize(), LLTransferManager::getTargetChannel(), gTransferManager, LLUUID::isNull(), LLHost::isOk(), LL_ERR_ASSET_REQUEST_NOT_IN_DATABASE, LL_ERR_CIRCUIT_GONE, LL_ERR_NOERR, LL_EXSTAT_NO_UPSTREAM, LL_EXSTAT_NULL_UUID, LL_EXSTAT_VFS_CACHED, lldebugs, llinfos, LLTCT_ASSET, llwarns, LLAssetType::lookup(), mUpstreamHost, mVFS, LLVFile::remove(), LLTransferTargetChannel::requestTransfer(), LLTransferSourceParamsEstate::setAgentSession(), LLTransferTargetParamsVFile::setAsset(), LLTransferTargetParamsVFile::setCallback(), and LLTransferSourceParamsEstate::setEstateAssetType().

Referenced by process_covenant_reply().

void LLAssetStorage::getInvItemAsset ( const LLHost object_sim,
const LLUUID agent_id,
const LLUUID session_id,
const LLUUID owner_id,
const LLUUID task_id,
const LLUUID item_id,
const LLUUID asset_id,
LLAssetType::EType  atype,
LLGetAssetCallback  cb,
void user_data,
BOOL  is_priority = FALSE 
)

Definition at line 700 of file llassetstorage.cpp.

References downloadInvItemCompleteCallback(), f, LLVFS::getExists(), LLVFile::getSize(), LLTransferManager::getTargetChannel(), gTransferManager, LLHost::isOk(), LL_ERR_CIRCUIT_GONE, LL_ERR_NOERR, LL_EXSTAT_NO_UPSTREAM, LL_EXSTAT_VFS_CACHED, lldebugs, llinfos, LLTCT_ASSET, llwarns, LLAssetType::lookup(), mUpstreamHost, mVFS, LLUUID::notNull(), LLVFile::remove(), LLTransferTargetChannel::requestTransfer(), LLTransferSourceParamsInvItem::setAgentSession(), LLTransferTargetParamsVFile::setAsset(), LLTransferSourceParamsInvItem::setAsset(), LLTransferTargetParamsVFile::setCallback(), and LLTransferSourceParamsInvItem::setInvItem().

Referenced by LLFloaterCompileQueue::handleInventory(), LLLiveLSLEditor::loadAsset(), LLPreviewLSL::loadAsset(), LLPreviewNotecard::loadAsset(), and LLPanelEstateCovenant::loadInvItem().

S32 LLAssetStorage::getNumPending ( ERequestType  rt  )  const

Definition at line 973 of file llassetstorage.cpp.

References getRequestList(), and S32.

Referenced by getNumPendingDownloads(), getNumPendingLocalUploads(), and getNumPendingUploads().

S32 LLAssetStorage::getNumPendingDownloads (  )  const

Definition at line 984 of file llassetstorage.cpp.

References getNumPending(), and RT_DOWNLOAD.

S32 LLAssetStorage::getNumPendingLocalUploads (  ) 

Definition at line 994 of file llassetstorage.cpp.

References getNumPending(), and RT_LOCALUPLOAD.

S32 LLAssetStorage::getNumPendingUploads (  )  const

Definition at line 989 of file llassetstorage.cpp.

References getNumPending(), and RT_UPLOAD.

Referenced by idle_shutdown().

LLSD LLAssetStorage::getPendingDetails ( ERequestType  rt,
LLAssetType::EType  asset_type,
const std::string &  detail_prefix 
) const [virtual]

Definition at line 1000 of file llassetstorage.cpp.

References getPendingDetails(), getRequestList(), and tut::sd().

LLSD LLAssetStorage::getPendingDetails ( const request_list_t requests,
LLAssetType::EType  asset_type,
const std::string &  detail_prefix 
) const [protected, virtual]

Definition at line 1011 of file llassetstorage.cpp.

References LLSD::append(), LLAssetType::AT_NONE, end, and LLAssetType::lookup().

Referenced by getPendingDetails().

LLSD LLAssetStorage::getPendingRequest ( ERequestType  rt,
LLAssetType::EType  asset_type,
const LLUUID asset_id 
) const [virtual]

Definition at line 1089 of file llassetstorage.cpp.

References getPendingRequest(), and getRequestList().

LLSD LLAssetStorage::getPendingRequest ( const request_list_t requests,
LLAssetType::EType  asset_type,
const LLUUID asset_id 
) const [protected, virtual]

Definition at line 1098 of file llassetstorage.cpp.

References findRequest(), LLAssetRequest::getFullDetails(), and tut::sd().

Referenced by getPendingRequest().

const LLAssetStorage::request_list_t * LLAssetStorage::getRequestList ( ERequestType  rt  )  const

Definition at line 940 of file llassetstorage.cpp.

References llwarns, mPendingDownloads, mPendingLocalUploads, mPendingUploads, NULL, RT_DOWNLOAD, RT_LOCALUPLOAD, and RT_UPLOAD.

LLAssetStorage::request_list_t * LLAssetStorage::getRequestList ( ERequestType  rt  ) 

Definition at line 924 of file llassetstorage.cpp.

References llwarns, mPendingDownloads, mPendingLocalUploads, mPendingUploads, NULL, RT_DOWNLOAD, RT_LOCALUPLOAD, and RT_UPLOAD.

Referenced by _cleanupRequests(), deletePendingRequest(), getNumPending(), getPendingDetails(), and getPendingRequest().

std::string LLAssetStorage::getRequestName ( ERequestType  rt  )  [static]

Definition at line 957 of file llassetstorage.cpp.

References llwarns, RT_DOWNLOAD, RT_LOCALUPLOAD, and RT_UPLOAD.

Referenced by _cleanupRequests(), deletePendingRequest(), and LLHTTPAssetRequest::getFullDetails().

LLUUID LLAssetStorage::getTempAssetAgentID ( const LLUUID texture_id  )  const [virtual]

Reimplemented in LLHTTPAssetStorage.

Definition at line 1357 of file llassetstorage.cpp.

References LLUUID::null.

std::string LLAssetStorage::getTempAssetHostName ( const LLUUID texture_id  )  const [virtual]

Reimplemented in LLHTTPAssetStorage.

Definition at line 1353 of file llassetstorage.cpp.

BOOL LLAssetStorage::hasLocalAsset ( const LLUUID uuid,
LLAssetType::EType  type 
) [virtual]

Definition at line 383 of file llassetstorage.cpp.

References LLVFS::getExists(), and mVFS.

Referenced by LLAudioDecodeMgr::addDecodeRequest(), and LLAudioData::LLAudioData().

BOOL LLAssetStorage::hasTempAssetData ( const LLUUID texture_id  )  const [virtual]

Reimplemented in LLHTTPAssetStorage.

Definition at line 1349 of file llassetstorage.cpp.

References FALSE.

void LLAssetStorage::legacyGetDataCallback ( LLVFS vfs,
const LLUUID uuid,
LLAssetType::EType  ,
void user_data,
S32  status,
LLExtStat  ext_status 
) [static]

Definition at line 1228 of file llassetstorage.cpp.

References LLFile::fopen(), gDirUtilp, LLDir::getExpandedFilename(), LLVFile::getLastBytesRead(), LL_ERR_CANNOT_OPEN_FILE, LL_MAX_PATH, LL_PATH_CACHE, LLAssetType::lookup(), LLLegacyAssetRequest::mDownCallback, LLLegacyAssetRequest::mUserData, LLVFile::read(), S32, LLUUID::toString(), and UUID_STR_LENGTH.

Referenced by getAssetData().

void LLAssetStorage::legacyStoreDataCallback ( const LLUUID uuid,
void user_data,
S32  status,
LLExtStat  ext_status 
) [static]

Definition at line 1334 of file llassetstorage.cpp.

References LLLegacyAssetRequest::mUpCallback, and LLLegacyAssetRequest::mUserData.

Referenced by LLViewerAssetStorage::storeAssetData(), and LLHTTPAssetStorage::storeAssetData().

void LLAssetStorage::processUploadComplete ( LLMessageSystem msg,
void **  this_handle 
) [static]

Definition at line 868 of file llassetstorage.cpp.

References _callUploadCallbacks(), _PREHASH_AssetBlock, _PREHASH_Success, _PREHASH_Type, _PREHASH_UUID, FALSE, LLMessageSystem::getBOOLFast(), LLMessageSystem::getS8Fast(), LLMessageSystem::getUUIDFast(), and LL_EXSTAT_NONE.

Referenced by _init().

void LLAssetStorage::removeTempAssetData ( const LLUUID asset_id  )  [virtual]

Reimplemented in LLHTTPAssetStorage.

Definition at line 1361 of file llassetstorage.cpp.

void LLAssetStorage::removeTempAssetDataByAgentID ( const LLUUID agent_id  )  [virtual]

Reimplemented in LLHTTPAssetStorage.

Definition at line 1365 of file llassetstorage.cpp.

void LLAssetStorage::setUpstream ( const LLHost upstream_host  ) 

Definition at line 316 of file llassetstorage.cpp.

References llendl, llinfos, and mUpstreamHost.

Referenced by _init(), idle_startup(), and process_agent_movement_complete().

void LLAssetStorage::storeAssetData ( const char *  filename,
const LLTransactionID transaction_id,
LLAssetType::EType  type,
LLStoreAssetCallback  callback,
void user_data,
bool  temp_file = false,
bool  is_priority = false,
bool  user_waiting = false,
F64  timeout = LL_ASSET_STORAGE_TIMEOUT 
) [virtual]

Definition at line 1319 of file llassetstorage.cpp.

References llwarns.

void LLAssetStorage::storeAssetData ( const char *  filename,
const LLUUID asset_id,
LLAssetType::EType  type,
LLStoreAssetCallback  callback,
void user_data,
bool  temp_file = false,
bool  is_priority = false,
bool  user_waiting = false,
F64  timeout = LL_ASSET_STORAGE_TIMEOUT 
) [virtual]

Definition at line 1303 of file llassetstorage.cpp.

References llwarns.

void LLAssetStorage::storeAssetData ( const LLUUID asset_id,
LLAssetType::EType  asset_type,
LLStoreAssetCallback  callback,
void user_data,
bool  temp_file = false,
bool  is_priority = false,
bool  store_local = false,
const LLUUID requesting_agent_id = LLUUID::null,
bool  user_waiting = false,
F64  timeout = LL_ASSET_STORAGE_TIMEOUT 
) [virtual]

Definition at line 1286 of file llassetstorage.cpp.

References llwarns.

void LLAssetStorage::storeAssetData ( const LLTransactionID tid,
LLAssetType::EType  atype,
LLStoreAssetCallback  callback,
void user_data,
bool  temp_file = false,
bool  is_priority = false,
bool  store_local = false,
bool  user_waiting = false,
F64  timeout = LL_ASSET_STORAGE_TIMEOUT 
) [virtual]

Definition at line 1270 of file llassetstorage.cpp.

References llwarns.

Referenced by LLFloaterCompileQueue::compile(), LLFloaterAuction::onClickOK(), LLTexLayerSetBuffer::readBackAndUpload(), LLPreviewNotecard::saveIfNeeded(), LLPreviewGesture::saveIfNeeded(), LLWearable::saveNewAsset(), LLFloaterPostcard::sendPostcard(), upload_new_resource(), LLLiveLSLEditor::uploadAssetLegacy(), LLPreviewLSL::uploadAssetLegacy(), and LLFloaterReporter::uploadImage().

void LLAssetStorage::uploadCompleteCallback ( const LLUUID ,
void user_data,
S32  result,
LLExtStat  ext_status 
) [static]

Definition at line 841 of file llassetstorage.cpp.

References _PREHASH_AssetBlock, _PREHASH_AssetUploadComplete, _PREHASH_Success, _PREHASH_Type, _PREHASH_UUID, LLMessageSystem::addBOOLFast(), LLMessageSystem::addS8Fast(), LLMessageSystem::addUUIDFast(), FALSE, gAssetStorage, getErrorString(), LLAssetRequest::getType(), llwarns, LLAssetRequest::mHost, mMessageSys, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLMessageSystem::sendReliable(), and TRUE.


Member Data Documentation

LLMessageSystem* LLAssetStorage::mMessageSys [protected]

Definition at line 225 of file llassetstorage.h.

Referenced by _init(), LLViewerAssetStorage::storeAssetData(), and uploadCompleteCallback().

request_list_t LLAssetStorage::mPendingDownloads [protected]

Definition at line 230 of file llassetstorage.h.

Referenced by LLHTTPAssetStorage::_queueDataRequest(), LLHTTPAssetStorage::checkForTimeouts(), downloadCompleteCallback(), getAssetData(), and getRequestList().

request_list_t LLAssetStorage::mPendingLocalUploads [protected]

Definition at line 232 of file llassetstorage.h.

Referenced by _callUploadCallbacks(), LLHTTPAssetStorage::checkForTimeouts(), and getRequestList().

request_list_t LLAssetStorage::mPendingUploads [protected]

Definition at line 231 of file llassetstorage.h.

Referenced by _callUploadCallbacks(), LLHTTPAssetStorage::bumpTimedOutUploads(), LLHTTPAssetStorage::checkForTimeouts(), getRequestList(), and LLViewerAssetStorage::storeAssetData().

BOOL LLAssetStorage::mShutDown [protected]

Definition at line 222 of file llassetstorage.h.

Referenced by _init(), and ~LLAssetStorage().

LLHost LLAssetStorage::mUpstreamHost [protected]

Definition at line 223 of file llassetstorage.h.

Referenced by getEstateAsset(), getInvItemAsset(), setUpstream(), and LLViewerAssetStorage::storeAssetData().

LLVFS* LLAssetStorage::mVFS

Definition at line 209 of file llassetstorage.h.

Referenced by _cleanupRequests(), _init(), LLHTTPAssetStorage::checkForTimeouts(), LLTransferTargetVFile::completionCallback(), LLHTTPAssetStorage::curlDownCallback(), LLHTTPAssetStorage::curlUpCallback(), LLTransferTargetVFile::dataCallback(), LLTransferSourceAsset::dataCallback(), deletePendingRequest(), downloadCompleteCallback(), downloadEstateAssetCompleteCallback(), downloadInvItemCompleteCallback(), getEstateAsset(), getInvItemAsset(), hasLocalAsset(), LLHTTPAssetRequest::prepareCompressedUpload(), LLTransferSourceAsset::responderCallback(), LLViewerAssetStorage::storeAssetData(), and LLHTTPAssetStorage::storeAssetData().

LLXferManager* LLAssetStorage::mXferManager [protected]

Definition at line 226 of file llassetstorage.h.

Referenced by _init().


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