diff options
author | Jacek Antonelli | 2008-08-15 23:45:16 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:16 -0500 |
commit | 3f27ba891ac4d032753b219b4b96d1ffbc9fb488 (patch) | |
tree | 504932ee91a0356fba7ea48798887c96867e492f /linden/indra/newview/llclassifiedstatsresponder.cpp | |
parent | Second Life viewer sources 1.18.4.3 (diff) | |
download | meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.zip meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.gz meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.bz2 meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.xz |
Second Life viewer sources 1.18.5.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llclassifiedstatsresponder.cpp | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/linden/indra/newview/llclassifiedstatsresponder.cpp b/linden/indra/newview/llclassifiedstatsresponder.cpp new file mode 100644 index 0000000..00b1878 --- /dev/null +++ b/linden/indra/newview/llclassifiedstatsresponder.cpp | |||
@@ -0,0 +1,70 @@ | |||
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 "llclassifiedstatsresponder.h" | ||
26 | |||
27 | #include "llpanelclassified.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 | LLClassifiedStatsResponder::LLClassifiedStatsResponder(LLViewHandle classified_panel_handle) | ||
36 | : mClassifiedPanelHandle(classified_panel_handle) | ||
37 | { | ||
38 | } | ||
39 | /*virtual*/ | ||
40 | void LLClassifiedStatsResponder::result(const LLSD& content) | ||
41 | { | ||
42 | LLUUID classified_id = content["classified_id"]; | ||
43 | S32 teleport = content["teleport_clicks"].asInteger(); | ||
44 | S32 map = content["map_clicks"].asInteger(); | ||
45 | S32 profile = content["profile_clicks"].asInteger(); | ||
46 | S32 search_teleport = content["search_teleport_clicks"].asInteger(); | ||
47 | S32 search_map = content["search_map_clicks"].asInteger(); | ||
48 | S32 search_profile = content["search_profile_clicks"].asInteger(); | ||
49 | |||
50 | std::string msg = llformat("Clicks: %d teleport, %d map, %d profile", | ||
51 | teleport + search_teleport, | ||
52 | map + search_map, | ||
53 | profile + search_profile); | ||
54 | |||
55 | LLPanelClassified* classified_panelp = (LLPanelClassified*)LLPanel::getPanelByHandle(mClassifiedPanelHandle); | ||
56 | |||
57 | if(classified_panelp) | ||
58 | { | ||
59 | classified_panelp->setClickThroughText(msg); | ||
60 | } | ||
61 | |||
62 | } | ||
63 | |||
64 | /*virtual*/ | ||
65 | void LLClassifiedStatsResponder::error(U32 status, const std::string& reason) | ||
66 | { | ||
67 | llinfos << "LLClassifiedStatsResponder::error(" | ||
68 | << status << ": " << reason << ")" << llendl; | ||
69 | } | ||
70 | |||