llqueryflags.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /**
  2. * @file llqueryflags.h
  3. * @brief Flags for directory queries
  4. *
  5. * $LicenseInfo:firstyear=2003&license=viewergpl$
  6. *
  7. * Copyright (c) 2003-2009, Linden Research, Inc.
  8. *
  9. * Second Life Viewer Source Code
  10. * The source code in this file ("Source Code") is provided by Linden Lab
  11. * to you under the terms of the GNU General Public License, version 2.0
  12. * ("GPL"), unless you have obtained a separate licensing agreement
  13. * ("Other License"), formally executed by you and Linden Lab. Terms of
  14. * the GPL can be found in doc/GPL-license.txt in this distribution, or
  15. * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
  16. *
  17. * There are special exceptions to the terms and conditions of the GPL as
  18. * it is applied to this Source Code. View the full text of the exception
  19. * in the file doc/FLOSS-exception.txt in this software distribution, or
  20. * online at
  21. * http://secondlifegrid.net/programs/open_source/licensing/flossexception
  22. *
  23. * By copying, modifying or distributing this software, you acknowledge
  24. * that you have read and understood your obligations described above,
  25. * and agree to abide by those obligations.
  26. *
  27. * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
  28. * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
  29. * COMPLETENESS OR PERFORMANCE.
  30. * $/LicenseInfo$
  31. */
  32. #ifndef LL_LLQUERYFLAGS_H
  33. #define LL_LLQUERYFLAGS_H
  34. // Binary flags used for Find queries, shared between viewer and dataserver.
  35. // DirFindQuery flags
  36. constexpr U32 DFQ_PEOPLE = 0x1 << 0;
  37. constexpr U32 DFQ_ONLINE = 0x1 << 1;
  38. //constexpr U32 DFQ_PLACES = 0x1 << 2;
  39. constexpr U32 DFQ_EVENTS = 0x1 << 3;
  40. constexpr U32 DFQ_GROUPS = 0x1 << 4;
  41. constexpr U32 DFQ_DATE_EVENTS = 0x1 << 5;
  42. constexpr U32 DFQ_AGENT_OWNED = 0x1 << 6;
  43. constexpr U32 DFQ_FOR_SALE = 0x1 << 7;
  44. constexpr U32 DFQ_GROUP_OWNED = 0x1 << 8;
  45. //constexpr U32 DFQ_AUCTION = 0x1 << 9;
  46. constexpr U32 DFQ_DWELL_SORT = 0x1 << 10;
  47. constexpr U32 DFQ_PG_SIMS_ONLY = 0x1 << 11;
  48. constexpr U32 DFQ_PICTURES_ONLY = 0x1 << 12;
  49. constexpr U32 DFQ_PG_EVENTS_ONLY = 0x1 << 13;
  50. constexpr U32 DFQ_MATURE_SIMS_ONLY = 0x1 << 14;
  51. constexpr U32 DFQ_SORT_ASC = 0x1 << 15;
  52. constexpr U32 DFQ_PRICE_SORT = 0x1 << 16;
  53. constexpr U32 DFQ_PER_METER_SORT = 0x1 << 17;
  54. constexpr U32 DFQ_AREA_SORT = 0x1 << 18;
  55. constexpr U32 DFQ_NAME_SORT = 0x1 << 19;
  56. constexpr U32 DFQ_LIMIT_BY_PRICE = 0x1 << 20;
  57. constexpr U32 DFQ_LIMIT_BY_AREA = 0x1 << 21;
  58. constexpr U32 DFQ_FILTER_MATURE = 0x1 << 22;
  59. constexpr U32 DFQ_PG_PARCELS_ONLY = 0x1 << 23;
  60. constexpr U32 DFQ_INC_PG = 0x1 << 24;
  61. constexpr U32 DFQ_INC_MATURE = 0x1 << 25;
  62. constexpr U32 DFQ_INC_ADULT = 0x1 << 26;
  63. constexpr U32 DFQ_ADULT_SIMS_ONLY = 0x1 << 27;
  64. // Sell Type flags
  65. constexpr U32 ST_AUCTION = 0x1 << 1;
  66. constexpr U32 ST_NEWBIE = 0x1 << 2;
  67. constexpr U32 ST_MAINLAND = 0x1 << 3;
  68. constexpr U32 ST_ESTATE = 0x1 << 4;
  69. constexpr U32 ST_ALL = 0xFFFFFFFF;
  70. // Status flags embedded in search replay messages of classifieds, events,
  71. // groups, and places.
  72. // Places
  73. constexpr U32 STATUS_SEARCH_PLACES_NONE = 0x0;
  74. constexpr U32 STATUS_SEARCH_PLACES_BANNEDWORD = 0x1 << 0;
  75. constexpr U32 STATUS_SEARCH_PLACES_SHORTSTRING = 0x1 << 1;
  76. constexpr U32 STATUS_SEARCH_PLACES_FOUNDNONE = 0x1 << 2;
  77. constexpr U32 STATUS_SEARCH_PLACES_SEARCHDISABLED = 0x1 << 3;
  78. constexpr U32 STATUS_SEARCH_PLACES_ESTATEEMPTY = 0x1 << 4;
  79. // Events
  80. constexpr U32 STATUS_SEARCH_EVENTS_NONE = 0x0;
  81. constexpr U32 STATUS_SEARCH_EVENTS_BANNEDWORD = 0x1 << 0;
  82. constexpr U32 STATUS_SEARCH_EVENTS_SHORTSTRING = 0x1 << 1;
  83. constexpr U32 STATUS_SEARCH_EVENTS_FOUNDNONE = 0x1 << 2;
  84. constexpr U32 STATUS_SEARCH_EVENTS_SEARCHDISABLED = 0x1 << 3;
  85. constexpr U32 STATUS_SEARCH_EVENTS_NODATEOFFSET = 0x1 << 4;
  86. constexpr U32 STATUS_SEARCH_EVENTS_NOCATEGORY = 0x1 << 5;
  87. constexpr U32 STATUS_SEARCH_EVENTS_NOQUERY = 0x1 << 6;
  88. // Classifieds
  89. constexpr U32 STATUS_SEARCH_CLASSIFIEDS_NONE = 0x0;
  90. constexpr U32 STATUS_SEARCH_CLASSIFIEDS_BANNEDWORD = 0x1 << 0;
  91. constexpr U32 STATUS_SEARCH_CLASSIFIEDS_SHORTSTRING = 0x1 << 1;
  92. constexpr U32 STATUS_SEARCH_CLASSIFIEDS_FOUNDNONE = 0x1 << 2;
  93. constexpr U32 STATUS_SEARCH_CLASSIFIEDS_SEARCHDISABLED = 0x1 << 3;
  94. #endif