diff options
Diffstat (limited to 'OpenSim/Framework/Communications')
3 files changed, 23 insertions, 11 deletions
diff --git a/OpenSim/Framework/Communications/Cache/AssetTransactions.cs b/OpenSim/Framework/Communications/Cache/AssetTransactions.cs index addd20a..4cde5f6 100644 --- a/OpenSim/Framework/Communications/Cache/AssetTransactions.cs +++ b/OpenSim/Framework/Communications/Cache/AssetTransactions.cs | |||
@@ -103,6 +103,15 @@ namespace OpenSim.Framework.Communications.Caches | |||
103 | } | 103 | } |
104 | } | 104 | } |
105 | 105 | ||
106 | public AssetBase GetTransactionAsset(LLUUID transactionID) | ||
107 | { | ||
108 | if (this.XferUploaders.ContainsKey(transactionID)) | ||
109 | { | ||
110 | return XferUploaders[transactionID].GetAssetData(); | ||
111 | } | ||
112 | return null; | ||
113 | } | ||
114 | |||
106 | // Nested Types | 115 | // Nested Types |
107 | public class AssetCapsUploader | 116 | public class AssetCapsUploader |
108 | { | 117 | { |
@@ -298,6 +307,7 @@ namespace OpenSim.Framework.Communications.Caches | |||
298 | 307 | ||
299 | private void DoCreateItem() | 308 | private void DoCreateItem() |
300 | { | 309 | { |
310 | //really need to fix this call, if lbsa71 saw this he would die. | ||
301 | this.m_userTransactions.Manager.CommsManager.AssetCache.AddAsset(this.Asset); | 311 | this.m_userTransactions.Manager.CommsManager.AssetCache.AddAsset(this.Asset); |
302 | CachedUserInfo userInfo = m_userTransactions.Manager.CommsManager.UserProfiles.GetUserDetails(ourClient.AgentId); | 312 | CachedUserInfo userInfo = m_userTransactions.Manager.CommsManager.UserProfiles.GetUserDetails(ourClient.AgentId); |
303 | if (userInfo != null) | 313 | if (userInfo != null) |
@@ -324,6 +334,15 @@ namespace OpenSim.Framework.Communications.Caches | |||
324 | { | 334 | { |
325 | 335 | ||
326 | } | 336 | } |
337 | |||
338 | public AssetBase GetAssetData() | ||
339 | { | ||
340 | if (m_finished) | ||
341 | { | ||
342 | return this.Asset; | ||
343 | } | ||
344 | return null; | ||
345 | } | ||
327 | } | 346 | } |
328 | 347 | ||
329 | public class NoteCardCapsUpdate | 348 | public class NoteCardCapsUpdate |
diff --git a/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs b/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs index 6d85477..deef028 100644 --- a/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs +++ b/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs | |||
@@ -9,6 +9,10 @@ using Nini.Config; | |||
9 | 9 | ||
10 | namespace OpenSim.Framework.Communications.Caches | 10 | namespace OpenSim.Framework.Communications.Caches |
11 | { | 11 | { |
12 | /// <summary> | ||
13 | /// Basically a hack to give us a Inventory library while we don't have a inventory server | ||
14 | /// once the server is fully implemented then should read the data from that | ||
15 | /// </summary> | ||
12 | public class LibraryRootFolder : InventoryFolder | 16 | public class LibraryRootFolder : InventoryFolder |
13 | { | 17 | { |
14 | private LLUUID libOwner = new LLUUID("11111111-1111-0000-0000-000100bba000"); | 18 | private LLUUID libOwner = new LLUUID("11111111-1111-0000-0000-000100bba000"); |
diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCache.cs b/OpenSim/Framework/Communications/Cache/UserProfileCache.cs index 02c5f65..a599a19 100644 --- a/OpenSim/Framework/Communications/Cache/UserProfileCache.cs +++ b/OpenSim/Framework/Communications/Cache/UserProfileCache.cs | |||
@@ -182,17 +182,6 @@ namespace OpenSim.Framework.Communications.Caches | |||
182 | private void RequestInventoryForUser(LLUUID userID, CachedUserInfo userInfo) | 182 | private void RequestInventoryForUser(LLUUID userID, CachedUserInfo userInfo) |
183 | { | 183 | { |
184 | this.m_parent.InventoryServer.RequestInventoryForUser(userID, userInfo.FolderReceive, userInfo.ItemReceive); | 184 | this.m_parent.InventoryServer.RequestInventoryForUser(userID, userInfo.FolderReceive, userInfo.ItemReceive); |
185 | |||
186 | //for now we manually create the root folder, | ||
187 | // but should be requesting all inventory from inventory server. | ||
188 | /* InventoryFolder folderInfo = new InventoryFolder(); | ||
189 | folderInfo.agentID = userID; | ||
190 | folderInfo.folderID = userInfo.UserProfile.rootInventoryFolderID; | ||
191 | folderInfo.name = "My Inventory"; | ||
192 | folderInfo.parentID = LLUUID.Zero; | ||
193 | folderInfo.type = 8; | ||
194 | folderInfo.version = 1; | ||
195 | userInfo.FolderReceive(userID, folderInfo);*/ | ||
196 | } | 185 | } |
197 | 186 | ||
198 | /// <summary> | 187 | /// <summary> |