From d20cae2d03f26f92e88f28ec187de50934144fcb Mon Sep 17 00:00:00 2001
From: Teravus Ovares
Date: Sun, 1 Jun 2008 10:05:22 +0000
Subject: * Committing more unfinished stuff. Nothing significant at the
moment. IM related.
---
OpenSim/Framework/Communications/IUserService.cs | 2 ++
OpenSim/Framework/Communications/UserManagerBase.cs | 13 +++++++++++++
2 files changed, 15 insertions(+)
(limited to 'OpenSim/Framework')
diff --git a/OpenSim/Framework/Communications/IUserService.cs b/OpenSim/Framework/Communications/IUserService.cs
index 59ad188..a7f19e7 100644
--- a/OpenSim/Framework/Communications/IUserService.cs
+++ b/OpenSim/Framework/Communications/IUserService.cs
@@ -49,6 +49,8 @@ namespace OpenSim.Framework.Communications
/// A user profile. Returns null if no user profile is found.
UserProfileData GetUserProfile(LLUUID userId);
+ UserAgentData GetAgentByUUID(LLUUID userId);
+
void clearUserAgent(LLUUID avatarID);
List GenerateAgentPickerRequestResponse(LLUUID QueryID, string Query);
diff --git a/OpenSim/Framework/Communications/UserManagerBase.cs b/OpenSim/Framework/Communications/UserManagerBase.cs
index 8985bb6..fe09b03 100644
--- a/OpenSim/Framework/Communications/UserManagerBase.cs
+++ b/OpenSim/Framework/Communications/UserManagerBase.cs
@@ -103,7 +103,20 @@ namespace OpenSim.Framework.Communications
return null;
}
+ public UserAgentData GetAgentByUUID(LLUUID userId)
+ {
+ foreach (KeyValuePair plugin in _plugins)
+ {
+ UserAgentData agent = plugin.Value.GetAgentByUUID(userId);
+ if (agent != null)
+ {
+ return agent;
+ }
+ }
+
+ return null;
+ }
// see IUserService
public UserProfileData GetUserProfile(LLUUID uuid)
{
--
cgit v1.1