llcachename.cpp File Reference

A hierarchical cache of first and last names queried based on UUID. More...

#include "linden_common.h"
#include "llcachename.h"
#include "message.h"
#include "llrand.h"
#include "lldbstrings.h"
#include "llframetimer.h"
#include "llhost.h"
#include "lluuid.h"

Include dependency graph for llcachename.cpp:

Go to the source code of this file.

Classes

class  LLCacheNameEntry
class  PendingReply
class  ReplySender
class  LLCacheName::Impl

Typedefs

typedef std::set< LLUUIDAskQueue
typedef std::vector< PendingReplyReplyQueue
typedef std::map< LLUUID,
U32
PendingQueue
typedef std::map< LLUUID,
LLCacheNameEntry * > 
Cache
typedef std::vector< LLCacheNameCallbackObservers

Variables

const char * CN_WAITING = "(waiting)"
const char * CN_NOBODY = "(nobody)"
const char * CN_NONE = "(none)"
const char * CN_HIPPOS = "(hippos)"
const F32 HIPPO_PROBABILITY = 0.01f
const U32 PENDING_TIMEOUT_SECS = 5 * 60
const S32 CN_FILE_VERSION = 2
LLCacheNamegCacheName = NULL


Detailed Description

A hierarchical cache of first and last names queried based on UUID.

LicenseInfo
firstyear=2002&license=viewergpl

Copyright (c) 2002-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llcachename.cpp.


Typedef Documentation

typedef std::set<LLUUID> AskQueue

Definition at line 184 of file llcachename.cpp.

typedef std::map<LLUUID, LLCacheNameEntry*> Cache

Definition at line 187 of file llcachename.cpp.

typedef std::vector<LLCacheNameCallback> Observers

Definition at line 188 of file llcachename.cpp.

typedef std::map<LLUUID,U32> PendingQueue

Definition at line 186 of file llcachename.cpp.

typedef std::vector<PendingReply> ReplyQueue

Definition at line 185 of file llcachename.cpp.


Variable Documentation

const S32 CN_FILE_VERSION = 2

Definition at line 56 of file llcachename.cpp.

Referenced by LLCacheName::exportFile(), and LLCacheName::importFile().

const char* CN_HIPPOS = "(hippos)"

Definition at line 48 of file llcachename.cpp.

Referenced by LLCacheName::getName().

const char* CN_NOBODY = "(nobody)"

Definition at line 46 of file llcachename.cpp.

Referenced by LLCacheName::get(), and LLCacheName::getName().

const char* CN_NONE = "(none)"

Definition at line 47 of file llcachename.cpp.

Referenced by LLCacheName::getGroupName().

const char* CN_WAITING = "(waiting)"

Definition at line 45 of file llcachename.cpp.

Referenced by LLCacheName::getDefaultName(), LLCacheName::getGroupName(), and LLCacheName::getName().

LLCacheName* gCacheName = NULL

Definition at line 59 of file llcachename.cpp.

Referenced by LLFloaterNewIM::addAgent(), LLAvatarTracker::addBuddyList(), LLNameListCtrl::addElement(), LLNameListCtrl::addGroupNameItem(), LLNameListCtrl::addNameItem(), LLPanelLandObjects::callbackReturnGroupObjects(), LLPanelLandObjects::callbackReturnOwnerObjects(), cleanup_app(), LLViewerParcelMgr::deedLandToGroup(), LLPanelEvent::draw(), LLFloaterTrustNetRate::draw(), LLFloaterPay::finishPayUI(), LLFloaterChat::getAvatarName(), LLTrustNet::getScoreData(), idle_network(), idle_startup(), inventory_offer_callback(), inventory_offer_handler(), LLIMMgr::inviteToSession(), load_name_cache(), load_region_name_cache(), LLSpeaker::lookupName(), LLIMMgr::noteOfflineUsers(), LLPanelFriends::onClickIM(), LLPanelFriends::onClickModifyStatus(), LLPanelFriends::onClickRemove(), LLPanelLandObjects::onClickReturnGroupObjects(), LLPanelLandObjects::onClickReturnOtherObjects(), LLPanelLandObjects::onClickReturnOwnerObjects(), LLDispatchEstateUpdateInfo::operator()(), LLCollectAllBuddies::operator()(), LLCollectOnlineBuddies::operator()(), LLCollectMappableBuddies::operator()(), process_agent_movement_complete(), process_covenant_reply(), process_load_url(), process_mean_collision_alert_message(), LLAvatarTracker::processChange(), LLAvatarTracker::processNotify(), LLSelectMgr::processObjectPropertiesFamily(), LLStatusBar::refresh(), LLPanelLandAccess::refresh(), LLFloaterInspect::refresh(), LLFloaterAvatarTextures::refresh(), LLFloaterProperties::refreshFromItem(), LLPanelLandAccess::refreshNames(), LLPanelLandGeneral::refreshNames(), save_name_cache(), save_region_name_cache(), LLSelectMgr::selectGetCreator(), LLSelectMgr::selectGetLastOwner(), LLSelectMgr::selectGetOwner(), LLNameEditor::setNameID(), LLNameBox::setNameID(), LLFloaterBuyContents::show(), LLFloaterGroupInfo::showFromUUID(), LLFloaterBuyLandUI::soleInstance(), LLAvatarOwnedEmitter::update(), LLPanelGroupMembersSubTab::updateMembers(), LLFloaterBuyLandUI::updateNames(), LLFloaterSellLandUI::updateParcelInfo(), LLPanelAvatarSecondLife::updatePartnerName(), LLHoverView::updateText(), LLAvatarOwnedEmitter::~LLAvatarOwnedEmitter(), and LLFloaterPay::~LLFloaterPay().

const F32 HIPPO_PROBABILITY = 0.01f

Definition at line 49 of file llcachename.cpp.

Referenced by LLCacheName::getName().

const U32 PENDING_TIMEOUT_SECS = 5 * 60

Definition at line 53 of file llcachename.cpp.

Referenced by LLCacheName::deleteEntriesOlderThan(), and LLCacheName::Impl::isRequestPending().


Generated on Thu Jul 1 06:10:06 2010 for Second Life Viewer by  doxygen 1.4.7