diff options
author | Merov Linden <merov@lindenlab.com> | 2010-10-07 15:58:20 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2010-10-07 15:58:20 -0700 |
commit | c8cd7ef7a4da4482b776c37201b158a443dd737a (patch) | |
tree | 521c6dc7af632dc9df64a69c18997eb091d68f20 /indra/newview/llavataractions.h | |
parent | d1ad7a56beee603b336600d4aace1e4d4c0f5ade (diff) | |
parent | d25a30e55b7e6a20173c3a53891489adc5610d72 (diff) |
Pull update from viewer-development
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 6313ae0759..44bd3778da 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 callbackAddFriend(const LLSD& notification, const LLSD& response); static bool callbackAddFriendWithMessage(const LLSD& notification, const LLSD& response); |