diff options
Diffstat (limited to 'linden/indra/newview/llmutelist.h')
-rw-r--r-- | linden/indra/newview/llmutelist.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/linden/indra/newview/llmutelist.h b/linden/indra/newview/llmutelist.h index e1a87c8..0a8c6aa 100644 --- a/linden/indra/newview/llmutelist.h +++ b/linden/indra/newview/llmutelist.h | |||
@@ -82,6 +82,15 @@ public: | |||
82 | class LLMuteList : public LLSingleton<LLMuteList> | 82 | class LLMuteList : public LLSingleton<LLMuteList> |
83 | { | 83 | { |
84 | public: | 84 | public: |
85 | // reasons for auto-unmuting a resident | ||
86 | enum EAutoReason | ||
87 | { | ||
88 | AR_IM = 0, // agent IMed a muted resident | ||
89 | AR_MONEY = 1, // agent paid L$ to a muted resident | ||
90 | AR_INVENTORY = 2, // agent offered inventory to a muted resident | ||
91 | AR_COUNT // enum count | ||
92 | }; | ||
93 | |||
85 | LLMuteList(); | 94 | LLMuteList(); |
86 | ~LLMuteList(); | 95 | ~LLMuteList(); |
87 | 96 | ||
@@ -98,6 +107,7 @@ public: | |||
98 | 107 | ||
99 | // Remove both normal and legacy mutes, for any or all properties. | 108 | // Remove both normal and legacy mutes, for any or all properties. |
100 | BOOL remove(const LLMute& mute, U32 flags = 0); | 109 | BOOL remove(const LLMute& mute, U32 flags = 0); |
110 | BOOL autoRemove(const LLUUID& agent_id, const EAutoReason reason, const LLString& first_name = "", const LLString& last_name = ""); | ||
101 | 111 | ||
102 | // Name is required to test against legacy text-only mutes. | 112 | // Name is required to test against legacy text-only mutes. |
103 | BOOL isMuted(const LLUUID& id, const LLString& name = LLString::null, U32 flags = 0) const; | 113 | BOOL isMuted(const LLUUID& id, const LLString& name = LLString::null, U32 flags = 0) const; |