aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/hippoGridManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/hippoGridManager.h')
-rw-r--r--linden/indra/newview/hippoGridManager.h91
1 files changed, 45 insertions, 46 deletions
diff --git a/linden/indra/newview/hippoGridManager.h b/linden/indra/newview/hippoGridManager.h
index cd90ac1..de69e5b 100644
--- a/linden/indra/newview/hippoGridManager.h
+++ b/linden/indra/newview/hippoGridManager.h
@@ -35,51 +35,50 @@ public:
35 35
36 explicit HippoGridInfo(const std::string &gridNick); 36 explicit HippoGridInfo(const std::string &gridNick);
37 37
38 Platform getPlatform() const { return mPlatform; } 38 Platform getPlatform();
39 const std::string &getGridNick() const { return mGridNick; } 39 bool isOpenSimulator() const;
40 const std::string &getGridName() const { return mGridName; } 40 bool isSecondLife() const;
41 const std::string &getLoginUri() const { return mLoginUri; } 41 const std::string& getGridNick() const;
42 const std::string &getLoginPage() const { return mLoginPage; } 42 const std::string& getGridName() const;
43 const std::string &getHelperUri() const { return mHelperUri; } 43 const std::string& getLoginUri() const;
44 const std::string &getWebSite() const { return mWebSite; } 44 const std::string& getLoginPage() const;
45 const std::string &getSupportUrl() const { return mSupportUrl; } 45 const std::string& getHelperUri() const;
46 const std::string &getRegisterUrl() const { return mRegisterUrl; } 46 const std::string& getWebSite() const;
47 const std::string &getPasswordUrl() const { return mPasswordUrl; } 47 const std::string& getSupportUrl() const;
48 const std::string &getSearchUrl() const { return mSearchUrl; } 48 const std::string& getRegisterUrl() const;
49 const std::string &getFirstName() const { return mFirstName; } 49 const std::string& getPasswordUrl() const;
50 const std::string &getLastName() const { return mLastName; } 50 const std::string& getSearchUrl() const;
51 const std::string &getAvatarPassword() const { return mAvatarPassword; } 51 const std::string& getFirstName() const;
52 const std::string& getLastName() const;
53 const std::string& getAvatarPassword() const;
52 std::string getSearchUrl(SearchType ty) const; 54 std::string getSearchUrl(SearchType ty) const;
53 bool isRenderCompat() const { return mRenderCompat; } 55 bool isRenderCompat() const;
54 56
55 const std::string &getCurrencySymbol() const { return mCurrencySymbol; } 57 const std::string& getCurrencySymbol() const;
56 const std::string &getRealCurrencySymbol() const { return mRealCurrencySymbol; } 58 const std::string& getRealCurrencySymbol() const;
57 std::string getUploadFee() const; 59 std::string getUploadFee() const;
58 std::string getGroupCreationFee() const; 60 std::string getGroupCreationFee() const;
59 std::string getDirectoryFee() const; 61 std::string getDirectoryFee() const;
60
61 bool isOpenSimulator() const { return (mPlatform == PLATFORM_OPENSIM ); }
62 bool isSecondLife() const { return (mPlatform == PLATFORM_SECONDLIFE); }
63 62
64 void setPlatform (const std::string &platform); 63 void setPlatform (const std::string &platform);
65 void setPlatform (Platform platform); 64 void setPlatform (Platform platform);
66 void setGridName (const std::string &gridName) { mGridName = gridName; } 65 void setGridName (const std::string &gridName);
67 void setLoginUri (const std::string &loginUri) { mLoginUri = loginUri; cleanUpUri(mLoginUri); } 66 void setLoginUri (const std::string &loginUri);
68 void setLoginPage(const std::string &loginPage) { mLoginPage = loginPage; } 67 void setLoginPage(const std::string &loginPage);
69 void setHelperUri(const std::string &helperUri) { mHelperUri = helperUri; cleanUpUri(mHelperUri); } 68 void setHelperUri(const std::string &helperUri);
70 void setWebSite (const std::string &website) { mWebSite = website; } 69 void setWebSite (const std::string &website);
71 void setSupportUrl(const std::string &url) { mSupportUrl = url; } 70 void setSupportUrl(const std::string &url);
72 void setRegisterUrl(const std::string &url) { mRegisterUrl = url; } 71 void setRegisterUrl(const std::string &url);
73 void setPasswordUrl(const std::string &url) { mPasswordUrl = url; } 72 void setPasswordUrl(const std::string &url);
74 void setSearchUrl(const std::string &url) { mSearchUrl = url; } 73 void setSearchUrl(const std::string &url);
75 void setRenderCompat(bool compat) { mRenderCompat = compat; } 74 void setRenderCompat(bool compat);
76 void setFirstName(const std::string &firstName) { mFirstName = firstName; } //aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 75 void setFirstName(const std::string &firstName);
77 void setLastName(const std::string &lastName) { mLastName = lastName; } 76 void setLastName(const std::string &lastName);
78 void setAvatarPassword(const std::string &avatarPassword) { mAvatarPassword = avatarPassword; } 77 void setAvatarPassword(const std::string &avatarPassword);
79 78
80 void setCurrencySymbol(const std::string &sym) { mCurrencySymbol = sym.substr(0, 3); } 79 void setCurrencySymbol(const std::string &sym);
81 void setRealCurrencySymbol(const std::string &sym) { mRealCurrencySymbol = sym.substr(0, 3); } 80 void setRealCurrencySymbol(const std::string &sym);
82 void setDirectoryFee(int fee) { mDirectoryFee = fee; } 81 void setDirectoryFee(int fee);
83 82
84 bool retrieveGridInfo(); 83 bool retrieveGridInfo();
85 84
@@ -137,15 +136,15 @@ public:
137 void saveFile(); 136 void saveFile();
138 void discardAndReload(); 137 void discardAndReload();
139 138
140 HippoGridInfo *getGrid(const std::string &grid) const; 139 HippoGridInfo* getGrid(const std::string &grid) const;
141 HippoGridInfo *getConnectedGrid() const { return (mConnectedGrid)? mConnectedGrid: getCurrentGrid(); } 140 HippoGridInfo* getConnectedGrid() const;
142 HippoGridInfo *getCurrentGrid() const; 141 HippoGridInfo* getCurrentGrid() const;
143 const std::string &getDefaultGridNick() const { return mDefaultGrid; } 142 const std::string& getDefaultGridNick() const;
144 const std::string &getCurrentGridNick() const { return mCurrentGrid; } 143 const std::string& getCurrentGridNick() const;
145 144
146 void setDefaultGrid(const std::string &grid); 145 void setDefaultGrid(const std::string &grid);
147 void setCurrentGrid(const std::string &grid); 146 void setCurrentGrid(const std::string &grid);
148 void setCurrentGridAsConnected() { mConnectedGrid = getCurrentGrid(); } 147 void setCurrentGridAsConnected();
149 148
150 void addGrid(HippoGridInfo *grid); 149 void addGrid(HippoGridInfo *grid);
151 void deleteGrid(const std::string &grid); 150 void deleteGrid(const std::string &grid);