QXmpp Version: 1.10.0
QXmppConstants_p.h
1// SPDX-FileCopyrightText: 2016 Manjeet Dahiya <manjeetdahiya@gmail.com>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPCONSTANTS_H
6#define QXMPPCONSTANTS_H
7
8#include <QStringView>
9
10//
11// W A R N I N G
12// -------------
13//
14// This file is not part of the QXmpp API. It exists for the convenience
15// of QXmpp's own classes. This header file may change from version to
16// version without notice, or even be removed.
17//
18// We mean it.
19//
20
21namespace QXmpp::Private {
22
23constexpr quint16 XMPP_DEFAULT_PORT = 5222;
24constexpr quint16 XMPPS_DEFAULT_PORT = 5223;
25constexpr quint16 XMPP_SERVER_DEFAULT_PORT = 5269;
26}
27
28// QXmpp
29inline constexpr QStringView ns_qxmpp_credentials = u"org.qxmpp.credentials";
30inline constexpr QStringView ns_qxmpp_export = u"org.qxmpp.export";
31// XMPP
32inline constexpr QStringView ns_stream = u"http://etherx.jabber.org/streams";
33inline constexpr QStringView ns_client = u"jabber:client";
34inline constexpr QStringView ns_server = u"jabber:server";
35inline constexpr QStringView ns_roster = u"jabber:iq:roster";
36inline constexpr QStringView ns_tls = u"urn:ietf:params:xml:ns:xmpp-tls";
37inline constexpr QStringView ns_sasl = u"urn:ietf:params:xml:ns:xmpp-sasl";
38inline constexpr QStringView ns_bind = u"urn:ietf:params:xml:ns:xmpp-bind";
39inline constexpr QStringView ns_stream_error = u"urn:ietf:params:xml:ns:xmpp-streams";
40inline constexpr QStringView ns_session = u"urn:ietf:params:xml:ns:xmpp-session";
41inline constexpr QStringView ns_stanza = u"urn:ietf:params:xml:ns:xmpp-stanzas";
42inline constexpr QStringView ns_pre_approval = u"urn:xmpp:features:pre-approval";
43inline constexpr QStringView ns_rosterver = u"urn:xmpp:features:rosterver";
44// XEP-0009: Jabber-RPC
45inline constexpr QStringView ns_rpc = u"jabber:iq:rpc";
46// XEP-0020: Feature Negotiation
47inline constexpr QStringView ns_feature_negotiation = u"http://jabber.org/protocol/feature-neg";
48// XEP-0027: Current Jabber OpenPGP Usage
49inline constexpr QStringView ns_legacy_openpgp = u"jabber:x:encrypted";
50// XEP-0030: Service Discovery
51inline constexpr QStringView ns_disco_info = u"http://jabber.org/protocol/disco#info";
52inline constexpr QStringView ns_disco_items = u"http://jabber.org/protocol/disco#items";
53// XEP-0033: Extended Stanza Addressing
54inline constexpr QStringView ns_extended_addressing = u"http://jabber.org/protocol/address";
55// XEP-0045: Multi-User Chat
56inline constexpr QStringView ns_muc = u"http://jabber.org/protocol/muc";
57inline constexpr QStringView ns_muc_admin = u"http://jabber.org/protocol/muc#admin";
58inline constexpr QStringView ns_muc_owner = u"http://jabber.org/protocol/muc#owner";
59inline constexpr QStringView ns_muc_user = u"http://jabber.org/protocol/muc#user";
60// XEP-0047: In-Band Bytestreams
61inline constexpr QStringView ns_ibb = u"http://jabber.org/protocol/ibb";
62// XEP-0048: Bookmarks
63inline constexpr QStringView ns_bookmarks = u"storage:bookmarks";
64// XEP-0049: Private XML Storage
65inline constexpr QStringView ns_private = u"jabber:iq:private";
66// XEP-0054: vcard-temp
67inline constexpr QStringView ns_vcard = u"vcard-temp";
68// XEP-0059: Result Set Management
69inline constexpr QStringView ns_rsm = u"http://jabber.org/protocol/rsm";
70// XEP-0060: Publish-Subscribe
71inline constexpr QStringView ns_pubsub = u"http://jabber.org/protocol/pubsub";
72inline constexpr QStringView ns_pubsub_auto_create = u"http://jabber.org/protocol/pubsub#auto-create";
73inline constexpr QStringView ns_pubsub_config_node = u"http://jabber.org/protocol/pubsub#config-node";
74inline constexpr QStringView ns_pubsub_config_node_max = u"http://jabber.org/protocol/pubsub#config-node-max";
75inline constexpr QStringView ns_pubsub_create_and_configure = u"http://jabber.org/protocol/pubsub#create-and-configure";
76inline constexpr QStringView ns_pubsub_create_nodes = u"http://jabber.org/protocol/pubsub#create-nodes";
77inline constexpr QStringView ns_pubsub_errors = u"http://jabber.org/protocol/pubsub#errors";
78inline constexpr QStringView ns_pubsub_event = u"http://jabber.org/protocol/pubsub#event";
79inline constexpr QStringView ns_pubsub_multi_items = u"http://jabber.org/protocol/pubsub#multi-items";
80inline constexpr QStringView ns_pubsub_node_config = u"http://jabber.org/protocol/pubsub#node_config";
81inline constexpr QStringView ns_pubsub_owner = u"http://jabber.org/protocol/pubsub#owner";
82inline constexpr QStringView ns_pubsub_publish = u"http://jabber.org/protocol/pubsub#publish";
83inline constexpr QStringView ns_pubsub_publish_options = u"http://jabber.org/protocol/pubsub#publish-options";
84inline constexpr QStringView ns_pubsub_rsm = u"http://jabber.org/protocol/pubsub#rsm";
85// XEP-0065: SOCKS5 Bytestreams
86inline constexpr QStringView ns_bytestreams = u"http://jabber.org/protocol/bytestreams";
87// XEP-0066: Out of Band Data
88inline constexpr QStringView ns_oob = u"jabber:x:oob";
89// XEP-0071: XHTML-IM
90inline constexpr QStringView ns_xhtml = u"http://www.w3.org/1999/xhtml";
91inline constexpr QStringView ns_xhtml_im = u"http://jabber.org/protocol/xhtml-im";
92// XEP-0077: In-Band Registration
93inline constexpr QStringView ns_register = u"jabber:iq:register";
94inline constexpr QStringView ns_register_feature = u"http://jabber.org/features/iq-register";
95// XEP-0078: Non-SASL Authentication
96inline constexpr QStringView ns_auth = u"jabber:iq:auth";
97inline constexpr QStringView ns_authFeature = u"http://jabber.org/features/iq-auth";
98// XEP-0080: User Location
99inline constexpr QStringView ns_geoloc = u"http://jabber.org/protocol/geoloc";
100inline constexpr QStringView ns_geoloc_notify = u"http://jabber.org/protocol/geoloc+notify";
101// XEP-0084: User Avatar
102inline constexpr QStringView ns_user_avatar_data = u"urn:xmpp:avatar:data";
103inline constexpr QStringView ns_user_avatar_metadata = u"urn:xmpp:avatar:metadata";
104// XEP-0085: Chat State Notifications
105inline constexpr QStringView ns_chat_states = u"http://jabber.org/protocol/chatstates";
106// XEP-0091: Legacy Delayed Delivery
107inline constexpr QStringView ns_legacy_delayed_delivery = u"jabber:x:delay";
108// XEP-0092: Software Version
109inline constexpr QStringView ns_version = u"jabber:iq:version";
110inline constexpr QStringView ns_data = u"jabber:x:data";
111// XEP-0095: Stream Initiation
112inline constexpr QStringView ns_stream_initiation = u"http://jabber.org/protocol/si";
113inline constexpr QStringView ns_stream_initiation_file_transfer = u"http://jabber.org/protocol/si/profile/file-transfer";
114// XEP-0103: URL Address Information
115inline constexpr QStringView ns_url_data = u"http://jabber.org/protocol/url-data";
116// XEP-0108: User Activity
117inline constexpr QStringView ns_activity = u"http://jabber.org/protocol/activity";
118// XEP-0115: Entity Capabilities
119inline constexpr QStringView ns_capabilities = u"http://jabber.org/protocol/caps";
120// XEP-0118: User Tune
121inline constexpr QStringView ns_tune = u"http://jabber.org/protocol/tune";
122inline constexpr QStringView ns_tune_notify = u"http://jabber.org/protocol/tune+notify";
123// XEP-0136: Message Archiving
124inline constexpr QStringView ns_archive = u"urn:xmpp:archive";
125// XEP-0138: Stream Compression
126inline constexpr QStringView ns_compress = u"http://jabber.org/protocol/compress";
127inline constexpr QStringView ns_compressFeature = u"http://jabber.org/features/compress";
128// XEP-0145: Annotations
129inline constexpr QStringView ns_rosternotes = u"storage:rosternotes";
130// XEP-0153: vCard-Based Avatars
131inline constexpr QStringView ns_vcard_update = u"vcard-temp:x:update";
132// XEP-0158: CAPTCHA Forms
133inline constexpr QStringView ns_captcha = u"urn:xmpp:captcha";
134// XEP-0166: Jingle
135inline constexpr QStringView ns_jingle = u"urn:xmpp:jingle:1";
136inline constexpr QStringView ns_jingle_raw_udp = u"urn:xmpp:jingle:transports:raw-udp:1";
137inline constexpr QStringView ns_jingle_ice_udp = u"urn:xmpp:jingle:transports:ice-udp:1";
138// XEP-0167: Jingle RTP Sessions
139inline constexpr QStringView ns_jingle_rtp = u"urn:xmpp:jingle:apps:rtp:1";
140inline constexpr QStringView ns_jingle_rtp_audio = u"urn:xmpp:jingle:apps:rtp:audio";
141inline constexpr QStringView ns_jingle_rtp_video = u"urn:xmpp:jingle:apps:rtp:video";
142inline constexpr QStringView ns_jingle_rtp_info = u"urn:xmpp:jingle:apps:rtp:info:1";
143inline constexpr QStringView ns_jingle_rtp_errors = u"urn:xmpp:jingle:apps:rtp:errors:1";
144// XEP-0184: Message Receipts
145inline constexpr QStringView ns_message_receipts = u"urn:xmpp:receipts";
146// XEP-0191 Blocking Command
147inline constexpr QStringView ns_blocking = u"urn:xmpp:blocking";
148// XEP-0198: Stream Management
149inline constexpr QStringView ns_stream_management = u"urn:xmpp:sm:3";
150// XEP-0199: XMPP Ping
151inline constexpr QStringView ns_ping = u"urn:xmpp:ping";
152// XEP-0202: Entity Time
153inline constexpr QStringView ns_entity_time = u"urn:xmpp:time";
154// XEP-0203: Delayed Delivery
155inline constexpr QStringView ns_delayed_delivery = u"urn:xmpp:delay";
156// XEP-0215: External Service Discovery
157inline constexpr QStringView ns_external_service_discovery = u"urn:xmpp:extdisco:2";
158// XEP-0220: Server Dialback
159inline constexpr QStringView ns_server_dialback = u"jabber:server:dialback";
160// XEP-0221: Data Forms Media Element
161inline constexpr QStringView ns_media_element = u"urn:xmpp:media-element";
162// XEP-0224: Attention
163inline constexpr QStringView ns_attention = u"urn:xmpp:attention:0";
164// XEP-0231: Bits of Binary
165inline constexpr QStringView ns_bob = u"urn:xmpp:bob";
166// XEP-0249: Direct MUC Invitations
167inline constexpr QStringView ns_conference = u"jabber:x:conference";
168// XEP-0264: Jingle Content Thumbnails
169inline constexpr QStringView ns_thumbs = u"urn:xmpp:thumbs:1";
170// XEP-0272: Multiparty Jingle (Muji)
171inline constexpr QStringView ns_muji = u"urn:xmpp:jingle:muji:0";
172// XEP-0280: Message Carbons
173inline constexpr QStringView ns_carbons = u"urn:xmpp:carbons:2";
174// XEP-0283: Moved
175inline constexpr QStringView ns_moved = u"urn:xmpp:moved:1";
176// XEP-0293: Jingle RTP Feedback Negotiation
177inline constexpr QStringView ns_jingle_rtp_feedback_negotiation = u"urn:xmpp:jingle:apps:rtp:rtcp-fb:0";
178// XEP-0294: Jingle RTP Header Extensions Negotiation
179inline constexpr QStringView ns_jingle_rtp_header_extensions_negotiation = u"urn:xmpp:jingle:apps:rtp:rtp-hdrext:0";
180// XEP-0297: Stanza Forwarding
181inline constexpr QStringView ns_forwarding = u"urn:xmpp:forward:0";
182// XEP-0300: Use of Cryptographic Hash Functions in XMPP
183inline constexpr QStringView ns_hashes = u"urn:xmpp:hashes:2";
184// XEP-0308: Last Message Correction
185inline constexpr QStringView ns_message_correct = u"urn:xmpp:message-correct:0";
186// XEP-0313: Message Archive Management
187inline constexpr QStringView ns_mam = u"urn:xmpp:mam:2";
188// XEP-0319: Last User Interaction in Presence
189inline constexpr QStringView ns_idle = u"urn:xmpp:idle:1";
190// XEP-0320: Use of DTLS-SRTP in Jingle Sessions
191inline constexpr QStringView ns_jingle_dtls = u"urn:xmpp:jingle:apps:dtls:0";
192// XEP-0333: Chat Markers
193inline constexpr QStringView ns_chat_markers = u"urn:xmpp:chat-markers:0";
194// XEP-0334: Message Processing Hints
195inline constexpr QStringView ns_message_processing_hints = u"urn:xmpp:hints";
196// XEP-0352: Client State Indication
197inline constexpr QStringView ns_csi = u"urn:xmpp:csi:0";
198// XEP-0353: Jingle Message Initiation
199inline constexpr QStringView ns_jingle_message_initiation = u"urn:xmpp:jingle-message:0";
200// XEP-0357: Push Notifications
201inline constexpr QStringView ns_push = u"urn:xmpp:push:0";
202// XEP-0359: Unique and Stable Stanza IDs
203inline constexpr QStringView ns_sid = u"urn:xmpp:sid:0";
204// XEP-0363: HTTP File Upload
205inline constexpr QStringView ns_http_upload = u"urn:xmpp:http:upload:0";
206// XEP-0364: Current Off-the-Record Messaging Usage
207inline constexpr QStringView ns_otr = u"urn:xmpp:otr:0";
208// XEP-0367: Message Attaching
209inline constexpr QStringView ns_message_attaching = u"urn:xmpp:message-attaching:1";
210// XEP-0369: Mediated Information eXchange (MIX)
211inline constexpr QStringView ns_mix = u"urn:xmpp:mix:core:1";
212inline constexpr QStringView ns_mix_create_channel = u"urn:xmpp:mix:core:1#create-channel";
213inline constexpr QStringView ns_mix_searchable = u"urn:xmpp:mix:core:1#searchable";
214inline constexpr QStringView ns_mix_node_info = u"urn:xmpp:mix:nodes:info";
215inline constexpr QStringView ns_mix_node_messages = u"urn:xmpp:mix:nodes:messages";
216inline constexpr QStringView ns_mix_node_participants = u"urn:xmpp:mix:nodes:participants";
217// XEP-0373: OpenPGP for XMPP
218inline constexpr QStringView ns_ox = u"urn:xmpp:openpgp:0";
219// XEP-0380: Explicit Message Encryption
220inline constexpr QStringView ns_eme = u"urn:xmpp:eme:0";
221// XEP-0382: Spoiler messages
222inline constexpr QStringView ns_spoiler = u"urn:xmpp:spoiler:0";
223// XEP-0384: OMEMO Encryption
224inline constexpr QStringView ns_omemo = u"eu.siacs.conversations.axolotl";
225inline constexpr QStringView ns_omemo_1 = u"urn:xmpp:omemo:1";
226inline constexpr QStringView ns_omemo_2 = u"urn:xmpp:omemo:2";
227inline constexpr QStringView ns_omemo_2_bundles = u"urn:xmpp:omemo:2:bundles";
228inline constexpr QStringView ns_omemo_2_devices = u"urn:xmpp:omemo:2:devices";
229// XEP-0386: Bind 2
230inline constexpr QStringView ns_bind2 = u"urn:xmpp:bind:0";
231// XEP-0388: Extensible SASL Profile
232inline constexpr QStringView ns_sasl_2 = u"urn:xmpp:sasl:2";
233// XEP-0403: Mediated Information eXchange (MIX): Presence Support
234inline constexpr QStringView ns_mix_node_presence = u"urn:xmpp:mix:nodes:presence";
235// XEP-0404: Mediated Information eXchange (MIX): JID Hidden Channels
236inline constexpr QStringView ns_mix_node_jidmap = u"urn:xmpp:mix:nodes:jidmap";
237// XEP-0405: Mediated Information eXchange (MIX): Participant Server Requirements
238inline constexpr QStringView ns_mix_pam = u"urn:xmpp:mix:pam:2";
239inline constexpr QStringView ns_mix_pam_archiving = u"urn:xmpp:mix:pam:2#archive";
240inline constexpr QStringView ns_mix_roster = u"urn:xmpp:mix:roster:0";
241inline constexpr QStringView ns_mix_presence = u"urn:xmpp:presence:0";
242// XEP-0406: Mediated Information eXchange (MIX): MIX Administration
243inline constexpr QStringView ns_mix_admin = u"urn:xmpp:mix:admin:0";
244inline constexpr QStringView ns_mix_node_allowed = u"urn:xmpp:mix:nodes:allowed";
245inline constexpr QStringView ns_mix_node_banned = u"urn:xmpp:mix:nodes:banned";
246inline constexpr QStringView ns_mix_node_config = u"urn:xmpp:mix:nodes:config";
247// XEP-0407: Mediated Information eXchange (MIX): Miscellaneous Capabilities
248inline constexpr QStringView ns_mix_misc = u"urn:xmpp:mix:misc:0";
249// XEP-0428: Fallback Indication
250inline constexpr QStringView ns_fallback_indication = u"urn:xmpp:fallback:0";
251// XEP-0434: Trust Messages (TM)
252inline constexpr QStringView ns_tm = u"urn:xmpp:tm:1";
253// XEP-0444: Message Reactions
254inline constexpr QStringView ns_reactions = u"urn:xmpp:reactions:0";
255// XEP-0446: File metadata element
256inline constexpr QStringView ns_file_metadata = u"urn:xmpp:file:metadata:0";
257// XEP-0447: Stateless file sharing
258inline constexpr QStringView ns_sfs = u"urn:xmpp:sfs:0";
259// XEP-0448: Encryption for stateless file sharing
260inline constexpr QStringView ns_esfs = u"urn:xmpp:esfs:0";
261// XEP-0450: Automatic Trust Management (ATM)
262inline constexpr QStringView ns_atm = u"urn:xmpp:atm:1";
263// XEP-0461: Message Replies
264inline constexpr QStringView ns_reply = u"urn:xmpp:reply:0";
265// XEP-0482: Call Invites
266inline constexpr QStringView ns_call_invites = u"urn:xmpp:call-invites:0";
267// XEP-0484: Fast Authentication Streamlining Tokens
268inline constexpr auto ns_fast = u"urn:xmpp:fast:0";
269
270#endif // QXMPPCONSTANTS_H