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 "lldbstrings.h"
#include "llframetimer.h"
#include "llhost.h"
#include "llrand.h"
#include "llsdserialize.h"
#include "lluuid.h"
#include "message.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, U32PendingQueue
typedef std::map< LLUUID,
LLCacheNameEntry * > 
Cache
typedef std::vector
< LLCacheNameCallback
Observers

Functions

static const std::string AGENTS ("agents")
static const std::string GROUPS ("groups")
static const std::string CTIME ("ctime")
static const std::string FIRST ("first")
static const std::string LAST ("last")
static const std::string NAME ("name")

Variables

const char *const CN_WAITING = "(Loading...)"
const char *const CN_NOBODY = "(nobody)"
const char *const CN_NONE = "(none)"
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-2008, 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://secondlifegrid.net/programs/open_source/licensing/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://secondlifegrid.net/programs/open_source/licensing/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 192 of file llcachename.cpp.

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

Definition at line 195 of file llcachename.cpp.

typedef std::vector<LLCacheNameCallback> Observers

Definition at line 196 of file llcachename.cpp.

typedef std::map<LLUUID,U32> PendingQueue

Definition at line 194 of file llcachename.cpp.

typedef std::vector<PendingReply> ReplyQueue

Definition at line 193 of file llcachename.cpp.


Function Documentation

static const std::string AGENTS ( "agents"   )  [static]

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

Here is the caller graph for this function:

static const std::string CTIME ( "ctime"   )  [static]

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

Here is the caller graph for this function:

static const std::string FIRST ( "first"   )  [static]

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

Here is the caller graph for this function:

static const std::string GROUPS ( "groups"   )  [static]

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

Here is the caller graph for this function:

static const std::string LAST ( "last"   )  [static]

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

Here is the caller graph for this function:

static const std::string NAME ( "name"   )  [static]

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

Here is the caller graph for this function:


Variable Documentation

const S32 CN_FILE_VERSION = 2

Definition at line 64 of file llcachename.cpp.

Referenced by LLCacheName::importFile().

const char* const CN_NOBODY = "(nobody)"

Definition at line 48 of file llcachename.cpp.

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

const char* const CN_NONE = "(none)"

Definition at line 49 of file llcachename.cpp.

Referenced by LLCacheName::getGroupName().

const char* const CN_WAITING = "(Loading...)"

Definition at line 67 of file llcachename.cpp.

Referenced by LLFloaterNewIM::addAgent(), LLAvatarTracker::addBuddyList(), LLNameListCtrl::addElement(), LLPanelFriends::addFriend(), LLNameListCtrl::addGroupNameItem(), LLNameListCtrl::addNameItem(), LLMuteList::autoRemove(), LLPanelLandObjects::callbackReturnGroupObjects(), LLPanelLandObjects::callbackReturnOwnerObjects(), LLAppViewer::cleanup(), LLPanelFriends::confirmModifyRights(), LLViewerParcelMgr::deedLandToGroup(), LLPanelEvent::draw(), LLFloaterPay::finishPayUI(), idle_startup(), LLAppViewer::idleNetwork(), inventory_offer_callback(), inventory_offer_handler(), LLIMMgr::inviteToSession(), LLAppViewer::loadNameCache(), LLSpeaker::lookupName(), LLIMMgr::noteMutedUsers(), LLIMMgr::noteOfflineUsers(), LLPanelFriends::onClickIM(), LLPanelFriends::onClickRemove(), LLPanelLandObjects::onClickReturnGroupObjects(), LLPanelLandObjects::onClickReturnOtherObjects(), LLPanelLandObjects::onClickReturnOwnerObjects(), LLPanelLandAccess::onCommitAny(), LLPanelLandAccess::onCommitPublicAccess(), 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(), LLPanelLandAccess::refresh_ui(), LLFloaterProperties::refreshFromItem(), LLPanelLandAccess::refreshNames(), LLPanelLandGeneral::refreshNames(), LLAppViewer::saveNameCache(), LLSelectMgr::selectGetCreator(), LLSelectMgr::selectGetLastOwner(), LLSelectMgr::selectGetOwner(), LLNameEditor::setNameID(), LLNameBox::setNameID(), LLFloaterBuyContents::show(), LLFloaterGroupInfo::showFromUUID(), LLFloaterBuyLandUI::soleInstance(), LLPanelFriends::updateFriendItem(), LLPanelGroupMembersSubTab::updateMembers(), LLFloaterBuyLandUI::updateNames(), LLFloaterSellLandUI::updateParcelInfo(), LLPanelAvatarSecondLife::updatePartnerName(), LLHoverView::updateText(), and LLFloaterPay::~LLFloaterPay().

const U32 PENDING_TIMEOUT_SECS = 5 * 60


Generated on Fri May 16 08:35:19 2008 for SecondLife by  doxygen 1.5.5