Commit Graph

39 Commits

Author SHA1 Message Date
Latif Khalifa
60705862cc Fixed nullref when creating group roles, and added ability to delete group roles.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3279 52acb1d6-8a22-11de-b505-999d5b087335
2010-03-14 16:36:05 +00:00
Jim Radford
c1ce106e15 LIBOMV-766 Abstracts Group Invitation requests from InstantMessage as a convenience. Raises a GroupInvitation event containing the GroupInvitationEventArgs object. To Accept the request simply set the Accept property in the EventArgs class to true.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3231 52acb1d6-8a22-11de-b505-999d5b087335
2009-11-17 21:54:20 +00:00
Jim Radford
95a87c7857 LIBOMV-686 Convert NetworkManager events/delegates to new patterns
* Remove INetworkManager interface (it was not being used for anything)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3182 52acb1d6-8a22-11de-b505-999d5b087335
2009-10-28 08:01:52 +00:00
Latif Khalifa
ddcaf11908 Raise only one event per incoming GroupNoticesListReply packet.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3168 52acb1d6-8a22-11de-b505-999d5b087335
2009-10-24 06:39:21 +00:00
Jim Radford
b0cb77e1e5 LIBOMV-686 Implements new event patterns based on the Microsoft Framework Design Guidelines in GroupManager
* BREAKING CHANGE * this is a major shift in the way events are internally handled.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3162 52acb1d6-8a22-11de-b505-999d5b087335
2009-10-20 20:18:03 +00:00
Jim Radford
c5a2f8bbfd LIBOMV-672 Adds UDP Handlers for AgentGroupDataUpdate Packets for backwards compatibility with OpenSim. Thanks Douglas Miles for the Report.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3083 52acb1d6-8a22-11de-b505-999d5b087335
2009-08-15 07:50:30 +00:00
Jim Radford
516ce1d0fc LIBOMV-619 Adds AgentDropGroupMessage + Handlers (this packet recently switched over from UDP to CAPS)
* Adds ForceCloseChatterBoxSessionMessage and decoder, no handler written yet

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2953 52acb1d6-8a22-11de-b505-999d5b087335
2009-07-10 01:31:24 +00:00
Latif Khalifa
61cc6acf43 LIBOMV-613 Make ListInProfile actually work
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2945 52acb1d6-8a22-11de-b505-999d5b087335
2009-07-01 13:00:58 +00:00
Latif Khalifa
977217bb15 Correct GroupPowers enum's type to ulong, shift ulong bits too. Good catch jradford
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2944 52acb1d6-8a22-11de-b505-999d5b087335
2009-07-01 11:51:38 +00:00
Latif Khalifa
7de5688830 LIBOMV-613: some more work on the GroupManager
* Added new member to Group struct ListInProfile
* Added new method that allows saving preferences about notices and listing group in profile
* Changed Powers enum to be hopefully more readable.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2943 52acb1d6-8a22-11de-b505-999d5b087335
2009-07-01 11:26:17 +00:00
Latif Khalifa
0fb6ff7a2b LIBOMV-613 added ToString() override for GroupTitle struct that retuns the title itself
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2942 52acb1d6-8a22-11de-b505-999d5b087335
2009-07-01 01:29:12 +00:00
Latif Khalifa
25e877593a LIBOMV-613 add requestID to GroupTitlesCallback too
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2941 52acb1d6-8a22-11de-b505-999d5b087335
2009-06-30 23:51:20 +00:00
Latif Khalifa
f363e1f364 LIBOMV-613 Back out part of the previous commit, partial lists not feasable with current GroupManger infrastructure
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2940 52acb1d6-8a22-11de-b505-999d5b087335
2009-06-30 21:37:35 +00:00
Latif Khalifa
75c3930f87 LIBOMV-613 LIBOMV-581 Refactor group manager callbacks to provide information needed to tell which group/request received data belongs to.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2939 52acb1d6-8a22-11de-b505-999d5b087335
2009-06-30 12:25:48 +00:00
Latif Khalifa
7ec16b5b18 LIBOMV-613: Enhance GroupMembersCallback to allow passing requestID and groupID
* Pass along total number of group members
* Return partial results
if event handler is only interested in the full result a simple
if (memberCount > members.Count) return;
will suffice.


git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2932 52acb1d6-8a22-11de-b505-999d5b087335
2009-06-28 19:13:05 +00:00
John Hurliman
4a8079ff2e * Fixing GroupPowers struct. The previous bit-shifting math was created 32-bit values that wrapped around and then converting to 64-bit. Hardcoded integers are used for all of the values now (thank you mcortez)
* Replacing hardcoded paths in OAR archiving with constants

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2750 52acb1d6-8a22-11de-b505-999d5b087335
2009-05-12 23:01:16 +00:00
John Hurliman
17932a2e7c * Fixes [LIBOMV-511], locking was happening on the wrong object for InternalDictionary
* Adds a new ForEach(KeyValuePair<TKey,TValue>) method to InternalDictionary
* Removing SafeAdd/SafeRemove from InternalDictionary and adding locks to normal Add/Remove. Also added locks to the [] operator and removed unnecessary locks from ContainsKey/ContainsValue
* Fixed rampant locking inconsistencies in FriendsManager. Rule of thumb: let InternalDictionary handle the locking for you

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2692 52acb1d6-8a22-11de-b505-999d5b087335
2009-05-06 19:07:21 +00:00
Jim Radford
e24d24a201 LIBOMV-477 Big Messaging system update:
* Adds new IMessage interface for messaging system
* Adds additional Caps Messages + Tests for most (All incoming caps messages should now be handled by new messaging system)
* Unit Tests for new messaging system only test that decoding and encoding work properly, they do not confirm proper formatting required by the simulator
* Switches EventQueueCallback to decode and send message to registered callbacks
* Switches several caps requests over to new messaging interface
Some in-process work is left commented and cluttering up in a few places. Will remove after more cleanup is done
* Update source header/copyright in several classes
Note: this commit features several breaking changes to existing clients. Much code that has been only lightly tested, please report bugs in jira.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2599 52acb1d6-8a22-11de-b505-999d5b087335
2009-04-13 09:32:25 +00:00
Jim Radford
1b38edbdc3 LIBOMV-469 GroupManager throws Exception if RequestCurrentGroups is called immediately after login
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2560 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-31 19:00:14 +00:00
John Hurliman
3ad7551a4a * Added Utils.EmptyBytes which is equal to new byte[0] and replaced all references of new byte[0] to Utils.EmptyBytes
* Added a CRC32 implementation to OpenMetaverseTypes.dll
* Added ToBytes() functions to most of the OMV types for writing bytes into an existing byte array

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2470 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-06 01:32:02 +00:00
Robin Cornelius
5a57f43b74 LIBOMV-414, group members reply may be over multiple packets, do not remove from request list untill we have them all, or we ignore packets we want
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2417 52acb1d6-8a22-11de-b505-999d5b087335
2009-01-22 09:38:50 +00:00
c2cb378689 Fix for previous commit addressing LIBOMV-413
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2326 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-05 23:10:43 +00:00
98fe70e09d Addresses LIBOMV-413: RequestGroupRoleMembers does not add to GroupRolesMembersRequests
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2325 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-05 18:43:06 +00:00
John Hurliman
f53aee6fa8 Renaming LLSDParser to OSDParser since it will encompass more than just LLSD parsing in the future
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2322 52acb1d6-8a22-11de-b505-999d5b087335
2008-10-30 16:54:17 +00:00
John Hurliman
bad3108ddf * Renamed LLSD to OSD. The LLSD-specific (de)serialization functions have been renamed to specify they use LLSD. Other serialization formats will be added in the future, along with better native support for vectors and unsigned integers
* Added Utils.SHA1()

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2321 52acb1d6-8a22-11de-b505-999d5b087335
2008-10-30 01:50:59 +00:00
42b0688498 * Added GroupRole.GroupID and GroupTitle.GroupID properties.
* Resolved LIBOMV-406: GroupManager.UpdateRole() does not populate the .Title field.
* Resolved LIBOMV-407: GroupManager caching by requestID, possible memory leak.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2310 52acb1d6-8a22-11de-b505-999d5b087335
2008-10-26 19:00:43 +00:00
Jim Radford
f4de381bc1 LIBOMV-387 Adds methods and handlers to GroupManager to support getting group notice list and retrieving the notices, Thanks to Robin Cornelius for the patch
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2248 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-30 21:36:33 +00:00
John Hurliman
016824b642 Applying patch from [LIBOMV-386] by Robin Cornelius to return randomly generated request IDs from GroupManager.RequestGroup* functions
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2240 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-25 11:15:48 +00:00
Jim Radford
c277025287 LIBOMV-196 Exposes various group cache data we store to public using our InternalDictionary class
* Adds ActiveGroupPowers field to AgentManager which holds currently active groups GroupPowers for current avatar

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2221 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-14 08:12:51 +00:00
Jim Radford
857b78c2cf Adds additional inline XML documentation to GroupManager, Fixes group notice serialization routine to use our StructuredData tools (needs to be verified working)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2208 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-09 07:30:04 +00:00
Jim Radford
1a886fb085 LIBOMV-375 Removes duplicate GroupPowers struct, adds XML comments to the one that stayed
LIBOMV-374 Adds new ModerateChatSessions method to AgentManager which allows a group member with Moderator rights to silence idiots
LIBOMV-372 Fixes exception thrown while using Group Chat functions caused by recent changes to the LL Simulator, Also fixes TestClient IMGroup command
* Adds (2) Events OnGroupChatJoin/OnGroupChatLeft fired when a member enters or leaves a group chat session



git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2207 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-09 04:58:58 +00:00
John Hurliman
99239ebcfc * Splits libomv into OpenMetaverseTypes.dll and OpenMetaverse.dll
* All MathUtils and non-SL-specific Helpers functions have been put in OpenMetaverseTypes.dll inside the Utils class. Helpers only contains SL-specific functions now
* LLSD encoding/decoding for custom types has been moved out of the types and implemented as static functions in the LLSD class

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2082 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-12 22:38:02 +00:00
Jim Radford
2ec24f22fa Compiler warning cleanup, fixes all unmatched parameters (adds empty placeholders for CrisOmega to fill in when he wakes up :)), Adds additional warning supressions to prebuild.xml
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2033 52acb1d6-8a22-11de-b505-999d5b087335
2008-07-30 06:51:51 +00:00
Jim Radford
8247736600 LIBOMV-325 Adds Handler for ParcelMediaUpdate packet
* Adds struct in ParcelManager for ParcelMedia information
* Updates Parcel struct to use new ParcelMedia struct
* Documents Events in ParcelManager
* Adds Namespace information for the OpenMetaverse.Rendering Classes in the Helpfile Builder
* Fixes a typo and some inline documentation in GroupManager

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2004 52acb1d6-8a22-11de-b505-999d5b087335
2008-07-26 08:50:37 +00:00
Jim Radford
e000e18243 LIBOMV-236 Cleans up GroupManager class:
* Documents Event Delegates
* Removes Transaction viewing methods and packets due to deprecated protocol packets
* Removes GroupProfile struct since it was an exact duplicate of the Group struct
* Cleans up ToString() override in AgentManager InstantMessage struct
* Updates GroupManager example to use Group struct vs removed GroupProfile struct

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2003 52acb1d6-8a22-11de-b505-999d5b087335
2008-07-26 05:38:30 +00:00
Jim Radford
8802153778 * Fix SelectObjects method in ParcelManager to work
* Adds additional inline comments to GroupManager

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1999 52acb1d6-8a22-11de-b505-999d5b087335
2008-07-25 06:01:25 +00:00
John Hurliman
81e6342d36 Removing LL prefix from all basic types
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1998 52acb1d6-8a22-11de-b505-999d5b087335
2008-07-25 05:15:05 +00:00
Jim Radford
ad8fdb1edf LIBOMV-323 Implements Packet handler for EjectGroupMemberReply packet, fired when an avatar is removed using the EjectUser() Method.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1997 52acb1d6-8a22-11de-b505-999d5b087335
2008-07-25 02:25:10 +00:00
John Hurliman
c1f3d6a3c2 Renaming libsecondlife folder to OpenMetaverse. Part of a multi-step process, do not check out this revision!
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1957 52acb1d6-8a22-11de-b505-999d5b087335
2008-07-22 22:56:05 +00:00