summaryrefslogtreecommitdiff
path: root/indra/newview/lllandmarkactions.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/lllandmarkactions.h')
-rw-r--r--indra/newview/lllandmarkactions.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/indra/newview/lllandmarkactions.h b/indra/newview/lllandmarkactions.h
index ab8cc4d6a5..e882db0a92 100644
--- a/indra/newview/lllandmarkactions.h
+++ b/indra/newview/lllandmarkactions.h
@@ -35,6 +35,7 @@
#include "llinventorymodel.h"
+class LLLandmark;
/**
* @brief Provides helper functions to manage landmarks
*/
@@ -101,6 +102,20 @@ public:
// *TODO: mantipov: profide callback for cases, when Landmark is not loaded yet.
static bool getLandmarkGlobalPos(const LLUUID& landmarkInventoryItemID, LLVector3d& posGlobal);
+ /**
+ * @brief Retrieve a landmark from gLandmarkList by inventory item's id
+ *
+ * @return pointer to loaded landmark from gLandmarkList or NULL if landmark does not exist.
+ */
+ static LLLandmark* getLandmark(const LLUUID& landmarkInventoryItemID);
+
+ /**
+ * @brief Performs standard action of copying of SLURL from landmark to user's clipboard.
+ * This action requires additional server request. The user will be notified by info message,
+ * when URL is copied .
+ */
+ static void copySLURLtoClipboard(const LLUUID& landmarkInventoryItemID);
+
private:
LLLandmarkActions();
LLLandmarkActions(const LLLandmarkActions&);