diff options
| -rwxr-xr-x | indra/newview/llagentlanguage.cpp | 8 | ||||
| -rwxr-xr-x | indra/newview/llappearancemgr.cpp | 33 | ||||
| -rwxr-xr-x | indra/newview/llappearancemgr.h | 8 | 
3 files changed, 10 insertions, 39 deletions
| diff --git a/indra/newview/llagentlanguage.cpp b/indra/newview/llagentlanguage.cpp index fe6236a32a..81fce9b257 100755 --- a/indra/newview/llagentlanguage.cpp +++ b/indra/newview/llagentlanguage.cpp @@ -32,6 +32,7 @@  #include "llviewerregion.h"  // library includes  #include "llui.h"					// getLanguage() +#include "httpcommon.h"  // static  void LLAgentLanguage::init() @@ -69,7 +70,12 @@ bool LLAgentLanguage::update()  		body["language"] = language;  		body["language_is_public"] = gSavedSettings.getBOOL("LanguageIsPublic"); -		LLHTTPClient::post(url, body, new LLHTTPClient::Responder); +		//LLHTTPClient::post(url, body, new LLHTTPClient::Responder); +		LLCore::HttpHandle handle = gAgent.requestPostCapibility("UpdateAgentLanguage", url, body); +		if (handle == LLCORE_HTTP_HANDLE_INVALID) +		{ +			LL_WARNS() << "Unable to change language." << LL_ENDL; +		}  	}      return true;  } diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index ae758609ab..be71c430f4 100755 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -3442,17 +3442,12 @@ void LLAppearanceMgr::requestServerAppearanceUpdate()  	llassert(cof_version >= gAgentAvatarp->mLastUpdateRequestCOFVersion);  	gAgentAvatarp->mLastUpdateRequestCOFVersion = cof_version; -	// *TODO: use the unified call in LLAgent (?)  -	LLCore::HttpHandle handle = LLCoreHttpUtil::requestPostWithLLSD(mHttpRequest, -		mHttpPolicy, mHttpPriority, url, -		postData, mHttpOptions, mHttpHeaders, handler); + +	LLCore::HttpHandle handle = gAgent.requestPostCapibility("UpdateAvatarAppearance", url, postData, handler);  	if (handle == LLCORE_HTTP_HANDLE_INVALID)  	{  		delete handler; -		LLCore::HttpStatus status = mHttpRequest->getStatus(); -		LL_WARNS("Avatar") << "Appearance request post failed Reason " << status.toTerseString() -			<< " \"" << status.toString() << "\"" << LL_ENDL;  	}  } @@ -3486,14 +3481,6 @@ bool LLAppearanceMgr::testCOFRequestVersion() const  	return true;  } -bool LLAppearanceMgr::onIdle() -{ -	if (!LLAppearanceMgr::mActive) -		return true; -	mHttpRequest->update(0L); -	return false; -} -  std::string LLAppearanceMgr::getAppearanceServiceURL() const  {  	if (gSavedSettings.getString("DebugAvatarAppearanceServiceURLOverride").empty()) @@ -3766,21 +3753,8 @@ LLAppearanceMgr::LLAppearanceMgr():  	mOutfitLocked(false),  	mInFlightCounter(0),  	mInFlightTimer(), -	mIsInUpdateAppearanceFromCOF(false), -	//mAppearanceResponder(new RequestAgentUpdateAppearanceResponder), -	mHttpRequest(), -	mHttpHeaders(), -	mHttpOptions(), -	mHttpPolicy(LLCore::HttpRequest::DEFAULT_POLICY_ID), -	mHttpPriority(0) +	mIsInUpdateAppearanceFromCOF(false)  { -	LLAppCoreHttp & app_core_http(LLAppViewer::instance()->getAppCoreHttp()); - -	mHttpRequest = LLCore::HttpRequest::ptr_t(new LLCore::HttpRequest()); -	mHttpHeaders = LLCore::HttpHeaders::ptr_t(new LLCore::HttpHeaders(), false); -	mHttpOptions = LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions(), false); -	mHttpPolicy = app_core_http.getPolicy(LLAppCoreHttp::AP_AGENT); -  	LLOutfitObserver& outfit_observer = LLOutfitObserver::instance();  	// unlock outfit on save operation completed  	outfit_observer.addCOFSavedCallback(boost::bind( @@ -3790,7 +3764,6 @@ LLAppearanceMgr::LLAppearanceMgr():  			"OutfitOperationsTimeout")));  	gIdleCallbacks.addFunction(&LLAttachmentsMgr::onIdle, NULL); -	doOnIdleRepeating(boost::bind(&LLAppearanceMgr::onIdle, this));  }  LLAppearanceMgr::~LLAppearanceMgr() diff --git a/indra/newview/llappearancemgr.h b/indra/newview/llappearancemgr.h index b90ef65f95..760a0bc6ef 100755 --- a/indra/newview/llappearancemgr.h +++ b/indra/newview/llappearancemgr.h @@ -226,12 +226,6 @@ public:  private:  	std::string		mAppearanceServiceURL; -	LLCore::HttpRequest::ptr_t		mHttpRequest; -	LLCore::HttpHeaders::ptr_t		mHttpHeaders; -	LLCore::HttpOptions::ptr_t		mHttpOptions; -	LLCore::HttpRequest::policy_t	mHttpPolicy; -	LLCore::HttpRequest::priority_t	mHttpPriority; -  protected:  	LLAppearanceMgr();  	~LLAppearanceMgr(); @@ -251,8 +245,6 @@ private:  	static void onOutfitRename(const LLSD& notification, const LLSD& response); -	bool onIdle(); -  	bool mAttachmentInvLinkEnabled;  	bool mOutfitIsDirty;  	bool mIsInUpdateAppearanceFromCOF; // to detect recursive calls. | 
