PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/llmessage/llqueryflags.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 102 lines | 54 code | 14 blank | 34 comment | 0 complexity | d07148c8ae9f98eae3f3fe5a38b63a82 MD5 | raw file
  1/** 
  2 * @file llqueryflags.h
  3 * @brief Flags for directory queries
  4 *
  5 * $LicenseInfo:firstyear=2003&license=viewerlgpl$
  6 * Second Life Viewer Source Code
  7 * Copyright (C) 2010, Linden Research, Inc.
  8 * 
  9 * This library is free software; you can redistribute it and/or
 10 * modify it under the terms of the GNU Lesser General Public
 11 * License as published by the Free Software Foundation;
 12 * version 2.1 of the License only.
 13 * 
 14 * This library is distributed in the hope that it will be useful,
 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 17 * Lesser General Public License for more details.
 18 * 
 19 * You should have received a copy of the GNU Lesser General Public
 20 * License along with this library; if not, write to the Free Software
 21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 22 * 
 23 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
 24 * $/LicenseInfo$
 25 */
 26
 27#ifndef LL_LLQUERYFLAGS_H
 28#define LL_LLQUERYFLAGS_H
 29
 30// Binary flags used for Find queries, shared between viewer and dataserver.
 31
 32// DirFindQuery flags
 33const U32 DFQ_PEOPLE			= 0x1 << 0;
 34const U32 DFQ_ONLINE			= 0x1 << 1;
 35//const U32 DFQ_PLACES			= 0x1 << 2;
 36const U32 DFQ_EVENTS			= 0x1 << 3; // This is not set by the 1.21 viewer, but I don't know about older versions. JC
 37const U32 DFQ_GROUPS			= 0x1 << 4;
 38const U32 DFQ_DATE_EVENTS		= 0x1 << 5;
 39
 40const U32 DFQ_AGENT_OWNED		= 0x1 << 6;
 41const U32 DFQ_FOR_SALE			= 0x1 << 7;
 42const U32 DFQ_GROUP_OWNED		= 0x1 << 8;
 43//const U32 DFQ_AUCTION			= 0x1 << 9;
 44const U32 DFQ_DWELL_SORT		= 0x1 << 10;
 45const U32 DFQ_PG_SIMS_ONLY		= 0x1 << 11;
 46const U32 DFQ_PICTURES_ONLY		= 0x1 << 12;
 47const U32 DFQ_PG_EVENTS_ONLY	= 0x1 << 13;
 48const U32 DFQ_MATURE_SIMS_ONLY  = 0x1 << 14;
 49
 50const U32 DFQ_SORT_ASC			= 0x1 << 15;
 51const U32 DFQ_PRICE_SORT		= 0x1 << 16;
 52const U32 DFQ_PER_METER_SORT	= 0x1 << 17;
 53const U32 DFQ_AREA_SORT			= 0x1 << 18;
 54const U32 DFQ_NAME_SORT			= 0x1 << 19;
 55
 56const U32 DFQ_LIMIT_BY_PRICE	= 0x1 << 20;
 57const U32 DFQ_LIMIT_BY_AREA		= 0x1 << 21;
 58
 59const U32 DFQ_FILTER_MATURE		= 0x1 << 22;
 60const U32 DFQ_PG_PARCELS_ONLY	= 0x1 << 23;
 61
 62const U32 DFQ_INC_PG		 	= 0x1 << 24;	// Flags appear in 1.23 viewer or later
 63const U32 DFQ_INC_MATURE     	= 0x1 << 25;
 64const U32 DFQ_INC_ADULT     	= 0x1 << 26;
 65const U32 DFQ_INC_NEW_VIEWER	= (DFQ_INC_PG | DFQ_INC_MATURE | DFQ_INC_ADULT);	// Indicates 1.23 viewer or later
 66
 67const U32 DFQ_ADULT_SIMS_ONLY	= 0x1 << 27;
 68
 69// Sell Type flags
 70const U32 ST_AUCTION	= 0x1 << 1;
 71const U32 ST_NEWBIE		= 0x1 << 2;
 72const U32 ST_MAINLAND	= 0x1 << 3;
 73const U32 ST_ESTATE		= 0x1 << 4;
 74
 75const U32 ST_ALL		= 0xFFFFFFFF;
 76
 77// status flags embedded in search replay messages of classifieds, events, groups, and places.
 78// Places
 79const U32 STATUS_SEARCH_PLACES_NONE				= 0x0;
 80const U32 STATUS_SEARCH_PLACES_BANNEDWORD		= 0x1 << 0;
 81const U32 STATUS_SEARCH_PLACES_SHORTSTRING		= 0x1 << 1;
 82const U32 STATUS_SEARCH_PLACES_FOUNDNONE		= 0x1 << 2;
 83const U32 STATUS_SEARCH_PLACES_SEARCHDISABLED	= 0x1 << 3;
 84const U32 STATUS_SEARCH_PLACES_ESTATEEMPTY		= 0x1 << 4;
 85// Events
 86const U32 STATUS_SEARCH_EVENTS_NONE				= 0x0;
 87const U32 STATUS_SEARCH_EVENTS_BANNEDWORD		= 0x1 << 0;
 88const U32 STATUS_SEARCH_EVENTS_SHORTSTRING		= 0x1 << 1;
 89const U32 STATUS_SEARCH_EVENTS_FOUNDNONE		= 0x1 << 2;
 90const U32 STATUS_SEARCH_EVENTS_SEARCHDISABLED	= 0x1 << 3;
 91const U32 STATUS_SEARCH_EVENTS_NODATEOFFSET		= 0x1 << 4;
 92const U32 STATUS_SEARCH_EVENTS_NOCATEGORY		= 0x1 << 5;
 93const U32 STATUS_SEARCH_EVENTS_NOQUERY		= 0x1 << 6;
 94
 95//Classifieds
 96const U32 STATUS_SEARCH_CLASSIFIEDS_NONE			= 0x0;
 97const U32 STATUS_SEARCH_CLASSIFIEDS_BANNEDWORD		= 0x1 << 0;
 98const U32 STATUS_SEARCH_CLASSIFIEDS_SHORTSTRING		= 0x1 << 1;
 99const U32 STATUS_SEARCH_CLASSIFIEDS_FOUNDNONE		= 0x1 << 2;
100const U32 STATUS_SEARCH_CLASSIFIEDS_SEARCHDISABLED	= 0x1 << 3;
101
102#endif