Annotation of /linden_release/linden/indra/llmessage/llmessageconfig.h
Parent Directory
|
Revision Log
Revision 57 - (view) (download)
| 1 : | mjm | 57 | /** |
| 2 : | * @file llmessageconfig.h | ||
| 3 : | * @brief Live file handling for messaging | ||
| 4 : | * | ||
| 5 : | * $LicenseInfo:firstyear=2000&license=viewergpl$ | ||
| 6 : | * | ||
| 7 : | * Copyright (c) 2000-2008, 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 http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
| 21 : | * | ||
| 22 : | * By copying, modifying or distributing this software, you acknowledge | ||
| 23 : | * that you have read and understood your obligations described above, | ||
| 24 : | * and agree to abide by those obligations. | ||
| 25 : | * | ||
| 26 : | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
| 27 : | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
| 28 : | * COMPLETENESS OR PERFORMANCE. | ||
| 29 : | * $/LicenseInfo$ | ||
| 30 : | */ | ||
| 31 : | |||
| 32 : | #ifndef LL_MESSAGECONFIG_H | ||
| 33 : | #define LL_MESSAGECONFIG_H | ||
| 34 : | |||
| 35 : | #include <string> | ||
| 36 : | #include "llsd.h" | ||
| 37 : | |||
| 38 : | class LLSD; | ||
| 39 : | |||
| 40 : | class LLMessageConfig | ||
| 41 : | { | ||
| 42 : | public: | ||
| 43 : | enum Flavor { NO_FLAVOR=0, LLSD_FLAVOR=1, TEMPLATE_FLAVOR=2 }; | ||
| 44 : | enum SenderTrust { NOT_SET=0, UNTRUSTED=1, TRUSTED=2 }; | ||
| 45 : | |||
| 46 : | static void initClass(const std::string& server_name, | ||
| 47 : | const std::string& config_dir); | ||
| 48 : | static void useConfig(const LLSD& config); | ||
| 49 : | |||
| 50 : | static Flavor getServerDefaultFlavor(); | ||
| 51 : | static S32 getMaxQueuedEvents(); | ||
| 52 : | |||
| 53 : | // For individual messages | ||
| 54 : | static Flavor getMessageFlavor(const std::string& msg_name); | ||
| 55 : | static SenderTrust getSenderTrustedness(const std::string& msg_name); | ||
| 56 : | static bool isValidMessage(const std::string& msg_name); | ||
| 57 : | static bool onlySendLatest(const std::string& msg_name); | ||
| 58 : | static bool isCapBanned(const std::string& cap_name); | ||
| 59 : | static LLSD getConfigForMessage(const std::string& msg_name); | ||
| 60 : | }; | ||
| 61 : | #endif // LL_MESSAGECONFIG_H |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

