From 0101cd5ffb465cdf2984d3964cc4a1c8582d52f8 Mon Sep 17 00:00:00 2001 From: Date: Mon, 28 May 2007 17:22:14 +0000 Subject: [PATCH] * Added FriendManager.cs * Added Client.Friends.RequestFriendship(targetID) and .RemoveFriend(targetID) * Updated all existing 2006 copyrights to 2006-2007 git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1207 52acb1d6-8a22-11de-b505-999d5b087335 --- libsecondlife/Avatar.cs | 2 +- libsecondlife/AvatarManager.cs | 2 +- libsecondlife/BlockingQueue.cs | 26 ++++++++++++++++++++++++++ libsecondlife/DirectoryManager.cs | 2 +- libsecondlife/EstateTools.cs | 2 +- libsecondlife/GridManager.cs | 2 +- libsecondlife/GroupManager.cs | 2 +- libsecondlife/Helpers.cs | 2 +- libsecondlife/MainAvatar.cs | 6 +++--- libsecondlife/MainAvatarStatus.cs | 2 +- libsecondlife/NetworkManager.cs | 2 +- libsecondlife/ObjectManager.cs | 2 +- libsecondlife/ParcelManager.cs | 2 +- libsecondlife/Prims.cs | 2 +- libsecondlife/SecondLife.cs | 5 ++++- libsecondlife/Settings.cs | 2 +- libsecondlife/Textures.cs | 2 +- libsecondlife/Types.cs | 2 +- libsecondlife/libsecondlife.csproj | 3 ++- 19 files changed, 50 insertions(+), 20 deletions(-) diff --git a/libsecondlife/Avatar.cs b/libsecondlife/Avatar.cs index be693826..463be54d 100644 --- a/libsecondlife/Avatar.cs +++ b/libsecondlife/Avatar.cs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, Second Life Reverse Engineering Team + * Copyright (c) 2006-2007, Second Life Reverse Engineering Team * All rights reserved. * * - Redistribution and use in source and binary forms, with or without diff --git a/libsecondlife/AvatarManager.cs b/libsecondlife/AvatarManager.cs index 00d3bcbb..3370270d 100644 --- a/libsecondlife/AvatarManager.cs +++ b/libsecondlife/AvatarManager.cs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, Second Life Reverse Engineering Team + * Copyright (c) 2006-2007, Second Life Reverse Engineering Team * All rights reserved. * * - Redistribution and use in source and binary forms, with or without diff --git a/libsecondlife/BlockingQueue.cs b/libsecondlife/BlockingQueue.cs index dedd3f17..8d95d368 100644 --- a/libsecondlife/BlockingQueue.cs +++ b/libsecondlife/BlockingQueue.cs @@ -1,3 +1,29 @@ +/* + * Copyright (c) 2006-2007, Second Life Reverse Engineering Team + * All rights reserved. + * + * - Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * - Neither the name of the Second Life Reverse Engineering Team nor the names + * of its contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + using System; using System.Threading; using libsecondlife; diff --git a/libsecondlife/DirectoryManager.cs b/libsecondlife/DirectoryManager.cs index 4ae8705c..b25f433d 100644 --- a/libsecondlife/DirectoryManager.cs +++ b/libsecondlife/DirectoryManager.cs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, Second Life Reverse Engineering Team + * Copyright (c) 2006-2007, Second Life Reverse Engineering Team * All rights reserved. * * - Redistribution and use in source and binary forms, with or without diff --git a/libsecondlife/EstateTools.cs b/libsecondlife/EstateTools.cs index e919f684..894ce681 100644 --- a/libsecondlife/EstateTools.cs +++ b/libsecondlife/EstateTools.cs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, Second Life Reverse Engineering Team + * Copyright (c) 2006-2007, Second Life Reverse Engineering Team * All rights reserved. * * - Redistribution and use in source and binary forms, with or without diff --git a/libsecondlife/GridManager.cs b/libsecondlife/GridManager.cs index fd7fa865..5b549116 100644 --- a/libsecondlife/GridManager.cs +++ b/libsecondlife/GridManager.cs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, Second Life Reverse Engineering Team + * Copyright (c) 2006-2007, Second Life Reverse Engineering Team * All rights reserved. * * - Redistribution and use in source and binary forms, with or without diff --git a/libsecondlife/GroupManager.cs b/libsecondlife/GroupManager.cs index 3dbee358..9d7a1352 100644 --- a/libsecondlife/GroupManager.cs +++ b/libsecondlife/GroupManager.cs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, Second Life Reverse Engineering Team + * Copyright (c) 2006-2007, Second Life Reverse Engineering Team * All rights reserved. * * - Redistribution and use in source and binary forms, with or without diff --git a/libsecondlife/Helpers.cs b/libsecondlife/Helpers.cs index c9a7c99f..b3bbea74 100644 --- a/libsecondlife/Helpers.cs +++ b/libsecondlife/Helpers.cs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, Second Life Reverse Engineering Team + * Copyright (c) 2006-2007, Second Life Reverse Engineering Team * All rights reserved. * * - Redistribution and use in source and binary forms, with or without diff --git a/libsecondlife/MainAvatar.cs b/libsecondlife/MainAvatar.cs index 1758cb50..c07de5b6 100644 --- a/libsecondlife/MainAvatar.cs +++ b/libsecondlife/MainAvatar.cs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, Second Life Reverse Engineering Team + * Copyright (c) 2006-2007, Second Life Reverse Engineering Team * All rights reserved. * * - Redistribution and use in source and binary forms, with or without @@ -1192,10 +1192,10 @@ namespace libsecondlife Client.Network.SendPacket(money); } + /// /// Sets home location - /// - + /// public void SetHome() { SetStartLocationRequestPacket s = new SetStartLocationRequestPacket(); diff --git a/libsecondlife/MainAvatarStatus.cs b/libsecondlife/MainAvatarStatus.cs index 8d7c2e55..0f53b76f 100644 --- a/libsecondlife/MainAvatarStatus.cs +++ b/libsecondlife/MainAvatarStatus.cs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, Second Life Reverse Engineering Team + * Copyright (c) 2006-2007, Second Life Reverse Engineering Team * All rights reserved. * * - Redistribution and use in source and binary forms, with or without diff --git a/libsecondlife/NetworkManager.cs b/libsecondlife/NetworkManager.cs index 5798dcf2..bad650c3 100644 --- a/libsecondlife/NetworkManager.cs +++ b/libsecondlife/NetworkManager.cs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, Second Life Reverse Engineering Team + * Copyright (c) 2006-2007, Second Life Reverse Engineering Team * All rights reserved. * * - Redistribution and use in source and binary forms, with or without diff --git a/libsecondlife/ObjectManager.cs b/libsecondlife/ObjectManager.cs index c9b65865..e86faa40 100644 --- a/libsecondlife/ObjectManager.cs +++ b/libsecondlife/ObjectManager.cs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, Second Life Reverse Engineering Team + * Copyright (c) 2006-2007, Second Life Reverse Engineering Team * All rights reserved. * * - Redistribution and use in source and binary forms, with or without diff --git a/libsecondlife/ParcelManager.cs b/libsecondlife/ParcelManager.cs index 0fbd6080..9bcc1854 100644 --- a/libsecondlife/ParcelManager.cs +++ b/libsecondlife/ParcelManager.cs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, Second Life Reverse Engineering Team + * Copyright (c) 2006-2007, Second Life Reverse Engineering Team * All rights reserved. * * - Redistribution and use in source and binary forms, with or without diff --git a/libsecondlife/Prims.cs b/libsecondlife/Prims.cs index 1879153e..8f8429a4 100644 --- a/libsecondlife/Prims.cs +++ b/libsecondlife/Prims.cs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, Second Life Reverse Engineering Team + * Copyright (c) 2006-2007, Second Life Reverse Engineering Team * All rights reserved. * * - Redistribution and use in source and binary forms, with or without diff --git a/libsecondlife/SecondLife.cs b/libsecondlife/SecondLife.cs index 9d332ce0..7ebef61e 100644 --- a/libsecondlife/SecondLife.cs +++ b/libsecondlife/SecondLife.cs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, Second Life Reverse Engineering Team + * Copyright (c) 2006-2007, Second Life Reverse Engineering Team * All rights reserved. * * - Redistribution and use in source and binary forms, with or without @@ -56,6 +56,8 @@ namespace libsecondlife public MainAvatar Self; /// Other Avatars Subsystem public AvatarManager Avatars; + /// Friends List Subsystem + public FriendManager Friends; /// Grid (aka simulator group) Subsystem public GridManager Grid; /// Object Subsystem @@ -98,6 +100,7 @@ namespace libsecondlife Parcels = new ParcelManager(this); Self = new MainAvatar(this); Avatars = new AvatarManager(this); + Friends = new FriendManager(this); Grid = new GridManager(this); Objects = new ObjectManager(this); Groups = new GroupManager(this); diff --git a/libsecondlife/Settings.cs b/libsecondlife/Settings.cs index 71ba8459..2ec42983 100644 --- a/libsecondlife/Settings.cs +++ b/libsecondlife/Settings.cs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, Second Life Reverse Engineering Team + * Copyright (c) 2006-2007, Second Life Reverse Engineering Team * All rights reserved. * * - Redistribution and use in source and binary forms, with or without diff --git a/libsecondlife/Textures.cs b/libsecondlife/Textures.cs index 11422902..6c543661 100644 --- a/libsecondlife/Textures.cs +++ b/libsecondlife/Textures.cs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, Second Life Reverse Engineering Team + * Copyright (c) 2006-2007, Second Life Reverse Engineering Team * All rights reserved. * * - Redistribution and use in source and binary forms, with or without diff --git a/libsecondlife/Types.cs b/libsecondlife/Types.cs index 0d8d3775..00cf81dd 100644 --- a/libsecondlife/Types.cs +++ b/libsecondlife/Types.cs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, Second Life Reverse Engineering Team + * Copyright (c) 2006-2007, Second Life Reverse Engineering Team * All rights reserved. * * - Redistribution and use in source and binary forms, with or without diff --git a/libsecondlife/libsecondlife.csproj b/libsecondlife/libsecondlife.csproj index 92c63e62..da6258d0 100644 --- a/libsecondlife/libsecondlife.csproj +++ b/libsecondlife/libsecondlife.csproj @@ -114,6 +114,7 @@ + @@ -209,4 +210,4 @@ - + \ No newline at end of file