LLMuteList Class Reference

#include <llmutelist.h>

Inheritance diagram for LLMuteList:

Inheritance graph
[legend]
Collaboration diagram for LLMuteList:

Collaboration graph
[legend]

List of all members.

Public Types

enum  EAutoReason { AR_IM = 0, AR_MONEY = 1, AR_INVENTORY = 2, AR_COUNT }

Public Member Functions

 LLMuteList ()
 ~LLMuteList ()
void addObserver (LLMuteListObserver *observer)
void removeObserver (LLMuteListObserver *observer)
BOOL add (const LLMute &mute, U32 flags=0)
BOOL remove (const LLMute &mute, U32 flags=0)
BOOL autoRemove (const LLUUID &agent_id, const EAutoReason reason, const LLString &first_name="", const LLString &last_name="")
BOOL isMuted (const LLUUID &id, const LLString &name=LLString::null, U32 flags=0) const
BOOL isMuted (const LLUUID &id, U32 flags) const
BOOL isLinden (const LLString &name) const
BOOL isLoaded () const
std::vector< LLMutegetMutes () const
void requestFromServer (const LLUUID &agent_id)
void cache (const LLUUID &agent_id)
void setSavedResidentVolume (const LLUUID &id, F32 volume)
F32 getSavedResidentVolume (const LLUUID &id)

Static Public Member Functions

static LLMuteListgetInstance ()

Private Types

typedef std::set< LLMute,
compare_by_id
mute_set_t
typedef std::set< LLStringstring_set_t
typedef std::set
< LLMuteListObserver * > 
observer_set_t
typedef std::map< LLUUID, F32user_volume_map_t

Private Member Functions

BOOL loadFromFile (const LLString &filename)
BOOL saveToFile (const LLString &filename)
void setLoaded ()
void notifyObservers ()
void updateAdd (const LLMute &mute)
void updateRemove (const LLMute &mute)

Static Private Member Functions

static void processMuteListUpdate (LLMessageSystem *msg, void **)
static void processUseCachedMuteList (LLMessageSystem *msg, void **)
static void onFileMuteList (void **user_data, S32 code, LLExtStat ext_status)

Private Attributes

mute_set_t mMutes
string_set_t mLegacyMutes
observer_set_t mObservers
BOOL mIsLoaded

Static Private Attributes

static user_volume_map_t sUserVolumeSettings

Friends

class LLDispatchEmptyMuteList

Classes

struct  compare_by_id
struct  compare_by_name


Detailed Description

Definition at line 82 of file llmutelist.h.


Member Typedef Documentation

typedef std::set<LLMute, compare_by_id> LLMuteList::mute_set_t [private]

Definition at line 164 of file llmutelist.h.

typedef std::set<LLString> LLMuteList::string_set_t [private]

Definition at line 167 of file llmutelist.h.

typedef std::set<LLMuteListObserver*> LLMuteList::observer_set_t [private]

Definition at line 170 of file llmutelist.h.

typedef std::map<LLUUID, F32> LLMuteList::user_volume_map_t [private]

Definition at line 177 of file llmutelist.h.


Member Enumeration Documentation

Enumerator:
AR_IM 
AR_MONEY 
AR_INVENTORY 
AR_COUNT 

Definition at line 86 of file llmutelist.h.


Constructor & Destructor Documentation

LLMuteList::LLMuteList (  ) 

LLMuteList::~LLMuteList (  ) 

Definition at line 211 of file llmutelist.cpp.

References gDirUtilp, LLDir::getExpandedFilename(), LL_PATH_PER_SL_ACCOUNT, llofstream, sUserVolumeSettings, and LLSDSerialize::toPrettyXML().

Here is the call graph for this function:


Member Function Documentation

LLMuteList * LLMuteList::getInstance (  )  [static]

Reimplemented from LLSingleton< LLMuteList >.

Definition at line 167 of file llmutelist.cpp.

References _PREHASH_MuteListUpdate, _PREHASH_UseCachedMuteList, FALSE, LLSingleton< T >::getInstance(), gMessageSystem, NULL, processMuteListUpdate(), processUseCachedMuteList(), LLMessageSystem::setHandlerFuncFast(), and TRUE.

Referenced by LLIMMgr::addMessage(), callback_load_url_name(), LLFloaterMute::callbackMuteByName(), LLAppViewer::cleanup(), LLToolDragAndDrop::commitGiveInventoryCategory(), LLToolDragAndDrop::commitGiveInventoryItem(), deliver_message(), LLFloaterIMPanel::draw(), LLPipeline::generateImpostor(), LLFloaterPay::give(), LLObjectMute::handleEvent(), idle_startup(), LLVOAvatar::idleUpdate(), inventory_offer_callback(), inventory_offer_handler(), inventory_offer_mute_callback(), LLIMMgr::inviteToSession(), LLIMMgr::inviteUserResponse(), LLSpeaker::LLSpeaker(), LLIMMgr::noteMutedUsers(), LLPanelAvatar::onClickMute(), LLFloaterChat::onClickMute(), LLPanelActiveSpeakers::onClickMuteTextCommit(), LLFloaterIMPanel::onClickMuteVoice(), LLPanelActiveSpeakers::onClickMuteVoiceCommit(), LLFloaterMute::onClickRemove(), onFileMuteList(), LLFloaterMute::onPickUser(), LLPanelActiveSpeakers::onVolumeChange(), LLDispatchEmptyMuteList::operator()(), LLToolPie::pickAndShowMenu(), LLViewerChatterBoxInvitation::post(), LLFloaterMute::postBuild(), process_attached_sound(), process_chat_from_simulator(), process_improved_im(), process_load_url(), process_offer_callingcard(), process_preload_sound(), process_script_question(), process_sound_trigger(), LLSelectMgr::processObjectPropertiesFamily(), LLVOAvatar::processSingleAnimationStateChange(), processUseCachedMuteList(), LLFloaterMute::refreshMuteList(), LLPanelActiveSpeakers::refreshSpeakers(), request_initial_instant_messages(), script_question_cb(), LLVoiceClient::stateMachine(), LLViewerObject::unpackParticleSource(), LLVOAvatar::updateCharacter(), LLAudioSourceVO::updateGain(), and LLVoiceClient::updateMuteState().

Here is the call graph for this function:

void LLMuteList::addObserver ( LLMuteListObserver observer  ) 

Definition at line 779 of file llmutelist.cpp.

References mObservers.

Referenced by LLFloaterMute::postBuild(), and LLVoiceClient::stateMachine().

Here is the caller graph for this function:

void LLMuteList::removeObserver ( LLMuteListObserver observer  ) 

Definition at line 784 of file llmutelist.cpp.

References mObservers.

BOOL LLMuteList::add ( const LLMute mute,
U32  flags = 0 
)

BOOL LLMuteList::remove ( const LLMute mute,
U32  flags = 0 
)

BOOL LLMuteList::autoRemove ( const LLUUID agent_id,
const EAutoReason  reason,
const LLString first_name = "",
const LLString last_name = "" 
)

BOOL LLMuteList::isMuted ( const LLUUID id,
const LLString name = LLString::null,
U32  flags = 0 
) const

BOOL LLMuteList::isMuted ( const LLUUID id,
U32  flags 
) const [inline]

Definition at line 116 of file llmutelist.h.

References isMuted(), and LLStringBase< char >::null.

Here is the call graph for this function:

BOOL LLMuteList::isLinden ( const LLString name  )  const

BOOL LLMuteList::isLoaded (  )  const [inline]

Definition at line 120 of file llmutelist.h.

References mIsLoaded.

std::vector< LLMute > LLMuteList::getMutes (  )  const

Definition at line 519 of file llmutelist.cpp.

References mLegacyMutes, mMutes, and LLUUID::null.

Referenced by LLFloaterMute::refreshMuteList().

Here is the caller graph for this function:

void LLMuteList::requestFromServer ( const LLUUID agent_id  ) 

void LLMuteList::cache ( const LLUUID agent_id  ) 

Definition at line 693 of file llmutelist.cpp.

References gDirUtilp, LLDir::getExpandedFilename(), LL_MAX_PATH, LL_PATH_CACHE, mIsLoaded, saveToFile(), LLUUID::toString(), and UUID_STR_LENGTH.

Referenced by LLAppViewer::cleanup().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLMuteList::setSavedResidentVolume ( const LLUUID id,
F32  volume 
)

Definition at line 706 of file llmutelist.cpp.

References sUserVolumeSettings.

Referenced by LLPanelActiveSpeakers::onVolumeChange().

Here is the caller graph for this function:

F32 LLMuteList::getSavedResidentVolume ( const LLUUID id  ) 

Definition at line 712 of file llmutelist.cpp.

References sUserVolumeSettings.

BOOL LLMuteList::loadFromFile ( const LLString filename  )  [private]

Definition at line 545 of file llmutelist.cpp.

References LLMute::BY_NAME, FALSE, LLFile::fopen(), LLUUID::isNull(), llendl, llwarns, MAX_STRING, LLMute::mID, mLegacyMutes, mMutes, LLMute::mName, LLMute::mType, S32, setLoaded(), and TRUE.

Referenced by onFileMuteList(), and processUseCachedMuteList().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLMuteList::saveToFile ( const LLString filename  )  [private]

Definition at line 595 of file llmutelist.cpp.

References LLMute::BY_NAME, FALSE, LLFile::fopen(), llendl, llwarns, mLegacyMutes, mMutes, LLUUID::null, S32, LLUUID::toString(), TRUE, and UUID_STR_LENGTH.

Referenced by cache().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLMuteList::setLoaded (  )  [private]

Definition at line 789 of file llmutelist.cpp.

References mIsLoaded, notifyObservers(), and TRUE.

Referenced by loadFromFile(), LLDispatchEmptyMuteList::operator()(), and remove().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLMuteList::notifyObservers (  )  [private]

Definition at line 795 of file llmutelist.cpp.

References mObservers, and LLMuteListObserver::onChange().

Referenced by add(), and setLoaded().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLMuteList::updateAdd ( const LLMute mute  )  [private]

void LLMuteList::updateRemove ( const LLMute mute  )  [private]

void LLMuteList::processMuteListUpdate ( LLMessageSystem msg,
void **   
) [static, private]

void LLMuteList::processUseCachedMuteList ( LLMessageSystem msg,
void **   
) [static, private]

Definition at line 755 of file llmutelist.cpp.

References gAgent, gDirUtilp, LLDir::getExpandedFilename(), LLAgent::getID(), getInstance(), LL_MAX_PATH, LL_PATH_CACHE, llendl, llinfos, loadFromFile(), LLUUID::toString(), and UUID_STR_LENGTH.

Referenced by getInstance().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLMuteList::onFileMuteList ( void **  user_data,
S32  code,
LLExtStat  ext_status 
) [static, private]

Definition at line 766 of file llmutelist.cpp.

References getInstance(), llendl, llinfos, loadFromFile(), and LLFile::remove().

Referenced by processMuteListUpdate().

Here is the call graph for this function:

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class LLDispatchEmptyMuteList [friend]

Definition at line 175 of file llmutelist.h.


Member Data Documentation

Definition at line 165 of file llmutelist.h.

Referenced by add(), getMutes(), isMuted(), loadFromFile(), remove(), and saveToFile().

Definition at line 168 of file llmutelist.h.

Referenced by add(), getMutes(), isMuted(), loadFromFile(), remove(), and saveToFile().

Definition at line 171 of file llmutelist.h.

Referenced by addObserver(), notifyObservers(), and removeObserver().

Definition at line 173 of file llmutelist.h.

Referenced by cache(), isLoaded(), setLoaded(), and updateAdd().

std::map< LLUUID, F32 > LLMuteList::sUserVolumeSettings [static, private]


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

Generated on Fri May 16 08:54:24 2008 for SecondLife by  doxygen 1.5.5