diff options
Add search URL to Login Service
Diffstat (limited to 'OpenSim/Services/LLLoginService/LLLoginResponse.cs')
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginResponse.cs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginResponse.cs b/OpenSim/Services/LLLoginService/LLLoginResponse.cs index 3366922..a01ea1e 100644 --- a/OpenSim/Services/LLLoginService/LLLoginResponse.cs +++ b/OpenSim/Services/LLLoginService/LLLoginResponse.cs | |||
@@ -173,6 +173,8 @@ namespace OpenSim.Services.LLLoginService | |||
173 | // Web map | 173 | // Web map |
174 | private string mapTileURL; | 174 | private string mapTileURL; |
175 | 175 | ||
176 | private string searchURL; | ||
177 | |||
176 | // Error Flags | 178 | // Error Flags |
177 | private string errorReason; | 179 | private string errorReason; |
178 | private string errorMessage; | 180 | private string errorMessage; |
@@ -221,7 +223,7 @@ namespace OpenSim.Services.LLLoginService | |||
221 | public LLLoginResponse(UserAccount account, AgentCircuitData aCircuit, GridUserInfo pinfo, | 223 | public LLLoginResponse(UserAccount account, AgentCircuitData aCircuit, GridUserInfo pinfo, |
222 | GridRegion destination, List<InventoryFolderBase> invSkel, FriendInfo[] friendsList, ILibraryService libService, | 224 | GridRegion destination, List<InventoryFolderBase> invSkel, FriendInfo[] friendsList, ILibraryService libService, |
223 | string where, string startlocation, Vector3 position, Vector3 lookAt, List<InventoryItemBase> gestures, string message, | 225 | string where, string startlocation, Vector3 position, Vector3 lookAt, List<InventoryItemBase> gestures, string message, |
224 | GridRegion home, IPEndPoint clientIP, string mapTileURL) | 226 | GridRegion home, IPEndPoint clientIP, string mapTileURL, string searchURL) |
225 | : this() | 227 | : this() |
226 | { | 228 | { |
227 | FillOutInventoryData(invSkel, libService); | 229 | FillOutInventoryData(invSkel, libService); |
@@ -238,6 +240,7 @@ namespace OpenSim.Services.LLLoginService | |||
238 | BuddList = ConvertFriendListItem(friendsList); | 240 | BuddList = ConvertFriendListItem(friendsList); |
239 | StartLocation = where; | 241 | StartLocation = where; |
240 | MapTileURL = mapTileURL; | 242 | MapTileURL = mapTileURL; |
243 | SearchURL = searchURL; | ||
241 | 244 | ||
242 | FillOutHomeData(pinfo, home); | 245 | FillOutHomeData(pinfo, home); |
243 | LookAt = String.Format("[r{0},r{1},r{2}]", lookAt.X, lookAt.Y, lookAt.Z); | 246 | LookAt = String.Format("[r{0},r{1},r{2}]", lookAt.X, lookAt.Y, lookAt.Z); |
@@ -410,6 +413,7 @@ namespace OpenSim.Services.LLLoginService | |||
410 | InitialOutfitHash["gender"] = "female"; | 413 | InitialOutfitHash["gender"] = "female"; |
411 | initialOutfit.Add(InitialOutfitHash); | 414 | initialOutfit.Add(InitialOutfitHash); |
412 | mapTileURL = String.Empty; | 415 | mapTileURL = String.Empty; |
416 | searchURL = String.Empty; | ||
413 | } | 417 | } |
414 | 418 | ||
415 | 419 | ||
@@ -473,6 +477,9 @@ namespace OpenSim.Services.LLLoginService | |||
473 | responseData["region_x"] = (Int32)(RegionX); | 477 | responseData["region_x"] = (Int32)(RegionX); |
474 | responseData["region_y"] = (Int32)(RegionY); | 478 | responseData["region_y"] = (Int32)(RegionY); |
475 | 479 | ||
480 | if (searchURL != String.Empty) | ||
481 | responseData["search"] = searchURL; | ||
482 | |||
476 | if (mapTileURL != String.Empty) | 483 | if (mapTileURL != String.Empty) |
477 | responseData["map-server-url"] = mapTileURL; | 484 | responseData["map-server-url"] = mapTileURL; |
478 | 485 | ||
@@ -575,6 +582,9 @@ namespace OpenSim.Services.LLLoginService | |||
575 | if (mapTileURL != String.Empty) | 582 | if (mapTileURL != String.Empty) |
576 | map["map-server-url"] = OSD.FromString(mapTileURL); | 583 | map["map-server-url"] = OSD.FromString(mapTileURL); |
577 | 584 | ||
585 | if (searchURL != String.Empty) | ||
586 | map["search"] = OSD.FromString(searchURL); | ||
587 | |||
578 | if (m_buddyList != null) | 588 | if (m_buddyList != null) |
579 | { | 589 | { |
580 | map["buddy-list"] = ArrayListToOSDArray(m_buddyList.ToArray()); | 590 | map["buddy-list"] = ArrayListToOSDArray(m_buddyList.ToArray()); |
@@ -932,6 +942,12 @@ namespace OpenSim.Services.LLLoginService | |||
932 | set { mapTileURL = value; } | 942 | set { mapTileURL = value; } |
933 | } | 943 | } |
934 | 944 | ||
945 | public string SearchURL | ||
946 | { | ||
947 | get { return searchURL; } | ||
948 | set { searchURL = value; } | ||
949 | } | ||
950 | |||
935 | public string Message | 951 | public string Message |
936 | { | 952 | { |
937 | get { return welcomeMessage; } | 953 | get { return welcomeMessage; } |