diff options
Diffstat (limited to 'indra/newview/llcompilequeue.h')
-rw-r--r-- | indra/newview/llcompilequeue.h | 124 |
1 files changed, 62 insertions, 62 deletions
diff --git a/indra/newview/llcompilequeue.h b/indra/newview/llcompilequeue.h index a9bac345b5..ba5e27d75a 100644 --- a/indra/newview/llcompilequeue.h +++ b/indra/newview/llcompilequeue.h @@ -1,25 +1,25 @@ -/** +/** * @file llcompilequeue.h * @brief LLCompileQueue class header file * * $LicenseInfo:firstyear=2002&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; * version 2.1 of the License only. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * + * * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA * $/LicenseInfo$ */ @@ -50,53 +50,53 @@ class LLFloaterScriptQueue : public LLFloater/*, public LLVOInventoryListener*/ { public: - LLFloaterScriptQueue(const LLSD& key); - virtual ~LLFloaterScriptQueue(); - - /*virtual*/ BOOL postBuild(); - - void setMono(bool mono) { mMono = mono; } - - // addObject() accepts an object id. - void addObject(const LLUUID& id, std::string name); - - // start() returns TRUE if the queue has started, otherwise FALSE. - BOOL start(); - + LLFloaterScriptQueue(const LLSD& key); + virtual ~LLFloaterScriptQueue(); + + /*virtual*/ BOOL postBuild(); + + void setMono(bool mono) { mMono = mono; } + + // addObject() accepts an object id. + void addObject(const LLUUID& id, std::string name); + + // start() returns TRUE if the queue has started, otherwise FALSE. + BOOL start(); + void addProcessingMessage(const std::string &message, const LLSD &args); void addStringMessage(const std::string &message); std::string getStartString() const { return mStartString; } protected: - static void onCloseBtn(void* user_data); + static void onCloseBtn(void* user_data); - // returns true if this is done - BOOL isDone() const; + // returns true if this is done + BOOL isDone() const; - virtual bool startQueue() = 0; + virtual bool startQueue() = 0; - void setStartString(const std::string& s) { mStartString = s; } + void setStartString(const std::string& s) { mStartString = s; } protected: - // UI - LLScrollListCtrl* mMessages; - LLButton* mCloseBtn; + // UI + LLScrollListCtrl* mMessages; + LLButton* mCloseBtn; - // Object Queue - struct ObjectData - { - LLUUID mObjectId; - std::string mObjectName; - }; - typedef std::vector<ObjectData> object_data_list_t; + // Object Queue + struct ObjectData + { + LLUUID mObjectId; + std::string mObjectName; + }; + typedef std::vector<ObjectData> object_data_list_t; - object_data_list_t mObjectList; - LLUUID mCurrentObjectID; - bool mDone; + object_data_list_t mObjectList; + LLUUID mCurrentObjectID; + bool mDone; - std::string mStartString; - bool mMono; + std::string mStartString; + bool mMono; typedef boost::function<bool(const LLPointer<LLViewerObject> &, LLInventoryObject*, LLEventPump &)> fnQueueAction_t; static void objectScriptProcessingQueueCoro(std::string action, LLHandle<LLFloaterScriptQueue> hfloater, object_data_list_t objectList, fnQueueAction_t func); @@ -111,25 +111,25 @@ protected: struct LLCompileQueueData { - LLUUID mQueueID; - LLUUID mItemId; - LLCompileQueueData(const LLUUID& q_id, const LLUUID& item_id) : - mQueueID(q_id), mItemId(item_id) {} + LLUUID mQueueID; + LLUUID mItemId; + LLCompileQueueData(const LLUUID& q_id, const LLUUID& item_id) : + mQueueID(q_id), mItemId(item_id) {} }; class LLFloaterCompileQueue : public LLFloaterScriptQueue { - friend class LLFloaterReg; + friend class LLFloaterReg; public: - - void experienceIdsReceived( const LLSD& content ); - BOOL hasExperience(const LLUUID& id)const; + + void experienceIdsReceived( const LLSD& content ); + BOOL hasExperience(const LLUUID& id)const; protected: - LLFloaterCompileQueue(const LLSD& key); - virtual ~LLFloaterCompileQueue(); - - virtual bool startQueue(); + LLFloaterCompileQueue(const LLSD& key); + virtual ~LLFloaterCompileQueue(); + + virtual bool startQueue(); static bool processScript(LLHandle<LLFloaterCompileQueue> hfloater, const LLPointer<LLViewerObject> &object, LLInventoryObject* inventory, LLEventPump &pump); @@ -140,7 +140,7 @@ protected: private: static void processExperienceIdResults(LLSD result, LLUUID parent); //uuid_list_t mAssetIds; // list of asset IDs processed. - uuid_list_t mExperienceIds; + uuid_list_t mExperienceIds; }; //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -151,11 +151,11 @@ private: class LLFloaterResetQueue : public LLFloaterScriptQueue { - friend class LLFloaterReg; + friend class LLFloaterReg; protected: - LLFloaterResetQueue(const LLSD& key); - virtual ~LLFloaterResetQueue(); - + LLFloaterResetQueue(const LLSD& key); + virtual ~LLFloaterResetQueue(); + static bool resetObjectScripts(LLHandle<LLFloaterScriptQueue> hfloater, const LLPointer<LLViewerObject> &object, LLInventoryObject* inventory, LLEventPump &pump); virtual bool startQueue(); @@ -169,10 +169,10 @@ protected: class LLFloaterRunQueue : public LLFloaterScriptQueue { - friend class LLFloaterReg; + friend class LLFloaterReg; protected: - LLFloaterRunQueue(const LLSD& key); - virtual ~LLFloaterRunQueue(); + LLFloaterRunQueue(const LLSD& key); + virtual ~LLFloaterRunQueue(); static bool runObjectScripts(LLHandle<LLFloaterScriptQueue> hfloater, const LLPointer<LLViewerObject> &object, LLInventoryObject* inventory, LLEventPump &pump); @@ -187,11 +187,11 @@ protected: class LLFloaterNotRunQueue : public LLFloaterScriptQueue { - friend class LLFloaterReg; + friend class LLFloaterReg; protected: - LLFloaterNotRunQueue(const LLSD& key); - virtual ~LLFloaterNotRunQueue(); - + LLFloaterNotRunQueue(const LLSD& key); + virtual ~LLFloaterNotRunQueue(); + static bool stopObjectScripts(LLHandle<LLFloaterScriptQueue> hfloater, const LLPointer<LLViewerObject> &object, LLInventoryObject* inventory, LLEventPump &pump); virtual bool startQueue(); |