llassetuploadresponders.h

Go to the documentation of this file.
00001 
00032 #ifndef LL_LLASSETUPLOADRESPONDER_H
00033 #define LL_LLASSETUPLOADRESPONDER_H
00034 
00035 #include "llhttpclient.h"
00036 
00037 // Abstract class for supporting asset upload
00038 // via capabilities
00039 class LLAssetUploadResponder : public LLHTTPClient::Responder
00040 {
00041 public:
00042         LLAssetUploadResponder(const LLSD& post_data,
00043                                                         const LLUUID& vfile_id,
00044                                                         LLAssetType::EType asset_type);
00045         LLAssetUploadResponder(const LLSD& post_data, const std::string& file_name);
00046         ~LLAssetUploadResponder();
00047     virtual void error(U32 statusNum, const std::string& reason);
00048         virtual void result(const LLSD& content);
00049         virtual void uploadUpload(const LLSD& content);
00050         virtual void uploadComplete(const LLSD& content);
00051         virtual void uploadFailure(const LLSD& content);
00052 
00053 protected:
00054         LLSD mPostData;
00055         LLUUID mVFileID;
00056         LLAssetType::EType mAssetType;
00057         std::string mFileName;
00058 };
00059 
00060 class LLNewAgentInventoryResponder : public LLAssetUploadResponder
00061 {
00062 public:
00063         LLNewAgentInventoryResponder(const LLSD& post_data,
00064                                                                 const LLUUID& vfile_id,
00065                                                                 LLAssetType::EType asset_type);
00066         LLNewAgentInventoryResponder(const LLSD& post_data, const std::string& file_name);
00067         virtual void uploadComplete(const LLSD& content);
00068 };
00069 
00070 class LLUpdateAgentInventoryResponder : public LLAssetUploadResponder
00071 {
00072 public:
00073         LLUpdateAgentInventoryResponder(const LLSD& post_data,
00074                                                                 const LLUUID& vfile_id,
00075                                                                 LLAssetType::EType asset_type);
00076         LLUpdateAgentInventoryResponder(const LLSD& post_data,
00077                                                                 const std::string& file_name);
00078         virtual void uploadComplete(const LLSD& content);
00079 };
00080 
00081 class LLUpdateTaskInventoryResponder : public LLAssetUploadResponder
00082 {
00083 public:
00084         LLUpdateTaskInventoryResponder(const LLSD& post_data,
00085                                                                 const LLUUID& vfile_id,
00086                                                                 LLAssetType::EType asset_type);
00087         LLUpdateTaskInventoryResponder(const LLSD& post_data,
00088                                                                 const std::string& file_name);
00089         virtual void uploadComplete(const LLSD& content);
00090 };
00091 
00092 #endif // LL_LLASSETUPLOADRESPONDER_H

Generated on Thu Jul 1 06:08:19 2010 for Second Life Viewer by  doxygen 1.4.7