#include "llviewerprecompiledheaders.h"
#include "llavatarconstants.h"
#include "llfloateravatarlist.h"
#include "llvieweruictrlfactory.h"
#include "llviewerwindow.h"
#include "llscrolllistctrl.h"
#include "llvoavatar.h"
#include "llimview.h"
#include "llfloateravatarinfo.h"
#include "llregionflags.h"
#include "llfloaterreporter.h"
#include "llagent.h"
#include "llviewerregion.h"
#include "lltracker.h"
#include "llviewercontrol.h"
#include "llviewerstats.h"
#include "llerror.h"
#include "llchat.h"
#include "llviewermessage.h"
#include "llweb.h"
#include "llviewerobjectlist.h"
#include "llmutelist.h"
#include <time.h>
#include <string.h>
#include <map>
Include dependency graph for llfloateravatarlist.cpp:
Go to the source code of this file.
Functions | |
static void | send_freeze (const LLUUID &avatar_id, bool freeze) |
static void | send_eject (const LLUUID &avatar_id, bool ban) |
static void | send_estate_message (const char *request, const LLUUID &target) |
static void | send_estate_ban (const LLUUID &agent) |
static void | cmd_freeze (const LLUUID &avatar, const LLString &name) |
static void | cmd_unfreeze (const LLUUID &avatar, const LLString &name) |
static void | cmd_eject (const LLUUID &avatar, const LLString &name) |
static void | cmd_ban (const LLUUID &avatar, const LLString &name) |
static void | cmd_profile (const LLUUID &avatar, const LLString &name) |
static void | cmd_mute (const LLUUID &avatar, const LLString &name) |
static void | cmd_unmute (const LLUUID &avatar, const LLString &name) |
static void | cmd_estate_eject (const LLUUID &avatar, const LLString &name) |
static void | cmd_estate_ban (const LLUUID &avatar, const LLString &name) |
Variables | |
const F32 | ACTIVITY_TIMEOUT = 1.0f |
How long to keep showing an activity, in seconds. | |
const F32 | MIN_REQUEST_INTERVAL = 1.0f |
How many seconds to wait between data requests. | |
const F32 | FIRST_REQUEST_TIMEOUT = 16.0f |
How long to wait for a request to arrive during the first try in seconds. | |
const F32 | MAX_REQUEST_TIMEOUT = 2048.0f |
Delay is doubled on each attempt. This is as high as it'll go. | |
const F32 | REQUEST_FAIL_TIMEOUT = 15.0f |
const F32 | DEAD_KEEP_TIME = 10.0f |
const F32 | CLEANUP_TIMEOUT = 3600.0f |
How long to keep entries around before removing them. | |
const S32 | TRUSTNET_CHANNEL = 0x44470002 |
TrustNet channel This is fixed in the adapter script. | |
U32 | gFrameCount |
LLFloaterAvatarList * | gFloaterAvatarList = NULL |
Definition at line 1720 of file llfloateravatarlist.cpp.
References send_eject().
Referenced by LLFloaterAvatarList::callbackEject().
Definition at line 1719 of file llfloateravatarlist.cpp.
References send_eject().
Referenced by LLFloaterAvatarList::callbackEject(), and LLFloaterEventLog::onClickAvatarEject().
Definition at line 1725 of file llfloateravatarlist.cpp.
References send_estate_ban(), and send_estate_message().
Referenced by LLFloaterAvatarList::callbackEjectFromEstate().
Definition at line 1724 of file llfloateravatarlist.cpp.
References send_estate_message().
Referenced by LLFloaterAvatarList::callbackEjectFromEstate().
Definition at line 1717 of file llfloateravatarlist.cpp.
References send_freeze().
Referenced by LLFloaterAvatarList::callbackFreeze().
Definition at line 1722 of file llfloateravatarlist.cpp.
References LLMuteList::add(), LLMute::AGENT, and gMuteListp.
Referenced by LLFloaterAvatarList::callbackMute(), LLFloaterEventLog::onClickAvatarMute(), and LLFloaterEventLog::onClickObjectMute().
Definition at line 1721 of file llfloateravatarlist.cpp.
References LLFloaterAvatarInfo::showFromDirectory().
Referenced by LLFloaterEventLog::onClickAvatarProfile(), and LLFloaterAvatarList::onClickProfile().
Definition at line 1718 of file llfloateravatarlist.cpp.
References send_freeze().
Referenced by LLFloaterAvatarList::callbackFreeze().
Definition at line 1723 of file llfloateravatarlist.cpp.
References LLMute::AGENT, gMuteListp, and LLMuteList::remove().
Referenced by LLFloaterAvatarList::callbackMute().
Definition at line 1625 of file llfloateravatarlist.cpp.
References LLMessageSystem::addU32(), LLMessageSystem::addUUID(), LLViewerObjectList::findObject(), gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLViewerObject::getRegion(), LLAgent::getSessionID(), gMessageSystem, gObjectList, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), and LLMessageSystem::sendReliable().
Referenced by cmd_ban(), and cmd_eject().
Definition at line 1683 of file llfloateravatarlist.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_SessionID, _PREHASH_TransactionID, LLMessageSystem::addString(), LLMessageSystem::addUUID(), LLMessageSystem::addUUIDFast(), ESTATE_ACCESS_BANNED_AGENT_ADD, gAgent, LLUUID::generate(), LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, MAX_STRING, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), LLMessageSystem::nextBlockFast(), LLUUID::null, LLAgent::sendReliableMessage(), and LLUUID::toString().
Referenced by cmd_estate_ban().
Definition at line 1650 of file llfloateravatarlist.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_SessionID, _PREHASH_TransactionID, LLMessageSystem::addString(), LLMessageSystem::addUUID(), LLMessageSystem::addUUIDFast(), LLUUID::asString(), gAgent, LLUUID::generate(), LLViewerRegion::getHost(), LLAgent::getID(), LLAgent::getRegion(), LLAgent::getSessionID(), gMessageSystem, llendl, llinfos, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), LLMessageSystem::nextBlockFast(), LLUUID::null, LLMessageSystem::sendReliable(), and target.
Referenced by cmd_estate_ban(), and cmd_estate_eject().
Definition at line 1600 of file llfloateravatarlist.cpp.
References LLMessageSystem::addU32(), LLMessageSystem::addUUID(), LLViewerObjectList::findObject(), gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLViewerObject::getRegion(), LLAgent::getSessionID(), gMessageSystem, gObjectList, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), and LLMessageSystem::sendReliable().
Referenced by cmd_freeze(), and cmd_unfreeze().
const F32 ACTIVITY_TIMEOUT = 1.0f |
How long to keep showing an activity, in seconds.
Definition at line 44 of file llfloateravatarlist.cpp.
Referenced by LLAvatarListEntry::getActivity(), and LLAvatarListEntry::setActivity().
const F32 CLEANUP_TIMEOUT = 3600.0f |
How long to keep entries around before removing them.
Definition at line 83 of file llfloateravatarlist.cpp.
Referenced by LLFloaterAvatarList::expireAvatarList().
const F32 DEAD_KEEP_TIME = 10.0f |
How long to keep people who are gone in the list. After this time is reached, they're not shown in the list anymore, but still kept in memory until CLEANUP_TIMEOUT is reached.
Definition at line 76 of file llfloateravatarlist.cpp.
Referenced by LLAvatarListEntry::isDead().
const F32 FIRST_REQUEST_TIMEOUT = 16.0f |
How long to wait for a request to arrive during the first try in seconds.
Definition at line 57 of file llfloateravatarlist.cpp.
Pointer to global LLFloaterAvatarList instance. This is initialized in llviewerwindow.cpp
Definition at line 231 of file llfloateravatarlist.cpp.
Referenced by addParticleSourcesToList(), LLFloaterAvatarList::handleIM(), idle(), LLViewerWindow::initWorldUI(), LLPipeline::postSort(), LLFloaterAvatarList::processAvatarPropertiesReply(), LLFloaterAvatarList::processTrustNetReply(), LLAgent::startTyping(), LLFloaterAvatarList::toggle(), LLFloaterAvatarList::visible(), and LLViewerWindow::~LLViewerWindow().
Definition at line 460 of file viewer.cpp.
Referenced by LLWorldEvent::checkDuration(), display(), LLAvatarListEntry::getEntryAgeFrames(), idle(), idle_network(), idle_startup(), LLWorldEvent::incCount(), LLAvatarListEntry::LLAvatarListEntry(), LLWorldEvent::LLWorldEvent(), main(), main_loop(), LLFloaterAvatarList::processARQueue(), send_stats(), LLAvatarListEntry::setPosition(), and LLViewerStats::updateFrameStats().
const F32 MAX_REQUEST_TIMEOUT = 2048.0f |
Delay is doubled on each attempt. This is as high as it'll go.
Definition at line 62 of file llfloateravatarlist.cpp.
const F32 MIN_REQUEST_INTERVAL = 1.0f |
How many seconds to wait between data requests.
This is intended to avoid flooding the server with requests
Definition at line 52 of file llfloateravatarlist.cpp.
const F32 REQUEST_FAIL_TIMEOUT = 15.0f |
How long to wait for a request to arrive before assuming failure and showing the failure icon in the list. This is just for the user's information, if a reply arrives after this interval we'll accept it anyway.
Definition at line 69 of file llfloateravatarlist.cpp.
const S32 TRUSTNET_CHANNEL = 0x44470002 |
TrustNet channel This is fixed in the adapter script.
Definition at line 90 of file llfloateravatarlist.cpp.
Referenced by LLFloaterAvatarList::onClickTrustNetExplain(), LLFloaterAvatarList::onClickTrustNetGetPassword(), LLFloaterAvatarList::onClickTrustNetRenew(), LLFloaterAvatarList::onClickTrustNetWebsite(), and LLFloaterAvatarList::requestTrustNetScore().