#include "llviewerprecompiledheaders.h"
#include "llviewerinventory.h"
#include "message.h"
#include "indra_constants.h"
#include "llagent.h"
#include "llviewercontrol.h"
#include "llconsole.h"
#include "llinventorymodel.h"
#include "llnotify.h"
#include "llimview.h"
#include "viewer.h"
#include "llgesturemgr.h"
#include "llinventoryview.h"
#include "llviewerregion.h"
#include "llviewerobjectlist.h"
Include dependency graph for llviewerinventory.cpp:
Go to the source code of this file.
Classes | |
class | LLCopyInventoryFromNotecardResponder |
Functions | |
void | create_inventory_item (const LLUUID &agent_id, const LLUUID &session_id, const LLUUID &parent, const LLTransactionID &transaction_id, const std::string &name, const std::string &desc, LLAssetType::EType asset_type, LLInventoryType::EType inv_type, EWearableType wtype, U32 next_owner_perm, LLPointer< LLInventoryCallback > cb) |
void | copy_inventory_item (const LLUUID &agent_id, const LLUUID ¤t_owner, const LLUUID &item_id, const LLUUID &parent_id, const std::string &new_name, LLPointer< LLInventoryCallback > cb) |
Securely create a new inventory item by copying from another. | |
void | move_inventory_item (const LLUUID &agent_id, const LLUUID &session_id, const LLUUID &item_id, const LLUUID &parent_id, const std::string &new_name, LLPointer< LLInventoryCallback > cb) |
void | copy_inventory_from_notecard (const LLUUID &object_id, const LLUUID ¬ecard_inv_id, const LLInventoryItem *src, U32 callback_id) |
Variables | |
LLGestureManager | gGestureManager |
LLInventoryCallbackManager | gInventoryCallbacks |
Copyright (c) 2002-2007, 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://secondlife.com/developers/opensource/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://secondlife.com/developers/opensource/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 llviewerinventory.cpp.
void copy_inventory_from_notecard | ( | const LLUUID & | object_id, | |
const LLUUID & | notecard_inv_id, | |||
const LLInventoryItem * | src, | |||
U32 | callback_id | |||
) |
Definition at line 742 of file llviewerinventory.cpp.
References LLInventoryModel::findCategoryUUIDForType(), LLViewerObjectList::findObject(), gAgent, LLViewerRegion::getCapability(), LLAgent::getRegion(), LLInventoryObject::getType(), LLInventoryObject::getUUID(), gInventory, gObjectList, LLUUID::notNull(), NULL, and LLHTTPClient::post().
Referenced by LLViewerTextEditor::copyInventory(), LLFolderBridge::dragItemIntoFolder(), and LLPreview::onBtnCopyToInv().
void copy_inventory_item | ( | const LLUUID & | agent_id, | |
const LLUUID & | current_owner, | |||
const LLUUID & | item_id, | |||
const LLUUID & | parent_id, | |||
const std::string & | new_name, | |||
LLPointer< LLInventoryCallback > | cb | |||
) |
Securely create a new inventory item by copying from another.
Definition at line 681 of file llviewerinventory.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_CallbackID, _PREHASH_CopyInventoryItem, _PREHASH_InventoryData, _PREHASH_NewFolderID, _PREHASH_NewName, _PREHASH_OldAgentID, _PREHASH_OldItemID, _PREHASH_SessionID, LLMessageSystem::addStringFast(), LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getSessionID(), gInventoryCallbacks, gMessageSystem, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLInventoryCallbackManager::registerCB(), and LLAgent::sendReliableMessage().
Referenced by LLToolDragAndDrop::dad3dActivateGesture(), LLToolDragAndDrop::dad3dRezAttachmentFromInv(), LLToolDragAndDrop::dad3dWearItem(), LLOutfitObserver::done(), LLFolderBridge::dragItemIntoFolder(), LLAttachObject::handleEvent(), LLAgent::makeNewOutfit(), LLPreview::onBtnCopyToInv(), LLWearableBridge::openItem(), LLFolderBridge::pasteFromClipboard(), LLObjectBridge::performAction(), LLAgent::saveWearableAs(), and LLWearableBridge::wearOnAvatar().
void create_inventory_item | ( | const LLUUID & | agent_id, | |
const LLUUID & | session_id, | |||
const LLUUID & | parent, | |||
const LLTransactionID & | transaction_id, | |||
const std::string & | name, | |||
const std::string & | desc, | |||
LLAssetType::EType | asset_type, | |||
LLInventoryType::EType | inv_type, | |||
EWearableType | wtype, | |||
U32 | next_owner_perm, | |||
LLPointer< LLInventoryCallback > | cb | |||
) |
Definition at line 654 of file llviewerinventory.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_CallbackID, _PREHASH_CreateInventoryItem, _PREHASH_Description, _PREHASH_FolderID, _PREHASH_InventoryBlock, _PREHASH_InvType, _PREHASH_Name, _PREHASH_NextOwnerMask, _PREHASH_SessionID, _PREHASH_TransactionID, _PREHASH_Type, _PREHASH_WearableType, LLMessageSystem::addS8Fast(), LLMessageSystem::addStringFast(), LLMessageSystem::addU32Fast(), LLMessageSystem::addU8Fast(), LLMessageSystem::addUUIDFast(), gAgent, gInventoryCallbacks, gMessageSystem, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlock(), LLInventoryCallbackManager::registerCB(), and LLAgent::sendReliableMessage().
Referenced by LLAgent::addWearableToAgentInventory(), create_new_landmark(), LLInventoryPanel::createNewItem(), LLFolderBridge::createWearable(), LLWorldCreateLandmark::handleEvent(), LLFloaterLandmark::onBtnNew(), LLFloaterGesture::onClickNew(), LLPanelEditWearable::onSelectAutoWearOption(), and upload_done_callback().
void move_inventory_item | ( | const LLUUID & | agent_id, | |
const LLUUID & | session_id, | |||
const LLUUID & | item_id, | |||
const LLUUID & | parent_id, | |||
const std::string & | new_name, | |||
LLPointer< LLInventoryCallback > | cb | |||
) |
Definition at line 703 of file llviewerinventory.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_FolderID, _PREHASH_InventoryData, _PREHASH_ItemID, _PREHASH_MoveInventoryItem, _PREHASH_NewName, _PREHASH_SessionID, _PREHASH_Stamp, LLMessageSystem::addBOOLFast(), LLMessageSystem::addStringFast(), LLMessageSystem::addUUIDFast(), FALSE, gAgent, gMessageSystem, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), and LLAgent::sendReliableMessage().
Referenced by LLAgent::makeNewOutfit().
Definition at line 60 of file llgesturemgr.cpp.
Referenced by LLFloaterGesture::buildGestureList(), LLToolDragAndDrop::dad3dActivateGesture(), LLFolderBridge::dragCategoryIntoFolder(), LLFolderBridge::dragItemIntoFolder(), ActivateGestureCallback::fire(), LLGestureBridge::getLabelStyle(), LLGestureBridge::getLabelSuffix(), LLViewerWindow::handleKey(), LLPreviewGesture::handleSaveChangesDialog(), idle(), idle_startup(), LLVOAvatar::idleUpdate(), LLFloaterGesture::LLFloaterGesture(), LLFloaterGesture::onClickPlay(), LLPreviewGesture::onClickPreview(), LLPreviewGesture::onClose(), LLPreviewGesture::onCommitActive(), LLChatBar::onCommitGesture(), LLFloaterGesture::onCommitList(), LLChatBar::onInputEditorKeystroke(), LLGestureManager::onLoadComplete(), LLGestureBridge::performAction(), LLPreviewGesture::refresh(), LLChatBar::refreshGestures(), remove_inventory_category_from_avatar_step2(), LLFolderBridge::removeItem(), LLGestureBridge::removeItem(), LLGestureManager::replaceGesture(), LLPreviewGesture::saveIfNeeded(), LLChatBar::sendChat(), LLChatBar::setGestureCombo(), LLUpdateAgentInventoryResponder::uploadComplete(), wear_inventory_category_on_avatar_step2(), and LLFloaterGesture::~LLFloaterGesture().
Definition at line 652 of file llviewerinventory.cpp.
Referenced by copy_inventory_item(), create_inventory_item(), LLViewerTextEditor::openEmbeddedNotecard(), LLInventoryModel::processBulkUpdateInventory(), and LLInventoryModel::processUpdateCreateInventoryItem().