aboutsummaryrefslogtreecommitdiff
path: root/src/base
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2012-07-18 11:17:00 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2012-07-18 11:17:00 +0200
commit4f89a8151d8a3a8d6cf5b5cf5e8221287e5c3bcf (patch)
tree46b81391330291efa5dee33f466419f901621d88 /src/base
parente4b6ead714de4912a5a8d10177843eed6c448a28 (diff)
downloadqxmpp-4f89a8151d8a3a8d6cf5b5cf5e8221287e5c3bcf.tar.gz
re-order and comment namespace definitions
Diffstat (limited to 'src/base')
-rw-r--r--src/base/QXmppConstants.cpp44
-rw-r--r--src/base/QXmppConstants.h51
2 files changed, 67 insertions, 28 deletions
diff --git a/src/base/QXmppConstants.cpp b/src/base/QXmppConstants.cpp
index 3a70c9e1..d2af65fe 100644
--- a/src/base/QXmppConstants.cpp
+++ b/src/base/QXmppConstants.cpp
@@ -34,38 +34,46 @@ const char* ns_sasl = "urn:ietf:params:xml:ns:xmpp-sasl";
const char* ns_bind = "urn:ietf:params:xml:ns:xmpp-bind";
const char* ns_session = "urn:ietf:params:xml:ns:xmpp-session";
const char* ns_stanza = "urn:ietf:params:xml:ns:xmpp-stanzas";
-const char* ns_vcard = "vcard-temp";
-const char* ns_vcard_update = "vcard-temp:x:update";
const char* ns_auth = "jabber:iq:auth";
const char* ns_authFeature = "http://jabber.org/features/iq-auth";
const char* ns_capabilities = "http://jabber.org/protocol/caps";
const char* ns_compress = "http://jabber.org/protocol/compress";
const char* ns_compressFeature = "http://jabber.org/features/compress";
+const char *ns_legacy_delayed_delivery = "jabber:x:delay";
+// XEP-0009: Jabber-RPC
+const char* ns_rpc = "jabber:iq:rpc";
+// XEP-0020: Feature Negotiation
+const char *ns_feature_negotiation = "http://jabber.org/protocol/feature-neg";
+// XEP-0030: Service Discovery
const char* ns_disco_info = "http://jabber.org/protocol/disco#info";
const char* ns_disco_items = "http://jabber.org/protocol/disco#items";
-const char* ns_ibb = "http://jabber.org/protocol/ibb";
-const char* ns_rpc = "jabber:iq:rpc";
-const char *ns_ping = "urn:xmpp:ping";
-const char *ns_conference = "jabber:x:conference";
-const char *ns_message_receipts = "urn:xmpp:receipts";
-const char *ns_delayed_delivery = "urn:xmpp:delay";
-const char *ns_legacy_delayed_delivery = "jabber:x:delay";
+// XEP-0045: Multi-User Chat
const char *ns_muc = "http://jabber.org/protocol/muc";
const char *ns_muc_admin = "http://jabber.org/protocol/muc#admin";
const char *ns_muc_owner = "http://jabber.org/protocol/muc#owner";
const char *ns_muc_user = "http://jabber.org/protocol/muc#user";
-const char *ns_chat_states = "http://jabber.org/protocol/chatstates";
-const char *ns_stream_initiation = "http://jabber.org/protocol/si";
-const char *ns_stream_initiation_file_transfer = "http://jabber.org/protocol/si/profile/file-transfer";
-const char *ns_feature_negotiation = "http://jabber.org/protocol/feature-neg";
-const char *ns_bytestreams = "http://jabber.org/protocol/bytestreams";
+// XEP-0047: In-Band Bytestreams
+const char* ns_ibb = "http://jabber.org/protocol/ibb";
+// XEP-0054: vcard-temp
+const char* ns_vcard = "vcard-temp";
// XEP-0059: Result Set Management
const char *ns_rsm = "http://jabber.org/protocol/rsm";
+// XEP-0065: SOCKS5 Bytestreams
+const char *ns_bytestreams = "http://jabber.org/protocol/bytestreams";
+// XEP-0077: In-Band Registration
+const char *ns_register = "jabber:iq:register";
+// XEP-0085: Chat State Notifications
+const char *ns_chat_states = "http://jabber.org/protocol/chatstates";
// XEP-0092: Software Version
const char *ns_version = "jabber:iq:version";
const char *ns_data = "jabber:x:data";
+// XEP-0095: Stream Initiation
+const char *ns_stream_initiation = "http://jabber.org/protocol/si";
+const char *ns_stream_initiation_file_transfer = "http://jabber.org/protocol/si/profile/file-transfer";
// XEP-0136: Message Archiving
const char *ns_archive = "urn:xmpp:archive";
+// XEP-0153: vCard-Based Avatars
+const char* ns_vcard_update = "vcard-temp:x:update";
// XEP-0166: Jingle
const char *ns_jingle = "urn:xmpp:jingle:1";
const char *ns_jingle_raw_udp = "urn:xmpp:jingle:transports:raw-udp:1";
@@ -73,9 +81,17 @@ const char* ns_jingle_ice_udp = "urn:xmpp:jingle:transports:ice-udp:1";
const char *ns_jingle_rtp = "urn:xmpp:jingle:apps:rtp:1";
const char *ns_jingle_rtp_audio = "urn:xmpp:jingle:apps:rtp:audio";
const char *ns_jingle_rtp_video = "urn:xmpp:jingle:apps:rtp:video";
+// XEP-0184: Message Receipts
+const char *ns_message_receipts = "urn:xmpp:receipts";
+// XEP-0199: XMPP Ping
+const char *ns_ping = "urn:xmpp:ping";
// XEP-0202: Entity Time
const char *ns_entity_time = "urn:xmpp:time";
+// XEP-0203: Delayed Delivery
+const char *ns_delayed_delivery = "urn:xmpp:delay";
// XEP-0221: Data Forms Media Element
const char *ns_media_element = "urn:xmpp:media-element";
// XEP-0224: Attention
const char *ns_attention = "urn:xmpp:attention:0";
+// XEP-0249: Direct MUC Invitations
+const char *ns_conference = "jabber:x:conference";
diff --git a/src/base/QXmppConstants.h b/src/base/QXmppConstants.h
index 61c1da81..89c733fc 100644
--- a/src/base/QXmppConstants.h
+++ b/src/base/QXmppConstants.h
@@ -35,43 +35,66 @@ extern const char* ns_sasl;
extern const char* ns_bind;
extern const char* ns_session;
extern const char* ns_stanza;
-extern const char* ns_vcard;
-extern const char* ns_vcard_update;
extern const char* ns_auth;
extern const char* ns_authFeature;
extern const char* ns_capabilities;
extern const char* ns_compress;
extern const char* ns_compressFeature;
+extern const char *ns_legacy_delayed_delivery;
+// XEP-0009: Jabber-RPC
+extern const char* ns_rpc;
+// XEP-0020: Feature Negotiation
+extern const char *ns_feature_negotiation;
+// XEP-0030: Service Discovery
extern const char* ns_disco_info;
extern const char* ns_disco_items;
-extern const char* ns_ibb;
-extern const char* ns_rpc;
-extern const char* ns_ping;
-extern const char *ns_conference;
-extern const char *ns_message_receipts;
-extern const char *ns_delayed_delivery;
-extern const char *ns_legacy_delayed_delivery;
+// XEP-0045: Multi-User Chat
extern const char *ns_muc;
extern const char *ns_muc_admin;
extern const char *ns_muc_owner;
extern const char *ns_muc_user;
-extern const char *ns_chat_states;
-extern const char *ns_stream_initiation;
-extern const char *ns_stream_initiation_file_transfer;
-extern const char *ns_feature_negotiation;
-extern const char *ns_bytestreams;
+// XEP-0047: In-Band Bytestreams
+extern const char* ns_ibb;
+// XEP-0054: vcard-temp
+extern const char* ns_vcard;
+// XEP-0059: Result Set Management
extern const char *ns_rsm;
+// XEP-0065: SOCKS5 Bytestreams
+extern const char *ns_bytestreams;
+// XEP-0077: In-Band Registration
+extern const char *ns_register;
+// XEP-0085: Chat State Notifications
+extern const char *ns_chat_states;
+// XEP-0092: Software Version
extern const char *ns_version;
extern const char *ns_data;
+// XEP-0095: Stream Initiation
+extern const char *ns_stream_initiation;
+extern const char *ns_stream_initiation_file_transfer;
+// XEP-0136: Message Archiving
extern const char *ns_archive;
+// XEP-0153: vCard-Based Avatars
+extern const char* ns_vcard_update;
+// XEP-0166: Jingle
extern const char *ns_jingle;
extern const char* ns_jingle_ice_udp;
extern const char* ns_jingle_raw_udp;
extern const char *ns_jingle_rtp;
extern const char *ns_jingle_rtp_audio;
extern const char *ns_jingle_rtp_video;
+// XEP-0184: Message Receipts
+extern const char *ns_message_receipts;
+// XEP-0199: XMPP Ping
+extern const char* ns_ping;
+// XEP-0202: Entity Time
extern const char *ns_entity_time;
+// XEP-0203: Delayed Delivery
+extern const char *ns_delayed_delivery;
+// XEP-0221: Data Forms Media Element
extern const char *ns_media_element;
+// XEP-0224: Attention
extern const char *ns_attention;
+// XEP-0249: Direct MUC Invitations
+extern const char *ns_conference;
#endif // QXMPPCONSTANTS_H