#include "linden_common.h"
#include "llinventory.h"
#include "lldbstrings.h"
#include "llxorcipher.h"
#include "llsd.h"
#include "message.h"
#include <boost/tokenizer.hpp>
#include "llsdutil.h"
Include dependency graph for llinventory.cpp:
Go to the source code of this file.
Functions | |
static const std::string | INV_ITEM_ID_LABEL ("item_id") |
static const std::string | INV_FOLDER_ID_LABEL ("folder_id") |
static const std::string | INV_PARENT_ID_LABEL ("parent_id") |
static const std::string | INV_ASSET_TYPE_LABEL ("type") |
static const std::string | INV_PREFERRED_TYPE_LABEL ("preferred_type") |
static const std::string | INV_INVENTORY_TYPE_LABEL ("inv_type") |
static const std::string | INV_NAME_LABEL ("name") |
static const std::string | INV_DESC_LABEL ("desc") |
static const std::string | INV_PERMISSIONS_LABEL ("permissions") |
static const std::string | INV_ASSET_ID_LABEL ("asset_id") |
static const std::string | INV_SALE_INFO_LABEL ("sale_info") |
static const std::string | INV_FLAGS_LABEL ("flags") |
static const std::string | INV_CREATION_DATE_LABEL ("created_at") |
BOOL | item_dictionary_sort (LLInventoryItem *a, LLInventoryItem *b) |
BOOL | item_date_sort (LLInventoryItem *a, LLInventoryItem *b) |
LLSD | ll_create_sd_from_inventory_item (LLPointer< LLInventoryItem > item) |
LLPointer< LLInventoryItem > | ll_create_item_from_sd (const LLSD &sd_item) |
LLSD | ll_create_sd_from_inventory_category (LLPointer< LLInventoryCategory > cat) |
LLPointer< LLInventoryCategory > | ll_create_category_from_sd (const LLSD &sd_cat) |
Variables | |
const U8 | TASK_INVENTORY_ITEM_KEY = 0 |
const U8 | TASK_INVENTORY_ASSET_KEY = 1 |
const LLUUID | MAGIC_ID ("3c115e51-04f4-523c-9fa6-98aff1034730") |
Copyright (c) 2001-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 llinventory.cpp.
static const std::string INV_ASSET_ID_LABEL | ( | "asset_id" | ) | [static] |
Referenced by LLInventoryItem::fromLLSD(), ll_create_item_from_sd(), and ll_create_sd_from_inventory_item().
static const std::string INV_ASSET_TYPE_LABEL | ( | "type" | ) | [static] |
static const std::string INV_CREATION_DATE_LABEL | ( | "created_at" | ) | [static] |
Referenced by LLInventoryItem::fromLLSD(), ll_create_item_from_sd(), and ll_create_sd_from_inventory_item().
static const std::string INV_DESC_LABEL | ( | "desc" | ) | [static] |
Referenced by LLInventoryItem::fromLLSD(), ll_create_item_from_sd(), and ll_create_sd_from_inventory_item().
static const std::string INV_FLAGS_LABEL | ( | "flags" | ) | [static] |
Referenced by LLInventoryItem::fromLLSD(), ll_create_item_from_sd(), and ll_create_sd_from_inventory_item().
static const std::string INV_FOLDER_ID_LABEL | ( | "folder_id" | ) | [static] |
Referenced by ll_create_category_from_sd(), and ll_create_sd_from_inventory_category().
static const std::string INV_INVENTORY_TYPE_LABEL | ( | "inv_type" | ) | [static] |
Referenced by LLInventoryItem::fromLLSD(), ll_create_item_from_sd(), and ll_create_sd_from_inventory_item().
static const std::string INV_ITEM_ID_LABEL | ( | "item_id" | ) | [static] |
---------------------------------------------------------------------------- exported functions ----------------------------------------------------------------------------
Referenced by LLInventoryItem::fromLLSD(), ll_create_item_from_sd(), and ll_create_sd_from_inventory_item().
static const std::string INV_NAME_LABEL | ( | "name" | ) | [static] |
static const std::string INV_PARENT_ID_LABEL | ( | "parent_id" | ) | [static] |
static const std::string INV_PERMISSIONS_LABEL | ( | "permissions" | ) | [static] |
Referenced by LLInventoryItem::fromLLSD(), ll_create_item_from_sd(), and ll_create_sd_from_inventory_item().
static const std::string INV_PREFERRED_TYPE_LABEL | ( | "preferred_type" | ) | [static] |
Referenced by ll_create_category_from_sd(), and ll_create_sd_from_inventory_category().
static const std::string INV_SALE_INFO_LABEL | ( | "sale_info" | ) | [static] |
Referenced by LLInventoryItem::fromLLSD(), ll_create_item_from_sd(), and ll_create_sd_from_inventory_item().
BOOL item_date_sort | ( | LLInventoryItem * | a, | |
LLInventoryItem * | b | |||
) |
BOOL item_dictionary_sort | ( | LLInventoryItem * | a, | |
LLInventoryItem * | b | |||
) |
Definition at line 1301 of file llinventory.cpp.
References a, b, and LLStringBase< char >::compareDict().
LLPointer<LLInventoryCategory> ll_create_category_from_sd | ( | const LLSD & | sd_cat | ) |
Definition at line 1629 of file llinventory.cpp.
References INV_ASSET_TYPE_LABEL(), INV_FOLDER_ID_LABEL(), INV_NAME_LABEL(), INV_PARENT_ID_LABEL(), INV_PREFERRED_TYPE_LABEL(), and LLAssetType::lookup().
LLPointer<LLInventoryItem> ll_create_item_from_sd | ( | const LLSD & | sd_item | ) |
Definition at line 1577 of file llinventory.cpp.
References LLXORCipher::decrypt(), LLSD::has(), INV_ASSET_ID_LABEL(), INV_ASSET_TYPE_LABEL(), INV_CREATION_DATE_LABEL(), INV_DESC_LABEL(), INV_FLAGS_LABEL(), INV_INVENTORY_TYPE_LABEL(), INV_ITEM_ID_LABEL(), INV_NAME_LABEL(), INV_PARENT_ID_LABEL(), INV_PERMISSIONS_LABEL(), INV_SALE_INFO_LABEL(), ll_permissions_from_sd(), ll_sale_info_from_sd(), LLAssetType::lookup(), LLInventoryType::lookup(), MAGIC_ID, LLUUID::mData, and UUID_BYTES.
LLSD ll_create_sd_from_inventory_category | ( | LLPointer< LLInventoryCategory > | cat | ) |
Definition at line 1607 of file llinventory.cpp.
References LLAssetType::AT_NONE, INV_ASSET_TYPE_LABEL(), INV_FOLDER_ID_LABEL(), INV_NAME_LABEL(), INV_PARENT_ID_LABEL(), INV_PREFERRED_TYPE_LABEL(), LLPointer< Type >::isNull(), llendl, llwarns, and LLAssetType::lookup().
LLSD ll_create_sd_from_inventory_item | ( | LLPointer< LLInventoryItem > | item | ) |
---------------------------------------------------------------------------- Local function definitions ----------------------------------------------------------------------------
Definition at line 1551 of file llinventory.cpp.
References LLAssetType::AT_NONE, INV_ASSET_ID_LABEL(), INV_ASSET_TYPE_LABEL(), INV_CREATION_DATE_LABEL(), INV_DESC_LABEL(), INV_FLAGS_LABEL(), INV_INVENTORY_TYPE_LABEL(), INV_ITEM_ID_LABEL(), INV_NAME_LABEL(), INV_PARENT_ID_LABEL(), INV_PERMISSIONS_LABEL(), INV_SALE_INFO_LABEL(), LLPointer< Type >::isNull(), ll_create_sd_from_permissions(), ll_create_sd_from_sale_info(), llendl, llwarns, LLAssetType::lookup(), LLInventoryType::lookup(), and S32.
Referenced by LLInventoryItem::asLLSD(), LLInventoryItem::exportFile(), LLInventoryItem::exportFileXML(), LLInventoryItem::exportLegacyStream(), LLInventoryItem::fromLLSD(), LLInventoryItem::importFile(), LLInventoryItem::importLegacyStream(), LLInventoryItem::importXML(), and ll_create_item_from_sd().
const U8 TASK_INVENTORY_ASSET_KEY = 1 |
Definition at line 67 of file llinventory.cpp.
Referenced by LLViewerObject::doUpdateInventory(), and LLToolDragAndDrop::handleDropTextureProtections().
const U8 TASK_INVENTORY_ITEM_KEY = 0 |
---------------------------------------------------------------------------- Local function declarations, constants, enums, and typedefs ----------------------------------------------------------------------------
Definition at line 66 of file llinventory.cpp.
Referenced by LLViewerObject::doUpdateInventory(), LLToolDragAndDrop::dropInventory(), LLPreview::onCommit(), LLFloaterProperties::onCommitDescription(), LLFloaterProperties::onCommitName(), LLFloaterProperties::onCommitPermissions(), LLPreviewNotecard::onSaveComplete(), LLPreviewGesture::onSaveComplete(), LLTaskInvFVBridge::renameItem(), LLViewerObject::saveScript(), LLFloaterProperties::updateSaleInfo(), and LLViewerObject::updateViewerInventoryAsset().