diff options
| author | Callum Prentice <callum@lindenlab.com> | 2025-08-22 17:12:03 -0700 | 
|---|---|---|
| committer | Callum Prentice <callum@lindenlab.com> | 2025-08-22 17:12:03 -0700 | 
| commit | e935a8aebca4ae014b5f6b438612ac5674678fe6 (patch) | |
| tree | 531498d040a62c01d444fe91eb99afb091c7fff4 /indra/llinventory/llinventory.h | |
| parent | bebd1b208e1b342fabf59844851124a91513e83b (diff) | |
| parent | cefee59b0e5fff683a50fe61633a9c14493d7145 (diff) | |
Merge branch 'develop' into callum/viewer-cef-2025-08
Diffstat (limited to 'indra/llinventory/llinventory.h')
| -rw-r--r-- | indra/llinventory/llinventory.h | 9 | 
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/llinventory/llinventory.h b/indra/llinventory/llinventory.h index e63f2deba7..181c46226c 100644 --- a/indra/llinventory/llinventory.h +++ b/indra/llinventory/llinventory.h @@ -71,6 +71,7 @@ public:      virtual const LLUUID& getLinkedUUID() const; // inventoryID that this item points to, else this item's inventoryID      const LLUUID& getParentUUID() const;      virtual const LLUUID& getThumbnailUUID() const; +    virtual bool getIsFavorite() const;      virtual const std::string& getName() const;      virtual LLAssetType::EType getType() const;      LLAssetType::EType getActualType() const; // bypasses indirection for linked items @@ -86,6 +87,7 @@ public:      virtual void rename(const std::string& new_name);      void setParent(const LLUUID& new_parent);      virtual void setThumbnailUUID(const LLUUID& thumbnail_uuid); +    virtual void setFavorite(bool favorite);      void setType(LLAssetType::EType type);      virtual void setCreationDate(time_t creation_date_utc); // only stored for items @@ -111,6 +113,7 @@ protected:      LLUUID mUUID;      LLUUID mParentUUID; // Parent category.  Root categories have LLUUID::NULL.      LLUUID mThumbnailUUID; +    bool mFavorite;      LLAssetType::EType mType;      std::string mName;      time_t mCreationDate; // seconds from 1/1/1970, UTC @@ -270,8 +273,9 @@ public:      virtual bool importLegacyStream(std::istream& input_stream);      virtual bool exportLegacyStream(std::ostream& output_stream, bool include_asset_key = true) const; -    LLSD exportLLSD() const; -    bool importLLSD(const LLSD& cat_data); +    virtual void exportLLSD(LLSD& sd) const; +    bool importLLSDMap(const LLSD& cat_data); +    virtual bool importLLSD(const std::string& label, const LLSD& value);      //--------------------------------------------------------------------      // Member Variables      //-------------------------------------------------------------------- @@ -285,6 +289,7 @@ protected:  //  //   These functions convert between structured data and an inventory  //   item, appropriate for serialization. +//   Not up to date (no favorites, nor thumbnails), for testing purposes  //-----------------------------------------------------------------------------  LLSD ll_create_sd_from_inventory_item(LLPointer<LLInventoryItem> item);  LLSD ll_create_sd_from_inventory_category(LLPointer<LLInventoryCategory> cat);  | 
