llinventory.cpp File Reference

Implementation of the inventory system. More...

#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_SHADOW_ID_LABEL ("shadow_id")
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< LLInventoryItemll_create_item_from_sd (const LLSD &sd_item)
LLSD ll_create_sd_from_inventory_category (LLPointer< LLInventoryCategory > cat)
LLPointer< LLInventoryCategoryll_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")


Detailed Description

Implementation of the inventory system.

LicenseInfo
firstyear=2001&license=viewergpl

Copyright (c) 2001-2008, 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://secondlifegrid.net/programs/open_source/licensing/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://secondlifegrid.net/programs/open_source/licensing/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.


Function Documentation

static const std::string INV_ASSET_ID_LABEL ( "asset_id"   )  [static]

static const std::string INV_ASSET_TYPE_LABEL ( "type"   )  [static]

static const std::string INV_CREATION_DATE_LABEL ( "created_at"   )  [static]

static const std::string INV_DESC_LABEL ( "desc"   )  [static]

static const std::string INV_FLAGS_LABEL ( "flags"   )  [static]

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().

Here is the caller graph for this function:

static const std::string INV_INVENTORY_TYPE_LABEL ( "inv_type"   )  [static]

static const std::string INV_ITEM_ID_LABEL ( "item_id"   )  [static]

---------------------------------------------------------------------------- exported functions ----------------------------------------------------------------------------

Referenced by LLInventoryItem::asLLSD(), LLInventoryCategory::fromLLSD(), LLInventoryItem::fromLLSD(), ll_create_item_from_sd(), and ll_create_sd_from_inventory_item().

Here is the caller graph for this function:

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]

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().

Here is the caller graph for this function:

static const std::string INV_SALE_INFO_LABEL ( "sale_info"   )  [static]

static const std::string INV_SHADOW_ID_LABEL ( "shadow_id"   )  [static]

Referenced by LLInventoryItem::asLLSD(), and LLInventoryItem::fromLLSD().

Here is the caller graph for this function:

BOOL item_date_sort ( LLInventoryItem a,
LLInventoryItem b 
)

Definition at line 1309 of file llinventory.cpp.

References LLInventoryItem::getCreationDate().

Here is the call graph for this function:

BOOL item_dictionary_sort ( LLInventoryItem a,
LLInventoryItem b 
)

Definition at line 1303 of file llinventory.cpp.

References LLStringBase< char >::compareDict(), and LLInventoryObject::getName().

Here is the call graph for this function:

LLPointer<LLInventoryCategory> ll_create_category_from_sd ( const LLSD sd_cat  ) 

Definition at line 1674 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().

Here is the call graph for this function:

LLPointer<LLInventoryItem> ll_create_item_from_sd ( const LLSD sd_item  ) 

LLSD ll_create_sd_from_inventory_category ( LLPointer< LLInventoryCategory cat  ) 

LLSD ll_create_sd_from_inventory_item ( LLPointer< LLInventoryItem item  ) 

---------------------------------------------------------------------------- Local function definitions ----------------------------------------------------------------------------

Definition at line 1596 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, LLInventoryType::lookup(), LLAssetType::lookup(), and S32.

Here is the call graph for this function:


Variable Documentation

const LLUUID MAGIC_ID("3c115e51-04f4-523c-9fa6-98aff1034730")

Definition at line 68 of file llinventory.cpp.

Referenced by LLViewerObject::doUpdateInventory().


Generated on Fri May 16 08:35:05 2008 for SecondLife by  doxygen 1.5.5