std::string LLPathfindingObject::getOwnerName() const { std::string ownerName; if (hasOwner()) { ownerName = mOwnerName.getCompleteName(); } return ownerName; }
void LLPathfindingObject::fetchOwnerName() { mHasOwnerName = false; if (hasOwner()) { mHasOwnerName = LLAvatarNameCache::get(mOwnerUUID, &mOwnerName); if (!mHasOwnerName) { mAvatarNameCacheConnection = LLAvatarNameCache::get(mOwnerUUID, boost::bind(&LLPathfindingObject::handleAvatarNameFetch, this, _1, _2)); } } }
void TableItem::handleOwnerContextMenu() { if ( (setOwnerAction == NULL) || (removeOwnerAction == NULL) ) return; setOwnerAction->setVisible(!youAreTheOwner); removeOwnerAction->setVisible(youAreTheOwner); removeOwnerAction->setEnabled(youAreTheOwner); if (youAreTheOwner) setOwnerAction->setEnabled(false); else setOwnerAction->setEnabled(!hasOwner()); displayOwnerToolTip(); }
std::string AbstractInputSlot::qualifiedName() const { std::stringstream ss; if (hasOwner()) { ss << m_owner->asPrintable() << "::"; } ss << asPrintable(); return ss.str(); }
LLPathfindingObject::name_connection_t LLPathfindingObject::registerOwnerNameListener(name_callback_t pOwnerNameCallback) { llassert(hasOwner()); name_connection_t connection; if (hasOwnerName()) { pOwnerNameCallback(this); } else { connection = mOwnerNameSignal.connect(pOwnerNameCallback); } return connection; }