LLAssetUploadResponder Class Reference

#include <llassetuploadresponders.h>

Inheritance diagram for LLAssetUploadResponder:

Inheritance graph
[legend]
Collaboration diagram for LLAssetUploadResponder:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLAssetUploadResponder (const LLSD &post_data, const LLUUID &vfile_id, LLAssetType::EType asset_type)
 LLAssetUploadResponder (const LLSD &post_data, const std::string &file_name)
 ~LLAssetUploadResponder ()
virtual void error (U32 statusNum, const std::string &reason)
virtual void result (const LLSD &content)
virtual void uploadUpload (const LLSD &content)
virtual void uploadComplete (const LLSD &content)
virtual void uploadFailure (const LLSD &content)

Protected Attributes

LLSD mPostData
LLUUID mVFileID
LLAssetType::EType mAssetType
std::string mFileName

Detailed Description

Definition at line 39 of file llassetuploadresponders.h.


Constructor & Destructor Documentation

LLAssetUploadResponder::LLAssetUploadResponder ( const LLSD post_data,
const LLUUID vfile_id,
LLAssetType::EType  asset_type 
)

Definition at line 59 of file llassetuploadresponders.cpp.

References LLAssetType::AT_NONE, LLVFS::getExists(), gVFS, llendl, llwarns, mAssetType, mVFileID, and LLUUID::setNull().

LLAssetUploadResponder::LLAssetUploadResponder ( const LLSD post_data,
const std::string &  file_name 
)

Definition at line 76 of file llassetuploadresponders.cpp.

LLAssetUploadResponder::~LLAssetUploadResponder (  ) 

Definition at line 84 of file llassetuploadresponders.cpp.

References mFileName, and LLFile::remove().


Member Function Documentation

void LLAssetUploadResponder::error ( U32  statusNum,
const std::string &  reason 
) [virtual]

Reimplemented from LLHTTPClient::Responder.

Definition at line 94 of file llassetuploadresponders.cpp.

References LLViewerWindow::alertXml(), LLUUID::asString(), gViewerWindow, llendl, llinfos, mFileName, LLUploadDialog::modalUploadFinished(), and mVFileID.

void LLAssetUploadResponder::result ( const LLSD content  )  [virtual]

Reimplemented from LLHTTPClient::Responder.

Definition at line 119 of file llassetuploadresponders.cpp.

References LLSD::asUUID(), gVFS, lldebugs, llendl, mAssetType, mFileName, mVFileID, LLVFS::renameFile(), uploadComplete(), uploadFailure(), and uploadUpload().

void LLAssetUploadResponder::uploadComplete ( const LLSD content  )  [virtual]

Reimplemented in LLNewAgentInventoryResponder, LLUpdateAgentInventoryResponder, LLUpdateTaskInventoryResponder, LLSendPostcardResponder, and LLUserReportScreenshotResponder.

Definition at line 174 of file llassetuploadresponders.cpp.

Referenced by result().

void LLAssetUploadResponder::uploadFailure ( const LLSD content  )  [virtual]

Definition at line 157 of file llassetuploadresponders.cpp.

References LLViewerWindow::alertXml(), LLSD::asString(), LLUUID::asString(), LLFloaterBuyCurrency::buyCurrency(), LLGlobalEconomy::getPriceUpload(), gGlobalEconomy, gViewerWindow, mFileName, and mVFileID.

Referenced by result().

void LLAssetUploadResponder::uploadUpload ( const LLSD content  )  [virtual]

Definition at line 144 of file llassetuploadresponders.cpp.

References mAssetType, mFileName, mVFileID, and LLHTTPClient::postFile().

Referenced by result().


Member Data Documentation

LLAssetType::EType LLAssetUploadResponder::mAssetType [protected]

Definition at line 56 of file llassetuploadresponders.h.

Referenced by LLAssetUploadResponder(), result(), and uploadUpload().

std::string LLAssetUploadResponder::mFileName [protected]

Definition at line 57 of file llassetuploadresponders.h.

Referenced by error(), result(), uploadFailure(), uploadUpload(), and ~LLAssetUploadResponder().

LLSD LLAssetUploadResponder::mPostData [protected]

Definition at line 54 of file llassetuploadresponders.h.

Referenced by LLUpdateTaskInventoryResponder::uploadComplete(), LLUpdateAgentInventoryResponder::uploadComplete(), and LLNewAgentInventoryResponder::uploadComplete().

LLUUID LLAssetUploadResponder::mVFileID [protected]

Definition at line 55 of file llassetuploadresponders.h.

Referenced by error(), LLAssetUploadResponder(), result(), LLUpdateAgentInventoryResponder::uploadComplete(), uploadFailure(), and uploadUpload().


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