PageRenderTime 7ms CodeModel.GetById 1ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1
  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. #ifndef LL_LLQUERYFLAGS_H
  27. #define LL_LLQUERYFLAGS_H
  28. // Binary flags used for Find queries, shared between viewer and dataserver.
  29. // DirFindQuery flags
  30. const U32 DFQ_PEOPLE = 0x1 << 0;
  31. const U32 DFQ_ONLINE = 0x1 << 1;
  32. //const U32 DFQ_PLACES = 0x1 << 2;
  33. const U32 DFQ_EVENTS = 0x1 << 3; // This is not set by the 1.21 viewer, but I don't know about older versions. JC
  34. const U32 DFQ_GROUPS = 0x1 << 4;
  35. const U32 DFQ_DATE_EVENTS = 0x1 << 5;
  36. const U32 DFQ_AGENT_OWNED = 0x1 << 6;
  37. const U32 DFQ_FOR_SALE = 0x1 << 7;
  38. const U32 DFQ_GROUP_OWNED = 0x1 << 8;
  39. //const U32 DFQ_AUCTION = 0x1 << 9;
  40. const U32 DFQ_DWELL_SORT = 0x1 << 10;
  41. const U32 DFQ_PG_SIMS_ONLY = 0x1 << 11;
  42. const U32 DFQ_PICTURES_ONLY = 0x1 << 12;
  43. const U32 DFQ_PG_EVENTS_ONLY = 0x1 << 13;
  44. const U32 DFQ_MATURE_SIMS_ONLY = 0x1 << 14;
  45. const U32 DFQ_SORT_ASC = 0x1 << 15;
  46. const U32 DFQ_PRICE_SORT = 0x1 << 16;
  47. const U32 DFQ_PER_METER_SORT = 0x1 << 17;
  48. const U32 DFQ_AREA_SORT = 0x1 << 18;
  49. const U32 DFQ_NAME_SORT = 0x1 << 19;
  50. const U32 DFQ_LIMIT_BY_PRICE = 0x1 << 20;
  51. const U32 DFQ_LIMIT_BY_AREA = 0x1 << 21;
  52. const U32 DFQ_FILTER_MATURE = 0x1 << 22;
  53. const U32 DFQ_PG_PARCELS_ONLY = 0x1 << 23;
  54. const U32 DFQ_INC_PG = 0x1 << 24; // Flags appear in 1.23 viewer or later
  55. const U32 DFQ_INC_MATURE = 0x1 << 25;
  56. const U32 DFQ_INC_ADULT = 0x1 << 26;
  57. const U32 DFQ_INC_NEW_VIEWER = (DFQ_INC_PG | DFQ_INC_MATURE | DFQ_INC_ADULT); // Indicates 1.23 viewer or later
  58. const U32 DFQ_ADULT_SIMS_ONLY = 0x1 << 27;
  59. // Sell Type flags
  60. const U32 ST_AUCTION = 0x1 << 1;
  61. const U32 ST_NEWBIE = 0x1 << 2;
  62. const U32 ST_MAINLAND = 0x1 << 3;
  63. const U32 ST_ESTATE = 0x1 << 4;
  64. const U32 ST_ALL = 0xFFFFFFFF;
  65. // status flags embedded in search replay messages of classifieds, events, groups, and places.
  66. // Places
  67. const U32 STATUS_SEARCH_PLACES_NONE = 0x0;
  68. const U32 STATUS_SEARCH_PLACES_BANNEDWORD = 0x1 << 0;
  69. const U32 STATUS_SEARCH_PLACES_SHORTSTRING = 0x1 << 1;
  70. const U32 STATUS_SEARCH_PLACES_FOUNDNONE = 0x1 << 2;
  71. const U32 STATUS_SEARCH_PLACES_SEARCHDISABLED = 0x1 << 3;
  72. const U32 STATUS_SEARCH_PLACES_ESTATEEMPTY = 0x1 << 4;
  73. // Events
  74. const U32 STATUS_SEARCH_EVENTS_NONE = 0x0;
  75. const U32 STATUS_SEARCH_EVENTS_BANNEDWORD = 0x1 << 0;
  76. const U32 STATUS_SEARCH_EVENTS_SHORTSTRING = 0x1 << 1;
  77. const U32 STATUS_SEARCH_EVENTS_FOUNDNONE = 0x1 << 2;
  78. const U32 STATUS_SEARCH_EVENTS_SEARCHDISABLED = 0x1 << 3;
  79. const U32 STATUS_SEARCH_EVENTS_NODATEOFFSET = 0x1 << 4;
  80. const U32 STATUS_SEARCH_EVENTS_NOCATEGORY = 0x1 << 5;
  81. const U32 STATUS_SEARCH_EVENTS_NOQUERY = 0x1 << 6;
  82. //Classifieds
  83. const U32 STATUS_SEARCH_CLASSIFIEDS_NONE = 0x0;
  84. const U32 STATUS_SEARCH_CLASSIFIEDS_BANNEDWORD = 0x1 << 0;
  85. const U32 STATUS_SEARCH_CLASSIFIEDS_SHORTSTRING = 0x1 << 1;
  86. const U32 STATUS_SEARCH_CLASSIFIEDS_FOUNDNONE = 0x1 << 2;
  87. const U32 STATUS_SEARCH_CLASSIFIEDS_SEARCHDISABLED = 0x1 << 3;
  88. #endif