aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llinventory/llparcel.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:56 -0500
committerJacek Antonelli2008-08-15 23:44:56 -0500
commitc07901e29ed545bbb02e3bddf148fe1104b94e9f (patch)
treef1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/llinventory/llparcel.cpp
parentSecond Life viewer sources 1.15.0.2 (diff)
downloadmeta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz
Second Life viewer sources 1.15.1.3
Diffstat (limited to 'linden/indra/llinventory/llparcel.cpp')
-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}