diff options
- remove the Metadata property from AssetBase and return all previous
properties as before
- prefix private variables with m_ in AssetBase.cs
- related to Mantis #3122, as mentioned in
https://lists.berlios.de/pipermail/opensim-dev/2009-February/005088.html
- all services will likely need to be upgraded after this commit
Diffstat (limited to 'OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs b/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs index 9af764f..b71c2a6 100644 --- a/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs +++ b/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs | |||
@@ -111,13 +111,13 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction | |||
111 | { | 111 | { |
112 | ourClient = remoteClient; | 112 | ourClient = remoteClient; |
113 | m_asset = new AssetBase(); | 113 | m_asset = new AssetBase(); |
114 | m_asset.Metadata.FullID = assetID; | 114 | m_asset.FullID = assetID; |
115 | m_asset.Metadata.Type = type; | 115 | m_asset.Type = type; |
116 | m_asset.Data = data; | 116 | m_asset.Data = data; |
117 | m_asset.Metadata.Name = "blank"; | 117 | m_asset.Name = "blank"; |
118 | m_asset.Metadata.Description = "empty"; | 118 | m_asset.Description = "empty"; |
119 | m_asset.Metadata.Local = storeLocal; | 119 | m_asset.Local = storeLocal; |
120 | m_asset.Metadata.Temporary = tempFile; | 120 | m_asset.Temporary = tempFile; |
121 | 121 | ||
122 | TransactionID = transaction; | 122 | TransactionID = transaction; |
123 | m_storeLocal = storeLocal; | 123 | m_storeLocal = storeLocal; |
@@ -138,12 +138,12 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction | |||
138 | protected void RequestStartXfer() | 138 | protected void RequestStartXfer() |
139 | { | 139 | { |
140 | XferID = Util.GetNextXferID(); | 140 | XferID = Util.GetNextXferID(); |
141 | ourClient.SendXferRequest(XferID, m_asset.Metadata.Type, m_asset.Metadata.FullID, 0, new byte[0]); | 141 | ourClient.SendXferRequest(XferID, m_asset.Type, m_asset.FullID, 0, new byte[0]); |
142 | } | 142 | } |
143 | 143 | ||
144 | protected void SendCompleteMessage() | 144 | protected void SendCompleteMessage() |
145 | { | 145 | { |
146 | ourClient.SendAssetUploadCompleteMessage(m_asset.Metadata.Type, true, m_asset.Metadata.FullID); | 146 | ourClient.SendAssetUploadCompleteMessage(m_asset.Type, true, m_asset.FullID); |
147 | 147 | ||
148 | m_finished = true; | 148 | m_finished = true; |
149 | if (m_createItem) | 149 | if (m_createItem) |
@@ -162,7 +162,7 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction | |||
162 | DateTime now = DateTime.Now; | 162 | DateTime now = DateTime.Now; |
163 | string filename = | 163 | string filename = |
164 | String.Format("{6}_{7}_{0:d2}{1:d2}{2:d2}_{3:d2}{4:d2}{5:d2}.dat", now.Year, now.Month, now.Day, | 164 | String.Format("{6}_{7}_{0:d2}{1:d2}{2:d2}_{3:d2}{4:d2}{5:d2}.dat", now.Year, now.Month, now.Day, |
165 | now.Hour, now.Minute, now.Second, m_asset.Metadata.Name, m_asset.Metadata.Type); | 165 | now.Hour, now.Minute, now.Second, m_asset.Name, m_asset.Type); |
166 | SaveAssetToFile(filename, m_asset.Data); | 166 | SaveAssetToFile(filename, m_asset.Data); |
167 | } | 167 | } |
168 | } | 168 | } |
@@ -194,9 +194,9 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction | |||
194 | this.invType = invType; | 194 | this.invType = invType; |
195 | this.wearableType = wearableType; | 195 | this.wearableType = wearableType; |
196 | nextPerm = nextOwnerMask; | 196 | nextPerm = nextOwnerMask; |
197 | m_asset.Metadata.Name = name; | 197 | m_asset.Name = name; |
198 | m_asset.Metadata.Description = description; | 198 | m_asset.Description = description; |
199 | m_asset.Metadata.Type = type; | 199 | m_asset.Type = type; |
200 | 200 | ||
201 | if (m_finished) | 201 | if (m_finished) |
202 | { | 202 | { |
@@ -223,7 +223,7 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction | |||
223 | item.Owner = ourClient.AgentId; | 223 | item.Owner = ourClient.AgentId; |
224 | item.Creator = ourClient.AgentId; | 224 | item.Creator = ourClient.AgentId; |
225 | item.ID = UUID.Random(); | 225 | item.ID = UUID.Random(); |
226 | item.AssetID = m_asset.Metadata.FullID; | 226 | item.AssetID = m_asset.FullID; |
227 | item.Description = m_description; | 227 | item.Description = m_description; |
228 | item.Name = m_name; | 228 | item.Name = m_name; |
229 | item.AssetType = type; | 229 | item.AssetType = type; |