Add isAvination() function to hippo grid manager
This commit is contained in:
@@ -52,6 +52,7 @@ HippoGridInfo::HippoGridInfo(const std::string& gridName) :
|
||||
mXmlState(XML_VOID),
|
||||
mVoiceConnector("SLVoice"),
|
||||
mIsInProductionGrid(false),
|
||||
mIsInAvination(false),
|
||||
mRenderCompat(true),
|
||||
mInvLinks(false),
|
||||
mAutoUpdate(false),
|
||||
@@ -92,6 +93,11 @@ bool HippoGridInfo::isInProductionGrid() const
|
||||
return mIsInProductionGrid;
|
||||
}
|
||||
|
||||
bool HippoGridInfo::isAvination() const
|
||||
{
|
||||
return mIsInAvination;
|
||||
}
|
||||
|
||||
const std::string& HippoGridInfo::getGridName() const
|
||||
{
|
||||
return mGridName;
|
||||
@@ -240,6 +246,10 @@ void HippoGridInfo::setGridNick(std::string gridNick)
|
||||
{
|
||||
mIsInProductionGrid = true;
|
||||
}
|
||||
if(gridNick == "avination")
|
||||
{
|
||||
mIsInAvination = true;
|
||||
}
|
||||
}
|
||||
|
||||
void HippoGridInfo::setLoginUri(const std::string& loginUri)
|
||||
@@ -250,6 +260,11 @@ void HippoGridInfo::setLoginUri(const std::string& loginUri)
|
||||
{
|
||||
mIsInProductionGrid = true;
|
||||
}
|
||||
if (utf8str_tolower(LLURI(uri).hostName()) == "login.avination.com" ||
|
||||
utf8str_tolower(LLURI(uri).hostName()) == "login.avination.net")
|
||||
{
|
||||
mIsInAvination = true;
|
||||
}
|
||||
}
|
||||
|
||||
void HippoGridInfo::setLoginPage(const std::string& loginPage)
|
||||
|
||||
@@ -40,6 +40,7 @@ public:
|
||||
bool isOpenSimulator() const;
|
||||
bool isAurora() const;
|
||||
bool isSecondLife() const;
|
||||
bool isAvination() const;
|
||||
bool isInProductionGrid() const; // Should only be called if isSecondLife() returns true.
|
||||
const std::string& getGridName() const;
|
||||
const std::string& getGridOwner() const;
|
||||
@@ -113,6 +114,7 @@ private:
|
||||
std::string mSearchUrl;
|
||||
std::string mVoiceConnector;
|
||||
bool mIsInProductionGrid;
|
||||
bool mIsInAvination;
|
||||
bool mRenderCompat;
|
||||
bool mInvLinks;
|
||||
bool mAutoUpdate;
|
||||
|
||||
Reference in New Issue
Block a user