LLMessageConfig Class Reference

#include <llmessageconfig.h>

List of all members.

Public Types

enum  Flavor { NO_FLAVOR = 0, LLSD_FLAVOR = 1, TEMPLATE_FLAVOR = 2 }
enum  SenderTrust { NOT_SET = 0, UNTRUSTED = 1, TRUSTED = 2 }

Static Public Member Functions

static void initClass (const std::string &server_name, const std::string &config_dir)
static void useConfig (const LLSD &config)
static Flavor getServerDefaultFlavor ()
static S32 getMaxQueuedEvents ()
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 onlySendLatest (const std::string &msg_name)
static bool isCapBanned (const std::string &cap_name)
static LLSD getConfigForMessage (const std::string &msg_name)


Detailed Description

Definition at line 40 of file llmessageconfig.h.


Member Enumeration Documentation

Enumerator:
NO_FLAVOR 
LLSD_FLAVOR 
TEMPLATE_FLAVOR 

Definition at line 43 of file llmessageconfig.h.

Enumerator:
NOT_SET 
UNTRUSTED 
TRUSTED 

Definition at line 44 of file llmessageconfig.h.


Member Function Documentation

void LLMessageConfig::initClass ( const std::string &  server_name,
const std::string &  config_dir 
) [static]

Definition at line 195 of file llmessageconfig.cpp.

References LLMessageConfigFile::instance(), LL_DEBUGS, LL_ENDL, messageConfigFileName, sConfigDir, and sServerName.

Referenced by idle_startup(), and tut::LLMessageConfigTestData::LLMessageConfigTestData().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLMessageConfig::useConfig ( const LLSD config  )  [static]

LLMessageConfig::Flavor LLMessageConfig::getServerDefaultFlavor (  )  [static]

Definition at line 217 of file llmessageconfig.cpp.

References LLMessageConfigFile::instance(), LLSD_FLAVOR, LLMessageConfigFile::mServerDefault, NO_FLAVOR, and TEMPLATE_FLAVOR.

Referenced by LLMessageSystem::newMessageFast().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLMessageConfig::getMaxQueuedEvents (  )  [static]

Definition at line 232 of file llmessageconfig.cpp.

References LLMessageConfigFile::instance(), and LLMessageConfigFile::mMaxQueuedEvents.

Here is the call graph for this function:

LLMessageConfig::Flavor LLMessageConfig::getMessageFlavor ( const std::string &  msg_name  )  [static]

Definition at line 239 of file llmessageconfig.cpp.

References LLMessageConfigFile::instance(), LLSD_FLAVOR, LLMessageConfigFile::mMessages, NO_FLAVOR, and TEMPLATE_FLAVOR.

Referenced by LLMessageSystem::newMessageFast(), and LLMessageSystem::sendError().

Here is the call graph for this function:

Here is the caller graph for this function:

LLMessageConfig::SenderTrust LLMessageConfig::getSenderTrustedness ( const std::string &  msg_name  )  [static]

Definition at line 255 of file llmessageconfig.cpp.

References LLSD::asBoolean(), LLSD::has(), LLMessageConfigFile::instance(), LLMessageConfigFile::mMessages, NOT_SET, TRUSTED, and UNTRUSTED.

Referenced by LLTrustedMessageService::post().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLMessageConfig::isValidMessage ( const std::string &  msg_name  )  [static]

Definition at line 268 of file llmessageconfig.cpp.

References LLSD::has(), LLMessageConfigFile::instance(), llendl, llerrs, LLMessageConfigFile::mMessages, and sServerName.

Referenced by LLMessageSystem::dispatch().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLMessageConfig::onlySendLatest ( const std::string &  msg_name  )  [static]

Definition at line 279 of file llmessageconfig.cpp.

References LLSD::asBoolean(), LLMessageConfigFile::instance(), and LLMessageConfigFile::mMessages.

Here is the call graph for this function:

bool LLMessageConfig::isCapBanned ( const std::string &  cap_name  )  [static]

Definition at line 286 of file llmessageconfig.cpp.

References LLMessageConfigFile::instance(), and LLMessageConfigFile::isCapBanned().

Here is the call graph for this function:

LLSD LLMessageConfig::getConfigForMessage ( const std::string &  msg_name  )  [static]

Definition at line 294 of file llmessageconfig.cpp.

References LLMessageConfigFile::instance(), llendl, llerrs, LLMessageConfigFile::mMessages, and sServerName.

Here is the call graph for this function:


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:53:04 2008 for SecondLife by  doxygen 1.5.5