using System;
using System.Xml;
using jabber;
using jabber.protocol;
namespace QueryManager.Jabber
{
public class IQuery : Element
{
public const string NS = "jabber:x:qm";
public IQuery(XmlDocument doc) : base("query", NS, doc) { }
// this constructor is used by the Factory!
public IQuery(string prefix, XmlQualifiedName qname, XmlDocument doc) : base(prefix, qname, doc) { }
}
public class Factory : jabber.protocol.IPacketTypes
{
private static QnameType[] s_qnt = new QnameType[]
{
new QnameType("query", IQuery.NS, typeof(IQuery))
// Add other types here, perhaps sub-elements of query...
};
QnameType[] IPacketTypes.Types
{
get { return s_qnt; }
}
}
}