LLAssetType Class Reference

#include <llassettype.h>

List of all members.

Public Types

 AT_TEXTURE = 0
 AT_SOUND = 1
 AT_CALLINGCARD = 2
 AT_LANDMARK = 3
 AT_SCRIPT = 4
 AT_CLOTHING = 5
 AT_OBJECT = 6
 AT_NOTECARD = 7
 AT_CATEGORY = 8
 AT_ROOT_CATEGORY = 9
 AT_LSL_TEXT = 10
 AT_LSL_BYTECODE = 11
 AT_TEXTURE_TGA = 12
 AT_BODYPART = 13
 AT_TRASH = 14
 AT_SNAPSHOT_CATEGORY = 15
 AT_LOST_AND_FOUND = 16
 AT_SOUND_WAV = 17
 AT_IMAGE_TGA = 18
 AT_IMAGE_JPEG = 19
 AT_ANIMATION = 20
 AT_GESTURE = 21
 AT_SIMSTATE = 22
 AT_COUNT = 23
 AT_NONE = -1
enum  EType {
  AT_TEXTURE = 0, AT_SOUND = 1, AT_CALLINGCARD = 2, AT_LANDMARK = 3,
  AT_SCRIPT = 4, AT_CLOTHING = 5, AT_OBJECT = 6, AT_NOTECARD = 7,
  AT_CATEGORY = 8, AT_ROOT_CATEGORY = 9, AT_LSL_TEXT = 10, AT_LSL_BYTECODE = 11,
  AT_TEXTURE_TGA = 12, AT_BODYPART = 13, AT_TRASH = 14, AT_SNAPSHOT_CATEGORY = 15,
  AT_LOST_AND_FOUND = 16, AT_SOUND_WAV = 17, AT_IMAGE_TGA = 18, AT_IMAGE_JPEG = 19,
  AT_ANIMATION = 20, AT_GESTURE = 21, AT_SIMSTATE = 22, AT_COUNT = 23,
  AT_NONE = -1
}

Static Public Member Functions

static EType lookup (const char *name)
static const char * lookup (EType type)
static EType lookupHumanReadable (const char *name)
static const char * lookupHumanReadable (EType type)
static EDragAndDropType lookupDragAndDropType (EType)
static void generateDescriptionFor (LLAssetType::EType type, std::string &desc)
static EType getType (const std::string &sin)
static std::string getDesc (EType type)

Private Member Functions

 LLAssetType (void)
 ~LLAssetType (void)

Static Private Attributes

static const char * mAssetTypeNames []
static const char * mAssetTypeHumanNames []


Detailed Description

Definition at line 39 of file llassettype.h.


Member Enumeration Documentation

enum LLAssetType::EType

Enumerator:
AT_TEXTURE 
AT_SOUND 
AT_CALLINGCARD 
AT_LANDMARK 
AT_SCRIPT 
AT_CLOTHING 
AT_OBJECT 
AT_NOTECARD 
AT_CATEGORY 
AT_ROOT_CATEGORY 
AT_LSL_TEXT 
AT_LSL_BYTECODE 
AT_TEXTURE_TGA 
AT_BODYPART 
AT_TRASH 
AT_SNAPSHOT_CATEGORY 
AT_LOST_AND_FOUND 
AT_SOUND_WAV 
AT_IMAGE_TGA 
AT_IMAGE_JPEG 
AT_ANIMATION 
AT_GESTURE 
AT_SIMSTATE 
AT_COUNT 
AT_NONE 

Definition at line 42 of file llassettype.h.


Constructor & Destructor Documentation

LLAssetType::LLAssetType ( void   )  [inline, private]

Definition at line 167 of file llassettype.h.

LLAssetType::~LLAssetType ( void   )  [inline, private]

Definition at line 168 of file llassettype.h.


Member Function Documentation

void LLAssetType::generateDescriptionFor ( LLAssetType::EType  type,
std::string &  desc 
) [static]

Definition at line 245 of file llassettype.cpp.

References lookupHumanReadable(), and S32.

Referenced by LLInventoryPanel::createNewItem(), and LLPanelContents::onClickNewScript().

std::string LLAssetType::getDesc ( EType  type  )  [static]

Definition at line 90 of file llassettype.cpp.

References asset_types, AT_NONE, asset_info_t::desc, and S32.

Referenced by LLVFS::dumpStatistics(), and LLVFS::listFiles().

LLAssetType::EType LLAssetType::getType ( const std::string &  sin  )  [static]

Definition at line 75 of file llassettype.cpp.

References asset_types, AT_NONE, s, S32, LLStringBase< char >::toUpper(), and asset_info_t::type.

const char * LLAssetType::lookup ( LLAssetType::EType  type  )  [static]

---------------------------------------------------------------------------- class LLAssetType ----------------------------------------------------------------------------

Definition at line 169 of file llassettype.cpp.

References AT_COUNT, mAssetTypeNames, and S32.

LLAssetType::EType LLAssetType::lookup ( const char *  name  )  [static]

Definition at line 182 of file llassettype.cpp.

References AT_COUNT, AT_NONE, i, mAssetTypeNames, and S32.

Referenced by LLAssetStorage::_cleanupRequests(), LLInventoryItem::asLLSD(), LLHTTPAssetStorage::bumpTimedOutUploads(), LLHTTPAssetStorage::checkForTimeouts(), LLTransferTargetVFile::completionCallback(), LLInvFVBridge::createBridge(), LLAssetStorage::deletePendingRequest(), LLAssetStorage::downloadCompleteCallback(), LLInventoryCategory::exportFile(), LLInventoryItem::exportFile(), LLInventoryObject::exportFile(), LLViewerInventoryCategory::exportFileLocal(), LLViewerInventoryItem::exportFileLocal(), LLInventoryItem::exportFileXML(), LLInventoryCategory::exportLegacyStream(), LLInventoryItem::exportLegacyStream(), LLInventoryObject::exportLegacyStream(), LLInventoryItem::fromLLSD(), LLAssetStorage::getEstateAsset(), LLAssetStorage::getInvItemAsset(), LLAssetStorage::getPendingDetails(), LLAssetRequest::getTerseDetails(), LLInventoryCategory::importFile(), LLInventoryItem::importFile(), LLViewerInventoryCategory::importFileLocal(), LLInventoryCategory::importLegacyStream(), LLInventoryItem::importLegacyStream(), LLInventoryObject::importLegacyStream(), LLInventoryItem::importXML(), LLXfer_VFile::init(), LLXfer_VFile::initializeRequest(), LLAssetStorage::legacyGetDataCallback(), ll_create_category_from_sd(), ll_create_item_from_sd(), ll_create_sd_from_inventory_category(), ll_create_sd_from_inventory_item(), LLXferManager::processFileRequest(), LLFloaterCompileQueue::scriptArrived(), LLAssetInfo::setFromNameValue(), LLViewerAssetStorage::storeAssetData(), LLHTTPAssetStorage::storeAssetData(), upload_new_resource(), LLNewAgentInventoryResponder::uploadComplete(), and LLFloaterReporter::uploadImage().

EDragAndDropType LLAssetType::lookupDragAndDropType ( EType   )  [static]

Definition at line 222 of file llassettype.cpp.

References AT_ANIMATION, AT_BODYPART, AT_CALLINGCARD, AT_CATEGORY, AT_CLOTHING, AT_GESTURE, AT_LANDMARK, AT_LSL_TEXT, AT_NOTECARD, AT_OBJECT, AT_ROOT_CATEGORY, AT_SCRIPT, AT_SOUND, AT_TEXTURE, DAD_ANIMATION, DAD_BODYPART, DAD_CALLINGCARD, DAD_CATEGORY, DAD_CLOTHING, DAD_GESTURE, DAD_LANDMARK, DAD_NONE, DAD_NOTECARD, DAD_OBJECT, DAD_ROOT_CATEGORY, DAD_SCRIPT, DAD_SOUND, and DAD_TEXTURE.

Referenced by LLViewerTextEditor::handleHover(), LLPreview::handleHover(), LLTaskCategoryBridge::startDrag(), LLTaskInvFVBridge::startDrag(), and LLInvFVBridge::startDrag().

const char * LLAssetType::lookupHumanReadable ( EType  type  )  [static]

Definition at line 196 of file llassettype.cpp.

References AT_COUNT, mAssetTypeHumanNames, NULL, and S32.

LLAssetType::EType LLAssetType::lookupHumanReadable ( const char *  name  )  [static]

Definition at line 209 of file llassettype.cpp.

References AT_COUNT, AT_NONE, i, mAssetTypeHumanNames, and S32.

Referenced by generateDescriptionFor(), LLAssetRequest::getTerseDetails(), LLTransferSourceAsset::initTransfer(), inventory_offer_handler(), and LLWearableList::processGetAssetReply().


Member Data Documentation

const char * LLAssetType::mAssetTypeHumanNames [static, private]

Initial value:

{ 
        "texture",
        "sound",
        "calling card",
        "landmark",
        "legacy script",
        "clothing",
        "object",
        "note card",
        "folder",
        "root",
        "lsl2 script",
        "lsl bytecode",
        "tga texture",
        "body part",
        "trash",
        "snapshot",
        "lost and found",
        "sound",
        "targa image",
        "jpeg image",
        "animation",
        "gesture",
        "simstate",
}

Definition at line 172 of file llassettype.h.

Referenced by lookupHumanReadable().

const char * LLAssetType::mAssetTypeNames [static, private]

Initial value:

{ 
        "texture",
        "sound",
        "callcard",
        "landmark",
        "script",
        "clothing",
        "object",
        "notecard",
        "category",
        "root",
        "lsltext",
        "lslbyte",
        "txtr_tga",
        "bodypart",
        "trash",
        "snapshot",
        "lstndfnd",
        "snd_wav",
        "img_tga",
        "jpeg",
        "animatn",
        "gesture",
        "simstate",
}

Definition at line 171 of file llassettype.h.

Referenced by lookup().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:10 2010 for Second Life Viewer by  doxygen 1.4.7