#include <lldelayedgestureerror.h>
Static Public Member Functions | |
static void | gestureMissing (const LLUUID &id) |
Generates a missing gesture error. | |
static void | gestureFailedToLoad (const LLUUID &id) |
Generates a gesture failed to load error. | |
Private Types | |
typedef std::list< LLErrorEntry > | ErrorQueue |
Static Private Member Functions | |
static bool | doDialog (const LLErrorEntry &ent, bool uuid_ok=false) |
static void | enqueue (const LLErrorEntry &ent) |
static void | onIdle (void *userdata) |
Static Private Attributes | |
static ErrorQueue | sQueue |
Classes | |
struct | LLErrorEntry |
Definition at line 42 of file lldelayedgestureerror.h.
typedef std::list<LLErrorEntry> LLDelayedGestureError::ErrorQueue [private] |
Definition at line 76 of file lldelayedgestureerror.h.
void LLDelayedGestureError::gestureMissing | ( | const LLUUID & | id | ) | [static] |
Generates a missing gesture error.
id | UUID of missing gesture Delays message for up to 5 seconds if UUID can't be immediately converted to a text description |
Definition at line 47 of file lldelayedgestureerror.cpp.
References doDialog(), and enqueue().
Referenced by LLPreviewGesture::onLoadComplete(), and LLGestureManager::onLoadComplete().
void LLDelayedGestureError::gestureFailedToLoad | ( | const LLUUID & | id | ) | [static] |
Generates a gesture failed to load error.
id | UUID of missing gesture Delays message for up to 5 seconds if UUID can't be immediately converted to a text description |
Definition at line 57 of file lldelayedgestureerror.cpp.
References doDialog(), and enqueue().
Referenced by LLPreviewGesture::onLoadComplete(), and LLGestureManager::onLoadComplete().
bool LLDelayedGestureError::doDialog | ( | const LLErrorEntry & | ent, | |
bool | uuid_ok = false | |||
) | [static, private] |
Definition at line 99 of file lldelayedgestureerror.cpp.
References LLUUID::asString(), LLTimer::getElapsedTimeF32(), LLInventoryModel::getItem(), LLInventoryObject::getName(), gInventory, MAX_NAME_WAIT_TIME, LLDelayedGestureError::LLErrorEntry::mItemID, LLDelayedGestureError::LLErrorEntry::mNotifyName, LLDelayedGestureError::LLErrorEntry::mTimer, and LLNotifyBox::showXml().
Referenced by gestureFailedToLoad(), gestureMissing(), and onIdle().
void LLDelayedGestureError::enqueue | ( | const LLErrorEntry & | ent | ) | [static, private] |
Definition at line 68 of file lldelayedgestureerror.cpp.
References LLCallbackList::addFunction(), gIdleCallbacks, NULL, onIdle(), and sQueue.
Referenced by gestureFailedToLoad(), gestureMissing(), and onIdle().
void LLDelayedGestureError::onIdle | ( | void * | userdata | ) | [static, private] |
Definition at line 79 of file lldelayedgestureerror.cpp.
References LLCallbackList::deleteFunction(), doDialog(), enqueue(), gIdleCallbacks, NULL, and sQueue.
Referenced by enqueue().
LLDelayedGestureError::ErrorQueue LLDelayedGestureError::sQueue [static, private] |