// Checked: 2010-04-18 (RLVa-1.2.0e) | Modified: RLVa-1.2.0e
void RlvGiveToRLVAgentOffer::done()
{
	gInventory.removeObserver(this);

	// We shouldn't be messing with inventory items during LLInventoryModel::notifyObservers()
	doOnIdleOneTime(boost::bind(&RlvGiveToRLVAgentOffer::doneIdle, this));
}
	virtual void done()
	{
		gInventory.removeObserver(this);

//		// Link to all fetched items in COF.
//		LLPointer<LLInventoryCallback> link_waiter = new LLUpdateAppearanceOnDestroy;
//		for (uuid_vec_t::iterator it = mIDs.begin();
//			 it != mIDs.end();
//			 ++it)
//		{
//			LLUUID id = *it;
//			LLViewerInventoryItem *item = gInventory.getItem(*it);
//			if (!item)
//			{
//				llwarns << "fetch failed!" << llendl;
//				continue;
//			}
//
//			link_inventory_item(gAgent.getID(),
//								item->getLinkedUUID(),
//								LLAppearanceMgr::instance().getCOF(),
//								item->getName(),
//								item->getDescription(),
//								LLAssetType::AT_LINK,
//								link_waiter);
//		}
// [SL:KB] - Patch: Appearance-MixedViewers | Checked: 2010-08-14 (Catznip-3.0.0a) | Added: Catznip-2.1.1d
		doOnIdleOneTime(boost::bind(&LLFetchAndLinkObserver::doneIdle, this));
// [/SL:KB]
	}
// virtual
void LLInitialWearablesFetch::done()
{
	// Delay processing the actual results of this so it's not handled within
	// gInventory.notifyObservers.  The results will be handled in the next
	// idle tick instead.
	gInventory.removeObserver(this);
	doOnIdleOneTime(boost::bind(&LLInitialWearablesFetch::processContents,this));
}
void LLLibraryOutfitsFetch::done()
{
	llinfos << "start" << llendl;

	// Delay this until idle() routine, since it's a heavy operation and
	// we also can't have it run within notifyObservers.
	doOnIdleOneTime(boost::bind(&LLLibraryOutfitsFetch::doneIdle,this));
	gInventory.removeObserver(this); // Prevent doOnIdleOneTime from being added twice.
}
// virtual
void LLInitialWearablesFetch::done()
{
	// Delay processing the actual results of this so it's not handled within
	// gInventory.notifyObservers.  The results will be handled in the next
	// idle tick instead.
	gInventory.removeObserver(this);
//	doOnIdleOneTime(boost::bind(&LLInitialWearablesFetch::processContents,this));
// [RLVa:KB] - Checked: 2010-12-15 (RLVa-1.2.2c) | Added: RLVa-1.2.2c
	F32 nDelay = gSavedSettings.getF32("ForceInitialCOFDelay");
	if (0.0f == nDelay)
		doOnIdleOneTime(boost::bind(&LLInitialWearablesFetch::processContents,this));
	else
		rlvCallbackTimerOnce(nDelay, boost::bind(&LLInitialWearablesFetch::processContents,this));
// [/RLVa:KB]
	if (isAgentAvatarValid())
	{
		gAgentAvatarp->stopPhase("initial_wearables_fetch");
		gAgentAvatarp->outputRezTiming("Initial wearables fetch done");
	}
}
Exemple #6
0
 /*virtual*/ void done()
 {
     // We shouldn't be messing with inventory items during LLInventoryModel::notifyObservers()
     doOnIdleOneTime(boost::bind(&LLCOFFetcher::doneIdle, this));
     gInventory.removeObserver(this);
 }