gloox  1.0.28
gloox.cpp
1 /*
2  Copyright (c) 2005-2023 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.28";
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 
127 const char* gloox_version()
128 {
129  return gloox::GLOOX_VERSION.c_str();
130 }
The namespace for the gloox library.
Definition: adhoc.cpp:28
const std::string XMLNS_DISCO_PUBLISH
Definition: gloox.cpp:25
const std::string XMLNS_STREAM
Definition: gloox.cpp:84
const std::string XMLNS_STREAM_COMPRESS
Definition: gloox.cpp:95
const std::string XMLNS_LAST
Definition: gloox.cpp:45
const std::string XMLNS_FT_FASTMODE
Definition: gloox.cpp:83
const std::string XMLNS_X_VCARD_UPDATE
Definition: gloox.cpp:57
const std::string XMLNS_X_GPGENCRYPTED
Definition: gloox.cpp:55
const std::string XMLNS_IQ_OOB
Definition: gloox.cpp:48
const std::string XMLNS_VERSION
Definition: gloox.cpp:39
const std::string XMLNS_MESSAGE_CARBONS
Definition: gloox.cpp:111
const std::string XMLNS_X_EVENT
Definition: gloox.cpp:50
const std::string GLOOX_VERSION
Definition: gloox.cpp:119
const std::string XMLNS_XMPP_PING
Definition: gloox.cpp:62
const std::string XMLNS_PRIVATE_XML
Definition: gloox.cpp:44
const std::string XMLNS_ATTENTION
Definition: gloox.cpp:108
const std::string XMLNS_DELAY
Definition: gloox.cpp:37
const std::string XMLNS_XMPP_STREAM
Definition: gloox.cpp:85
const std::string XMLNS_RECEIPTS
Definition: gloox.cpp:98
const std::string XMLNS_COMPONENT_CONNECT
Definition: gloox.cpp:21
const std::string XMLNS_MUC_UNIQUE
Definition: gloox.cpp:71
const std::string XMLNS_XMPP_STANZAS
Definition: gloox.cpp:86
const std::string XMLNS_JINGLE
Definition: gloox.cpp:101
const std::string XMLNS_X_OOB
Definition: gloox.cpp:51
const std::string XMLNS_MUC_ROOMINFO
Definition: gloox.cpp:73
const std::string XMLNS_JINGLE_FILE_TRANSFER_MULTI
Definition: gloox.cpp:105
const std::string XMLNS_STREAM_BIND
Definition: gloox.cpp:90
const std::string XMLNS_MUC_OWNER
Definition: gloox.cpp:72
const std::string XMLNS_IBB
Definition: gloox.cpp:32
const std::string XMLNS_STREAM_IQREGISTER
Definition: gloox.cpp:93
const std::string XMLNS_STANZA_FORWARDING
Definition: gloox.cpp:110
const std::string XMPP_STREAM_VERSION_MAJOR
Definition: gloox.cpp:117
const std::string XMLNS_REGISTER
Definition: gloox.cpp:41
const std::string XMLNS_COMPONENT_ACCEPT
Definition: gloox.cpp:20
const std::string XMLNS_FEATURE_NEG
Definition: gloox.cpp:33
const std::string XMLNS_MUC_REQUEST
Definition: gloox.cpp:75
const std::string XMLNS_NICKNAME
Definition: gloox.cpp:99
const std::string XMLNS_CLIENT
Definition: gloox.cpp:19
const std::string XMLNS_X_DELAY
Definition: gloox.cpp:53
const std::string XMLNS_DISCO_ITEMS
Definition: gloox.cpp:24
const std::string XMLNS_PUBSUB_ERRORS
Definition: gloox.cpp:78
const std::string XMLNS_ANNOTATIONS
Definition: gloox.cpp:60
const std::string XMLNS_STREAM_SASL
Definition: gloox.cpp:89
const std::string XMLNS_BOOKMARKS
Definition: gloox.cpp:59
const std::string XMLNS_PUBSUB_EVENT
Definition: gloox.cpp:79
const std::string XMLNS_X_DATA
Definition: gloox.cpp:49
const std::string XMLNS_VCARD_TEMP
Definition: gloox.cpp:56
const std::string GLOOX_CAPS_NODE
Definition: gloox.cpp:120
const std::string XMPP_STREAM_VERSION_MINOR
Definition: gloox.cpp:118
const std::string XMLNS_DISCO_INFO
Definition: gloox.cpp:23
const std::string XMLNS_STREAM_SESSION
Definition: gloox.cpp:91
const std::string EmptyString
Definition: gloox.cpp:124
const std::string XMLNS_STREAM_IQAUTH
Definition: gloox.cpp:92
const std::string XMLNS
Definition: gloox.cpp:122
const std::string TYPE
Definition: gloox.cpp:123
const std::string XMLNS_CLIENT_STATE_INDICATION
Definition: gloox.cpp:115
const std::string XMLNS_SI_FT
Definition: gloox.cpp:65
const std::string XMLNS_ROSTER
Definition: gloox.cpp:38
const std::string XMLNS_AMP
Definition: gloox.cpp:31
const std::string XMLNS_PRIVACY
Definition: gloox.cpp:42
const std::string XMLNS_IODATA
Definition: gloox.cpp:114
const std::string XMLNS_MUC_USER
Definition: gloox.cpp:68
const std::string XMLNS_MUC_ADMIN
Definition: gloox.cpp:69
const std::string XMLNS_X_GPGSIGNED
Definition: gloox.cpp:54
const std::string XMLNS_AUTH
Definition: gloox.cpp:43
const std::string XMLNS_SI
Definition: gloox.cpp:63
const std::string XMLNS_CAPS
Definition: gloox.cpp:81
const std::string XMLNS_COMPRESSION
Definition: gloox.cpp:27
const std::string XMLNS_SHIM
Definition: gloox.cpp:107
const std::string XMLNS_ADHOC_COMMANDS
Definition: gloox.cpp:26
const std::string XMLNS_JINGLE_ERRORS
Definition: gloox.cpp:102
const std::string XMLNS_PUBSUB_OWNER
Definition: gloox.cpp:80
const std::string XMLNS_STREAM_TLS
Definition: gloox.cpp:87
const std::string XMLNS_CHAT_STATES
Definition: gloox.cpp:30
const std::string XMLNS_OFFLINE
Definition: gloox.cpp:29
const std::string XMLNS_XMPP_BOSH
Definition: gloox.cpp:97
const std::string XMLNS_ROSTER_DELIMITER
Definition: gloox.cpp:61
const std::string XMLNS_BYTESTREAMS
Definition: gloox.cpp:66
const std::string XMLNS_SEARCH
Definition: gloox.cpp:47
const std::string XMLNS_JINGLE_ICE_UDP
Definition: gloox.cpp:103
const std::string XMLNS_MUC_ROOMS
Definition: gloox.cpp:74
const std::string XMLNS_STREAM_MANAGEMENT
Definition: gloox.cpp:109
const std::string XMLNS_PUBSUB
Definition: gloox.cpp:77
const std::string XMLNS_HTTPBIND
Definition: gloox.cpp:96
const std::string XMLNS_XHTML_IM
Definition: gloox.cpp:36
const std::string XMLNS_CHATNEG
Definition: gloox.cpp:35
const std::string XMLNS_HASHES
Definition: gloox.cpp:113
const std::string XMLNS_MUC
Definition: gloox.cpp:67
const std::string XMLNS_JINGLE_FILE_TRANSFER
Definition: gloox.cpp:104