aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llmutelist.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llmutelist.h
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/newview/llmutelist.h')
-rw-r--r--linden/indra/newview/llmutelist.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/linden/indra/newview/llmutelist.h b/linden/indra/newview/llmutelist.h
index fa38cde..400f13e 100644
--- a/linden/indra/newview/llmutelist.h
+++ b/linden/indra/newview/llmutelist.h
@@ -60,21 +60,21 @@ public:
60 flagAll = 0x0000000F // Mask of all currently defined flags 60 flagAll = 0x0000000F // Mask of all currently defined flags
61 }; 61 };
62 62
63 LLMute(const LLUUID& id, const LLString& name = LLString(), EType type = BY_NAME, U32 flags = 0) 63 LLMute(const LLUUID& id, const std::string& name = std::string(), EType type = BY_NAME, U32 flags = 0)
64 : mID(id), mName(name), mType(type),mFlags(flags) { } 64 : mID(id), mName(name), mType(type),mFlags(flags) { }
65 65
66 // Returns name + suffix based on type 66 // Returns name + suffix based on type
67 // For example: "James Tester (resident)" 67 // For example: "James Tester (resident)"
68 LLString getDisplayName() const; 68 std::string getDisplayName() const;
69 69
70 // Converts a UI name into just the agent or object name 70 // Converts a UI name into just the agent or object name
71 // For example: "James Tester (resident)" sets the name to "James Tester" 71 // For example: "James Tester (resident)" sets the name to "James Tester"
72 // and the type to AGENT. 72 // and the type to AGENT.
73 void setFromDisplayName(const LLString& display_name); 73 void setFromDisplayName(const std::string& display_name);
74 74
75public: 75public:
76 LLUUID mID; // agent or object id 76 LLUUID mID; // agent or object id
77 LLString mName; // agent or object name 77 std::string mName; // agent or object name
78 EType mType; // needed for UI display of existing mutes 78 EType mType; // needed for UI display of existing mutes
79 U32 mFlags; // flags pertaining to this mute entry 79 U32 mFlags; // flags pertaining to this mute entry
80}; 80};
@@ -107,15 +107,15 @@ public:
107 107
108 // Remove both normal and legacy mutes, for any or all properties. 108 // Remove both normal and legacy mutes, for any or all properties.
109 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 = ""); 110 BOOL autoRemove(const LLUUID& agent_id, const EAutoReason reason, const std::string& first_name = LLStringUtil::null, const std::string& last_name = LLStringUtil::null);
111 111
112 // Name is required to test against legacy text-only mutes. 112 // Name is required to test against legacy text-only mutes.
113 BOOL isMuted(const LLUUID& id, const LLString& name = LLString::null, U32 flags = 0) const; 113 BOOL isMuted(const LLUUID& id, const std::string& name = LLStringUtil::null, U32 flags = 0) const;
114 114
115 // Alternate (convenience) form for places we don't need to pass the name, but do need flags 115 // Alternate (convenience) form for places we don't need to pass the name, but do need flags
116 BOOL isMuted(const LLUUID& id, U32 flags) const { return isMuted(id, LLString::null, flags); }; 116 BOOL isMuted(const LLUUID& id, U32 flags) const { return isMuted(id, LLStringUtil::null, flags); };
117 117
118 BOOL isLinden(const LLString& name) const; 118 BOOL isLinden(const std::string& name) const;
119 119
120 BOOL isLoaded() const { return mIsLoaded; } 120 BOOL isLoaded() const { return mIsLoaded; }
121 121
@@ -133,8 +133,8 @@ public:
133private: 133private:
134 void loadUserVolumes(); 134 void loadUserVolumes();
135 135
136 BOOL loadFromFile(const LLString& filename); 136 BOOL loadFromFile(const std::string& filename);
137 BOOL saveToFile(const LLString& filename); 137 BOOL saveToFile(const std::string& filename);
138 138
139 void setLoaded(); 139 void setLoaded();
140 void notifyObservers(); 140 void notifyObservers();
@@ -166,7 +166,7 @@ private:
166 typedef std::set<LLMute, compare_by_id> mute_set_t; 166 typedef std::set<LLMute, compare_by_id> mute_set_t;
167 mute_set_t mMutes; 167 mute_set_t mMutes;
168 168
169 typedef std::set<LLString> string_set_t; 169 typedef std::set<std::string> string_set_t;
170 string_set_t mLegacyMutes; 170 string_set_t mLegacyMutes;
171 171
172 typedef std::set<LLMuteListObserver*> observer_set_t; 172 typedef std::set<LLMuteListObserver*> observer_set_t;