diff options
author | Leyla Farazha <leyla@lindenlab.com> | 2010-09-29 16:14:40 -0700 |
---|---|---|
committer | Leyla Farazha <leyla@lindenlab.com> | 2010-09-29 16:14:40 -0700 |
commit | 68d769ae8e7d5ba0fbc9c04573f988f3e48e4af0 (patch) | |
tree | a9f514f11fd3912036ceafb00b603a5dd717294d /indra/newview/llavataractions.h | |
parent | 7a43f0983d6906efcea56370e927912461ab898b (diff) | |
parent | cb3042d84d51532c0b6953b69bdc8f9651ea7631 (diff) |
Merge
Diffstat (limited to 'indra/newview/llavataractions.h')
-rw-r--r-- | indra/newview/llavataractions.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llavataractions.h b/indra/newview/llavataractions.h index 9cfdc884dc..2db2918eed 100644 --- a/indra/newview/llavataractions.h +++ b/indra/newview/llavataractions.h @@ -34,6 +34,8 @@ #include <string> #include <vector> +class LLInventoryPanel; + /** * Friend-related actions (add, remove, offer teleport, etc) */ @@ -183,6 +185,15 @@ public: */ static bool canOfferTeleport(const uuid_vec_t& ids); + /** + * Checks whether all items selected in the given inventory panel can be shared + * + * @param inv_panel Inventory panel to get selection from. If NULL, the active inventory panel is used. + * + * @return false if the selected items cannot be shared or the active inventory panel cannot be obtained + */ + static bool canShareSelectedItems(LLInventoryPanel* inv_panel = NULL); + private: static bool callbackAddFriendWithMessage(const LLSD& notification, const LLSD& response); static bool handleRemove(const LLSD& notification, const LLSD& response); |