summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorprep <prep@lindenlab.com>2011-11-04 14:10:48 -0400
committerprep <prep@lindenlab.com>2011-11-04 14:10:48 -0400
commit1194063e316461e5b4bf93c1c9ab8e99fefb435b (patch)
treeb1053c8761397cabea6382e164feeb4b7c007f4e /indra/newview
parentbfbd649b4c2a2e03298e82d1caa6611dee4411cb (diff)
Hooked up responder, added navmeshupload capabilty to viewer
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llnavmeshstation.cpp18
-rw-r--r--indra/newview/llnavmeshstation.h2
-rw-r--r--indra/newview/llviewermenufile.cpp6
-rw-r--r--indra/newview/llviewerregion.cpp5
4 files changed, 25 insertions, 6 deletions
diff --git a/indra/newview/llnavmeshstation.cpp b/indra/newview/llnavmeshstation.cpp
index 2128411a07..565cc4eb2d 100644
--- a/indra/newview/llnavmeshstation.cpp
+++ b/indra/newview/llnavmeshstation.cpp
@@ -52,8 +52,22 @@ public:
}
void result( const LLSD& content )
- {
- content;
+ {
+ llinfos<<"Content received"<<llendl;
+ //TODO# some sanity checking
+ if ( content.has("error") )
+ {
+ llwarns << "Error on fetched data"<< llendl;
+ }
+ else
+ {
+ LLNavMeshObserver* pObserver = mObserverHandle.get();
+ if ( pObserver )
+ {
+ llinfos<<"Do something immensely important w/content"<<llendl;
+ //pObserver->execute();
+ }
+ }
}
private:
diff --git a/indra/newview/llnavmeshstation.h b/indra/newview/llnavmeshstation.h
index acb9a6932e..ed607be52a 100644
--- a/indra/newview/llnavmeshstation.h
+++ b/indra/newview/llnavmeshstation.h
@@ -46,7 +46,7 @@ protected:
LLRootHandle<LLNavMeshObserver> mObserverHandle;
};
//===============================================================================
-class LLNavMeshStation : public LLSingleton<LLNavMeshStation>, LLNavMeshObserver
+class LLNavMeshStation : public LLSingleton<LLNavMeshStation>
{
public:
//Ctor
diff --git a/indra/newview/llviewermenufile.cpp b/indra/newview/llviewermenufile.cpp
index baea83ffd9..18247a2dad 100644
--- a/indra/newview/llviewermenufile.cpp
+++ b/indra/newview/llviewermenufile.cpp
@@ -90,9 +90,10 @@ class LLBuildNavMesh : public view_listener_t
return result;
}
};
-
+//prep#
class LLFileUploadNavMesh : public view_listener_t, LLNavMeshObserver
{
+
bool handleEvent(const LLSD& userdata)
{
LLPathingLib::initSystem();
@@ -115,7 +116,8 @@ class LLFileUploadNavMesh : public view_listener_t, LLNavMeshObserver
llinfos<< typeid(*this).name() <<"setNavMeshUploadURL "<< url <<llendl;
//Populate the required paramters that are required to store in the dictionary
data["agent_id"] = gAgent.getID();
- data["object_id"] = "prepFIXME#IsThisReallyNeeded?";
+ LLUUID object_id;
+ data["object_id"] = object_id; //"prepFIXME#IsThisReallyNeeded?";
data["region_id"] = gAgent.getRegion()->getRegionID();
data["sim_host"] = gAgent.getRegion()->getHost().getString();
data["sim_port"] = (S32)gAgent.getRegion()->getHost().getPort();
diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp
index ed943964f9..73a0d4de24 100644
--- a/indra/newview/llviewerregion.cpp
+++ b/indra/newview/llviewerregion.cpp
@@ -1519,6 +1519,10 @@ void LLViewerRegionImpl::buildCapabilityNames(LLSD& capabilityNames)
capabilityNames.append("MapLayer");
capabilityNames.append("MapLayerGod");
capabilityNames.append("MeshUploadFlag");
+
+ //perp#
+ capabilityNames.append("NavMeshUpload");
+
capabilityNames.append("NewFileAgentInventory");
capabilityNames.append("ParcelPropertiesUpdate");
capabilityNames.append("ParcelMediaURLFilterList");
@@ -1554,7 +1558,6 @@ void LLViewerRegionImpl::buildCapabilityNames(LLSD& capabilityNames)
capabilityNames.append("ViewerMetrics");
capabilityNames.append("ViewerStartAuction");
capabilityNames.append("ViewerStats");
-
// Please add new capabilities alphabetically to reduce
// merge conflicts.
}