#include <llassetuploadresponders.h>


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 |
Definition at line 39 of file llassetuploadresponders.h.
| LLAssetUploadResponder::LLAssetUploadResponder | ( | const LLSD & | post_data, | |
| const LLUUID & | vfile_id, | |||
| LLAssetType::EType | asset_type | |||
| ) |
Definition at line 58 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 75 of file llassetuploadresponders.cpp.
| LLAssetUploadResponder::~LLAssetUploadResponder | ( | ) |
Definition at line 83 of file llassetuploadresponders.cpp.
References mFileName, and LLFile::remove().

| void LLAssetUploadResponder::error | ( | U32 | statusNum, | |
| const std::string & | reason | |||
| ) | [virtual] |
Reimplemented from LLCurl::Responder.
Definition at line 93 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 LLCurl::Responder.
Definition at line 118 of file llassetuploadresponders.cpp.
References gVFS, lldebugs, llendl, mAssetType, mFileName, mVFileID, LLVFS::renameFile(), uploadComplete(), uploadFailure(), and uploadUpload().

| void LLAssetUploadResponder::uploadUpload | ( | const LLSD & | content | ) | [virtual] |
Definition at line 143 of file llassetuploadresponders.cpp.
References mAssetType, mFileName, mVFileID, and LLHTTPClient::postFile().
Referenced by result().


| void LLAssetUploadResponder::uploadComplete | ( | const LLSD & | content | ) | [virtual] |
Reimplemented in LLNewAgentInventoryResponder, LLUpdateAgentInventoryResponder, LLUpdateTaskInventoryResponder, LLSendPostcardResponder, and LLUserReportScreenshotResponder.
Definition at line 173 of file llassetuploadresponders.cpp.
Referenced by result().

| void LLAssetUploadResponder::uploadFailure | ( | const LLSD & | content | ) | [virtual] |
Definition at line 156 of file llassetuploadresponders.cpp.
References LLViewerWindow::alertXml(), LLSD::asString(), LLUUID::asString(), LLFloaterBuyCurrency::buyCurrency(), LLSingleton< T >::getInstance(), gViewerWindow, mFileName, and mVFileID.
Referenced by result().


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().
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().
1.5.5