Added xml tag and namespace enums and values.

git-svn-id: http://yate.null.ro/svn/yate/trunk@3451 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2010-07-22 11:13:28 +00:00
parent 79131ef5d8
commit a03169c089
2 changed files with 5 additions and 1 deletions

View File

@ -234,6 +234,7 @@ const String XMPPNamespace::s_array[Count] = {
"urn:xmpp:features:dialback", // DialbackFeature
"http://jabber.org/protocol/compress", // Compress
"http://jabber.org/features/compress", // CompressFeature
"jabber:x:data", // XData
};
const String XMPPError::s_array[Count] = {
@ -375,6 +376,7 @@ const String XmlTag::s_array[Count] = {
"compress", // Compress
"compressed", // Compressed
"compression", // Compression
"x", // X
};
XMPPNamespace XMPPUtils::s_ns;

View File

@ -224,6 +224,7 @@ public:
DialbackFeature, // urn:xmpp:features:dialback
Compress, // http://jabber.org/protocol/compress
CompressFeature, // http://jabber.org/features/compress
XData, // jabber:x:data
// This value MUST be the last one: it's used as array bound
Count,
};
@ -420,6 +421,7 @@ public:
Compress, // compress
Compressed, // compressed
Compression, // compression
X, // x
// This value MUST be the last one: it's used as array bound
Count
};
@ -1413,7 +1415,7 @@ public:
* @return XmlElement pointer
*/
static inline XmlElement* createXOobUrl(const char* url, const char* desc = 0) {
XmlElement* xml = createElement("x",XMPPNamespace::XOob);
XmlElement* xml = createElement(XmlTag::X,XMPPNamespace::XOob);
xml->addChild(createElement("url",url));
if (desc)
xml->addChild(createElement("desc",desc));