aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llinventory/llinventory.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llinventory/llinventory.h
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/llinventory/llinventory.h')
-rw-r--r--linden/indra/llinventory/llinventory.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/linden/indra/llinventory/llinventory.h b/linden/indra/llinventory/llinventory.h
index 1bb6b85..d3cce6b 100644
--- a/linden/indra/llinventory/llinventory.h
+++ b/linden/indra/llinventory/llinventory.h
@@ -75,7 +75,7 @@ protected:
75 LLUUID mUUID; 75 LLUUID mUUID;
76 LLUUID mParentUUID; 76 LLUUID mParentUUID;
77 LLAssetType::EType mType; 77 LLAssetType::EType mType;
78 LLString mName; 78 std::string mName;
79 79
80protected: 80protected:
81 virtual ~LLInventoryObject( void ); 81 virtual ~LLInventoryObject( void );
@@ -83,19 +83,19 @@ protected:
83public: 83public:
84 MEM_TYPE_NEW(LLMemType::MTYPE_INVENTORY); 84 MEM_TYPE_NEW(LLMemType::MTYPE_INVENTORY);
85 LLInventoryObject(const LLUUID& uuid, const LLUUID& parent_uuid, 85 LLInventoryObject(const LLUUID& uuid, const LLUUID& parent_uuid,
86 LLAssetType::EType type, const LLString& name); 86 LLAssetType::EType type, const std::string& name);
87 LLInventoryObject(); 87 LLInventoryObject();
88 void copyObject(const LLInventoryObject* other); // LLRefCount requires custom copy 88 void copyObject(const LLInventoryObject* other); // LLRefCount requires custom copy
89 89
90 // accessors 90 // accessors
91 const LLUUID& getUUID() const; 91 const LLUUID& getUUID() const;
92 const LLUUID& getParentUUID() const; 92 const LLUUID& getParentUUID() const;
93 const LLString& getName() const; 93 const std::string& getName() const;
94 LLAssetType::EType getType() const; 94 LLAssetType::EType getType() const;
95 95
96 // mutators - will not call updateServer(); 96 // mutators - will not call updateServer();
97 void setUUID(const LLUUID& new_uuid); 97 void setUUID(const LLUUID& new_uuid);
98 void rename(const LLString& new_name); 98 void rename(const std::string& new_name);
99 void setParent(const LLUUID& new_parent); 99 void setParent(const LLUUID& new_parent);
100 void setType(LLAssetType::EType type); 100 void setType(LLAssetType::EType type);
101 101
@@ -128,11 +128,11 @@ public:
128protected: 128protected:
129 LLPermissions mPermissions; 129 LLPermissions mPermissions;
130 LLUUID mAssetUUID; 130 LLUUID mAssetUUID;
131 LLString mDescription; 131 std::string mDescription;
132 LLSaleInfo mSaleInfo; 132 LLSaleInfo mSaleInfo;
133 LLInventoryType::EType mInventoryType; 133 LLInventoryType::EType mInventoryType;
134 U32 mFlags; 134 U32 mFlags;
135 S32 mCreationDate; // seconds from 1/1/1970, UTC 135 time_t mCreationDate; // seconds from 1/1/1970, UTC
136 136
137public: 137public:
138 138
@@ -212,8 +212,8 @@ public:
212 const LLUUID& asset_uuid, 212 const LLUUID& asset_uuid,
213 LLAssetType::EType type, 213 LLAssetType::EType type,
214 LLInventoryType::EType inv_type, 214 LLInventoryType::EType inv_type,
215 const LLString& name, 215 const std::string& name,
216 const LLString& desc, 216 const std::string& desc,
217 const LLSaleInfo& sale_info, 217 const LLSaleInfo& sale_info,
218 U32 flags, 218 U32 flags,
219 S32 creation_date_utc); 219 S32 creation_date_utc);
@@ -233,22 +233,22 @@ public:
233 const LLPermissions& getPermissions() const; 233 const LLPermissions& getPermissions() const;
234 const LLUUID& getCreatorUUID() const; 234 const LLUUID& getCreatorUUID() const;
235 const LLUUID& getAssetUUID() const; 235 const LLUUID& getAssetUUID() const;
236 const LLString& getDescription() const; 236 const std::string& getDescription() const;
237 const LLSaleInfo& getSaleInfo() const; 237 const LLSaleInfo& getSaleInfo() const;
238 LLInventoryType::EType getInventoryType() const; 238 LLInventoryType::EType getInventoryType() const;
239 U32 getFlags() const; 239 U32 getFlags() const;
240 S32 getCreationDate() const; 240 time_t getCreationDate() const;
241 U32 getCRC32() const; // really more of a checksum. 241 U32 getCRC32() const; // really more of a checksum.
242 242
243 // mutators - will not call updateServer(), and will never fail 243 // mutators - will not call updateServer(), and will never fail
244 // (though it may correct to sane values) 244 // (though it may correct to sane values)
245 void setAssetUUID(const LLUUID& asset_id); 245 void setAssetUUID(const LLUUID& asset_id);
246 void setDescription(const LLString& new_desc); 246 void setDescription(const std::string& new_desc);
247 void setSaleInfo(const LLSaleInfo& sale_info); 247 void setSaleInfo(const LLSaleInfo& sale_info);
248 void setPermissions(const LLPermissions& perm); 248 void setPermissions(const LLPermissions& perm);
249 void setInventoryType(LLInventoryType::EType inv_type); 249 void setInventoryType(LLInventoryType::EType inv_type);
250 void setFlags(U32 flags); 250 void setFlags(U32 flags);
251 void setCreationDate(S32 creation_date_utc); 251 void setCreationDate(time_t creation_date_utc);
252 252
253 // Put this inventory item onto the current outgoing mesage. It 253 // Put this inventory item onto the current outgoing mesage. It
254 // assumes you have already called nextBlock(). 254 // assumes you have already called nextBlock().
@@ -303,7 +303,7 @@ public:
303 MEM_TYPE_NEW(LLMemType::MTYPE_INVENTORY); 303 MEM_TYPE_NEW(LLMemType::MTYPE_INVENTORY);
304 LLInventoryCategory(const LLUUID& uuid, const LLUUID& parent_uuid, 304 LLInventoryCategory(const LLUUID& uuid, const LLUUID& parent_uuid,
305 LLAssetType::EType preferred_type, 305 LLAssetType::EType preferred_type,
306 const LLString& name); 306 const std::string& name);
307 LLInventoryCategory(); 307 LLInventoryCategory();
308 LLInventoryCategory(const LLInventoryCategory* other); 308 LLInventoryCategory(const LLInventoryCategory* other);
309 void copyCategory(const LLInventoryCategory* other); // LLRefCount requires custom copy 309 void copyCategory(const LLInventoryCategory* other); // LLRefCount requires custom copy