29 using System.Collections;
30 using System.Collections.Specialized;
32 using System.Drawing.Imaging;
33 using System.Reflection;
40 using OpenMetaverse.StructuredData;
41 using OpenSim.Framework;
42 using OpenSim.Framework.Servers;
43 using OpenSim.Framework.Servers.HttpServer;
44 using OpenSim.Region.Framework.Interfaces;
45 using OpenSim.Region.Framework.Scenes;
46 using OpenSim.Services.Interfaces;
48 using OpenSim.Capabilities.Handlers;
52 [Extension(Path =
"/OpenSim/RegionModules", NodeName =
"RegionModule", Id =
"AvatarPickerSearchModule")]
57 private Scene m_scene;
59 private bool m_Enabled =
false;
63 #region ISharedRegionModule Members
67 IConfig config = source.Configs[
"ClientStack.LindenCaps"];
71 m_URL = config.GetString(
"Cap_AvatarPickerSearch", string.Empty);
73 if (m_URL !=
string.Empty)
90 m_scene.EventManager.OnRegisterCaps -= RegisterCaps;
99 m_People = m_scene.RequestModuleInterface<
IPeople>();
100 m_scene.EventManager.OnRegisterCaps += RegisterCaps;
109 public string Name {
get {
return "AvatarPickerSearchModule"; } }
111 public Type ReplaceableInterface
120 UUID capID = UUID.Random();
122 if (m_URL ==
"localhost")
125 caps.RegisterHandler(
126 "AvatarPickerSearch",
132 caps.RegisterHandler(
"AvatarPickerSearch", m_URL);
void Close()
This is the inverse to Initialise. After a Close(), this instance won't be usable anymore...
void Initialise(IConfigSource source)
This is called to initialize the region module. For shared modules, this is called exactly once...
OpenSim.Framework.Capabilities.Caps Caps
void AddRegion(Scene s)
This is called whenever a Scene is added. For shared modules, this can happen several times...
void RegisterCaps(UUID agentID, Caps caps)
Interactive OpenSim region server
void RegionLoaded(Scene s)
This will be called once for every scene loaded. In a shared module this will be multiple times in on...
void RemoveRegion(Scene s)
This is called whenever a Scene is removed. For shared modules, this can happen several times...
OpenSim.Framework.Capabilities.Caps Caps