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:
parent
79131ef5d8
commit
a03169c089
|
@ -234,6 +234,7 @@ const String XMPPNamespace::s_array[Count] = {
|
||||||
"urn:xmpp:features:dialback", // DialbackFeature
|
"urn:xmpp:features:dialback", // DialbackFeature
|
||||||
"http://jabber.org/protocol/compress", // Compress
|
"http://jabber.org/protocol/compress", // Compress
|
||||||
"http://jabber.org/features/compress", // CompressFeature
|
"http://jabber.org/features/compress", // CompressFeature
|
||||||
|
"jabber:x:data", // XData
|
||||||
};
|
};
|
||||||
|
|
||||||
const String XMPPError::s_array[Count] = {
|
const String XMPPError::s_array[Count] = {
|
||||||
|
@ -375,6 +376,7 @@ const String XmlTag::s_array[Count] = {
|
||||||
"compress", // Compress
|
"compress", // Compress
|
||||||
"compressed", // Compressed
|
"compressed", // Compressed
|
||||||
"compression", // Compression
|
"compression", // Compression
|
||||||
|
"x", // X
|
||||||
};
|
};
|
||||||
|
|
||||||
XMPPNamespace XMPPUtils::s_ns;
|
XMPPNamespace XMPPUtils::s_ns;
|
||||||
|
|
|
@ -224,6 +224,7 @@ public:
|
||||||
DialbackFeature, // urn:xmpp:features:dialback
|
DialbackFeature, // urn:xmpp:features:dialback
|
||||||
Compress, // http://jabber.org/protocol/compress
|
Compress, // http://jabber.org/protocol/compress
|
||||||
CompressFeature, // http://jabber.org/features/compress
|
CompressFeature, // http://jabber.org/features/compress
|
||||||
|
XData, // jabber:x:data
|
||||||
// This value MUST be the last one: it's used as array bound
|
// This value MUST be the last one: it's used as array bound
|
||||||
Count,
|
Count,
|
||||||
};
|
};
|
||||||
|
@ -420,6 +421,7 @@ public:
|
||||||
Compress, // compress
|
Compress, // compress
|
||||||
Compressed, // compressed
|
Compressed, // compressed
|
||||||
Compression, // compression
|
Compression, // compression
|
||||||
|
X, // x
|
||||||
// This value MUST be the last one: it's used as array bound
|
// This value MUST be the last one: it's used as array bound
|
||||||
Count
|
Count
|
||||||
};
|
};
|
||||||
|
@ -1413,7 +1415,7 @@ public:
|
||||||
* @return XmlElement pointer
|
* @return XmlElement pointer
|
||||||
*/
|
*/
|
||||||
static inline XmlElement* createXOobUrl(const char* url, const char* desc = 0) {
|
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));
|
xml->addChild(createElement("url",url));
|
||||||
if (desc)
|
if (desc)
|
||||||
xml->addChild(createElement("desc",desc));
|
xml->addChild(createElement("desc",desc));
|
||||||
|
|
Loading…
Reference in New Issue