LLFloaterCompileQueue Class Reference

#include <llcompilequeue.h>

Inheritance diagram for LLFloaterCompileQueue:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterCompileQueue:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

static LLFloaterCompileQueuecreate ()

Protected Member Functions

 LLFloaterCompileQueue (const std::string &name, const LLRect &rect)
virtual ~LLFloaterCompileQueue ()
virtual void handleInventory (LLViewerObject *viewer_obj, InventoryObjectList *inv)
void compile (const char *filename, const LLUUID &asset_id)
void removeItemByAssetID (const LLUUID &asset_id)
void saveItemByAssetID (const LLUUID &asset_id)
void updateAssetID (const LLUUID &old_asset_id, const LLUUID &new_asset_id)

Static Protected Member Functions

static void scriptArrived (LLVFS *vfs, const LLUUID &asset_id, LLAssetType::EType type, void *user_data, S32 status, LLExtStat ext_status)
static void onSaveTextComplete (const LLUUID &asset_id, void *user_data, S32 status, LLExtStat ext_status)
static void onSaveBytecodeComplete (const LLUUID &asset_id, void *user_data, S32 status, LLExtStat ext_status)

Protected Attributes

LLViewerInventoryItem::item_array_t mCurrentScripts

Detailed Description

Definition at line 121 of file llcompilequeue.h.


Constructor & Destructor Documentation

LLFloaterCompileQueue::LLFloaterCompileQueue ( const std::string &  name,
const LLRect rect 
) [protected]

Definition at line 296 of file llcompilequeue.cpp.

Referenced by create().

LLFloaterCompileQueue::~LLFloaterCompileQueue (  )  [protected, virtual]

Definition at line 300 of file llcompilequeue.cpp.


Member Function Documentation

void LLFloaterCompileQueue::compile ( const char *  filename,
const LLUUID asset_id 
) [protected]

Definition at line 490 of file llcompilequeue.cpp.

References LLAssetType::AT_LSL_BYTECODE, LLAssetType::AT_LSL_TEXT, FALSE, gAgent, gAssetStorage, gDirUtilp, LLUUID::generate(), LLDir::getExpandedFilename(), LLAgent::getSecureSessionID(), LLAgent::isGodlike(), LL_MAX_PATH, LL_PATH_CACHE, llendl, llinfos, llwarns, lscript_compile(), LLTransactionID::makeAssetID(), LLFloaterScriptQueue::mID, NULL, onSaveBytecodeComplete(), onSaveTextComplete(), removeItemByAssetID(), LLAssetStorage::storeAssetData(), LLUUID::toString(), and UUID_STR_LENGTH.

Referenced by scriptArrived().

LLFloaterCompileQueue * LLFloaterCompileQueue::create (  )  [static]

---------------------------------------------------------------------------- Class LLFloaterCompileQueue ----------------------------------------------------------------------------

Definition at line 284 of file llcompilequeue.cpp.

References LLFloaterView::getNewFloaterPosition(), LLControlGroup::getRect(), gFloaterView, gSavedSettings, left, LLFloaterCompileQueue(), LLRectBase< Type >::mLeft, LLRectBase< Type >::mTop, LLFloater::open(), S32, top, and LLRectBase< Type >::translate().

Referenced by LLToolsSelectedScriptAction::handleEvent().

void LLFloaterCompileQueue::handleInventory ( LLViewerObject viewer_obj,
InventoryObjectList inv 
) [protected, virtual]

Implements LLFloaterScriptQueue.

Definition at line 304 of file llcompilequeue.cpp.

References LLAssetType::AT_LSL_TEXT, end, gAgent, gAssetStorage, LLViewerRegion::getHost(), LLViewerObject::getID(), LLFloaterScriptQueue::getID(), LLAgent::getID(), LLAssetStorage::getInvItemAsset(), LLViewerObject::getRegion(), LLAgent::getSessionID(), mCurrentScripts, LLFloaterScriptQueue::nextObject(), LLDynamicArray< Type, BlockSize >::put(), and scriptArrived().

void LLFloaterCompileQueue::onSaveBytecodeComplete ( const LLUUID asset_id,
void user_data,
S32  status,
LLExtStat  ext_status 
) [static, protected]

Definition at line 466 of file llcompilequeue.cpp.

References LLViewerWindow::alertXml(), LLFloaterScriptQueue::findInstance(), LLAssetStorage::getErrorString(), gViewerWindow, llendl, llinfos, llwarns, LLCompileQueueData::mOldAssetID, LLCompileQueueData::mQueueID, NULL, removeItemByAssetID(), saveItemByAssetID(), and updateAssetID().

Referenced by compile().

void LLFloaterCompileQueue::onSaveTextComplete ( const LLUUID asset_id,
void user_data,
S32  status,
LLExtStat  ext_status 
) [static, protected]

Definition at line 453 of file llcompilequeue.cpp.

References LLViewerWindow::alertXml(), LLAssetStorage::getErrorString(), gViewerWindow, llendl, llinfos, and llwarns.

Referenced by compile().

void LLFloaterCompileQueue::removeItemByAssetID ( const LLUUID asset_id  )  [protected]

Definition at line 525 of file llcompilequeue.cpp.

References LLDynamicArray< Type, BlockSize >::count(), LLDynamicArray< Type, BlockSize >::get(), i, llendl, llinfos, mCurrentScripts, LLFloaterScriptQueue::nextObject(), LLDynamicArray< Type, BlockSize >::remove(), and S32.

Referenced by compile(), onSaveBytecodeComplete(), and scriptArrived().

void LLFloaterCompileQueue::saveItemByAssetID ( const LLUUID asset_id  )  [protected]

Definition at line 545 of file llcompilequeue.cpp.

References LLDynamicArray< Type, BlockSize >::count(), count, LLViewerObjectList::findObject(), LLDynamicArray< Type, BlockSize >::get(), gObjectList, i, llendl, llinfos, llwarns, LLFloaterScriptQueue::mCurrentObjectID, mCurrentScripts, S32, LLViewerObject::saveScript(), and TRUE.

Referenced by onSaveBytecodeComplete().

void LLFloaterCompileQueue::scriptArrived ( LLVFS vfs,
const LLUUID asset_id,
LLAssetType::EType  type,
void user_data,
S32  status,
LLExtStat  ext_status 
) [static, protected]

Definition at line 368 of file llcompilequeue.cpp.

References LLFloaterChat::addChat(), compile(), LLFloaterScriptQueue::findInstance(), LLFile::fopen(), gDirUtilp, LLDir::getExpandedFilename(), LLVFile::getLastBytesRead(), LLUICtrlFactory::getScrollListByName(), gViewerStats, LLViewerStats::incStat(), list, LL_ERR_ASSET_REQUEST_NOT_IN_DATABASE, LL_ERR_CANNOT_OPEN_FILE, LL_ERR_INSUFFICIENT_PERMISSIONS, LL_MAX_PATH, LL_PATH_CACHE, llendl, llinfos, llwarns, LLAssetType::lookup(), MAX_STRING, LLScriptQueueData::mQueueID, LLScriptQueueData::mScriptName, LLVFile::read(), LLFile::remove(), removeItemByAssetID(), S32, LLViewerStats::ST_DOWNLOAD_FAILED, LLUUID::toString(), and UUID_STR_LENGTH.

Referenced by handleInventory().

void LLFloaterCompileQueue::updateAssetID ( const LLUUID old_asset_id,
const LLUUID new_asset_id 
) [protected]

Definition at line 569 of file llcompilequeue.cpp.

References LLDynamicArray< Type, BlockSize >::count(), count, LLDynamicArray< Type, BlockSize >::get(), i, mCurrentScripts, and S32.

Referenced by onSaveBytecodeComplete().


Member Data Documentation

LLViewerInventoryItem::item_array_t LLFloaterCompileQueue::mCurrentScripts [protected]

Definition at line 159 of file llcompilequeue.h.

Referenced by handleInventory(), removeItemByAssetID(), saveItemByAssetID(), and updateAssetID().


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