diff options
author | David Walter Seikel | 2016-11-03 21:44:39 +1000 |
---|---|---|
committer | David Walter Seikel | 2016-11-03 21:44:39 +1000 |
commit | 134f86e8d5c414409631b25b8c6f0ee45fbd8631 (patch) | |
tree | 216b89d3fb89acfb81be1e440c25c41ab09fa96d /OpenSim/Region/Framework/Interfaces/IExternalCapsModule.cs | |
parent | More changing to production grid. Double oops. (diff) | |
download | opensim-SC-134f86e8d5c414409631b25b8c6f0ee45fbd8631.zip opensim-SC-134f86e8d5c414409631b25b8c6f0ee45fbd8631.tar.gz opensim-SC-134f86e8d5c414409631b25b8c6f0ee45fbd8631.tar.bz2 opensim-SC-134f86e8d5c414409631b25b8c6f0ee45fbd8631.tar.xz |
Initial update to OpenSim 0.8.2.1 source code.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Interfaces/IExternalCapsModule.cs (renamed from OpenSim/Framework/Communications/XMPP/XmppIqStanza.cs) | 40 |
1 files changed, 14 insertions, 26 deletions
diff --git a/OpenSim/Framework/Communications/XMPP/XmppIqStanza.cs b/OpenSim/Region/Framework/Interfaces/IExternalCapsModule.cs index 12263f4..a730cfd 100644 --- a/OpenSim/Framework/Communications/XMPP/XmppIqStanza.cs +++ b/OpenSim/Region/Framework/Interfaces/IExternalCapsModule.cs | |||
@@ -25,36 +25,24 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System.Xml.Serialization; | 28 | using System; |
29 | using OpenMetaverse; | ||
30 | using OpenSim.Framework; | ||
31 | using Caps=OpenSim.Framework.Capabilities.Caps; | ||
29 | 32 | ||
30 | namespace OpenSim.Framework.Communications.XMPP | 33 | namespace OpenSim.Region.Framework.Interfaces |
31 | { | 34 | { |
32 | /// <summary> | 35 | public interface IExternalCapsModule |
33 | /// An IQ needs to have one of the follow types set. | ||
34 | /// </summary> | ||
35 | public enum XmppIqType | ||
36 | { | ||
37 | [XmlEnum("set")] set, | ||
38 | [XmlEnum("get")] get, | ||
39 | [XmlEnum("result")] result, | ||
40 | [XmlEnum("error")] error, | ||
41 | } | ||
42 | |||
43 | /// <summary> | ||
44 | /// XmppIqStanza needs to be subclassed as the query content is | ||
45 | /// specific to the query type. | ||
46 | /// </summary> | ||
47 | [XmlRoot("iq")] | ||
48 | public abstract class XmppIqStanza: XmppStanza | ||
49 | { | 36 | { |
50 | /// <summary> | 37 | /// <summary> |
51 | /// IQ type: one of set, get, result, error | 38 | /// This function extends the simple URL configuration in the caps handlers |
39 | /// to facilitate more interesting computation when an external handler is | ||
40 | /// sent to the viewer. | ||
52 | /// </summary> | 41 | /// </summary> |
53 | [XmlAttribute("type")] | 42 | /// <param name="agentID">New user UUID</param> |
54 | public XmppIqType Type; | 43 | /// <param name="caps">Internal caps registry, where the external handler will be registered</param> |
55 | 44 | /// <param name="capName">Name of the specific cap we are registering</param> | |
56 | public XmppIqStanza(): base() | 45 | /// <param name="urlSkel">The skeleton URL provided in the caps configuration</param> |
57 | { | 46 | bool RegisterExternalUserCapsHandler(UUID agentID, Caps caps, String capName, String urlSkel); |
58 | } | ||
59 | } | 47 | } |
60 | } | 48 | } |