diff options
Diffstat (limited to 'linden/indra/llmessage/llclassifiedflags.h')
-rw-r--r-- | linden/indra/llmessage/llclassifiedflags.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/linden/indra/llmessage/llclassifiedflags.h b/linden/indra/llmessage/llclassifiedflags.h index 6c15042..9d3e49b 100644 --- a/linden/indra/llmessage/llclassifiedflags.h +++ b/linden/indra/llmessage/llclassifiedflags.h | |||
@@ -17,7 +17,8 @@ | |||
17 | * There are special exceptions to the terms and conditions of the GPL as | 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 | 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 | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | 20 | * online at |
21 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
21 | * | 22 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 23 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 24 | * that you have read and understood your obligations described above, |
@@ -42,12 +43,23 @@ const U8 CLASSIFIED_FLAG_UPDATE_TIME= 1 << 4; | |||
42 | const U8 CLASSIFIED_FLAG_AUTO_RENEW = 1 << 5; | 43 | const U8 CLASSIFIED_FLAG_AUTO_RENEW = 1 << 5; |
43 | 44 | ||
44 | const U8 CLASSIFIED_QUERY_FILTER_MATURE = 1 << 1; | 45 | const U8 CLASSIFIED_QUERY_FILTER_MATURE = 1 << 1; |
45 | const U8 CLASSIFIED_QUERY_FILTER_ENABLED = 1 << 2; | 46 | //const U8 CLASSIFIED_QUERY_FILTER_ENABLED = 1 << 2; |
46 | const U8 CLASSIFIED_QUERY_FILTER_PRICE = 1 << 3; | 47 | //const U8 CLASSIFIED_QUERY_FILTER_PRICE = 1 << 3; |
48 | |||
49 | // These are new with Adult-enabled viewers (1.23 and later) | ||
50 | const U8 CLASSIFIED_QUERY_INC_PG = 1 << 2; | ||
51 | const U8 CLASSIFIED_QUERY_INC_MATURE = 1 << 3; | ||
52 | const U8 CLASSIFIED_QUERY_INC_ADULT = 1 << 6; | ||
53 | const U8 CLASSIFIED_QUERY_INC_NEW_VIEWER = (CLASSIFIED_QUERY_INC_PG | CLASSIFIED_QUERY_INC_MATURE | CLASSIFIED_QUERY_INC_ADULT); | ||
47 | 54 | ||
48 | const S32 MAX_CLASSIFIEDS = 100; | 55 | const S32 MAX_CLASSIFIEDS = 100; |
49 | 56 | ||
50 | ClassifiedFlags pack_classified_flags(BOOL is_mature, BOOL auto_renew); | 57 | // This function is used in AO viewers to pack old query flags into the request |
58 | // so that they can talk to old dataservers properly. When the AO servers are deployed on agni | ||
59 | // we can revert back to ClassifiedFlags pack_classified_flags and get rider of this one. | ||
60 | ClassifiedFlags pack_classified_flags_request(BOOL auto_renew, BOOL is_pg, BOOL is_mature, BOOL is_adult); | ||
61 | |||
62 | ClassifiedFlags pack_classified_flags(BOOL auto_renew, BOOL is_pg, BOOL is_mature, BOOL is_adult); | ||
51 | bool is_cf_mature(ClassifiedFlags flags); | 63 | bool is_cf_mature(ClassifiedFlags flags); |
52 | //bool is_cf_enabled(ClassifiedFlags flags); | 64 | //bool is_cf_enabled(ClassifiedFlags flags); |
53 | bool is_cf_update_time(ClassifiedFlags flags); | 65 | bool is_cf_update_time(ClassifiedFlags flags); |