gloox  1.0
gloox.cpp
1 /*
2  Copyright (c) 2005-2009 by Jakob Schroeter <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  const std::string XMLNS_OFFLINE = "http://jabber.org/protocol/offline";
29 
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  const std::string XMLNS_CHATNEG = "http://jabber.org/protocol/chatneg";
35 
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  const std::string XMLNS_REGISTER = "jabber:iq:register";
41 
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  const std::string XMLNS_SEARCH = "jabber:iq:search";
47 
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  const std::string XMLNS_X_DELAY = "jabber:x:delay";
53 
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  const std::string XMLNS_BOOKMARKS = "storage:bookmarks";
59 
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  const std::string XMLNS_SI_FT = "http://jabber.org/protocol/si/profile/file-transfer";
65 
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  const std::string XMLNS_MUC_UNIQUE = "http://jabber.org/protocol/muc#unique";
71 
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 
82  const std::string XMLNS_CAPS = "http://jabber.org/protocol/caps";
83  const std::string XMLNS_FT_FASTMODE = "http://affinix.com/jabber/stream";
84 
85  const std::string XMLNS_STREAM = "http://etherx.jabber.org/streams";
86  const std::string XMLNS_XMPP_STREAM = "urn:ietf:params:xml:ns:xmpp-streams";
87  const std::string XMLNS_XMPP_STANZAS = "urn:ietf:params:xml:ns:xmpp-stanzas";
88  const std::string XMLNS_STREAM_TLS = "urn:ietf:params:xml:ns:xmpp-tls";
89  const std::string XMLNS_STREAM_SASL = "urn:ietf:params:xml:ns:xmpp-sasl";
90 
91  const std::string XMLNS_STREAM_BIND = "urn:ietf:params:xml:ns:xmpp-bind";
92  const std::string XMLNS_STREAM_SESSION = "urn:ietf:params:xml:ns:xmpp-session";
93  const std::string XMLNS_STREAM_IQAUTH = "http://jabber.org/features/iq-auth";
94  const std::string XMLNS_STREAM_IQREGISTER = "http://jabber.org/features/iq-register";
95  const std::string XMLNS_STREAM_COMPRESS = "http://jabber.org/features/compress";
96 
97  const std::string XMLNS_HTTPBIND = "http://jabber.org/protocol/httpbind";
98  const std::string XMLNS_XMPP_BOSH = "urn:xmpp:xbosh";
99  const std::string XMLNS_RECEIPTS = "urn:xmpp:receipts";
100  const std::string XMLNS_NICKNAME = "http://jabber.org/protocol/nick";
101 
102  const std::string XMLNS_JINGLE = "urn:xmpp:tmp:jingle";
103  const std::string XMLNS_JINGLE_AUDIO_RTP = "urn:xmpp:tmp:jingle:apps:audio-rtp";
104  const std::string XMLNS_JINGLE_ICE_UDP = "urn:xmpp:tmp:jingle:transports:ice-udp";
105  const std::string XMLNS_JINGLE_RAW_UDP = "urn:xmpp:tmp:jingle:transports:raw-udp";
106  const std::string XMLNS_JINGLE_VIDEO_RTP = "urn:xmpp:tmp:jingle:apps:video-rtp";
107 
108  const std::string XMLNS_SHIM = "http://jabber.org/protocol/shim";
109  const std::string XMLNS_ATTENTION = "urn:xmpp:attention:0";
110 
111  const std::string XMPP_STREAM_VERSION_MAJOR = "1";
112  const std::string XMPP_STREAM_VERSION_MINOR = "0";
113  const std::string GLOOX_VERSION = "1.0";
114  const std::string GLOOX_CAPS_NODE = "http://camaya.net/gloox";
115 
116  const std::string XMLNS = "xmlns";
117  const std::string TYPE = "type";
118  const std::string EmptyString = "";
119 }
120 
121 const char* gloox_version()
122 {
123  return gloox::GLOOX_VERSION.c_str();
124 }