aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/hippoGridManager.h
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-07-15 02:02:57 -0700
committerMcCabe Maxsted2010-07-15 02:11:25 -0700
commit145c9172381f8bef303a86689b52dadf6a05975a (patch)
tree392b2cd85309d65c6eea98efd3a65bf96238554a /linden/indra/newview/hippoGridManager.h
parentFixed #368: showlookatinfo notification missing, friendship and calling card ... (diff)
downloadmeta-impy-145c9172381f8bef303a86689b52dadf6a05975a.zip
meta-impy-145c9172381f8bef303a86689b52dadf6a05975a.tar.gz
meta-impy-145c9172381f8bef303a86689b52dadf6a05975a.tar.bz2
meta-impy-145c9172381f8bef303a86689b52dadf6a05975a.tar.xz
Fixed Bug #262: 'Help > Viewer Help' name does not match behavior (also fixed LLWeb::loadURL)
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/hippoGridManager.h65
1 files changed, 33 insertions, 32 deletions
diff --git a/linden/indra/newview/hippoGridManager.h b/linden/indra/newview/hippoGridManager.h
index b304722..5ad6ca2 100644
--- a/linden/indra/newview/hippoGridManager.h
+++ b/linden/indra/newview/hippoGridManager.h
@@ -33,7 +33,7 @@ public:
33 SEARCH_ALL_TEMPLATE 33 SEARCH_ALL_TEMPLATE
34 }; 34 };
35 35
36 explicit HippoGridInfo(const std::string &gridNick); 36 explicit HippoGridInfo(const std::string& gridNick);
37 37
38 Platform getPlatform(); 38 Platform getPlatform();
39 bool isOpenSimulator() const; 39 bool isOpenSimulator() const;
@@ -51,7 +51,7 @@ public:
51 const std::string& getFirstName() const; 51 const std::string& getFirstName() const;
52 const std::string& getLastName() const; 52 const std::string& getLastName() const;
53 const std::string& getAvatarPassword() const; 53 const std::string& getAvatarPassword() const;
54 const std::string &getVoiceConnector() const { return mVoiceConnector; } 54 const std::string& getVoiceConnector() const { return mVoiceConnector; }
55 std::string getSearchUrl(SearchType ty, bool is_web) const; 55 std::string getSearchUrl(SearchType ty, bool is_web) const;
56 bool isRenderCompat() const; 56 bool isRenderCompat() const;
57 int getMaxAgentGroups() const { return mMaxAgentGroups; } 57 int getMaxAgentGroups() const { return mMaxAgentGroups; }
@@ -62,31 +62,31 @@ public:
62 std::string getGroupCreationFee() const; 62 std::string getGroupCreationFee() const;
63 std::string getDirectoryFee() const; 63 std::string getDirectoryFee() const;
64 64
65 void setPlatform (const std::string &platform); 65 void setPlatform (const std::string& platform);
66 void setPlatform (Platform platform); 66 void setPlatform (Platform platform);
67 void setGridName (const std::string &gridName); 67 void setGridName (const std::string& gridName);
68 void setLoginUri (const std::string &loginUri); 68 void setLoginUri (const std::string& loginUri);
69 void setLoginPage(const std::string &loginPage); 69 void setLoginPage(const std::string& loginPage);
70 void setHelperUri(const std::string &helperUri); 70 void setHelperUri(const std::string& helperUri);
71 void setWebSite (const std::string &website); 71 void setWebSite (const std::string& website);
72 void setSupportUrl(const std::string &url); 72 void setSupportUrl(const std::string& url);
73 void setRegisterUrl(const std::string &url); 73 void setRegisterUrl(const std::string& url);
74 void setPasswordUrl(const std::string &url); 74 void setPasswordUrl(const std::string& url);
75 void setSearchUrl(const std::string &url); 75 void setSearchUrl(const std::string& url);
76 void setRenderCompat(bool compat); 76 void setRenderCompat(bool compat);
77 void setMaxAgentGroups(int max) { mMaxAgentGroups = max; } 77 void setMaxAgentGroups(int max) { mMaxAgentGroups = max; }
78 void setFirstName(const std::string &firstName); 78 void setFirstName(const std::string& firstName);
79 void setLastName(const std::string &lastName); 79 void setLastName(const std::string& lastName);
80 void setAvatarPassword(const std::string &avatarPassword); 80 void setAvatarPassword(const std::string& avatarPassword);
81 void setVoiceConnector(const std::string &vc) { mVoiceConnector = vc; } 81 void setVoiceConnector(const std::string& vc) { mVoiceConnector = vc; }
82 82
83 void setCurrencySymbol(const std::string &sym); 83 void setCurrencySymbol(const std::string& sym);
84 void setRealCurrencySymbol(const std::string &sym); 84 void setRealCurrencySymbol(const std::string& sym);
85 void setDirectoryFee(int fee); 85 void setDirectoryFee(int fee);
86 86
87 bool retrieveGridInfo(); 87 bool retrieveGridInfo();
88 88
89 static const char *getPlatformString(Platform platform); 89 static const char* getPlatformString(Platform platform);
90 static std::string sanitizeGridNick(std::string &gridnick); 90 static std::string sanitizeGridNick(std::string &gridnick);
91 91
92 static HippoGridInfo FALLBACK_GRIDINFO; 92 static HippoGridInfo FALLBACK_GRIDINFO;
@@ -116,7 +116,8 @@ private:
116 int mDirectoryFee; 116 int mDirectoryFee;
117 117
118 // for parsing grid info XML 118 // for parsing grid info XML
119 enum XmlState { 119 enum XmlState
120 {
120 XML_VOID, XML_GRIDNICK, XML_PLATFORM, XML_GRIDNAME, 121 XML_VOID, XML_GRIDNICK, XML_PLATFORM, XML_GRIDNAME,
121 XML_LOGINURI, XML_LOGINPAGE, XML_HELPERURI, 122 XML_LOGINURI, XML_LOGINPAGE, XML_HELPERURI,
122 XML_WEBSITE, XML_SUPPORT, XML_REGISTER, XML_PASSWORD, XML_SEARCH 123 XML_WEBSITE, XML_SUPPORT, XML_REGISTER, XML_PASSWORD, XML_SEARCH
@@ -126,9 +127,9 @@ private:
126 static std::string sanitizeUri(std::string &uri); 127 static std::string sanitizeUri(std::string &uri);
127 void formatFee(std::string &fee, int cost, bool showFree) const; 128 void formatFee(std::string &fee, int cost, bool showFree) const;
128 129
129 static void onXmlElementStart(void *userData, const XML_Char *name, const XML_Char **atts); 130 static void onXmlElementStart(void* userData, const XML_Char* name, const XML_Char** atts);
130 static void onXmlElementEnd(void *userData, const XML_Char *name); 131 static void onXmlElementEnd(void* userData, const XML_Char* name);
131 static void onXmlCharacterData(void *userData, const XML_Char *s, int len); 132 static void onXmlCharacterData(void* userData, const XML_Char* s, int len);
132}; 133};
133 134
134 135
@@ -142,18 +143,18 @@ public:
142 void saveFile(); 143 void saveFile();
143 void discardAndReload(); 144 void discardAndReload();
144 145
145 HippoGridInfo* getGrid(const std::string &grid) const; 146 HippoGridInfo* getGrid(const std::string& grid) const;
146 HippoGridInfo* getConnectedGrid() const; 147 HippoGridInfo* getConnectedGrid() const;
147 HippoGridInfo* getCurrentGrid() const; 148 HippoGridInfo* getCurrentGrid() const;
148 const std::string& getDefaultGridNick() const; 149 const std::string& getDefaultGridNick() const;
149 const std::string& getCurrentGridNick() const; 150 const std::string& getCurrentGridNick() const;
150 151
151 void setDefaultGrid(const std::string &grid); 152 void setDefaultGrid(const std::string& grid);
152 void setCurrentGrid(const std::string &grid); 153 void setCurrentGrid(const std::string& grid);
153 void setCurrentGridAsConnected(); 154 void setCurrentGridAsConnected();
154 155
155 void addGrid(HippoGridInfo *grid); 156 void addGrid(HippoGridInfo* grid);
156 void deleteGrid(const std::string &grid); 157 void deleteGrid(const std::string& grid);
157 158
158 typedef std::map<std::string, HippoGridInfo*>::iterator GridIterator; 159 typedef std::map<std::string, HippoGridInfo*>::iterator GridIterator;
159 GridIterator beginGrid() { return mGridInfo.begin(); } 160 GridIterator beginGrid() { return mGridInfo.begin(); }
@@ -163,18 +164,18 @@ private:
163 std::map<std::string, HippoGridInfo*> mGridInfo; 164 std::map<std::string, HippoGridInfo*> mGridInfo;
164 std::string mDefaultGrid; 165 std::string mDefaultGrid;
165 std::string mCurrentGrid; 166 std::string mCurrentGrid;
166 HippoGridInfo *mConnectedGrid; 167 HippoGridInfo* mConnectedGrid;
167 int mDefaultGridsVersion; 168 int mDefaultGridsVersion;
168 169
169 void cleanup(); 170 void cleanup();
170 void loadFromFile(); 171 void loadFromFile();
171 void parseFile(const std::string &fileName, bool mergeIfNewer); 172 void parseFile(const std::string& fileName, bool mergeIfNewer);
172 void parseUrl(const char *url, bool mergeIfNewer); 173 void parseUrl(const char* url, bool mergeIfNewer);
173 void parseData(LLSD &gridInfo, bool mergeIfNewer); 174 void parseData(LLSD &gridInfo, bool mergeIfNewer);
174}; 175};
175 176
176 177
177extern HippoGridManager *gHippoGridManager; 178extern HippoGridManager* gHippoGridManager;
178 179
179 180
180#endif 181#endif