1 /*
2   Copyright (c) 2005-2019 by Jakob Schröter <js@camaya.net>
3   This file is part of the gloox library. http://camaya.net/gloox
4 
5   This software is distributed under a license. The full license
6   agreement can be found in the file LICENSE in this distribution.
7   This software may not be copied, modified, sold or distributed
8   other than expressed in the named license agreement.
9 
10   This software is distributed without any warranty.
11 */
12 
13 
14 #include "gloox.h"
15 
16 namespace gloox
17 {
18 
19   const std::string XMLNS_CLIENT            = "jabber:client";
20   const std::string XMLNS_COMPONENT_ACCEPT  = "jabber:component:accept";
21   const std::string XMLNS_COMPONENT_CONNECT = "jabber:component:connect";
22 
23   const std::string XMLNS_DISCO_INFO        = "http://jabber.org/protocol/disco#info";
24   const std::string XMLNS_DISCO_ITEMS       = "http://jabber.org/protocol/disco#items";
25   const std::string XMLNS_DISCO_PUBLISH     = "http://jabber.org/protocol/disco#publish";
26   const std::string XMLNS_ADHOC_COMMANDS    = "http://jabber.org/protocol/commands";
27   const std::string XMLNS_COMPRESSION       = "http://jabber.org/protocol/compress";
28 
29   const std::string XMLNS_OFFLINE           = "http://jabber.org/protocol/offline";
30   const std::string XMLNS_CHAT_STATES       = "http://jabber.org/protocol/chatstates";
31   const std::string XMLNS_AMP               = "http://jabber.org/protocol/amp";
32   const std::string XMLNS_IBB               = "http://jabber.org/protocol/ibb";
33   const std::string XMLNS_FEATURE_NEG       = "http://jabber.org/protocol/feature-neg";
34 
35   const std::string XMLNS_CHATNEG           = "http://jabber.org/protocol/chatneg";
36   const std::string XMLNS_XHTML_IM          = "http://jabber.org/protocol/xhtml-im";
37   const std::string XMLNS_DELAY             = "urn:xmpp:delay";
38   const std::string XMLNS_ROSTER            = "jabber:iq:roster";
39   const std::string XMLNS_VERSION           = "jabber:iq:version";
40 
41   const std::string XMLNS_REGISTER          = "jabber:iq:register";
42   const std::string XMLNS_PRIVACY           = "jabber:iq:privacy";
43   const std::string XMLNS_AUTH              = "jabber:iq:auth";
44   const std::string XMLNS_PRIVATE_XML       = "jabber:iq:private";
45   const std::string XMLNS_LAST              = "jabber:iq:last";
46 
47   const std::string XMLNS_SEARCH            = "jabber:iq:search";
48   const std::string XMLNS_IQ_OOB            = "jabber:iq:oob";
49   const std::string XMLNS_X_DATA            = "jabber:x:data";
50   const std::string XMLNS_X_EVENT           = "jabber:x:event";
51   const std::string XMLNS_X_OOB             = "jabber:x:oob";
52 
53   const std::string XMLNS_X_DELAY           = "jabber:x:delay";
54   const std::string XMLNS_X_GPGSIGNED       = "jabber:x:signed";
55   const std::string XMLNS_X_GPGENCRYPTED    = "jabber:x:encrypted";
56   const std::string XMLNS_VCARD_TEMP        = "vcard-temp";
57   const std::string XMLNS_X_VCARD_UPDATE    = "vcard-temp:x:update";
58 
59   const std::string XMLNS_BOOKMARKS         = "storage:bookmarks";
60   const std::string XMLNS_ANNOTATIONS       = "storage:rosternotes";
61   const std::string XMLNS_ROSTER_DELIMITER  = "roster:delimiter";
62   const std::string XMLNS_XMPP_PING         = "urn:xmpp:ping";
63   const std::string XMLNS_SI                = "http://jabber.org/protocol/si";
64 
65   const std::string XMLNS_SI_FT             = "http://jabber.org/protocol/si/profile/file-transfer";
66   const std::string XMLNS_BYTESTREAMS       = "http://jabber.org/protocol/bytestreams";
67   const std::string XMLNS_MUC               = "http://jabber.org/protocol/muc";
68   const std::string XMLNS_MUC_USER          = "http://jabber.org/protocol/muc#user";
69   const std::string XMLNS_MUC_ADMIN         = "http://jabber.org/protocol/muc#admin";
70 
71   const std::string XMLNS_MUC_UNIQUE        = "http://jabber.org/protocol/muc#unique";
72   const std::string XMLNS_MUC_OWNER         = "http://jabber.org/protocol/muc#owner";
73   const std::string XMLNS_MUC_ROOMINFO      = "http://jabber.org/protocol/muc#roominfo";
74   const std::string XMLNS_MUC_ROOMS         = "http://jabber.org/protocol/muc#rooms";
75   const std::string XMLNS_MUC_REQUEST       = "http://jabber.org/protocol/muc#request";
76 
77   const std::string XMLNS_PUBSUB            = "http://jabber.org/protocol/pubsub";
78   const std::string XMLNS_PUBSUB_ERRORS     = "http://jabber.org/protocol/pubsub#errors";
79   const std::string XMLNS_PUBSUB_EVENT      = "http://jabber.org/protocol/pubsub#event";
80   const std::string XMLNS_PUBSUB_OWNER      = "http://jabber.org/protocol/pubsub#owner";
81   const std::string XMLNS_CAPS              = "http://jabber.org/protocol/caps";
82 
83   const std::string XMLNS_FT_FASTMODE       = "http://affinix.com/jabber/stream";
84   const std::string XMLNS_STREAM            = "http://etherx.jabber.org/streams";
85   const std::string XMLNS_XMPP_STREAM       = "urn:ietf:params:xml:ns:xmpp-streams";
86   const std::string XMLNS_XMPP_STANZAS      = "urn:ietf:params:xml:ns:xmpp-stanzas";
87   const std::string XMLNS_STREAM_TLS        = "urn:ietf:params:xml:ns:xmpp-tls";
88 
89   const std::string XMLNS_STREAM_SASL       = "urn:ietf:params:xml:ns:xmpp-sasl";
90   const std::string XMLNS_STREAM_BIND       = "urn:ietf:params:xml:ns:xmpp-bind";
91   const std::string XMLNS_STREAM_SESSION    = "urn:ietf:params:xml:ns:xmpp-session";
92   const std::string XMLNS_STREAM_IQAUTH     = "http://jabber.org/features/iq-auth";
93   const std::string XMLNS_STREAM_IQREGISTER = "http://jabber.org/features/iq-register";
94 
95   const std::string XMLNS_STREAM_COMPRESS   = "http://jabber.org/features/compress";
96   const std::string XMLNS_HTTPBIND          = "http://jabber.org/protocol/httpbind";
97   const std::string XMLNS_XMPP_BOSH         = "urn:xmpp:xbosh";
98   const std::string XMLNS_RECEIPTS          = "urn:xmpp:receipts";
99   const std::string XMLNS_NICKNAME          = "http://jabber.org/protocol/nick";
100 
101   const std::string XMLNS_JINGLE            = "urn:xmpp:jingle:1";
102   const std::string XMLNS_JINGLE_ERRORS     = "urn:xmpp:jingle:errors:1";
103   const std::string XMLNS_JINGLE_ICE_UDP    = "urn:xmpp:jingle:transports:ice-udp:1";
104   const std::string XMLNS_JINGLE_FILE_TRANSFER = "urn:xmpp:jingle:apps:file-transfer:3";
105   const std::string XMLNS_JINGLE_FILE_TRANSFER_MULTI = "urn:xmpp:jingle:apps:file-transfer:multi";
106 
107   const std::string XMLNS_SHIM              = "http://jabber.org/protocol/shim";
108   const std::string XMLNS_ATTENTION         = "urn:xmpp:attention:0";
109   const std::string XMLNS_STREAM_MANAGEMENT = "urn:xmpp:sm:3";
110   const std::string XMLNS_STANZA_FORWARDING = "urn:xmpp:forward:0";
111   const std::string XMLNS_MESSAGE_CARBONS   = "urn:xmpp:carbons:2";
112 
113   const std::string XMLNS_HASHES            = "urn:xmpp:hashes:1";
114   const std::string XMLNS_IODATA            = "urn:xmpp:tmp:io-data";
115   const std::string XMLNS_CLIENT_STATE_INDICATION = "urn:xmpp:csi:0";
116 
117   const std::string XMPP_STREAM_VERSION_MAJOR = "1";
118   const std::string XMPP_STREAM_VERSION_MINOR = "0";
119   const std::string GLOOX_VERSION           = "1.0.24";
120   const std::string GLOOX_CAPS_NODE         = "http://camaya.net/gloox";
121 
122   const std::string XMLNS = "xmlns";
123   const std::string TYPE = "type";
124   const std::string EmptyString = "";
125 }
126 
gloox_version()127 const char* gloox_version()
128 {
129   return gloox::GLOOX_VERSION.c_str();
130 }
131