Skip to content
Snippets Groups Projects
Commit 40cd5370 authored by Aaron Stone's avatar Aaron Stone
Browse files

Switch inventory capabilities to FetchInventory2 and family.

parent 756a4e26
No related branches found
No related tags found
No related merge requests found
...@@ -678,20 +678,17 @@ ...@@ -678,20 +678,17 @@
<key>EstateChangeInfo</key> <key>EstateChangeInfo</key>
<boolean>true</boolean> <boolean>true</boolean>
<key>FetchInventoryDescendents</key> <key>FetchInventoryDescendents2</key>
<boolean>false</boolean> <boolean>false</boolean>
<key>WebFetchInventoryDescendents</key> <key>FetchInventory2</key>
<boolean>true</boolean> <boolean>false</boolean>
<key>FetchInventory</key>
<boolean>true</boolean>
<key>FetchLibDescendents</key> <key>FetchLibDescendents2</key>
<boolean>true</boolean> <boolean>false</boolean>
<key>FetchLib</key> <key>FetchLib2</key>
<boolean>true</boolean> <boolean>false</boolean>
<key>UploadBakedTexture</key> <key>UploadBakedTexture</key>
<boolean>true</boolean> <boolean>true</boolean>
......
...@@ -181,7 +181,7 @@ void LLInventoryModelBackgroundFetch::backgroundFetch() ...@@ -181,7 +181,7 @@ void LLInventoryModelBackgroundFetch::backgroundFetch()
if (mBackgroundFetchActive && gAgent.getRegion()) if (mBackgroundFetchActive && gAgent.getRegion())
{ {
// If we'll be using the capability, we'll be sending batches and the background thing isn't as important. // If we'll be using the capability, we'll be sending batches and the background thing isn't as important.
std::string url = gAgent.getRegion()->getCapability("WebFetchInventoryDescendents"); std::string url = gAgent.getRegion()->getCapability("FetchInventoryDescendents2");
if (!url.empty()) if (!url.empty())
{ {
bulkFetch(url); bulkFetch(url);
...@@ -604,7 +604,7 @@ void LLInventoryModelBackgroundFetch::bulkFetch(std::string url) ...@@ -604,7 +604,7 @@ void LLInventoryModelBackgroundFetch::bulkFetch(std::string url)
} }
if (body_lib["folders"].size()) if (body_lib["folders"].size())
{ {
std::string url_lib = gAgent.getRegion()->getCapability("FetchLibDescendents"); std::string url_lib = gAgent.getRegion()->getCapability("FetchLibDescendents2");
LLInventoryModelFetchDescendentsResponder *fetcher = new LLInventoryModelFetchDescendentsResponder(body_lib, recursive_cats); LLInventoryModelFetchDescendentsResponder *fetcher = new LLInventoryModelFetchDescendentsResponder(body_lib, recursive_cats);
LLHTTPClient::post(url_lib, body_lib, fetcher, 300.0); LLHTTPClient::post(url_lib, body_lib, fetcher, 300.0);
......
...@@ -203,8 +203,8 @@ void fetch_items_from_llsd(const LLSD& items_llsd) ...@@ -203,8 +203,8 @@ void fetch_items_from_llsd(const LLSD& items_llsd)
{ {
if (!items_llsd.size() || gDisconnected) return; if (!items_llsd.size() || gDisconnected) return;
LLSD body; LLSD body;
body[0]["cap_name"] = "FetchInventory"; body[0]["cap_name"] = "FetchInventory2";
body[1]["cap_name"] = "FetchLib"; body[1]["cap_name"] = "FetchLib2";
for (S32 i=0; i<items_llsd.size();i++) for (S32 i=0; i<items_llsd.size();i++)
{ {
if (items_llsd[i]["owner_id"].asString() == gAgent.getID().asString()) if (items_llsd[i]["owner_id"].asString() == gAgent.getID().asString())
......
...@@ -366,11 +366,11 @@ void LLViewerInventoryItem::fetchFromServer(void) const ...@@ -366,11 +366,11 @@ void LLViewerInventoryItem::fetchFromServer(void) const
{ {
if(gAgent.getID() != mPermissions.getOwner()) if(gAgent.getID() != mPermissions.getOwner())
{ {
url = region->getCapability("FetchLib"); url = region->getCapability("FetchLib2");
} }
else else
{ {
url = region->getCapability("FetchInventory"); url = region->getCapability("FetchInventory2");
} }
} }
else else
...@@ -648,7 +648,7 @@ bool LLViewerInventoryCategory::fetch() ...@@ -648,7 +648,7 @@ bool LLViewerInventoryCategory::fetch()
std::string url; std::string url;
if (gAgent.getRegion()) if (gAgent.getRegion())
{ {
url = gAgent.getRegion()->getCapability("WebFetchInventoryDescendents"); url = gAgent.getRegion()->getCapability("FetchInventoryDescendents2");
} }
else else
{ {
...@@ -660,7 +660,7 @@ bool LLViewerInventoryCategory::fetch() ...@@ -660,7 +660,7 @@ bool LLViewerInventoryCategory::fetch()
} }
else else
{ //Deprecated, but if we don't have a capability, use the old system. { //Deprecated, but if we don't have a capability, use the old system.
llinfos << "WebFetchInventoryDescendents capability not found. Using deprecated UDP message." << llendl; llinfos << "FetchInventoryDescendents2 capability not found. Using deprecated UDP message." << llendl;
LLMessageSystem* msg = gMessageSystem; LLMessageSystem* msg = gMessageSystem;
msg->newMessage("FetchInventoryDescendents"); msg->newMessage("FetchInventoryDescendents");
msg->nextBlock("AgentData"); msg->nextBlock("AgentData");
......
...@@ -1379,11 +1379,12 @@ void LLViewerRegion::setSeedCapability(const std::string& url) ...@@ -1379,11 +1379,12 @@ void LLViewerRegion::setSeedCapability(const std::string& url)
capabilityNames.append("DispatchRegionInfo"); capabilityNames.append("DispatchRegionInfo");
capabilityNames.append("EstateChangeInfo"); capabilityNames.append("EstateChangeInfo");
capabilityNames.append("EventQueueGet"); capabilityNames.append("EventQueueGet");
capabilityNames.append("FetchInventory");
capabilityNames.append("ObjectMedia"); capabilityNames.append("ObjectMedia");
capabilityNames.append("ObjectMediaNavigate"); capabilityNames.append("ObjectMediaNavigate");
capabilityNames.append("FetchLib"); capabilityNames.append("FetchLib2");
capabilityNames.append("FetchLibDescendents"); capabilityNames.append("FetchLibDescendents2");
capabilityNames.append("FetchInventory2");
capabilityNames.append("FetchInventoryDescendents2");
capabilityNames.append("GetDisplayNames"); capabilityNames.append("GetDisplayNames");
capabilityNames.append("GetTexture"); capabilityNames.append("GetTexture");
capabilityNames.append("GroupProposalBallot"); capabilityNames.append("GroupProposalBallot");
...@@ -1423,7 +1424,6 @@ void LLViewerRegion::setSeedCapability(const std::string& url) ...@@ -1423,7 +1424,6 @@ void LLViewerRegion::setSeedCapability(const std::string& url)
capabilityNames.append("ViewerMetrics"); capabilityNames.append("ViewerMetrics");
capabilityNames.append("ViewerStartAuction"); capabilityNames.append("ViewerStartAuction");
capabilityNames.append("ViewerStats"); capabilityNames.append("ViewerStats");
capabilityNames.append("WebFetchInventoryDescendents");
// Please add new capabilities alphabetically to reduce // Please add new capabilities alphabetically to reduce
// merge conflicts. // merge conflicts.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment