diff options
Diffstat (limited to 'linden/indra/newview/llremoteparcelrequest.cpp')
-rw-r--r-- | linden/indra/newview/llremoteparcelrequest.cpp | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/linden/indra/newview/llremoteparcelrequest.cpp b/linden/indra/newview/llremoteparcelrequest.cpp new file mode 100644 index 0000000..3837cbf --- /dev/null +++ b/linden/indra/newview/llremoteparcelrequest.cpp | |||
@@ -0,0 +1,66 @@ | |||
1 | /** | ||
2 | * @file llparcelrequest.cpp | ||
3 | * @brief Implementation of the LLParcelRequest class. | ||
4 | * | ||
5 | * $LicenseInfo:firstyear=2006&license=internal$ | ||
6 | * | ||
7 | * Copyright (c) 2006-2007, Linden Research, Inc. | ||
8 | * | ||
9 | * The following source code is PROPRIETARY AND CONFIDENTIAL. Use of | ||
10 | * this source code is governed by the Linden Lab Source Code Disclosure | ||
11 | * Agreement ("Agreement") previously entered between you and Linden | ||
12 | * Lab. By accessing, using, copying, modifying or distributing this | ||
13 | * software, you acknowledge that you have been informed of your | ||
14 | * obligations under the Agreement and agree to abide by those obligations. | ||
15 | * | ||
16 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
17 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
18 | * COMPLETENESS OR PERFORMANCE. | ||
19 | * $/LicenseInfo$ | ||
20 | */ | ||
21 | |||
22 | #include "llviewerprecompiledheaders.h" | ||
23 | |||
24 | #include "llagent.h" | ||
25 | #include "llremoteparcelrequest.h" | ||
26 | |||
27 | #include "llpanelplace.h" | ||
28 | #include "llpanel.h" | ||
29 | #include "llhttpclient.h" | ||
30 | #include "llsdserialize.h" | ||
31 | #include "llviewerregion.h" | ||
32 | #include "llview.h" | ||
33 | #include "message.h" | ||
34 | |||
35 | LLRemoteParcelRequestResponder::LLRemoteParcelRequestResponder(LLViewHandle place_panel_handle) | ||
36 | { | ||
37 | mPlacePanelHandle = place_panel_handle; | ||
38 | } | ||
39 | /*virtual*/ | ||
40 | void LLRemoteParcelRequestResponder::result(const LLSD& content) | ||
41 | { | ||
42 | LLUUID parcel_id = content["parcel_id"]; | ||
43 | |||
44 | LLPanelPlace* place_panelp = (LLPanelPlace*)LLPanel::getPanelByHandle(mPlacePanelHandle); | ||
45 | |||
46 | if(place_panelp) | ||
47 | { | ||
48 | place_panelp->setParcelID(parcel_id); | ||
49 | } | ||
50 | |||
51 | } | ||
52 | |||
53 | /*virtual*/ | ||
54 | void LLRemoteParcelRequestResponder::error(U32 status, const std::string& reason) | ||
55 | { | ||
56 | llinfos << "LLRemoteParcelRequest::error(" | ||
57 | << status << ": " << reason << ")" << llendl; | ||
58 | LLPanelPlace* place_panelp = (LLPanelPlace*)LLPanel::getPanelByHandle(mPlacePanelHandle); | ||
59 | |||
60 | if(place_panelp) | ||
61 | { | ||
62 | place_panelp->setErrorStatus(status, reason); | ||
63 | } | ||
64 | |||
65 | } | ||
66 | |||