diff options
author | Justin Clark-Casey (justincc) | 2012-03-30 00:40:19 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-03-30 00:42:55 +0100 |
commit | 59157d9d63c0e038ca0a619bfae1be3ed6f77677 (patch) | |
tree | 76e7ba7de91aedad887a6ac0633598d53ce30df3 /OpenSim/Region/Framework/Interfaces/IFriendsModule.cs | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-59157d9d63c0e038ca0a619bfae1be3ed6f77677.zip opensim-SC-59157d9d63c0e038ca0a619bfae1be3ed6f77677.tar.gz opensim-SC-59157d9d63c0e038ca0a619bfae1be3ed6f77677.tar.bz2 opensim-SC-59157d9d63c0e038ca0a619bfae1be3ed6f77677.tar.xz |
Add simple login test with online friends. Add IFriendsModule.GrantRights() for granting rights via a module call.
Rename IFriendsModule.GetFriendPerms() -> GetRightsGrantedByFriend() to be more self-documenting and consistent with friends module terminology.
Add some method doc.
Diffstat (limited to 'OpenSim/Region/Framework/Interfaces/IFriendsModule.cs')
-rw-r--r-- | OpenSim/Region/Framework/Interfaces/IFriendsModule.cs | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/IFriendsModule.cs b/OpenSim/Region/Framework/Interfaces/IFriendsModule.cs index 061799e..10bef1e 100644 --- a/OpenSim/Region/Framework/Interfaces/IFriendsModule.cs +++ b/OpenSim/Region/Framework/Interfaces/IFriendsModule.cs | |||
@@ -55,7 +55,27 @@ namespace OpenSim.Region.Framework.Interfaces | |||
55 | /// <param name="exFriendID"></param> | 55 | /// <param name="exFriendID"></param> |
56 | void RemoveFriendship(IClientAPI client, UUID exFriendID); | 56 | void RemoveFriendship(IClientAPI client, UUID exFriendID); |
57 | 57 | ||
58 | uint GetFriendPerms(UUID PrincipalID, UUID FriendID); | 58 | /// <summary> |
59 | /// Get permissions granted by a friend. | ||
60 | /// </summary> | ||
61 | /// <param name="PrincipalID">The user.</param> | ||
62 | /// <param name="FriendID">The friend that granted.</param> | ||
63 | /// <returns>The permissions. These come from the FriendRights enum.</returns> | ||
64 | int GetRightsGrantedByFriend(UUID PrincipalID, UUID FriendID); | ||
65 | |||
66 | /// <summary> | ||
67 | /// Grant permissions for a friend. | ||
68 | /// </summary> | ||
69 | /// <remarks> | ||
70 | /// This includes giving them the ability to see when the user is online and permission to edit the user's | ||
71 | /// objects. | ||
72 | /// Granting lower permissions than the friend currently has will rescind the extra permissions. | ||
73 | /// </remarks> | ||
74 | /// <param name="remoteClient">The user granting the permissions.</param> | ||
75 | /// <param name="friendID">The friend.</param> | ||
76 | /// <param name="perms">These come from the FriendRights enum.</param> | ||
77 | void GrantRights(IClientAPI remoteClient, UUID friendID, int perms); | ||
78 | |||
59 | bool SendFriendsOnlineIfNeeded(IClientAPI client); | 79 | bool SendFriendsOnlineIfNeeded(IClientAPI client); |
60 | } | 80 | } |
61 | } | 81 | } \ No newline at end of file |