aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterfriends.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:27 -0500
committerJacek Antonelli2008-08-15 23:45:27 -0500
commita8a62201ba762e98dff92cf49033e577fc34d8d4 (patch)
tree11f8513c5cdc222f2fac0c93eb724c089803c200 /linden/indra/newview/llfloaterfriends.h
parentSecond Life viewer sources 1.18.6.4-RC (diff)
downloadmeta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.zip
meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.gz
meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.bz2
meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.xz
Second Life viewer sources 1.19.0.0
Diffstat (limited to 'linden/indra/newview/llfloaterfriends.h')
-rw-r--r--linden/indra/newview/llfloaterfriends.h28
1 files changed, 17 insertions, 11 deletions
diff --git a/linden/indra/newview/llfloaterfriends.h b/linden/indra/newview/llfloaterfriends.h
index b26e6e7..6e0ce78 100644
--- a/linden/indra/newview/llfloaterfriends.h
+++ b/linden/indra/newview/llfloaterfriends.h
@@ -14,12 +14,12 @@
14 * ("GPL"), unless you have obtained a separate licensing agreement 14 * ("GPL"), unless you have obtained a separate licensing agreement
15 * ("Other License"), formally executed by you and Linden Lab. Terms of 15 * ("Other License"), formally executed by you and Linden Lab. Terms of
16 * the GPL can be found in doc/GPL-license.txt in this distribution, or 16 * the GPL can be found in doc/GPL-license.txt in this distribution, or
17 * online at http://secondlife.com/developers/opensource/gplv2 17 * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
18 * 18 *
19 * There are special exceptions to the terms and conditions of the GPL as 19 * There are special exceptions to the terms and conditions of the GPL as
20 * it is applied to this Source Code. View the full text of the exception 20 * it is applied to this Source Code. View the full text of the exception
21 * in the file doc/FLOSS-exception.txt in this software distribution, or 21 * in the file doc/FLOSS-exception.txt in this software distribution, or
22 * online at http://secondlife.com/developers/opensource/flossexception 22 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
23 * 23 *
24 * By copying, modifying or distributing this software, you acknowledge 24 * By copying, modifying or distributing this software, you acknowledge
25 * that you have read and understood your obligations described above, 25 * that you have read and understood your obligations described above,
@@ -40,6 +40,7 @@
40#include "lltimer.h" 40#include "lltimer.h"
41 41
42class LLFriendObserver; 42class LLFriendObserver;
43class LLRelationship;
43 44
44 45
45/** 46/**
@@ -88,19 +89,27 @@ private:
88 LIST_VISIBLE_ONLINE, 89 LIST_VISIBLE_ONLINE,
89 LIST_VISIBLE_MAP, 90 LIST_VISIBLE_MAP,
90 LIST_EDIT_MINE, 91 LIST_EDIT_MINE,
91 LIST_EDIT_THEIRS 92 LIST_EDIT_THEIRS,
93 LIST_FRIEND_UPDATE_GEN
92 }; 94 };
93 95
94 // protected members 96 // protected members
95 97 typedef std::map<LLUUID, S32> rights_map_t;
96 void reloadNames(); 98 void reloadNames();
97 void refreshNames(); 99 void refreshNames();
98 void refreshUI(); 100 void refreshUI();
99 void refreshRightsChangeList(); 101 void refreshRightsChangeList();
100 void applyRightsToFriends(S32 flag, BOOL value); 102 void applyRightsToFriends();
101 void updateMenuState(S32 flag, BOOL value);
102 S32 getMenuState() { return mMenuState; }
103 void addFriend(const std::string& name, const LLUUID& agent_id); 103 void addFriend(const std::string& name, const LLUUID& agent_id);
104 void updateFriendItem(LLScrollListItem* itemp, const LLRelationship* relationship);
105
106 typedef enum
107 {
108 GRANT,
109 REVOKE
110 } EGrantRevoke;
111 void confirmModifyRights(rights_map_t& ids, EGrantRevoke command);
112 void sendRightsGrant(rights_map_t& ids);
104 113
105 // return LLUUID::null if nothing is selected 114 // return LLUUID::null if nothing is selected
106 LLDynamicArray<LLUUID> getSelectedIDs(); 115 LLDynamicArray<LLUUID> getSelectedIDs();
@@ -119,12 +128,10 @@ private:
119 static void onClickOfferTeleport(void* user_data); 128 static void onClickOfferTeleport(void* user_data);
120 static void onClickPay(void* user_data); 129 static void onClickPay(void* user_data);
121 130
122 static void onClickOnlineStatus(LLUICtrl* ctrl, void* user_data);
123 static void onClickMapStatus(LLUICtrl* ctrl, void* user_data);
124 static void onClickModifyStatus(LLUICtrl* ctrl, void* user_data); 131 static void onClickModifyStatus(LLUICtrl* ctrl, void* user_data);
125 132
126 static void handleRemove(S32 option, void* user_data); 133 static void handleRemove(S32 option, void* user_data);
127 static void handleModifyRights(S32 option, void* user_data); 134 static void modifyRightsConfirmation(S32 option, void* user_data);
128 135
129private: 136private:
130 // member data 137 // member data
@@ -132,7 +139,6 @@ private:
132 LLUUID mAddFriendID; 139 LLUUID mAddFriendID;
133 LLString mAddFriendName; 140 LLString mAddFriendName;
134 LLScrollListCtrl* mFriendsList; 141 LLScrollListCtrl* mFriendsList;
135 S32 mMenuState;
136 BOOL mShowMaxSelectWarning; 142 BOOL mShowMaxSelectWarning;
137 BOOL mAllowRightsChange; 143 BOOL mAllowRightsChange;
138 S32 mNumRightsChanged; 144 S32 mNumRightsChanged;