aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llinventory/llparcel.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llinventory/llparcel.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/linden/indra/llinventory/llparcel.cpp b/linden/indra/llinventory/llparcel.cpp
index c37a4d6..5b2052f 100644
--- a/linden/indra/llinventory/llparcel.cpp
+++ b/linden/indra/llinventory/llparcel.cpp
@@ -1214,6 +1214,24 @@ BOOL LLParcel::exportStream(std::ostream& output_stream)
1214 return TRUE; 1214 return TRUE;
1215} 1215}
1216 1216
1217// virtual
1218LLSD LLParcel::asLLSD() const
1219{
1220 LLSD p;
1221 p["parcel-id"] = getID();
1222 p["name"] = getName();
1223 p["desc"] = getDesc();
1224 p["owner-id"] = getOwnerID();
1225 p["group-id"] = getGroupID();
1226 p["group-owned"] = (bool)getIsGroupOwned();
1227 p["auction-id"] = (S32)getAuctionID();
1228 p["snapshot-id"] = getSnapshotID();
1229 p["authorized-buyer-id"] = getAuthorizedBuyerID();
1230 p["sale-price"] = getSalePrice();
1231 p["parcel-flags"] = (S32)getParcelFlags();
1232 // NOTE: This list is incomplete, as this is used only for search. JC
1233 return p;
1234}
1217 1235
1218// Assumes we are in a block "ParcelData" 1236// Assumes we are in a block "ParcelData"
1219void LLParcel::packMessage(LLMessageSystem* msg) 1237void LLParcel::packMessage(LLMessageSystem* msg)
@@ -1786,7 +1804,7 @@ const char* category_to_ui_string(LLParcel::ECategory category)
1786 else 1804 else
1787 { 1805 {
1788 // C_ANY = -1 , but the "Any" string is at the end of the list 1806 // C_ANY = -1 , but the "Any" string is at the end of the list
1789 index = ((S32) LLParcel::C_COUNT) + 1; 1807 index = ((S32) LLParcel::C_COUNT);
1790 } 1808 }
1791 return PARCEL_CATEGORY_UI_STRING[index]; 1809 return PARCEL_CATEGORY_UI_STRING[index];
1792} 1810}