aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llinventory/llparcel.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llinventory/llparcel.h')
-rw-r--r--linden/indra/llinventory/llparcel.h33
1 files changed, 16 insertions, 17 deletions
diff --git a/linden/indra/llinventory/llparcel.h b/linden/indra/llinventory/llparcel.h
index 66af8ad..9c63008 100644
--- a/linden/indra/llinventory/llparcel.h
+++ b/linden/indra/llinventory/llparcel.h
@@ -1,6 +1,8 @@
1/** 1/**
2 * @file llparcel.h 2 * @file llparcel.h
3 * 3 *
4 * $LicenseInfo:firstyear=2002&license=viewergpl$
5 *
4 * Copyright (c) 2002-2007, Linden Research, Inc. 6 * Copyright (c) 2002-2007, Linden Research, Inc.
5 * 7 *
6 * Second Life Viewer Source Code 8 * Second Life Viewer Source Code
@@ -23,15 +25,12 @@
23 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
24 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
25 * COMPLETENESS OR PERFORMANCE. 27 * COMPLETENESS OR PERFORMANCE.
28 * $/LicenseInfo$
26 */ 29 */
27 30
28#ifndef LL_LLPARCEL_H 31#ifndef LL_LLPARCEL_H
29#define LL_LLPARCEL_H 32#define LL_LLPARCEL_H
30 33
31#include <time.h>
32#include <iostream>
33
34#include "lldarray.h"
35#include "lluuid.h" 34#include "lluuid.h"
36#include "llparcelflags.h" 35#include "llparcelflags.h"
37#include "llpermissions.h" 36#include "llpermissions.h"
@@ -204,10 +203,10 @@ public:
204 203
205 // MANIPULATORS 204 // MANIPULATORS
206 void generateNewID() { mID.generate(); } 205 void generateNewID() { mID.generate(); }
207 void setName(const char* name); 206 void setName(const LLString& name);
208 void setDesc(const char* desc); 207 void setDesc(const LLString& desc);
209 void setMusicURL(const char* url); 208 void setMusicURL(const LLString& url);
210 void setMediaURL(const char* url); 209 void setMediaURL(const LLString& url);
211 void setMediaID(const LLUUID& id) { mMediaID = id; } 210 void setMediaID(const LLUUID& id) { mMediaID = id; }
212 void setMediaAutoScale ( U8 flagIn ) { mMediaAutoScale = flagIn; } 211 void setMediaAutoScale ( U8 flagIn ) { mMediaAutoScale = flagIn; }
213 virtual void setLocalID(S32 local_id); 212 virtual void setLocalID(S32 local_id);
@@ -257,7 +256,7 @@ public:
257 void setDrawDistance(F32 dist) { mDrawDistance = dist; } 256 void setDrawDistance(F32 dist) { mDrawDistance = dist; }
258 void setSalePrice(S32 price) { mSalePrice = price; } 257 void setSalePrice(S32 price) { mSalePrice = price; }
259 void setGroupID(const LLUUID& id) { mGroupID = id; } 258 void setGroupID(const LLUUID& id) { mGroupID = id; }
260 //void setGroupName(const char* s) { mGroupName.assign(s); } 259 //void setGroupName(const LLString& s) { mGroupName.assign(s); }
261 void setPassPrice(S32 price) { mPassPrice = price; } 260 void setPassPrice(S32 price) { mPassPrice = price; }
262 void setPassHours(F32 hours) { mPassHours = hours; } 261 void setPassHours(F32 hours) { mPassHours = hours; }
263 262
@@ -293,10 +292,10 @@ public:
293 292
294 // ACCESSORS 293 // ACCESSORS
295 const LLUUID& getID() const { return mID; } 294 const LLUUID& getID() const { return mID; }
296 const char* getName() const { return mName.c_str(); } 295 const LLString& getName() const { return mName; }
297 const char* getDesc() const { return mDesc.c_str(); } 296 const LLString& getDesc() const { return mDesc; }
298 const char* getMusicURL() const { return mMusicURL.c_str(); } 297 const LLString& getMusicURL() const { return mMusicURL; }
299 const char* getMediaURL() const { return mMediaURL.c_str(); } 298 const LLString& getMediaURL() const { return mMediaURL; }
300 const LLUUID& getMediaID() const { return mMediaID; } 299 const LLUUID& getMediaID() const { return mMediaID; }
301 U8 getMediaAutoScale() const { return mMediaAutoScale; } 300 U8 getMediaAutoScale() const { return mMediaAutoScale; }
302 S32 getLocalID() const { return mLocalID; } 301 S32 getLocalID() const { return mLocalID; }
@@ -568,10 +567,10 @@ protected:
568 F32 mDrawDistance; 567 F32 mDrawDistance;
569 U32 mParcelFlags; 568 U32 mParcelFlags;
570 S32 mSalePrice; // linden dollars 569 S32 mSalePrice; // linden dollars
571 std::string mName; 570 LLString mName;
572 std::string mDesc; 571 LLString mDesc;
573 std::string mMusicURL; 572 LLString mMusicURL;
574 std::string mMediaURL; 573 LLString mMediaURL;
575 U8 mMediaAutoScale; 574 U8 mMediaAutoScale;
576 LLUUID mMediaID; 575 LLUUID mMediaID;
577 S32 mPassPrice; 576 S32 mPassPrice;