本文整理汇总了C++中LLPanelFriends::updateFriendItem方法的典型用法代码示例。如果您正苦于以下问题:C++ LLPanelFriends::updateFriendItem方法的具体用法?C++ LLPanelFriends::updateFriendItem怎么用?C++ LLPanelFriends::updateFriendItem使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLPanelFriends
的用法示例。
在下文中一共展示了LLPanelFriends::updateFriendItem方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: modifyRightsConfirmation
// static
void LLPanelFriends::modifyRightsConfirmation(S32 option, void* user_data)
{
std::pair<LLPanelFriends*, rights_map_t*>* data = (std::pair<LLPanelFriends*, rights_map_t*>*)user_data;
LLPanelFriends* panelp = data->first;
if(panelp)
{
if(0 == option)
{
panelp->sendRightsGrant(*(data->second));
}
else
{
// need to resync view with model, since user cancelled operation
rights_map_t* rights = data->second;
rights_map_t::iterator rights_it;
for (rights_it = rights->begin(); rights_it != rights->end(); ++rights_it)
{
const LLRelationship* info = LLAvatarTracker::instance().getBuddyInfo(rights_it->first);
panelp->updateFriendItem(rights_it->first, info);
// Might have changed the column the user is sorted on.
panelp->mFriendsList->sortItems();
}
}
panelp->refreshUI();
}
delete data->second;
delete data;
}