llclassifiedstatsresponder.cpp

Go to the documentation of this file.
00001 
00033 #include "llviewerprecompiledheaders.h"
00034 
00035 #include "llagent.h"
00036 #include "llclassifiedstatsresponder.h"
00037 
00038 #include "llpanelclassified.h"
00039 #include "llpanel.h"
00040 #include "llhttpclient.h"
00041 #include "llsdserialize.h"
00042 #include "llviewerregion.h"
00043 #include "llview.h"
00044 #include "message.h"
00045 
00046 LLClassifiedStatsResponder::LLClassifiedStatsResponder(LLHandle<LLView> classified_panel_handle, LLUUID classified_id)
00047 : mClassifiedPanelHandle(classified_panel_handle),
00048 mClassifiedID(classified_id)
00049 {
00050 }
00051 /*virtual*/
00052 void LLClassifiedStatsResponder::result(const LLSD& content)
00053 {
00054         S32 teleport = content["teleport_clicks"].asInteger();
00055         S32 map = content["map_clicks"].asInteger();
00056         S32 profile = content["profile_clicks"].asInteger();
00057         S32 search_teleport = content["search_teleport_clicks"].asInteger();
00058         S32 search_map = content["search_map_clicks"].asInteger();
00059         S32 search_profile = content["search_profile_clicks"].asInteger();
00060 
00061         LLPanelClassified* classified_panelp = (LLPanelClassified*)mClassifiedPanelHandle.get();
00062 
00063         if(classified_panelp)
00064         {
00065                 classified_panelp->setClickThrough(mClassifiedID, 
00066                                                                                         teleport + search_teleport, 
00067                                                                                         map + search_map,
00068                                                                                         profile + search_profile,
00069                                                                                         true);
00070         }
00071 
00072 }
00073 
00074 /*virtual*/
00075 void LLClassifiedStatsResponder::error(U32 status, const std::string& reason)
00076 {
00077         llinfos << "LLClassifiedStatsResponder::error("
00078                 << status << ": " << reason << ")" << llendl;
00079 }
00080 
00081 

Generated on Fri May 16 08:33:16 2008 for SecondLife by  doxygen 1.5.5