diff options
author | Jacek Antonelli | 2008-08-15 23:45:29 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:29 -0500 |
commit | 7bdb4845afdd157f95281293803567090e3f992a (patch) | |
tree | fbcada1c227d7407f9f37ccba360bfe6326d9c5e /linden/indra/newview/llgroupmgr.h | |
parent | Second Life viewer sources 1.19.0.0 (diff) | |
download | meta-impy-7bdb4845afdd157f95281293803567090e3f992a.zip meta-impy-7bdb4845afdd157f95281293803567090e3f992a.tar.gz meta-impy-7bdb4845afdd157f95281293803567090e3f992a.tar.bz2 meta-impy-7bdb4845afdd157f95281293803567090e3f992a.tar.xz |
Second Life viewer sources 1.19.0.2
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llgroupmgr.h | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/linden/indra/newview/llgroupmgr.h b/linden/indra/newview/llgroupmgr.h index 7cef5ec..89be4bf 100644 --- a/linden/indra/newview/llgroupmgr.h +++ b/linden/indra/newview/llgroupmgr.h | |||
@@ -58,6 +58,8 @@ class LLGroupMemberData | |||
58 | friend class LLGroupMgrGroupData; | 58 | friend class LLGroupMgrGroupData; |
59 | 59 | ||
60 | public: | 60 | public: |
61 | typedef std::map<LLUUID,LLGroupRoleData*> role_list_t; | ||
62 | |||
61 | LLGroupMemberData(const LLUUID& id, | 63 | LLGroupMemberData(const LLUUID& id, |
62 | S32 contribution, | 64 | S32 contribution, |
63 | U64 agent_powers, | 65 | U64 agent_powers, |
@@ -75,11 +77,11 @@ public: | |||
75 | const std::string& getOnlineStatus() const { return mOnlineStatus; } | 77 | const std::string& getOnlineStatus() const { return mOnlineStatus; } |
76 | void addRole(const LLUUID& role, LLGroupRoleData* rd); | 78 | void addRole(const LLUUID& role, LLGroupRoleData* rd); |
77 | bool removeRole(const LLUUID& role); | 79 | bool removeRole(const LLUUID& role); |
78 | void clearRoles() { mRoles.clear(); }; | 80 | void clearRoles() { mRolesList.clear(); }; |
79 | std::map<LLUUID,LLGroupRoleData*>::iterator roleBegin() { return mRoles.begin(); } | 81 | role_list_t::iterator roleBegin() { return mRolesList.begin(); } |
80 | std::map<LLUUID,LLGroupRoleData*>::iterator roleEnd() { return mRoles.end(); } | 82 | role_list_t::iterator roleEnd() { return mRolesList.end(); } |
81 | 83 | ||
82 | BOOL isInRole(const LLUUID& role_id) { return (mRoles.find(role_id) != mRoles.end()); } | 84 | BOOL isInRole(const LLUUID& role_id) { return (mRolesList.find(role_id) != mRolesList.end()); } |
83 | 85 | ||
84 | protected: | 86 | protected: |
85 | LLUUID mID; | 87 | LLUUID mID; |
@@ -88,7 +90,7 @@ protected: | |||
88 | std::string mTitle; | 90 | std::string mTitle; |
89 | std::string mOnlineStatus; | 91 | std::string mOnlineStatus; |
90 | BOOL mIsOwner; | 92 | BOOL mIsOwner; |
91 | std::map<LLUUID,LLGroupRoleData*> mRoles; | 93 | role_list_t mRolesList; |
92 | }; | 94 | }; |
93 | 95 | ||
94 | struct LLRoleData | 96 | struct LLRoleData |
@@ -185,8 +187,6 @@ struct lluuid_pair_less | |||
185 | } | 187 | } |
186 | }; | 188 | }; |
187 | 189 | ||
188 | typedef std::map<lluuid_pair,LLRoleMemberChange,lluuid_pair_less> change_map; | ||
189 | |||
190 | struct LLGroupTitle | 190 | struct LLGroupTitle |
191 | { | 191 | { |
192 | std::string mTitle; | 192 | std::string mTitle; |
@@ -231,17 +231,16 @@ public: | |||
231 | BOOL isGroupPropertiesDataComplete() { return mGroupPropertiesDataComplete; } | 231 | BOOL isGroupPropertiesDataComplete() { return mGroupPropertiesDataComplete; } |
232 | 232 | ||
233 | public: | 233 | public: |
234 | typedef std::map<LLUUID,LLGroupMemberData*> member_list; | 234 | typedef std::map<LLUUID,LLGroupMemberData*> member_list_t; |
235 | typedef member_list::iterator member_iter; | 235 | typedef std::map<LLUUID,LLGroupRoleData*> role_list_t; |
236 | typedef std::map<LLUUID,LLGroupRoleData*> role_list; | 236 | typedef std::map<lluuid_pair,LLRoleMemberChange,lluuid_pair_less> change_map_t; |
237 | typedef role_list::iterator role_iter; | 237 | typedef std::map<LLUUID,LLRoleData> role_data_map_t; |
238 | 238 | member_list_t mMembers; | |
239 | member_list mMembers; | 239 | role_list_t mRoles; |
240 | role_list mRoles; | ||
241 | 240 | ||
242 | 241 | ||
243 | change_map mRoleMemberChanges; | 242 | change_map_t mRoleMemberChanges; |
244 | std::map<LLUUID,LLRoleData> mRoleChanges; | 243 | role_data_map_t mRoleChanges; |
245 | 244 | ||
246 | std::vector<LLGroupTitle> mTitles; | 245 | std::vector<LLGroupTitle> mTitles; |
247 | 246 | ||
@@ -298,6 +297,8 @@ struct LLRoleActionSet | |||
298 | 297 | ||
299 | class LLGroupMgr | 298 | class LLGroupMgr |
300 | { | 299 | { |
300 | LOG_CLASS(LLGroupMgr); | ||
301 | |||
301 | public: | 302 | public: |
302 | LLGroupMgr(); | 303 | LLGroupMgr(); |
303 | ~LLGroupMgr(); | 304 | ~LLGroupMgr(); |
@@ -355,10 +356,10 @@ protected: | |||
355 | LLGroupMgrGroupData* createGroupData(const LLUUID &id); | 356 | LLGroupMgrGroupData* createGroupData(const LLUUID &id); |
356 | 357 | ||
357 | protected: | 358 | protected: |
358 | typedef std::multimap<LLUUID,LLGroupMgrObserver*>::iterator observer_iter; | 359 | typedef std::multimap<LLUUID,LLGroupMgrObserver*> observer_multimap_t; |
359 | std::multimap<LLUUID,LLGroupMgrObserver*> mObservers; | 360 | observer_multimap_t mObservers; |
360 | typedef std::map<LLUUID, LLGroupMgrGroupData*>::iterator group_iter; | 361 | typedef std::map<LLUUID, LLGroupMgrGroupData*> group_map_t; |
361 | std::map<LLUUID, LLGroupMgrGroupData*> mGroups; | 362 | group_map_t mGroups; |
362 | }; | 363 | }; |
363 | 364 | ||
364 | extern LLGroupMgr* gGroupMgr; | 365 | extern LLGroupMgr* gGroupMgr; |