2010-05-27 20:04:31 -05:00
|
|
|
/*
|
2015-06-24 10:52:32 -05:00
|
|
|
Copyright (c) 2005-2015 by Jakob Schröter <js@camaya.net>
|
2010-05-27 20:04:31 -05:00
|
|
|
This file is part of the gloox library. http://camaya.net/gloox
|
|
|
|
|
|
|
|
This software is distributed under a license. The full license
|
|
|
|
agreement can be found in the file LICENSE in this distribution.
|
|
|
|
This software may not be copied, modified, sold or distributed
|
|
|
|
other than expressed in the named license agreement.
|
|
|
|
|
|
|
|
This software is distributed without any warranty.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include "gloox.h"
|
|
|
|
|
|
|
|
namespace gloox
|
|
|
|
{
|
|
|
|
|
|
|
|
const std::string XMLNS_CLIENT = "jabber:client";
|
|
|
|
const std::string XMLNS_COMPONENT_ACCEPT = "jabber:component:accept";
|
|
|
|
const std::string XMLNS_COMPONENT_CONNECT = "jabber:component:connect";
|
|
|
|
|
|
|
|
const std::string XMLNS_DISCO_INFO = "http://jabber.org/protocol/disco#info";
|
|
|
|
const std::string XMLNS_DISCO_ITEMS = "http://jabber.org/protocol/disco#items";
|
|
|
|
const std::string XMLNS_DISCO_PUBLISH = "http://jabber.org/protocol/disco#publish";
|
|
|
|
const std::string XMLNS_ADHOC_COMMANDS = "http://jabber.org/protocol/commands";
|
|
|
|
const std::string XMLNS_COMPRESSION = "http://jabber.org/protocol/compress";
|
|
|
|
|
2015-06-24 10:52:32 -05:00
|
|
|
const std::string XMLNS_OFFLINE = "http://jabber.org/protocol/offline";
|
2010-05-27 20:04:31 -05:00
|
|
|
const std::string XMLNS_CHAT_STATES = "http://jabber.org/protocol/chatstates";
|
|
|
|
const std::string XMLNS_AMP = "http://jabber.org/protocol/amp";
|
|
|
|
const std::string XMLNS_IBB = "http://jabber.org/protocol/ibb";
|
|
|
|
const std::string XMLNS_FEATURE_NEG = "http://jabber.org/protocol/feature-neg";
|
|
|
|
|
2015-06-24 10:52:32 -05:00
|
|
|
const std::string XMLNS_CHATNEG = "http://jabber.org/protocol/chatneg";
|
2010-05-27 20:04:31 -05:00
|
|
|
const std::string XMLNS_XHTML_IM = "http://jabber.org/protocol/xhtml-im";
|
|
|
|
const std::string XMLNS_DELAY = "urn:xmpp:delay";
|
|
|
|
const std::string XMLNS_ROSTER = "jabber:iq:roster";
|
|
|
|
const std::string XMLNS_VERSION = "jabber:iq:version";
|
|
|
|
|
2015-06-24 10:52:32 -05:00
|
|
|
const std::string XMLNS_REGISTER = "jabber:iq:register";
|
2010-05-27 20:04:31 -05:00
|
|
|
const std::string XMLNS_PRIVACY = "jabber:iq:privacy";
|
|
|
|
const std::string XMLNS_AUTH = "jabber:iq:auth";
|
|
|
|
const std::string XMLNS_PRIVATE_XML = "jabber:iq:private";
|
|
|
|
const std::string XMLNS_LAST = "jabber:iq:last";
|
|
|
|
|
2015-06-24 10:52:32 -05:00
|
|
|
const std::string XMLNS_SEARCH = "jabber:iq:search";
|
2010-05-27 20:04:31 -05:00
|
|
|
const std::string XMLNS_IQ_OOB = "jabber:iq:oob";
|
|
|
|
const std::string XMLNS_X_DATA = "jabber:x:data";
|
|
|
|
const std::string XMLNS_X_EVENT = "jabber:x:event";
|
|
|
|
const std::string XMLNS_X_OOB = "jabber:x:oob";
|
|
|
|
|
2015-06-24 10:52:32 -05:00
|
|
|
const std::string XMLNS_X_DELAY = "jabber:x:delay";
|
2010-05-27 20:04:31 -05:00
|
|
|
const std::string XMLNS_X_GPGSIGNED = "jabber:x:signed";
|
|
|
|
const std::string XMLNS_X_GPGENCRYPTED = "jabber:x:encrypted";
|
|
|
|
const std::string XMLNS_VCARD_TEMP = "vcard-temp";
|
|
|
|
const std::string XMLNS_X_VCARD_UPDATE = "vcard-temp:x:update";
|
|
|
|
|
2015-06-24 10:52:32 -05:00
|
|
|
const std::string XMLNS_BOOKMARKS = "storage:bookmarks";
|
2010-05-27 20:04:31 -05:00
|
|
|
const std::string XMLNS_ANNOTATIONS = "storage:rosternotes";
|
|
|
|
const std::string XMLNS_ROSTER_DELIMITER = "roster:delimiter";
|
|
|
|
const std::string XMLNS_XMPP_PING = "urn:xmpp:ping";
|
|
|
|
const std::string XMLNS_SI = "http://jabber.org/protocol/si";
|
|
|
|
|
2015-06-24 10:52:32 -05:00
|
|
|
const std::string XMLNS_SI_FT = "http://jabber.org/protocol/si/profile/file-transfer";
|
2010-05-27 20:04:31 -05:00
|
|
|
const std::string XMLNS_BYTESTREAMS = "http://jabber.org/protocol/bytestreams";
|
|
|
|
const std::string XMLNS_MUC = "http://jabber.org/protocol/muc";
|
|
|
|
const std::string XMLNS_MUC_USER = "http://jabber.org/protocol/muc#user";
|
|
|
|
const std::string XMLNS_MUC_ADMIN = "http://jabber.org/protocol/muc#admin";
|
|
|
|
|
2015-06-24 10:52:32 -05:00
|
|
|
const std::string XMLNS_MUC_UNIQUE = "http://jabber.org/protocol/muc#unique";
|
2010-05-27 20:04:31 -05:00
|
|
|
const std::string XMLNS_MUC_OWNER = "http://jabber.org/protocol/muc#owner";
|
|
|
|
const std::string XMLNS_MUC_ROOMINFO = "http://jabber.org/protocol/muc#roominfo";
|
|
|
|
const std::string XMLNS_MUC_ROOMS = "http://jabber.org/protocol/muc#rooms";
|
|
|
|
const std::string XMLNS_MUC_REQUEST = "http://jabber.org/protocol/muc#request";
|
|
|
|
|
|
|
|
const std::string XMLNS_PUBSUB = "http://jabber.org/protocol/pubsub";
|
|
|
|
const std::string XMLNS_PUBSUB_ERRORS = "http://jabber.org/protocol/pubsub#errors";
|
|
|
|
const std::string XMLNS_PUBSUB_EVENT = "http://jabber.org/protocol/pubsub#event";
|
|
|
|
const std::string XMLNS_PUBSUB_OWNER = "http://jabber.org/protocol/pubsub#owner";
|
|
|
|
const std::string XMLNS_CAPS = "http://jabber.org/protocol/caps";
|
|
|
|
|
2015-06-24 10:52:32 -05:00
|
|
|
const std::string XMLNS_FT_FASTMODE = "http://affinix.com/jabber/stream";
|
2010-05-27 20:04:31 -05:00
|
|
|
const std::string XMLNS_STREAM = "http://etherx.jabber.org/streams";
|
|
|
|
const std::string XMLNS_XMPP_STREAM = "urn:ietf:params:xml:ns:xmpp-streams";
|
|
|
|
const std::string XMLNS_XMPP_STANZAS = "urn:ietf:params:xml:ns:xmpp-stanzas";
|
|
|
|
const std::string XMLNS_STREAM_TLS = "urn:ietf:params:xml:ns:xmpp-tls";
|
|
|
|
|
2015-06-24 10:52:32 -05:00
|
|
|
const std::string XMLNS_STREAM_SASL = "urn:ietf:params:xml:ns:xmpp-sasl";
|
2010-05-27 20:04:31 -05:00
|
|
|
const std::string XMLNS_STREAM_BIND = "urn:ietf:params:xml:ns:xmpp-bind";
|
|
|
|
const std::string XMLNS_STREAM_SESSION = "urn:ietf:params:xml:ns:xmpp-session";
|
|
|
|
const std::string XMLNS_STREAM_IQAUTH = "http://jabber.org/features/iq-auth";
|
|
|
|
const std::string XMLNS_STREAM_IQREGISTER = "http://jabber.org/features/iq-register";
|
|
|
|
|
2015-06-24 10:52:32 -05:00
|
|
|
const std::string XMLNS_STREAM_COMPRESS = "http://jabber.org/features/compress";
|
2010-05-27 20:04:31 -05:00
|
|
|
const std::string XMLNS_HTTPBIND = "http://jabber.org/protocol/httpbind";
|
|
|
|
const std::string XMLNS_XMPP_BOSH = "urn:xmpp:xbosh";
|
|
|
|
const std::string XMLNS_RECEIPTS = "urn:xmpp:receipts";
|
|
|
|
const std::string XMLNS_NICKNAME = "http://jabber.org/protocol/nick";
|
|
|
|
|
2015-06-24 10:52:32 -05:00
|
|
|
const std::string XMLNS_JINGLE = "urn:xmpp:jingle:1";
|
|
|
|
const std::string XMLNS_JINGLE_ERRORS = "urn:xmpp:jingle:errors:1";
|
|
|
|
const std::string XMLNS_JINGLE_ICE_UDP = "urn:xmpp:jingle:transports:ice-udp:1";
|
|
|
|
const std::string XMLNS_JINGLE_FILE_TRANSFER = "urn:xmpp:jingle:apps:file-transfer:3";
|
|
|
|
const std::string XMLNS_JINGLE_FILE_TRANSFER_MULTI = "urn:xmpp:jingle:apps:file-transfer:multi";
|
2010-05-27 20:04:31 -05:00
|
|
|
|
|
|
|
const std::string XMLNS_SHIM = "http://jabber.org/protocol/shim";
|
|
|
|
const std::string XMLNS_ATTENTION = "urn:xmpp:attention:0";
|
2015-06-24 10:52:32 -05:00
|
|
|
const std::string XMLNS_STREAM_MANAGEMENT = "urn:xmpp:sm:3";
|
|
|
|
const std::string XMLNS_STANZA_FORWARDING = "urn:xmpp:forward:0";
|
|
|
|
const std::string XMLNS_MESSAGE_CARBONS = "urn:xmpp:carbons:2";
|
|
|
|
|
|
|
|
const std::string XMLNS_HASHES = "urn:xmpp:hashes:1";
|
|
|
|
const std::string XMLNS_IODATA = "urn:xmpp:tmp:io-data";
|
2010-05-27 20:04:31 -05:00
|
|
|
|
|
|
|
const std::string XMPP_STREAM_VERSION_MAJOR = "1";
|
|
|
|
const std::string XMPP_STREAM_VERSION_MINOR = "0";
|
2015-06-24 10:52:32 -05:00
|
|
|
const std::string GLOOX_VERSION = "1.0.13";
|
2010-05-27 20:04:31 -05:00
|
|
|
const std::string GLOOX_CAPS_NODE = "http://camaya.net/gloox";
|
|
|
|
|
|
|
|
const std::string XMLNS = "xmlns";
|
|
|
|
const std::string TYPE = "type";
|
|
|
|
const std::string EmptyString = "";
|
|
|
|
}
|
|
|
|
|
|
|
|
const char* gloox_version()
|
|
|
|
{
|
|
|
|
return gloox::GLOOX_VERSION.c_str();
|
|
|
|
}
|