aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltooldraganddrop.h
diff options
context:
space:
mode:
authorJacek Antonelli2009-04-30 13:04:20 -0500
committerJacek Antonelli2009-04-30 13:07:16 -0500
commitca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e (patch)
tree8348301d0ac44a524f1819b777686bf086907d76 /linden/indra/newview/lltooldraganddrop.h
parentSecond Life viewer sources 1.22.11 (diff)
downloadmeta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.zip
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.gz
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.bz2
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.xz
Second Life viewer sources 1.23.0-RC
Diffstat (limited to 'linden/indra/newview/lltooldraganddrop.h')
-rw-r--r--linden/indra/newview/lltooldraganddrop.h26
1 files changed, 19 insertions, 7 deletions
diff --git a/linden/indra/newview/lltooldraganddrop.h b/linden/indra/newview/lltooldraganddrop.h
index 38e8161..f9e5bec 100644
--- a/linden/indra/newview/lltooldraganddrop.h
+++ b/linden/indra/newview/lltooldraganddrop.h
@@ -17,7 +17,8 @@
17 * There are special exceptions to the terms and conditions of the GPL as 17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception 18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or 19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception 20 * online at
21 * http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 22 *
22 * By copying, modifying or distributing this software, you acknowledge 23 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 24 * that you have read and understood your obligations described above,
@@ -209,14 +210,17 @@ protected:
209 210
210 211
211 // give inventory item functionality 212 // give inventory item functionality
212 static void handleCopyProtectedItem(S32 option, void* data); 213 static bool handleCopyProtectedItem(const LLSD& notification, const LLSD& response);
213 static void commitGiveInventoryItem(const LLUUID& to_agent, 214 static void commitGiveInventoryItem(const LLUUID& to_agent,
214 LLInventoryItem* item); 215 LLInventoryItem* item,
216 const LLUUID &im_session_id = LLUUID::null);
215 217
216 // give inventory category functionality 218 // give inventory category functionality
217 static void handleCopyProtectedCategory(S32 option, void* data); 219 static bool handleCopyProtectedCategory(const LLSD& notification, const LLSD& response);
218 static void commitGiveInventoryCategory(const LLUUID& to_agent, 220 static void commitGiveInventoryCategory(const LLUUID& to_agent,
219 LLInventoryCategory* cat); 221 LLInventoryCategory* cat,
222 const LLUUID &im_session_id = LLUUID::null);
223
220public: 224public:
221 // helper functions 225 // helper functions
222 static BOOL isInventoryDropAcceptable(LLViewerObject* obj, LLInventoryItem* item) { return (ACCEPT_YES_COPY_SINGLE <= willObjectAcceptInventory(obj, item)); } 226 static BOOL isInventoryDropAcceptable(LLViewerObject* obj, LLInventoryItem* item) { return (ACCEPT_YES_COPY_SINGLE <= willObjectAcceptInventory(obj, item)); }
@@ -251,9 +255,17 @@ public:
251 ESource source, 255 ESource source,
252 const LLUUID& src_id); 256 const LLUUID& src_id);
253 257
254 static void giveInventory(const LLUUID& to_agent, LLInventoryItem* item); 258 static void giveInventory(const LLUUID& to_agent,
259 LLInventoryItem* item,
260 const LLUUID &session_id = LLUUID::null);
255 static void giveInventoryCategory(const LLUUID& to_agent, 261 static void giveInventoryCategory(const LLUUID& to_agent,
256 LLInventoryCategory* item); 262 LLInventoryCategory* item,
263 const LLUUID &session_id = LLUUID::null);
264
265 static bool handleGiveDragAndDrop(LLUUID agent, LLUUID session, BOOL drop,
266 EDragAndDropType cargo_type,
267 void* cargo_data,
268 EAcceptance* accept);
257}; 269};
258 270
259// utility functions 271// utility functions