diff options
author | Rick Pasetto <rick@lindenlab.com> | 2009-11-10 17:24:02 -0800 |
---|---|---|
committer | Rick Pasetto <rick@lindenlab.com> | 2009-11-10 17:24:02 -0800 |
commit | 353ac3969efc5bda81b34f4edb3756dd6ced0412 (patch) | |
tree | 467c97cef1f760672503096c2fed3f27618bdc68 /indra/newview/llmediadataclient.h | |
parent | 2420a4b90c964bcc2c928c4593652fdf81e0e20f (diff) |
FIX DEV-41991: do not allow media settings panel to come up if media data is in flight
Review #33
This change marks the current selection "not editable" if
any objects in the selection are currently "in flight" (i.e.
their media data has not been fetched yet, or is in the
process of being fetched). This involved adding API to
LLMediaDataClient to query whether an object is in the
process of being fetched (i.e. in the queue). I've added
a unit test for this new API.
Diffstat (limited to 'indra/newview/llmediadataclient.h')
-rwxr-xr-x | indra/newview/llmediadataclient.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/llmediadataclient.h b/indra/newview/llmediadataclient.h index 9d0aa0981e..0d1450ffbe 100755 --- a/indra/newview/llmediadataclient.h +++ b/indra/newview/llmediadataclient.h @@ -89,7 +89,10 @@ public: F32 getRetryTimerDelay() const { return mRetryTimerDelay; } // Returns true iff the queue is empty - bool isEmpty() const; + bool isEmpty() const; + + // Returns true iff the given object is in the queue + bool isInQueue(const LLMediaDataClientObject::ptr_t &object) const; protected: // Destructor @@ -206,6 +209,9 @@ private: Comparator > { public: + // Return whether the given object is in the queue + bool find(const LLMediaDataClientObject::ptr_t &obj) const; + friend std::ostream& operator<<(std::ostream &s, const PriorityQueue &q); }; |