DD-21 : WIP : Call DirectDelivery cap, nothing done but print out the url in the log

meow-7.2.2
Merov Linden 2014-04-21 18:42:56 -07:00
parent 40a51eb94d
commit 4ec13dcf8c
2 changed files with 14 additions and 0 deletions

View File

@ -37,6 +37,7 @@
#include "llviewercontrol.h"
#include "llviewermedia.h"
#include "llviewernetwork.h"
#include "llviewerregion.h"
//
@ -426,6 +427,18 @@ void LLMarketplaceInventoryImporter::initialize()
return;
}
// Test DirectDelivery cap
LLViewerRegion* region = gAgent.getRegion();
if (region)
{
std::string url = region->getCapability("DirectDelivery");
llinfos << "Merov : Test DirectDelivery cap : url = " << url << llendl;
}
else
{
llinfos << "Merov : Test DirectDelivery cap : no region accessible" << llendl;
}
if (!LLMarketplaceImport::hasSessionCookie())
{
mMarketPlaceStatus = MarketplaceStatusCodes::MARKET_PLACE_INITIALIZING;

View File

@ -1593,6 +1593,7 @@ void LLViewerRegionImpl::buildCapabilityNames(LLSD& capabilityNames)
capabilityNames.append("CopyInventoryFromNotecard");
capabilityNames.append("CreateInventoryCategory");
capabilityNames.append("DispatchRegionInfo");
capabilityNames.append("DirectDelivery");
capabilityNames.append("EnvironmentSettings");
capabilityNames.append("EstateChangeInfo");
capabilityNames.append("EventQueueGet");