aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpaneldirbrowser.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpaneldirbrowser.cpp78
1 files changed, 0 insertions, 78 deletions
diff --git a/linden/indra/newview/llpaneldirbrowser.cpp b/linden/indra/newview/llpaneldirbrowser.cpp
index 0d359d7..4d82023 100644
--- a/linden/indra/newview/llpaneldirbrowser.cpp
+++ b/linden/indra/newview/llpaneldirbrowser.cpp
@@ -600,84 +600,6 @@ void LLPanelDirBrowser::processDirPlacesReply(LLMessageSystem* msg, void**)
600} 600}
601 601
602 602
603
604void LLPanelDirBrowser::processDirPopularReply(LLMessageSystem *msg, void**)
605{
606 LLUUID agent_id;
607 LLUUID query_id;
608 LLUUID parcel_id;
609 char name[MAX_STRING]; /*Flawfinder: ignore*/
610 F32 dwell;
611
612 msg->getUUID("AgentData", "AgentID", agent_id);
613 msg->getUUID("QueryData", "QueryID", query_id );
614
615 LLPanelDirBrowser* self;
616 self = gDirBrowserInstances.getIfThere(query_id);
617 if (!self)
618 {
619 // data from an old query
620 return;
621 }
622
623 self->mHaveSearchResults = TRUE;
624
625 LLCtrlListInterface *list = self->childGetListInterface("results");
626 if (!list) return;
627
628 if (!list->getCanSelect())
629 {
630 list->operateOnAll(LLCtrlListInterface::OP_DELETE);
631 self->mResultsContents = LLSD();
632 }
633
634 S32 i;
635 S32 count = msg->getNumberOfBlocks("QueryReplies");
636 self->mResultsReceived += count;
637 for (i = 0; i < count; i++)
638 {
639 msg->getUUID( "QueryReplies", "ParcelID", parcel_id, i);
640 msg->getString( "QueryReplies", "Name", MAX_STRING, name, i);
641 msg->getF32( "QueryReplies", "Dwell", dwell, i);
642
643 if (parcel_id.isNull())
644 {
645 continue;
646 }
647
648 LLSD content;
649 content["type"] = POPULAR_CODE;
650 content["name"] = name;
651
652 LLSD row;
653 row["id"] = parcel_id;
654
655 row["columns"][0]["column"] = "icon";
656 row["columns"][0]["type"] = "icon";
657 row["columns"][0]["value"] = "icon_popular.tga";
658
659 row["columns"][1]["column"] = "name";
660 row["columns"][1]["value"] = name;
661 row["columns"][1]["font"] = "SANSSERIF";
662
663 LLString buffer = llformat("%.0f", dwell);
664 row["columns"][2]["column"] = "dwell";
665 row["columns"][2]["value"] = buffer;
666 row["columns"][2]["font"] = "SANSSERIFSMALL";
667
668 list->addElement(row);
669 self->mResultsContents[parcel_id.asString()] = content;
670 }
671
672 list->sortByColumn(self->mCurrentSortColumn, self->mCurrentSortAscending);
673 self->updateResultCount();
674
675 // Poke the result received timer
676 self->mLastResultTimer.reset();
677 self->mDidAutoSelect = FALSE;
678}
679
680
681void LLPanelDirBrowser::processDirEventsReply(LLMessageSystem* msg, void**) 603void LLPanelDirBrowser::processDirEventsReply(LLMessageSystem* msg, void**)
682{ 604{
683 LLUUID agent_id; 605 LLUUID agent_id;