summaryrefslogtreecommitdiff
path: root/indra/llinventory/llparcel.cpp
diff options
context:
space:
mode:
authorDon Kjer <don@lindenlab.com>2007-05-02 21:24:47 +0000
committerDon Kjer <don@lindenlab.com>2007-05-02 21:24:47 +0000
commit1c909afe3998778e4cc045c9ab733e8afbf7c25b (patch)
tree75c00a32a8e305280cbec253195d1113d628fc3e /indra/llinventory/llparcel.cpp
parentbc59c04653bf1404e8148a8169208b146a123b28 (diff)
svn merge -r 60342:61148 svn+ssh://svn/svn/linden/branches/maintenance into release
Diffstat (limited to 'indra/llinventory/llparcel.cpp')
-rw-r--r--indra/llinventory/llparcel.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/indra/llinventory/llparcel.cpp b/indra/llinventory/llparcel.cpp
index 7ea83f6e5e..c2b2eb27de 100644
--- a/indra/llinventory/llparcel.cpp
+++ b/indra/llinventory/llparcel.cpp
@@ -1194,6 +1194,24 @@ BOOL LLParcel::exportStream(std::ostream& output_stream)
return TRUE;
}
+// virtual
+LLSD LLParcel::asLLSD() const
+{
+ LLSD p;
+ p["parcel-id"] = getID();
+ p["name"] = getName();
+ p["desc"] = getDesc();
+ p["owner-id"] = getOwnerID();
+ p["group-id"] = getGroupID();
+ p["group-owned"] = (bool)getIsGroupOwned();
+ p["auction-id"] = (S32)getAuctionID();
+ p["snapshot-id"] = getSnapshotID();
+ p["authorized-buyer-id"] = getAuthorizedBuyerID();
+ p["sale-price"] = getSalePrice();
+ p["parcel-flags"] = (S32)getParcelFlags();
+ // NOTE: This list is incomplete, as this is used only for search. JC
+ return p;
+}
// Assumes we are in a block "ParcelData"
void LLParcel::packMessage(LLMessageSystem* msg)
@@ -1766,7 +1784,7 @@ const char* category_to_ui_string(LLParcel::ECategory category)
else
{
// C_ANY = -1 , but the "Any" string is at the end of the list
- index = ((S32) LLParcel::C_COUNT) + 1;
+ index = ((S32) LLParcel::C_COUNT);
}
return PARCEL_CATEGORY_UI_STRING[index];
}