aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs
diff options
context:
space:
mode:
authorMW2008-03-15 11:48:27 +0000
committerMW2008-03-15 11:48:27 +0000
commit70e55205a19ca83aa2f63c2b2c5d2c300e2324f6 (patch)
tree947d7bff36771428f0e6eb8bb8405dc3db247be3 /OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs
parent* Fix for Justincc's bug report #768 - Terrain looks rather phallic. (diff)
downloadopensim-SC_OLD-70e55205a19ca83aa2f63c2b2c5d2c300e2324f6.zip
opensim-SC_OLD-70e55205a19ca83aa2f63c2b2c5d2c300e2324f6.tar.gz
opensim-SC_OLD-70e55205a19ca83aa2f63c2b2c5d2c300e2324f6.tar.bz2
opensim-SC_OLD-70e55205a19ca83aa2f63c2b2c5d2c300e2324f6.tar.xz
Part 1 of making inventory work again in the 1.19.1 (RC) client. Implemented the FetchInventoryDescendents CAPS handler. But currently returning empty folder details.
So this commit doesn't actually fix inventory in that client, it just stops the "loading" message being displayed forever next to a folder, and instead shows empty folders. Next part will be to fill in the details of the items in the folders.
Diffstat (limited to 'OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs')
-rw-r--r--OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs83
1 files changed, 83 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs b/OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs
new file mode 100644
index 0000000..2d1d441
--- /dev/null
+++ b/OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs
@@ -0,0 +1,83 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4using libsecondlife;
5
6namespace OpenSim.Region.Capabilities
7{
8 [LLSDMap]
9 public class LLSDInventoryItem
10 {
11 public LLUUID parent_id;
12
13 public LLUUID asset_id;
14 public LLUUID item_id;
15
16 public string type;
17 public string inv_type;
18 public int flags;
19
20 public LLSDSaleInfo sale_info;
21 public string name;
22 public string desc;
23 public int created_at;
24
25 }
26
27 [LLSDMap]
28 public class LLSDPermissions
29 {
30 public LLUUID creator_id;
31 public LLUUID owner_id;
32 public LLUUID group_id;
33 public int base_mask;
34 public int owner_mask;
35 public int group_mask;
36 public int everyone_mask;
37 public int next_owner_mask;
38 public bool is_owner_group;
39 }
40
41 [LLSDMap]
42 public class LLSDSaleInfo
43 {
44 public int sale_price;
45 public string sale_type;
46 }
47
48 /* [LLSDMap]
49 public class LLSDFolderItem
50 {
51 public LLUUID folder_id;
52 public LLUUID parent_id;
53 public int type;
54 public string name;
55 }*/
56
57 [LLSDMap]
58 public class LLSDInventoryDescendents
59 {
60 public LLSDArray folders= new LLSDArray();
61 }
62
63 [LLSDMap]
64 public class LLSDFetchInventoryDescendents
65 {
66 public LLUUID folder_id;
67 public LLUUID owner_id;
68 public int sort_order;
69 public bool fetch_folders;
70 public bool fetch_items;
71 }
72
73 [LLSDMap]
74 public class LLSDInventoryFolderContents
75 {
76 public LLUUID agent___id;
77 public int descendents;
78 public LLUUID folder___id; // the (three "_") "___" so the serialising knows to change this to a "-"
79 public LLSDArray items = new LLSDArray();
80 public LLUUID owner___id;
81 public int version;
82 }
83}