summaryrefslogtreecommitdiff
path: root/indra/llmessage/llmessageconfig.h
diff options
context:
space:
mode:
authorTess Chu <tess@lindenlab.com>2007-07-11 21:29:02 +0000
committerTess Chu <tess@lindenlab.com>2007-07-11 21:29:02 +0000
commit57b8fef824b6d7f37c5be5812ebffa39ab2e8093 (patch)
treef89014544fc276b283a36eb2e0cb52e93806a44a /indra/llmessage/llmessageconfig.h
parenta6769f262ff910949a7e1c81cf98e52ddfc2d44a (diff)
svn merge --ignore-ancestry svn+ssh://svn/svn/linden/release@65088 svn+ssh://svn/svn/linden/branches/release-candidate@65078 -> release Paired by Tess and rdw.
Diffstat (limited to 'indra/llmessage/llmessageconfig.h')
-rw-r--r--indra/llmessage/llmessageconfig.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/indra/llmessage/llmessageconfig.h b/indra/llmessage/llmessageconfig.h
index 2fb6f2077e..a99cdc46fa 100644
--- a/indra/llmessage/llmessageconfig.h
+++ b/indra/llmessage/llmessageconfig.h
@@ -11,21 +11,24 @@
#include <string>
+class LLSD;
+
class LLMessageConfig
{
public:
+ enum Flavor { NO_FLAVOR=0, LLSD_FLAVOR=1, TEMPLATE_FLAVOR=2 };
+ enum SenderTrust { NOT_SET=0, UNTRUSTED=1, TRUSTED=2 };
+
static void initClass(const std::string& server_name,
const std::string& config_dir);
- // force loading of config file during startup process
- // so it can be used for startup features
+ static void useConfig(const LLSD& config);
- static bool isServerDefaultBuilderLLSD();
- static bool isServerDefaultBuilderTemplate();
+ static Flavor getServerDefaultFlavor();
// For individual messages
- static bool isMessageBuiltLLSD(const std::string& msg_name);
- static bool isMessageBuiltTemplate(const std::string& msg_name);
- static bool isMessageTrusted(const std::string& msg_name);
- static bool isValidUntrustedMessage(const std::string& msg_name);
+ static Flavor getMessageFlavor(const std::string& msg_name);
+ static SenderTrust getSenderTrustedness(const std::string& msg_name);
+ static bool isValidMessage(const std::string& msg_name);
+ static bool isCapBanned(const std::string& cap_name);
};
#endif // LL_MESSAGECONFIG_H