llremoteparcelrequest.cpp

Go to the documentation of this file.
00001 
00034 #include "llviewerprecompiledheaders.h"
00035 
00036 #include "llagent.h"
00037 #include "llremoteparcelrequest.h"
00038 
00039 #include "llpanelplace.h"
00040 #include "llpanel.h"
00041 #include "llhttpclient.h"
00042 #include "llsdserialize.h"
00043 #include "llviewerregion.h"
00044 #include "llview.h"
00045 #include "message.h"
00046 
00047 LLRemoteParcelRequestResponder::LLRemoteParcelRequestResponder(LLHandle<LLPanel> place_panel_handle)
00048 {
00049          mPlacePanelHandle = place_panel_handle;
00050 }
00051 /*virtual*/
00052 void LLRemoteParcelRequestResponder::result(const LLSD& content)
00053 {
00054         LLUUID parcel_id = content["parcel_id"];
00055 
00056         LLPanelPlace* place_panelp = (LLPanelPlace*)mPlacePanelHandle.get();
00057 
00058         if(place_panelp)
00059         {
00060                 place_panelp->setParcelID(parcel_id);
00061         }
00062 
00063 }
00064 
00065 /*virtual*/
00066 void LLRemoteParcelRequestResponder::error(U32 status, const std::string& reason)
00067 {
00068         llinfos << "LLRemoteParcelRequest::error("
00069                 << status << ": " << reason << ")" << llendl;
00070         LLPanelPlace* place_panelp = (LLPanelPlace*)mPlacePanelHandle.get();
00071 
00072         if(place_panelp)
00073         {
00074                 place_panelp->setErrorStatus(status, reason);
00075         }
00076 
00077 }
00078 

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