aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llcaphttpsender.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llcaphttpsender.h')
-rw-r--r--linden/indra/newview/llcaphttpsender.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/linden/indra/newview/llcaphttpsender.h b/linden/indra/newview/llcaphttpsender.h
new file mode 100644
index 0000000..c482c41
--- /dev/null
+++ b/linden/indra/newview/llcaphttpsender.h
@@ -0,0 +1,50 @@
1/**
2 * @file llcaphttpsender.h
3 * @brief Abstracts details of sending messages via the
4 * UntrustedMessage capability.
5 *
6 * Copyright (c) 2007-2007, Linden Research, Inc.
7 *
8 * Second Life Viewer Source Code
9 * The source code in this file ("Source Code") is provided by Linden Lab
10 * to you under the terms of the GNU General Public License, version 2.0
11 * ("GPL"), unless you have obtained a separate licensing agreement
12 * ("Other License"), formally executed by you and Linden Lab. Terms of
13 * the GPL can be found in doc/GPL-license.txt in this distribution, or
14 * online at http://secondlife.com/developers/opensource/gplv2
15 *
16 * There are special exceptions to the terms and conditions of the GPL as
17 * it is applied to this Source Code. View the full text of the exception
18 * in the file doc/FLOSS-exception.txt in this software distribution, or
19 * online at http://secondlife.com/developers/opensource/flossexception
20 *
21 * By copying, modifying or distributing this software, you acknowledge
22 * that you have read and understood your obligations described above,
23 * and agree to abide by those obligations.
24 *
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE.
28 */
29
30#ifndef LL_CAP_HTTP_SENDER_H
31#define LL_CAP_HTTP_SENDER_H
32
33#include "llhttpsender.h"
34
35class LLCapHTTPSender : public LLHTTPSender
36{
37public:
38 LLCapHTTPSender(const std::string& cap);
39
40 /** @brief Send message via UntrustedMessage capability with body,
41 call response when done */
42 virtual void send(const LLHost& host,
43 const char* message, const LLSD& body,
44 LLHTTPClient::ResponderPtr response) const;
45
46private:
47 std::string mCap;
48};
49
50#endif // LL_CAP_HTTP_SENDER_H