summaryrefslogtreecommitdiff
path: root/indra/newview/llgroupmgr.h
diff options
context:
space:
mode:
authorBaker Linden <baker@lindenlab.com>2013-08-30 16:38:25 -0700
committerBaker Linden <baker@lindenlab.com>2013-08-30 16:38:25 -0700
commit1299f6d63fbe313329e6e5ced7be797e2a23d6a7 (patch)
treeb228a3f7e776afb16bae94d86ff4eb75e7ccb847 /indra/newview/llgroupmgr.h
parent4945ae17d3692f089ce6c996f6585a5e5b308e4d (diff)
- Got all major functionality working
- Changed PUT and DEL to POST which accepts an enum for a create or delete
Diffstat (limited to 'indra/newview/llgroupmgr.h')
-rwxr-xr-xindra/newview/llgroupmgr.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/indra/newview/llgroupmgr.h b/indra/newview/llgroupmgr.h
index 876883e87e..49e354a26c 100755
--- a/indra/newview/llgroupmgr.h
+++ b/indra/newview/llgroupmgr.h
@@ -215,7 +215,7 @@ friend class LLGroupMgr;
public:
enum EGroupDataStatus
{
- STATUS_NONE,
+ STATUS_INIT,
STATUS_REQUESTING,
STATUS_COMPLETE
};
@@ -250,7 +250,6 @@ public:
bool isRoleDataComplete() { return mRoleDataComplete; }
bool isRoleMemberDataComplete() { return mRoleMemberDataComplete; }
bool isGroupPropertiesDataComplete() { return mGroupPropertiesDataComplete; }
- bool isGroupBanDataComplete() { return mGroupBanDataComplete; }
EGroupDataStatus getGroupBanStatus() { return mGroupBanStatus; }
void setGroupBanStatus(EGroupDataStatus status) { mGroupBanStatus = status; }
@@ -269,7 +268,7 @@ public:
const LLGroupBanData& getBanEntry(const LLUUID& ban_id) { return mBanList[ban_id]; }
void createBanEntry(const LLUUID& ban_id, const LLGroupBanData& ban_data = LLGroupBanData());
- bool removeBanEntry(const LLUUID& ban_id);
+ void removeBanEntry(const LLUUID& ban_id);
@@ -322,8 +321,6 @@ private:
bool mGroupPropertiesDataComplete;
EGroupDataStatus mGroupBanStatus;
- bool mGroupBanDataComplete;
- bool mGroupBanDataPending;
bool mPendingRoleMemberRequest;
F32 mAccessTime;
@@ -356,10 +353,18 @@ public:
enum EBanRequestType
{
REQUEST_GET = 0,
+ REQUEST_POST,
REQUEST_PUT,
REQUEST_DEL
};
+ enum EBanRequestAction
+ {
+ BAN_NO_ACTION = 0,
+ BAN_CREATE = 1,
+ BAN_DELETE = 2
+ };
+
public:
LLGroupMgr();
~LLGroupMgr();
@@ -394,7 +399,11 @@ public:
static void sendGroupMemberEjects(const LLUUID& group_id,
uuid_vec_t& member_ids);
// BAKER - Group Ban
- static void sendGroupBanRequest(EBanRequestType request_type, const LLUUID& group_id, const std::vector<LLUUID> ban_list = std::vector<LLUUID>());
+ static void sendGroupBanRequest(EBanRequestType request_type,
+ const LLUUID& group_id,
+ EBanRequestAction ban_action = BAN_NO_ACTION,
+ const uuid_vec_t ban_list = uuid_vec_t());
+
static void processGroupBanRequest(const LLSD& content);
// BAKER