Merge branch 'master' of github.com:singularity-viewer/SingularityViewer
Conflicts: indra/newview/hippogridmanager.cpp indra/newview/hippogridmanager.h
This commit is contained in:
@@ -69,42 +69,6 @@ HippoGridInfo::HippoGridInfo(const std::string& gridName) :
|
||||
// ********************************************************************
|
||||
// Getters
|
||||
|
||||
HippoGridInfo::Platform HippoGridInfo::getPlatform()
|
||||
{
|
||||
return mPlatform;
|
||||
}
|
||||
|
||||
bool HippoGridInfo::isOpenSimulator() const
|
||||
{
|
||||
return (mPlatform == HippoGridInfo::PLATFORM_OPENSIM || mPlatform == HippoGridInfo::PLATFORM_AURORA);
|
||||
}
|
||||
|
||||
bool HippoGridInfo::isAurora() const
|
||||
{
|
||||
return (mPlatform == HippoGridInfo::PLATFORM_AURORA);
|
||||
}
|
||||
|
||||
bool HippoGridInfo::isSecondLife() const
|
||||
{
|
||||
return (mPlatform == HippoGridInfo::PLATFORM_SECONDLIFE);
|
||||
}
|
||||
|
||||
bool HippoGridInfo::isInProductionGrid() const
|
||||
{
|
||||
llassert(mPlatform == HippoGridInfo::PLATFORM_SECONDLIFE);
|
||||
return mIsInProductionGrid;
|
||||
}
|
||||
|
||||
bool HippoGridInfo::isAvination() const
|
||||
{
|
||||
return mIsInAvination;
|
||||
}
|
||||
|
||||
const std::string& HippoGridInfo::getGridName() const
|
||||
{
|
||||
return mGridName;
|
||||
}
|
||||
|
||||
const std::string& HippoGridInfo::getGridOwner() const
|
||||
{
|
||||
if(isSecondLife())
|
||||
@@ -118,73 +82,6 @@ const std::string& HippoGridInfo::getGridOwner() const
|
||||
}
|
||||
}
|
||||
|
||||
const std::string& HippoGridInfo::getLoginUri() const
|
||||
{
|
||||
return mLoginUri;
|
||||
}
|
||||
|
||||
const std::string& HippoGridInfo::getLoginPage() const
|
||||
{
|
||||
return mLoginPage;
|
||||
}
|
||||
|
||||
const std::string& HippoGridInfo::getHelperUri() const
|
||||
{
|
||||
return mHelperUri;
|
||||
}
|
||||
|
||||
const std::string& HippoGridInfo::getWebSite() const
|
||||
{
|
||||
return mWebSite;
|
||||
}
|
||||
|
||||
const std::string& HippoGridInfo::getSupportUrl() const
|
||||
{
|
||||
return mSupportUrl;
|
||||
}
|
||||
|
||||
const std::string& HippoGridInfo::getRegisterUrl() const
|
||||
{
|
||||
return mRegisterUrl;
|
||||
}
|
||||
|
||||
const std::string& HippoGridInfo::getPasswordUrl() const
|
||||
{
|
||||
return mPasswordUrl;
|
||||
}
|
||||
|
||||
const std::string& HippoGridInfo::getSearchUrl() const
|
||||
{
|
||||
return mSearchUrl;
|
||||
}
|
||||
|
||||
const std::string& HippoGridInfo::getGridMessage() const
|
||||
{
|
||||
return mGridMessage;
|
||||
}
|
||||
|
||||
bool HippoGridInfo::isRenderCompat() const
|
||||
{
|
||||
return mRenderCompat;
|
||||
}
|
||||
|
||||
const std::string& HippoGridInfo::getCurrencySymbol() const
|
||||
{
|
||||
return mCurrencySymbol;
|
||||
}
|
||||
|
||||
const std::string& HippoGridInfo::getCurrencyText() const
|
||||
{
|
||||
return mCurrencyText;
|
||||
}
|
||||
|
||||
const std::string& HippoGridInfo::getRealCurrencySymbol() const
|
||||
{
|
||||
return mRealCurrencySymbol;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// ********************************************************************
|
||||
// Setters
|
||||
|
||||
@@ -484,8 +381,11 @@ void HippoGridInfo::onXmlCharacterData(void* userData, const XML_Char* s, int le
|
||||
{
|
||||
case XML_GRIDNICK:
|
||||
{
|
||||
if (self->mGridNick == "") self->mGridNick.assign(s, len);
|
||||
self->mGridNick = sanitizeGridNick(self->mGridNick);
|
||||
if (self->mGridNick == "")
|
||||
{
|
||||
self->mGridNick.assign(s, len);
|
||||
self->mGridNick = sanitizeGridNick(self->mGridNick);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -517,7 +417,15 @@ void HippoGridInfo::onXmlCharacterData(void* userData, const XML_Char* s, int le
|
||||
break;
|
||||
}
|
||||
|
||||
case XML_GRIDNAME: self->mGridName.assign(s, len); break;
|
||||
case XML_GRIDNAME:
|
||||
{
|
||||
if (self->mGridName == "")
|
||||
{
|
||||
self->mGridName.assign(s, len);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case XML_LOGINPAGE: self->mLoginPage.assign(s, len); break;
|
||||
case XML_WEBSITE: self->mWebSite.assign(s, len); break;
|
||||
case XML_SUPPORT: self->mSupportUrl.assign(s, len); break;
|
||||
@@ -788,13 +696,6 @@ HippoGridInfo* HippoGridManager::getGrid(const std::string& grid) const
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
HippoGridInfo* HippoGridManager::getConnectedGrid() const
|
||||
{
|
||||
return (mConnectedGrid)? mConnectedGrid: getCurrentGrid();
|
||||
}
|
||||
|
||||
|
||||
HippoGridInfo* HippoGridManager::getCurrentGrid() const
|
||||
{
|
||||
HippoGridInfo* grid = getGrid(mCurrentGrid);
|
||||
|
||||
Reference in New Issue
Block a user