LLCacheName Class Reference

#include <llcachename.h>

Collaboration diagram for LLCacheName:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLCacheName (LLMessageSystem *msg)
 LLCacheName (LLMessageSystem *msg, const LLHost &upstream_host)
 ~LLCacheName ()
void setUpstream (const LLHost &upstream_host)
void addObserver (LLCacheNameCallback callback)
void removeObserver (LLCacheNameCallback callback)
void cancelCallback (const LLUUID &id, LLCacheNameCallback callback, void *user_data=NULL)
void importFile (FILE *fp)
void exportFile (FILE *fp)
BOOL getName (const LLUUID &id, char *first, char *last)
BOOL getGroupName (const LLUUID &id, char *group)
void get (const LLUUID &id, BOOL is_group, LLCacheNameCallback callback, void *user_data=NULL)
void getName (const LLUUID &id, LLCacheNameCallback callback, void *user_data=NULL)
void processPending ()
void deleteEntriesOlderThan (S32 secs)
void dump ()
void dumpStats ()

Static Public Member Functions

static LLString getDefaultName ()

Private Attributes

Implimpl

Classes

class  Impl

Detailed Description

Definition at line 49 of file llcachename.h.


Constructor & Destructor Documentation

LLCacheName::LLCacheName ( LLMessageSystem msg  ) 

-------------------------------------------------------------------------- class LLCacheName ---------------------------------------------------------------------------

Definition at line 238 of file llcachename.cpp.

LLCacheName::LLCacheName ( LLMessageSystem msg,
const LLHost upstream_host 
)

Definition at line 242 of file llcachename.cpp.

References setUpstream().

LLCacheName::~LLCacheName (  ) 

Definition at line 248 of file llcachename.cpp.

References impl.


Member Function Documentation

void LLCacheName::addObserver ( LLCacheNameCallback  callback  ) 

Definition at line 278 of file llcachename.cpp.

References impl, and LLCacheName::Impl::mObservers.

Referenced by idle_startup(), and LLFloaterBuyLandUI::soleInstance().

void LLCacheName::cancelCallback ( const LLUUID id,
LLCacheNameCallback  callback,
void user_data = NULL 
)

Definition at line 299 of file llcachename.cpp.

References end, impl, and LLCacheName::Impl::mReplyQueue.

Referenced by LLAvatarOwnedEmitter::~LLAvatarOwnedEmitter(), and LLFloaterPay::~LLFloaterPay().

void LLCacheName::deleteEntriesOlderThan ( S32  secs  ) 

Definition at line 572 of file llcachename.cpp.

References impl, LLCacheName::Impl::mCache, LLCacheNameEntry::mCreateTime, LLCacheName::Impl::mPendingQueue, NULL, and PENDING_TIMEOUT_SECS.

void LLCacheName::dump (  ) 

Definition at line 602 of file llcachename.cpp.

References end, impl, llendl, llinfos, and LLCacheName::Impl::mCache.

void LLCacheName::dumpStats (  ) 

Definition at line 628 of file llcachename.cpp.

References impl, llendl, llinfos, LLCacheName::Impl::mAskGroupQueue, LLCacheName::Impl::mAskNameQueue, LLCacheName::Impl::mCache, LLCacheName::Impl::mObservers, LLCacheName::Impl::mPendingQueue, and LLCacheName::Impl::mReplyQueue.

void LLCacheName::exportFile ( FILE *  fp  ) 

Definition at line 396 of file llcachename.cpp.

References CN_FILE_VERSION, end, i, impl, LLCacheName::Impl::mCache, mData, S32, UUID_BYTES, and UUID_STR_SIZE.

Referenced by save_name_cache().

void LLCacheName::get ( const LLUUID id,
BOOL  is_group,
LLCacheNameCallback  callback,
void user_data = NULL 
)

Definition at line 515 of file llcachename.cpp.

References CN_NOBODY, get_ptr_in_map(), impl, LLCacheName::Impl::isRequestPending(), LLCacheName::Impl::mAskGroupQueue, LLCacheName::Impl::mAskNameQueue, LLCacheName::Impl::mCache, LLCacheNameEntry::mFirstName, LLCacheNameEntry::mGroupName, LLCacheNameEntry::mIsGroup, LLCacheNameEntry::mLastName, and LLCacheName::Impl::mReplyQueue.

Referenced by LLFloaterPay::finishPayUI(), LLFloaterChat::getAvatarName(), getName(), inventory_offer_callback(), LLDispatchEstateUpdateInfo::operator()(), process_load_url(), process_mean_collision_alert_message(), LLFloaterGroupInfo::showFromUUID(), and LLAvatarOwnedEmitter::update().

LLString LLCacheName::getDefaultName (  )  [static]

Definition at line 641 of file llcachename.cpp.

References CN_WAITING.

Referenced by LLPanelActiveSpeakers::refreshSpeakers().

BOOL LLCacheName::getGroupName ( const LLUUID id,
char *  group 
)

Definition at line 473 of file llcachename.cpp.

References CN_NONE, CN_WAITING, FALSE, get_ptr_in_map(), impl, LLCacheName::Impl::isRequestPending(), lldebugs, llendl, LLCacheName::Impl::mAskGroupQueue, LLCacheName::Impl::mCache, LLCacheNameEntry::mGroupName, NULL, and TRUE.

Referenced by LLNameListCtrl::addElement(), LLNameListCtrl::addGroupNameItem(), LLPanelLandObjects::callbackReturnGroupObjects(), LLViewerParcelMgr::deedLandToGroup(), inventory_offer_callback(), inventory_offer_handler(), LLPanelLandObjects::onClickReturnGroupObjects(), LLPanelLandObjects::onClickReturnOtherObjects(), LLStatusBar::refresh(), LLPanelLandAccess::refresh(), LLFloaterProperties::refreshFromItem(), LLPanelLandAccess::refreshNames(), LLPanelLandGeneral::refreshNames(), LLNameEditor::setNameID(), LLNameBox::setNameID(), LLFloaterBuyContents::show(), LLFloaterBuyLandUI::updateNames(), and LLHoverView::updateText().

void LLCacheName::getName ( const LLUUID id,
LLCacheNameCallback  callback,
void user_data = NULL 
) [inline]

Definition at line 90 of file llcachename.h.

References FALSE, and get().

BOOL LLCacheName::getName ( const LLUUID id,
char *  first,
char *  last 
)

Definition at line 433 of file llcachename.cpp.

References CN_HIPPOS, CN_NOBODY, CN_WAITING, FALSE, get_ptr_in_map(), HIPPO_PROBABILITY, impl, LLCacheName::Impl::isRequestPending(), ll_frand(), LLCacheName::Impl::mAskNameQueue, LLCacheName::Impl::mCache, LLCacheNameEntry::mFirstName, LLCacheNameEntry::mLastName, and TRUE.

Referenced by LLFloaterNewIM::addAgent(), LLAvatarTracker::addBuddyList(), LLNameListCtrl::addElement(), LLNameListCtrl::addNameItem(), LLPanelLandObjects::callbackReturnOwnerObjects(), LLViewerParcelMgr::deedLandToGroup(), LLPanelEvent::draw(), LLFloaterTrustNetRate::draw(), LLFloaterChat::getAvatarName(), LLTrustNet::getScoreData(), inventory_offer_callback(), inventory_offer_handler(), LLIMMgr::inviteToSession(), LLSpeaker::lookupName(), LLIMMgr::noteOfflineUsers(), LLPanelFriends::onClickIM(), LLPanelFriends::onClickModifyStatus(), LLPanelFriends::onClickRemove(), LLPanelLandObjects::onClickReturnOtherObjects(), LLPanelLandObjects::onClickReturnOwnerObjects(), LLCollectAllBuddies::operator()(), LLCollectOnlineBuddies::operator()(), LLCollectMappableBuddies::operator()(), process_covenant_reply(), LLAvatarTracker::processChange(), LLAvatarTracker::processNotify(), LLSelectMgr::processObjectPropertiesFamily(), LLStatusBar::refresh(), LLFloaterInspect::refresh(), LLFloaterAvatarTextures::refresh(), LLFloaterProperties::refreshFromItem(), LLPanelLandGeneral::refreshNames(), LLSelectMgr::selectGetCreator(), LLSelectMgr::selectGetLastOwner(), LLSelectMgr::selectGetOwner(), LLNameEditor::setNameID(), LLNameBox::setNameID(), LLPanelGroupMembersSubTab::updateMembers(), LLFloaterBuyLandUI::updateNames(), LLFloaterSellLandUI::updateParcelInfo(), LLPanelAvatarSecondLife::updatePartnerName(), and LLHoverView::updateText().

void LLCacheName::importFile ( FILE *  fp  ) 

Definition at line 318 of file llcachename.cpp.

References BUFFER_SIZE, CN_FILE_VERSION, LLStringBase< char >::copy(), count, DB_FIRST_NAME_BUF_SIZE, DB_LAST_NAME_BUF_SIZE, i, impl, llendl, llinfos, llwarns, MAX_STRING, LLCacheName::Impl::mCache, LLCacheNameEntry::mCreateTime, mData, LLCacheNameEntry::mFirstName, LLCacheNameEntry::mIsGroup, LLCacheNameEntry::mLastName, NULL, S32, and UUID_BYTES.

Referenced by load_name_cache().

void LLCacheName::processPending (  ) 

Definition at line 553 of file llcachename.cpp.

References LLFrameTimer::checkExpirationAndReset(), impl, LLHost::isOk(), lldebugs, llendl, LLCacheName::Impl::mProcessTimer, LLCacheName::Impl::mUpstreamHost, LLCacheName::Impl::processPendingAsks(), and LLCacheName::Impl::processPendingReplies().

Referenced by idle_network().

void LLCacheName::removeObserver ( LLCacheNameCallback  callback  ) 

Definition at line 283 of file llcachename.cpp.

References end, impl, and LLCacheName::Impl::mObservers.

void LLCacheName::setUpstream ( const LLHost upstream_host  ) 

Definition at line 273 of file llcachename.cpp.

References impl, and LLCacheName::Impl::mUpstreamHost.

Referenced by idle_startup(), LLCacheName(), and process_agent_movement_complete().


Member Data Documentation

Impl& LLCacheName::impl [private]

Definition at line 107 of file llcachename.h.

Referenced by addObserver(), cancelCallback(), deleteEntriesOlderThan(), dump(), dumpStats(), exportFile(), get(), getGroupName(), getName(), importFile(), processPending(), removeObserver(), setUpstream(), and ~LLCacheName().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:12 2010 for Second Life Viewer by  doxygen 1.4.7