llremoteparcelrequest.cpp

Go to the documentation of this file.
00001 
00022 #include "llviewerprecompiledheaders.h"
00023 
00024 #include "llagent.h"
00025 #include "llremoteparcelrequest.h"
00026 
00027 #include "llpanelplace.h"
00028 #include "llpanel.h"
00029 #include "llhttpclient.h"
00030 #include "llsdserialize.h"
00031 #include "llviewerregion.h"
00032 #include "llview.h"
00033 #include "message.h"
00034 
00035 LLRemoteParcelRequestResponder::LLRemoteParcelRequestResponder(LLViewHandle place_panel_handle)
00036 {
00037          mPlacePanelHandle = place_panel_handle;
00038 }
00039 /*virtual*/
00040 void LLRemoteParcelRequestResponder::result(const LLSD& content)
00041 {
00042         LLUUID parcel_id = content["parcel_id"];
00043 
00044         LLPanelPlace* place_panelp = (LLPanelPlace*)LLPanel::getPanelByHandle(mPlacePanelHandle);
00045 
00046         if(place_panelp)
00047         {
00048                 place_panelp->setParcelID(parcel_id);
00049         }
00050 
00051 }
00052 
00053 /*virtual*/
00054 void LLRemoteParcelRequestResponder::error(U32 status, const std::string& reason)
00055 {
00056         llinfos << "LLRemoteParcelRequest::error("
00057                 << status << ": " << reason << ")" << llendl;
00058         LLPanelPlace* place_panelp = (LLPanelPlace*)LLPanel::getPanelByHandle(mPlacePanelHandle);
00059 
00060         if(place_panelp)
00061         {
00062                 place_panelp->setErrorStatus(status, reason);
00063         }
00064 
00065 }
00066 

Generated on Thu Jul 1 06:09:04 2010 for Second Life Viewer by  doxygen 1.4.7