diff options
author | Jacek Antonelli | 2008-08-15 23:45:18 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:18 -0500 |
commit | ad2310656299467c775738fcdbc5840bd492df8d (patch) | |
tree | 61a3e7b568d04f12e7a42c962828e9334954811d /linden/indra/newview/llclassifiedstatsresponder.cpp | |
parent | Second Life viewer sources 1.18.5.1-RC (diff) | |
download | meta-impy-ad2310656299467c775738fcdbc5840bd492df8d.zip meta-impy-ad2310656299467c775738fcdbc5840bd492df8d.tar.gz meta-impy-ad2310656299467c775738fcdbc5840bd492df8d.tar.bz2 meta-impy-ad2310656299467c775738fcdbc5840bd492df8d.tar.xz |
Second Life viewer sources 1.18.5.2-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llclassifiedstatsresponder.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/linden/indra/newview/llclassifiedstatsresponder.cpp b/linden/indra/newview/llclassifiedstatsresponder.cpp index 00b1878..d44f2cc 100644 --- a/linden/indra/newview/llclassifiedstatsresponder.cpp +++ b/linden/indra/newview/llclassifiedstatsresponder.cpp | |||
@@ -32,14 +32,14 @@ | |||
32 | #include "llview.h" | 32 | #include "llview.h" |
33 | #include "message.h" | 33 | #include "message.h" |
34 | 34 | ||
35 | LLClassifiedStatsResponder::LLClassifiedStatsResponder(LLViewHandle classified_panel_handle) | 35 | LLClassifiedStatsResponder::LLClassifiedStatsResponder(LLViewHandle classified_panel_handle, LLUUID classified_id) |
36 | : mClassifiedPanelHandle(classified_panel_handle) | 36 | : mClassifiedPanelHandle(classified_panel_handle), |
37 | mClassifiedID(classified_id) | ||
37 | { | 38 | { |
38 | } | 39 | } |
39 | /*virtual*/ | 40 | /*virtual*/ |
40 | void LLClassifiedStatsResponder::result(const LLSD& content) | 41 | void LLClassifiedStatsResponder::result(const LLSD& content) |
41 | { | 42 | { |
42 | LLUUID classified_id = content["classified_id"]; | ||
43 | S32 teleport = content["teleport_clicks"].asInteger(); | 43 | S32 teleport = content["teleport_clicks"].asInteger(); |
44 | S32 map = content["map_clicks"].asInteger(); | 44 | S32 map = content["map_clicks"].asInteger(); |
45 | S32 profile = content["profile_clicks"].asInteger(); | 45 | S32 profile = content["profile_clicks"].asInteger(); |
@@ -47,16 +47,15 @@ void LLClassifiedStatsResponder::result(const LLSD& content) | |||
47 | S32 search_map = content["search_map_clicks"].asInteger(); | 47 | S32 search_map = content["search_map_clicks"].asInteger(); |
48 | S32 search_profile = content["search_profile_clicks"].asInteger(); | 48 | S32 search_profile = content["search_profile_clicks"].asInteger(); |
49 | 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); | 50 | LLPanelClassified* classified_panelp = (LLPanelClassified*)LLPanel::getPanelByHandle(mClassifiedPanelHandle); |
56 | 51 | ||
57 | if(classified_panelp) | 52 | if(classified_panelp) |
58 | { | 53 | { |
59 | classified_panelp->setClickThroughText(msg); | 54 | classified_panelp->setClickThrough(mClassifiedID, |
55 | teleport + search_teleport, | ||
56 | map + search_map, | ||
57 | profile + search_profile, | ||
58 | true); | ||
60 | } | 59 | } |
61 | 60 | ||
62 | } | 61 | } |
@@ -68,3 +67,4 @@ void LLClassifiedStatsResponder::error(U32 status, const std::string& reason) | |||
68 | << status << ": " << reason << ")" << llendl; | 67 | << status << ": " << reason << ")" << llendl; |
69 | } | 68 | } |
70 | 69 | ||
70 | |||