Annotation of /linden_release/linden/indra/llinventory/llparcelflags.h
Parent Directory
|
Revision Log
Revision 58 - (view) (download)
| 1 : | mjm | 57 | /** |
| 2 : | * @file llparcelflags.h | ||
| 3 : | * | ||
| 4 : | * $LicenseInfo:firstyear=2002&license=viewergpl$ | ||
| 5 : | * | ||
| 6 : | * Copyright (c) 2002-2008, Linden Research, Inc. | ||
| 7 : | * | ||
| 8 : | * Second Life Viewer Source Code | ||
| 9 : | * The source code in this file ("Source Code") is provided by Linden Lab | ||
| 10 : | * to you under the terms of the GNU General Public License, version 2.0 | ||
| 11 : | * ("GPL"), unless you have obtained a separate licensing agreement | ||
| 12 : | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
| 13 : | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
| 14 : | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | ||
| 15 : | * | ||
| 16 : | * There are special exceptions to the terms and conditions of the GPL as | ||
| 17 : | * it is applied to this Source Code. View the full text of the exception | ||
| 18 : | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
| 19 : | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
| 20 : | * | ||
| 21 : | * By copying, modifying or distributing this software, you acknowledge | ||
| 22 : | * that you have read and understood your obligations described above, | ||
| 23 : | * and agree to abide by those obligations. | ||
| 24 : | * | ||
| 25 : | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
| 26 : | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
| 27 : | * COMPLETENESS OR PERFORMANCE. | ||
| 28 : | * $/LicenseInfo$ | ||
| 29 : | */ | ||
| 30 : | |||
| 31 : | #ifndef LL_LLPARCEL_FLAGS_H | ||
| 32 : | #define LL_LLPARCEL_FLAGS_H | ||
| 33 : | |||
| 34 : | //--------------------------------------------------------------------------- | ||
| 35 : | // Parcel Flags (PF) constants | ||
| 36 : | //--------------------------------------------------------------------------- | ||
| 37 : | const U32 PF_ALLOW_FLY = 1 << 0;// Can start flying | ||
| 38 : | const U32 PF_ALLOW_OTHER_SCRIPTS= 1 << 1;// Scripts by others can run. | ||
| 39 : | const U32 PF_FOR_SALE = 1 << 2;// Can buy this land | ||
| 40 : | const U32 PF_FOR_SALE_OBJECTS = 1 << 7;// Can buy all objects on this land | ||
| 41 : | const U32 PF_ALLOW_LANDMARK = 1 << 3; | ||
| 42 : | const U32 PF_ALLOW_TERRAFORM = 1 << 4; | ||
| 43 : | const U32 PF_ALLOW_DAMAGE = 1 << 5; | ||
| 44 : | const U32 PF_CREATE_OBJECTS = 1 << 6; | ||
| 45 : | // 7 is moved above | ||
| 46 : | const U32 PF_USE_ACCESS_GROUP = 1 << 8; | ||
| 47 : | const U32 PF_USE_ACCESS_LIST = 1 << 9; | ||
| 48 : | const U32 PF_USE_BAN_LIST = 1 << 10; | ||
| 49 : | const U32 PF_USE_PASS_LIST = 1 << 11; | ||
| 50 : | const U32 PF_SHOW_DIRECTORY = 1 << 12; | ||
| 51 : | const U32 PF_ALLOW_DEED_TO_GROUP = 1 << 13; | ||
| 52 : | const U32 PF_CONTRIBUTE_WITH_DEED = 1 << 14; | ||
| 53 : | const U32 PF_SOUND_LOCAL = 1 << 15; // Hear sounds in this parcel only | ||
| 54 : | const U32 PF_SELL_PARCEL_OBJECTS = 1 << 16; // Objects on land are included as part of the land when the land is sold | ||
| 55 : | const U32 PF_ALLOW_PUBLISH = 1 << 17; // Allow publishing of parcel information on the web | ||
| 56 : | const U32 PF_MATURE_PUBLISH = 1 << 18; // The information on this parcel is mature | ||
| 57 : | const U32 PF_URL_WEB_PAGE = 1 << 19; // The "media URL" is an HTML page | ||
| 58 : | const U32 PF_URL_RAW_HTML = 1 << 20; // The "media URL" is a raw HTML string like <H1>Foo</H1> | ||
| 59 : | const U32 PF_RESTRICT_PUSHOBJECT = 1 << 21; // Restrict push object to either on agent or on scripts owned by parcel owner | ||
| 60 : | const U32 PF_DENY_ANONYMOUS = 1 << 22; // Deny all non identified/transacted accounts | ||
| 61 : | // const U32 PF_DENY_IDENTIFIED = 1 << 23; // Deny identified accounts | ||
| 62 : | // const U32 PF_DENY_TRANSACTED = 1 << 24; // Deny identified accounts | ||
| 63 : | const U32 PF_ALLOW_GROUP_SCRIPTS = 1 << 25; // Allow scripts owned by group | ||
| 64 : | const U32 PF_CREATE_GROUP_OBJECTS = 1 << 26; // Allow object creation by group members or objects | ||
| 65 : | const U32 PF_ALLOW_ALL_OBJECT_ENTRY = 1 << 27; // Allow all objects to enter a parcel | ||
| 66 : | const U32 PF_ALLOW_GROUP_OBJECT_ENTRY = 1 << 28; // Only allow group (and owner) objects to enter the parcel | ||
| 67 : | const U32 PF_ALLOW_VOICE_CHAT = 1 << 29; // Allow residents to use voice chat on this parcel | ||
| 68 : | const U32 PF_USE_ESTATE_VOICE_CHAN = 1 << 30; | ||
| 69 : | const U32 PF_DENY_AGEUNVERIFIED = 1 << 31; // Prevent residents who aren't age-verified | ||
| 70 : | // NOTE: At one point we have used all of the bits. | ||
| 71 : | // We have deprecated two of them in 1.19.0 which *could* be reused, | ||
| 72 : | // but only after we are certain there are no simstates using those bits. | ||
| 73 : | |||
| 74 : | //const U32 PF_RESERVED = 1U << 31; | ||
| 75 : | |||
| 76 : | // If any of these are true the parcel is restricting access in some maner. | ||
| 77 : | const U32 PF_USE_RESTRICTED_ACCESS = PF_USE_ACCESS_GROUP | ||
| 78 : | | PF_USE_ACCESS_LIST | ||
| 79 : | | PF_USE_BAN_LIST | ||
| 80 : | | PF_USE_PASS_LIST | ||
| 81 : | | PF_DENY_ANONYMOUS | ||
| 82 : | | PF_DENY_AGEUNVERIFIED; | ||
| 83 : | const U32 PF_NONE = 0x00000000; | ||
| 84 : | const U32 PF_ALL = 0xFFFFFFFF; | ||
| 85 : | const U32 PF_DEFAULT = PF_ALLOW_FLY | ||
| 86 : | | PF_ALLOW_OTHER_SCRIPTS | ||
| 87 : | | PF_ALLOW_GROUP_SCRIPTS | ||
| 88 : | | PF_ALLOW_LANDMARK | ||
| 89 : | | PF_CREATE_OBJECTS | ||
| 90 : | | PF_CREATE_GROUP_OBJECTS | ||
| 91 : | | PF_USE_BAN_LIST | ||
| 92 : | | PF_ALLOW_ALL_OBJECT_ENTRY | ||
| 93 : | | PF_ALLOW_GROUP_OBJECT_ENTRY | ||
| 94 : | | PF_ALLOW_VOICE_CHAT | ||
| 95 : | | PF_USE_ESTATE_VOICE_CHAN; | ||
| 96 : | |||
| 97 : | // Access list flags | ||
| 98 : | const U32 AL_ACCESS = (1 << 0); | ||
| 99 : | const U32 AL_BAN = (1 << 1); | ||
| 100 : | //const U32 AL_RENTER = (1 << 2); | ||
| 101 : | |||
| 102 : | // Block access return values. BA_ALLOWED is the only success case | ||
| 103 : | // since some code in the simulator relies on that assumption. All | ||
| 104 : | // other BA_ values should be reasons why you are not allowed. | ||
| 105 : | const S32 BA_ALLOWED = 0; | ||
| 106 : | const S32 BA_NOT_IN_GROUP = 1; | ||
| 107 : | const S32 BA_NOT_ON_LIST = 2; | ||
| 108 : | const S32 BA_BANNED = 3; | ||
| 109 : | const S32 BA_NO_ACCESS_LEVEL = 4; | ||
| 110 : | const S32 BA_NOT_AGE_VERIFIED = 5; | ||
| 111 : | |||
| 112 : | // ParcelRelease flags | ||
| 113 : | const U32 PR_NONE = 0x0; | ||
| 114 : | const U32 PR_GOD_FORCE = (1 << 0); | ||
| 115 : | |||
| 116 : | enum EObjectCategory | ||
| 117 : | { | ||
| 118 : | OC_INVALID = -1, | ||
| 119 : | OC_NONE = 0, | ||
| 120 : | OC_TOTAL = 0, // yes zero, like OC_NONE | ||
| 121 : | OC_OWNER, | ||
| 122 : | OC_GROUP, | ||
| 123 : | OC_OTHER, | ||
| 124 : | OC_SELECTED, | ||
| 125 : | OC_TEMP, | ||
| 126 : | OC_COUNT | ||
| 127 : | }; | ||
| 128 : | |||
| 129 : | const S32 PARCEL_DETAILS_NAME = 0; | ||
| 130 : | const S32 PARCEL_DETAILS_DESC = 1; | ||
| 131 : | const S32 PARCEL_DETAILS_OWNER = 2; | ||
| 132 : | const S32 PARCEL_DETAILS_GROUP = 3; | ||
| 133 : | const S32 PARCEL_DETAILS_AREA = 4; | ||
| 134 : | |||
| 135 : | #endif |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

