diff options
author | Todd Stinson <stinson@lindenlab.com> | 2012-03-14 14:09:36 -0700 |
---|---|---|
committer | Todd Stinson <stinson@lindenlab.com> | 2012-03-14 14:09:36 -0700 |
commit | d4fb7c99febf07b4eb7f3a9d2eab485e356d1439 (patch) | |
tree | 31558a02ba12ecf565fdc72fd8b3386fde979689 /indra/newview/llpathfindingnavmesh.h | |
parent | e1aac3718192d7ce663f9134492b4a12dc1637d0 (diff) |
PATH-302: Adding in status reporting for the simulator navmesh status. Separating the viewer status messaging from the simulator status.
Diffstat (limited to 'indra/newview/llpathfindingnavmesh.h')
-rw-r--r-- | indra/newview/llpathfindingnavmesh.h | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/indra/newview/llpathfindingnavmesh.h b/indra/newview/llpathfindingnavmesh.h index 46a114439a..290f7a2cdf 100644 --- a/indra/newview/llpathfindingnavmesh.h +++ b/indra/newview/llpathfindingnavmesh.h @@ -29,7 +29,6 @@ #define LL_LLPATHFINDINGNAVMESH_H
#include "llsd.h"
-#include "lluuid.h"
#include <string>
@@ -37,14 +36,13 @@ #include <boost/function.hpp>
#include <boost/signals2.hpp>
-class LLSD;
+#include "llpathfindingnavmeshstatus.h"
+
+class LLUUID;
class LLPathfindingNavMesh;
typedef boost::shared_ptr<LLPathfindingNavMesh> LLPathfindingNavMeshPtr;
-// XXX stinson 03/12/2012 : This definition is in place to support an older version of the pathfinding simulator that does not have versioned information
-#define DEPRECATED_UNVERSIONED_NAVMESH
-
class LLPathfindingNavMesh
{
public:
@@ -58,9 +56,9 @@ public: kNavMeshRequestError
} ENavMeshRequestStatus;
- typedef boost::function<void (ENavMeshRequestStatus, const LLUUID &, U32, const LLSD::Binary &)> navmesh_callback_t;
- typedef boost::signals2::signal<void (ENavMeshRequestStatus, const LLUUID &, U32, const LLSD::Binary &)> navmesh_signal_t;
- typedef boost::signals2::connection navmesh_slot_t;
+ typedef boost::function<void (ENavMeshRequestStatus, const LLPathfindingNavMeshStatus &, const LLSD::Binary &)> navmesh_callback_t;
+ typedef boost::signals2::signal<void (ENavMeshRequestStatus, const LLPathfindingNavMeshStatus &, const LLSD::Binary &)> navmesh_signal_t;
+ typedef boost::signals2::connection navmesh_slot_t;
LLPathfindingNavMesh(const LLUUID &pRegionUUID);
virtual ~LLPathfindingNavMesh();
@@ -68,15 +66,15 @@ public: navmesh_slot_t registerNavMeshListener(navmesh_callback_t pNavMeshCallback);
#ifdef DEPRECATED_UNVERSIONED_NAVMESH
- U32 getNavMeshVersion() const {return mNavMeshVersion;};
+ const LLPathfindingNavMeshStatus &getNavMeshStatusXXX() const {return mNavMeshStatus;};
#endif // DEPRECATED_UNVERSIONED_NAVMESH
- bool hasNavMeshVersion(U32 pNavMeshVersion) const;
+ bool hasNavMeshVersion(const LLPathfindingNavMeshStatus &pNavMeshStatus) const;
void handleNavMeshCheckVersion();
- void handleRefresh(U32 pNavMeshVersion);
- void handleNavMeshNewVersion(U32 pNavMeshVersion);
- void handleNavMeshStart(U32 pNavMeshVersion);
+ void handleRefresh(const LLPathfindingNavMeshStatus &pNavMeshStatus);
+ void handleNavMeshNewVersion(const LLPathfindingNavMeshStatus &pNavMeshStatus);
+ void handleNavMeshStart(const LLPathfindingNavMeshStatus &pNavMeshStatus);
void handleNavMeshResult(const LLSD &pContent, U32 pNavMeshVersion);
void handleNavMeshNotEnabled();
void handleNavMeshError();
@@ -86,12 +84,12 @@ protected: private:
void setRequestStatus(ENavMeshRequestStatus pNavMeshRequestStatus);
+ void sendStatus();
- LLUUID mRegionUUID;
- ENavMeshRequestStatus mNavMeshRequestStatus;
- navmesh_signal_t mNavMeshSignal;
- LLSD::Binary mNavMeshData;
- U32 mNavMeshVersion;
+ LLPathfindingNavMeshStatus mNavMeshStatus;
+ ENavMeshRequestStatus mNavMeshRequestStatus;
+ navmesh_signal_t mNavMeshSignal;
+ LLSD::Binary mNavMeshData;
};
#endif // LL_LLPATHFINDINGNAVMESH_H
|