aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llmessageconfig.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:02 -0500
committerJacek Antonelli2008-08-15 23:45:02 -0500
commitd644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd (patch)
tree7ed0c2c27d717801238a2e6b5749cd5bf88c3059 /linden/indra/llmessage/llmessageconfig.h
parentSecond Life viewer sources 1.17.3.0 (diff)
downloadmeta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.zip
meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.tar.gz
meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.tar.bz2
meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.tar.xz
Second Life viewer sources 1.18.0.6
Diffstat (limited to 'linden/indra/llmessage/llmessageconfig.h')
-rw-r--r--linden/indra/llmessage/llmessageconfig.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/linden/indra/llmessage/llmessageconfig.h b/linden/indra/llmessage/llmessageconfig.h
index 1664ce6..ca09c27 100644
--- a/linden/indra/llmessage/llmessageconfig.h
+++ b/linden/indra/llmessage/llmessageconfig.h
@@ -31,21 +31,24 @@
31 31
32#include <string> 32#include <string>
33 33
34class LLSD;
35
34class LLMessageConfig 36class LLMessageConfig
35{ 37{
36public: 38public:
39 enum Flavor { NO_FLAVOR=0, LLSD_FLAVOR=1, TEMPLATE_FLAVOR=2 };
40 enum SenderTrust { NOT_SET=0, UNTRUSTED=1, TRUSTED=2 };
41
37 static void initClass(const std::string& server_name, 42 static void initClass(const std::string& server_name,
38 const std::string& config_dir); 43 const std::string& config_dir);
39 // force loading of config file during startup process 44 static void useConfig(const LLSD& config);
40 // so it can be used for startup features
41 45
42 static bool isServerDefaultBuilderLLSD(); 46 static Flavor getServerDefaultFlavor();
43 static bool isServerDefaultBuilderTemplate();
44 47
45 // For individual messages 48 // For individual messages
46 static bool isMessageBuiltLLSD(const std::string& msg_name); 49 static Flavor getMessageFlavor(const std::string& msg_name);
47 static bool isMessageBuiltTemplate(const std::string& msg_name); 50 static SenderTrust getSenderTrustedness(const std::string& msg_name);
48 static bool isMessageTrusted(const std::string& msg_name); 51 static bool isValidMessage(const std::string& msg_name);
49 static bool isValidUntrustedMessage(const std::string& msg_name); 52 static bool isCapBanned(const std::string& cap_name);
50}; 53};
51#endif // LL_MESSAGECONFIG_H 54#endif // LL_MESSAGECONFIG_H