aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llassetuploadresponders.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llassetuploadresponders.h')
-rw-r--r--linden/indra/newview/llassetuploadresponders.h90
1 files changed, 55 insertions, 35 deletions
diff --git a/linden/indra/newview/llassetuploadresponders.h b/linden/indra/newview/llassetuploadresponders.h
index 13d535e..ef8cd38 100644
--- a/linden/indra/newview/llassetuploadresponders.h
+++ b/linden/indra/newview/llassetuploadresponders.h
@@ -1,45 +1,65 @@
1/** 1// llassetuploadresponders.h
2 * @file llmapresponders.h 2// Copyright 2006, Linden Research, Inc.
3 * @brief Processes responses received for asset upload requests. 3// Processes responses received for asset upload requests.
4 * 4
5 * Copyright (c) 2006-2007, Linden Research, Inc. 5#ifndef LL_LLASSETUPLOADRESPONDER_H
6 * 6#define LL_LLASSETUPLOADRESPONDER_H
7 * The source code in this file ("Source Code") is provided by Linden Lab
8 * to you under the terms of the GNU General Public License, version 2.0
9 * ("GPL"), unless you have obtained a separate licensing agreement
10 * ("Other License"), formally executed by you and Linden Lab. Terms of
11 * the GPL can be found in doc/GPL-license.txt in this distribution, or
12 * online at http://secondlife.com/developers/opensource/gplv2
13 *
14 * There are special exceptions to the terms and conditions of the GPL as
15 * it is applied to this Source Code. View the full text of the exception
16 * in the file doc/FLOSS-exception.txt in this software distribution, or
17 * online at http://secondlife.com/developers/opensource/flossexception
18 *
19 * By copying, modifying or distributing this software, you acknowledge
20 * that you have read and understood your obligations described above,
21 * and agree to abide by those obligations.
22 *
23 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
24 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
25 * COMPLETENESS OR PERFORMANCE.
26 */
27
28#ifndef LL_LLNEWAGENTINVENTORYRESPONDER_H
29#define LL_LLNEWAGENTINVENTORYRESPONDER_H
30 7
31#include "llhttpclient.h" 8#include "llhttpclient.h"
32 9
33class LLNewAgentInventoryResponder : public LLHTTPClient::Responder 10// Abstract class for supporting asset upload
11// via capabilities
12class LLAssetUploadResponder : public LLHTTPClient::Responder
34{ 13{
35public: 14public:
36 LLNewAgentInventoryResponder(const LLUUID& uuid, const LLSD& post_data); 15 LLAssetUploadResponder(const LLSD& post_data,
37 void error(U32 statusNum, const std::string& reason); 16 const LLUUID& vfile_id,
17 LLAssetType::EType asset_type);
18 LLAssetUploadResponder(const LLSD& post_data, const std::string& file_name);
19 ~LLAssetUploadResponder();
20 virtual void error(U32 statusNum, const std::string& reason);
38 virtual void result(const LLSD& content); 21 virtual void result(const LLSD& content);
22 virtual void uploadUpload(const LLSD& content);
23 virtual void uploadComplete(const LLSD& content);
24 virtual void uploadFailure(const LLSD& content);
39 25
40private: 26protected:
41 LLUUID mUUID;
42 LLSD mPostData; 27 LLSD mPostData;
28 LLUUID mVFileID;
29 LLAssetType::EType mAssetType;
30 std::string mFileName;
31};
32
33class LLNewAgentInventoryResponder : public LLAssetUploadResponder
34{
35public:
36 LLNewAgentInventoryResponder(const LLSD& post_data,
37 const LLUUID& vfile_id,
38 LLAssetType::EType asset_type);
39 LLNewAgentInventoryResponder(const LLSD& post_data, const std::string& file_name);
40 virtual void uploadComplete(const LLSD& content);
41};
42
43class LLUpdateAgentInventoryResponder : public LLAssetUploadResponder
44{
45public:
46 LLUpdateAgentInventoryResponder(const LLSD& post_data,
47 const LLUUID& vfile_id,
48 LLAssetType::EType asset_type);
49 LLUpdateAgentInventoryResponder(const LLSD& post_data,
50 const std::string& file_name);
51 virtual void uploadComplete(const LLSD& content);
52};
53
54class LLUpdateTaskInventoryResponder : public LLAssetUploadResponder
55{
56public:
57 LLUpdateTaskInventoryResponder(const LLSD& post_data,
58 const LLUUID& vfile_id,
59 LLAssetType::EType asset_type);
60 LLUpdateTaskInventoryResponder(const LLSD& post_data,
61 const std::string& file_name);
62 virtual void uploadComplete(const LLSD& content);
43}; 63};
44 64
45#endif // LL_LLNEWAGENTINVENTORYRESPONDER_H 65#endif // LL_LLASSETUPLOADRESPONDER_H