summaryrefslogtreecommitdiff
path: root/indra/llui/llurlentry.h
diff options
context:
space:
mode:
authormaksymsproductengine <maksymsproductengine@lindenlab.com>2014-10-02 18:20:10 +0300
committermaksymsproductengine <maksymsproductengine@lindenlab.com>2014-10-02 18:20:10 +0300
commita25748e11ea59d72f8190373be5b8930288d4744 (patch)
treeddfebd4b4a738c7b636427b9ba469929b81627a5 /indra/llui/llurlentry.h
parentd95feec8dc38dad52f5265a9abc58175019c6d18 (diff)
MAINT-4119 FIXED Uniquely decorate links on Second Life or Linden Lab domains
Diffstat (limited to 'indra/llui/llurlentry.h')
-rwxr-xr-xindra/llui/llurlentry.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/llui/llurlentry.h b/indra/llui/llurlentry.h
index ffcd45dfde..f75d773803 100755
--- a/indra/llui/llurlentry.h
+++ b/indra/llui/llurlentry.h
@@ -96,6 +96,8 @@ public:
/// Should this link text be underlined only when mouse is hovered over it?
virtual bool underlineOnHoverOnly(const std::string &string) const { return false; }
+ virtual bool isTrusted() const { return false; }
+
virtual LLUUID getID(const std::string &string) const { return LLUUID::null; }
bool isLinkDisabled() const;
@@ -168,6 +170,21 @@ public:
};
///
+/// LLUrlEntrySeconlifeURLs Describes *secondlife.com and *lindenlab.com Urls
+///
+class LLUrlEntrySeconlifeURL : public LLUrlEntryBase
+{
+public:
+ LLUrlEntrySeconlifeURL();
+ virtual bool isTrusted() const { return true; }
+ virtual std::string getLabel(const std::string &url, const LLUrlLabelCallback &cb);
+ virtual std::string getTooltip(const std::string &url) const;
+
+private:
+ std::string mLabel;
+};
+
+///
/// LLUrlEntryAgent Describes a Second Life agent Url, e.g.,
/// secondlife:///app/agent/0e346d8b-4433-4d66-a6b0-fd37083abc4c/about
class LLUrlEntryAgent : public LLUrlEntryBase