constants.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549
  1. /*
  2. * Copyright 2004 The WebRTC Project Authors. All rights reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #ifndef THIRD_PARTY_LIBJINGLE_XMPP_XMPP_CONSTANTS_H_
  11. #define THIRD_PARTY_LIBJINGLE_XMPP_XMPP_CONSTANTS_H_
  12. #include <string>
  13. #include "third_party/libjingle_xmpp/xmllite/qname.h"
  14. #include "third_party/libjingle_xmpp/xmpp/jid.h"
  15. namespace jingle_xmpp {
  16. extern const char NS_CLIENT[];
  17. extern const char NS_SERVER[];
  18. extern const char NS_STREAM[];
  19. extern const char NS_XSTREAM[];
  20. extern const char NS_TLS[];
  21. extern const char NS_SASL[];
  22. extern const char NS_BIND[];
  23. extern const char NS_DIALBACK[];
  24. extern const char NS_SESSION[];
  25. extern const char NS_STANZA[];
  26. extern const char NS_PRIVACY[];
  27. extern const char NS_ROSTER[];
  28. extern const char NS_VCARD[];
  29. extern const char NS_AVATAR_HASH[];
  30. extern const char NS_VCARD_UPDATE[];
  31. extern const char STR_CLIENT[];
  32. extern const char STR_SERVER[];
  33. extern const char STR_STREAM[];
  34. extern const char STR_GET[];
  35. extern const char STR_SET[];
  36. extern const char STR_RESULT[];
  37. extern const char STR_ERROR[];
  38. extern const char STR_FORM[];
  39. extern const char STR_SUBMIT[];
  40. extern const char STR_TEXT_SINGLE[];
  41. extern const char STR_LIST_SINGLE[];
  42. extern const char STR_LIST_MULTI[];
  43. extern const char STR_HIDDEN[];
  44. extern const char STR_FORM_TYPE[];
  45. extern const char STR_FROM[];
  46. extern const char STR_TO[];
  47. extern const char STR_BOTH[];
  48. extern const char STR_REMOVE[];
  49. extern const char STR_TRUE[];
  50. extern const char STR_TYPE[];
  51. extern const char STR_NAME[];
  52. extern const char STR_ID[];
  53. extern const char STR_JID[];
  54. extern const char STR_SUBSCRIPTION[];
  55. extern const char STR_ASK[];
  56. extern const char STR_X[];
  57. extern const char STR_GOOGLE_COM[];
  58. extern const char STR_GMAIL_COM[];
  59. extern const char STR_GOOGLEMAIL_COM[];
  60. extern const char STR_DEFAULT_DOMAIN[];
  61. extern const char STR_TALK_GOOGLE_COM[];
  62. extern const char STR_TALKX_L_GOOGLE_COM[];
  63. extern const char STR_XMPP_GOOGLE_COM[];
  64. extern const char STR_XMPPX_L_GOOGLE_COM[];
  65. extern const char STR_VOICEMAIL[];
  66. extern const char STR_OUTGOINGVOICEMAIL[];
  67. extern const char STR_UNAVAILABLE[];
  68. extern const char NS_PING[];
  69. extern const StaticQName QN_PING;
  70. extern const char NS_MUC_UNIQUE[];
  71. extern const StaticQName QN_MUC_UNIQUE_QUERY;
  72. extern const StaticQName QN_HANGOUT_ID;
  73. extern const char STR_GOOGLE_MUC_LOOKUP_JID[];
  74. extern const char STR_MUC_ROOMCONFIG_ROOMNAME[];
  75. extern const char STR_MUC_ROOMCONFIG_FEATURES[];
  76. extern const char STR_MUC_ROOM_FEATURE_ENTERPRISE[];
  77. extern const char STR_MUC_ROOMCONFIG[];
  78. extern const char STR_MUC_ROOM_FEATURE_HANGOUT[];
  79. extern const char STR_MUC_ROOM_FEATURE_HANGOUT_LITE[];
  80. extern const char STR_MUC_ROOM_FEATURE_BROADCAST[];
  81. extern const char STR_MUC_ROOM_FEATURE_MULTI_USER_VC[];
  82. extern const char STR_MUC_ROOM_FEATURE_RECORDABLE[];
  83. extern const char STR_MUC_ROOM_FEATURE_CUSTOM_RECORDING[];
  84. extern const char STR_MUC_ROOM_OWNER_PROFILE_ID[];
  85. extern const char STR_MUC_ROOM_FEATURE_ABUSE_RECORDABLE[];
  86. extern const char STR_ID_TYPE_CONVERSATION[];
  87. extern const char NS_GOOGLE_MUC_HANGOUT[];
  88. extern const StaticQName QN_GOOGLE_MUC_HANGOUT_INVITE;
  89. extern const StaticQName QN_GOOGLE_MUC_HANGOUT_INVITE_TYPE;
  90. extern const StaticQName QN_ATTR_CREATE_ACTIVITY;
  91. extern const StaticQName QN_GOOGLE_MUC_HANGOUT_PUBLIC;
  92. extern const StaticQName QN_GOOGLE_MUC_HANGOUT_INVITEE;
  93. extern const StaticQName QN_GOOGLE_MUC_HANGOUT_NOTIFICATION_STATUS;
  94. extern const StaticQName QN_GOOGLE_MUC_HANGOUT_NOTIFICATION_TYPE;
  95. extern const StaticQName QN_GOOGLE_MUC_HANGOUT_HANGOUT_START_CONTEXT;
  96. extern const StaticQName QN_GOOGLE_MUC_HANGOUT_CONVERSATION_ID;
  97. extern const StaticQName QN_STREAM_STREAM;
  98. extern const StaticQName QN_STREAM_FEATURES;
  99. extern const StaticQName QN_STREAM_ERROR;
  100. extern const StaticQName QN_XSTREAM_BAD_FORMAT;
  101. extern const StaticQName QN_XSTREAM_BAD_NAMESPACE_PREFIX;
  102. extern const StaticQName QN_XSTREAM_CONFLICT;
  103. extern const StaticQName QN_XSTREAM_CONNECTION_TIMEOUT;
  104. extern const StaticQName QN_XSTREAM_HOST_GONE;
  105. extern const StaticQName QN_XSTREAM_HOST_UNKNOWN;
  106. extern const StaticQName QN_XSTREAM_IMPROPER_ADDRESSIING;
  107. extern const StaticQName QN_XSTREAM_INTERNAL_SERVER_ERROR;
  108. extern const StaticQName QN_XSTREAM_INVALID_FROM;
  109. extern const StaticQName QN_XSTREAM_INVALID_ID;
  110. extern const StaticQName QN_XSTREAM_INVALID_NAMESPACE;
  111. extern const StaticQName QN_XSTREAM_INVALID_XML;
  112. extern const StaticQName QN_XSTREAM_NOT_AUTHORIZED;
  113. extern const StaticQName QN_XSTREAM_POLICY_VIOLATION;
  114. extern const StaticQName QN_XSTREAM_REMOTE_CONNECTION_FAILED;
  115. extern const StaticQName QN_XSTREAM_RESOURCE_CONSTRAINT;
  116. extern const StaticQName QN_XSTREAM_RESTRICTED_XML;
  117. extern const StaticQName QN_XSTREAM_SEE_OTHER_HOST;
  118. extern const StaticQName QN_XSTREAM_SYSTEM_SHUTDOWN;
  119. extern const StaticQName QN_XSTREAM_UNDEFINED_CONDITION;
  120. extern const StaticQName QN_XSTREAM_UNSUPPORTED_ENCODING;
  121. extern const StaticQName QN_XSTREAM_UNSUPPORTED_STANZA_TYPE;
  122. extern const StaticQName QN_XSTREAM_UNSUPPORTED_VERSION;
  123. extern const StaticQName QN_XSTREAM_XML_NOT_WELL_FORMED;
  124. extern const StaticQName QN_XSTREAM_TEXT;
  125. extern const StaticQName QN_TLS_STARTTLS;
  126. extern const StaticQName QN_TLS_REQUIRED;
  127. extern const StaticQName QN_TLS_PROCEED;
  128. extern const StaticQName QN_TLS_FAILURE;
  129. extern const StaticQName QN_SASL_MECHANISMS;
  130. extern const StaticQName QN_SASL_MECHANISM;
  131. extern const StaticQName QN_SASL_AUTH;
  132. extern const StaticQName QN_SASL_CHALLENGE;
  133. extern const StaticQName QN_SASL_RESPONSE;
  134. extern const StaticQName QN_SASL_ABORT;
  135. extern const StaticQName QN_SASL_SUCCESS;
  136. extern const StaticQName QN_SASL_FAILURE;
  137. extern const StaticQName QN_SASL_ABORTED;
  138. extern const StaticQName QN_SASL_INCORRECT_ENCODING;
  139. extern const StaticQName QN_SASL_INVALID_AUTHZID;
  140. extern const StaticQName QN_SASL_INVALID_MECHANISM;
  141. extern const StaticQName QN_SASL_MECHANISM_TOO_WEAK;
  142. extern const StaticQName QN_SASL_NOT_AUTHORIZED;
  143. extern const StaticQName QN_SASL_TEMPORARY_AUTH_FAILURE;
  144. // These are non-standard.
  145. extern const char NS_GOOGLE_AUTH[];
  146. extern const char NS_GOOGLE_AUTH_PROTOCOL[];
  147. extern const StaticQName QN_GOOGLE_AUTH_CLIENT_USES_FULL_BIND_RESULT;
  148. extern const StaticQName QN_GOOGLE_ALLOW_NON_GOOGLE_ID_XMPP_LOGIN;
  149. extern const StaticQName QN_GOOGLE_AUTH_SERVICE;
  150. extern const StaticQName QN_DIALBACK_RESULT;
  151. extern const StaticQName QN_DIALBACK_VERIFY;
  152. extern const StaticQName QN_STANZA_BAD_REQUEST;
  153. extern const StaticQName QN_STANZA_CONFLICT;
  154. extern const StaticQName QN_STANZA_FEATURE_NOT_IMPLEMENTED;
  155. extern const StaticQName QN_STANZA_FORBIDDEN;
  156. extern const StaticQName QN_STANZA_GONE;
  157. extern const StaticQName QN_STANZA_INTERNAL_SERVER_ERROR;
  158. extern const StaticQName QN_STANZA_ITEM_NOT_FOUND;
  159. extern const StaticQName QN_STANZA_JID_MALFORMED;
  160. extern const StaticQName QN_STANZA_NOT_ACCEPTABLE;
  161. extern const StaticQName QN_STANZA_NOT_ALLOWED;
  162. extern const StaticQName QN_STANZA_PAYMENT_REQUIRED;
  163. extern const StaticQName QN_STANZA_RECIPIENT_UNAVAILABLE;
  164. extern const StaticQName QN_STANZA_REDIRECT;
  165. extern const StaticQName QN_STANZA_REGISTRATION_REQUIRED;
  166. extern const StaticQName QN_STANZA_REMOTE_SERVER_NOT_FOUND;
  167. extern const StaticQName QN_STANZA_REMOTE_SERVER_TIMEOUT;
  168. extern const StaticQName QN_STANZA_RESOURCE_CONSTRAINT;
  169. extern const StaticQName QN_STANZA_SERVICE_UNAVAILABLE;
  170. extern const StaticQName QN_STANZA_SUBSCRIPTION_REQUIRED;
  171. extern const StaticQName QN_STANZA_UNDEFINED_CONDITION;
  172. extern const StaticQName QN_STANZA_UNEXPECTED_REQUEST;
  173. extern const StaticQName QN_STANZA_TEXT;
  174. extern const StaticQName QN_BIND_BIND;
  175. extern const StaticQName QN_BIND_RESOURCE;
  176. extern const StaticQName QN_BIND_JID;
  177. extern const StaticQName QN_MESSAGE;
  178. extern const StaticQName QN_BODY;
  179. extern const StaticQName QN_SUBJECT;
  180. extern const StaticQName QN_THREAD;
  181. extern const StaticQName QN_PRESENCE;
  182. extern const StaticQName QN_SHOW;
  183. extern const StaticQName QN_STATUS;
  184. extern const StaticQName QN_LANG;
  185. extern const StaticQName QN_PRIORITY;
  186. extern const StaticQName QN_IQ;
  187. extern const StaticQName QN_ERROR;
  188. extern const StaticQName QN_SERVER_MESSAGE;
  189. extern const StaticQName QN_SERVER_BODY;
  190. extern const StaticQName QN_SERVER_SUBJECT;
  191. extern const StaticQName QN_SERVER_THREAD;
  192. extern const StaticQName QN_SERVER_PRESENCE;
  193. extern const StaticQName QN_SERVER_SHOW;
  194. extern const StaticQName QN_SERVER_STATUS;
  195. extern const StaticQName QN_SERVER_LANG;
  196. extern const StaticQName QN_SERVER_PRIORITY;
  197. extern const StaticQName QN_SERVER_IQ;
  198. extern const StaticQName QN_SERVER_ERROR;
  199. extern const StaticQName QN_SESSION_SESSION;
  200. extern const StaticQName QN_PRIVACY_QUERY;
  201. extern const StaticQName QN_PRIVACY_ACTIVE;
  202. extern const StaticQName QN_PRIVACY_DEFAULT;
  203. extern const StaticQName QN_PRIVACY_LIST;
  204. extern const StaticQName QN_PRIVACY_ITEM;
  205. extern const StaticQName QN_PRIVACY_IQ;
  206. extern const StaticQName QN_PRIVACY_MESSAGE;
  207. extern const StaticQName QN_PRIVACY_PRESENCE_IN;
  208. extern const StaticQName QN_PRIVACY_PRESENCE_OUT;
  209. extern const StaticQName QN_ROSTER_QUERY;
  210. extern const StaticQName QN_ROSTER_ITEM;
  211. extern const StaticQName QN_ROSTER_GROUP;
  212. extern const StaticQName QN_VCARD;
  213. extern const StaticQName QN_VCARD_FN;
  214. extern const StaticQName QN_VCARD_PHOTO;
  215. extern const StaticQName QN_VCARD_PHOTO_BINVAL;
  216. extern const StaticQName QN_VCARD_AVATAR_HASH;
  217. extern const StaticQName QN_VCARD_AVATAR_HASH_MODIFIED;
  218. #if defined(FEATURE_ENABLE_PSTN)
  219. extern const StaticQName QN_VCARD_TEL;
  220. extern const StaticQName QN_VCARD_VOICE;
  221. extern const StaticQName QN_VCARD_HOME;
  222. extern const StaticQName QN_VCARD_WORK;
  223. extern const StaticQName QN_VCARD_CELL;
  224. extern const StaticQName QN_VCARD_NUMBER;
  225. #endif
  226. #if defined(FEATURE_ENABLE_RICHPROFILES)
  227. extern const StaticQName QN_USER_PROFILE_QUERY;
  228. extern const StaticQName QN_USER_PROFILE_URL;
  229. extern const StaticQName QN_ATOM_FEED;
  230. extern const StaticQName QN_ATOM_ENTRY;
  231. extern const StaticQName QN_ATOM_TITLE;
  232. extern const StaticQName QN_ATOM_ID;
  233. extern const StaticQName QN_ATOM_MODIFIED;
  234. extern const StaticQName QN_ATOM_IMAGE;
  235. extern const StaticQName QN_ATOM_LINK;
  236. extern const StaticQName QN_ATOM_HREF;
  237. #endif
  238. extern const StaticQName QN_XML_LANG;
  239. extern const StaticQName QN_ENCODING;
  240. extern const StaticQName QN_VERSION;
  241. extern const StaticQName QN_TO;
  242. extern const StaticQName QN_FROM;
  243. extern const StaticQName QN_TYPE;
  244. extern const StaticQName QN_ID;
  245. extern const StaticQName QN_CODE;
  246. extern const StaticQName QN_NAME;
  247. extern const StaticQName QN_VALUE;
  248. extern const StaticQName QN_ACTION;
  249. extern const StaticQName QN_ORDER;
  250. extern const StaticQName QN_MECHANISM;
  251. extern const StaticQName QN_ASK;
  252. extern const StaticQName QN_JID;
  253. extern const StaticQName QN_NICK;
  254. extern const StaticQName QN_SUBSCRIPTION;
  255. extern const StaticQName QN_TITLE1;
  256. extern const StaticQName QN_TITLE2;
  257. extern const StaticQName QN_AFFILIATION;
  258. extern const StaticQName QN_ROLE;
  259. extern const StaticQName QN_TIME;
  260. extern const StaticQName QN_XMLNS_CLIENT;
  261. extern const StaticQName QN_XMLNS_SERVER;
  262. extern const StaticQName QN_XMLNS_STREAM;
  263. // Presence
  264. extern const char STR_SHOW_AWAY[];
  265. extern const char STR_SHOW_CHAT[];
  266. extern const char STR_SHOW_DND[];
  267. extern const char STR_SHOW_XA[];
  268. extern const char STR_SHOW_OFFLINE[];
  269. extern const char NS_GOOGLE_PSTN_CONFERENCE[];
  270. extern const StaticQName QN_GOOGLE_PSTN_CONFERENCE_STATUS;
  271. extern const StaticQName QN_ATTR_STATUS;
  272. // Presence connection status
  273. extern const char STR_PSTN_CONFERENCE_STATUS_CONNECTING[];
  274. extern const char STR_PSTN_CONFERENCE_STATUS_JOINING[];
  275. extern const char STR_PSTN_CONFERENCE_STATUS_CONNECTED[];
  276. extern const char STR_PSTN_CONFERENCE_STATUS_HANGUP[];
  277. // Subscription
  278. extern const char STR_SUBSCRIBE[];
  279. extern const char STR_SUBSCRIBED[];
  280. extern const char STR_UNSUBSCRIBE[];
  281. extern const char STR_UNSUBSCRIBED[];
  282. // Google Invite
  283. extern const char NS_GOOGLE_SUBSCRIBE[];
  284. extern const StaticQName QN_INVITATION;
  285. extern const StaticQName QN_INVITE_NAME;
  286. extern const StaticQName QN_INVITE_SUBJECT;
  287. extern const StaticQName QN_INVITE_MESSAGE;
  288. // Kick
  289. extern const char NS_GOOGLE_MUC_ADMIN[];
  290. extern const StaticQName QN_GOOGLE_MUC_ADMIN_QUERY;
  291. extern const StaticQName QN_GOOGLE_MUC_ADMIN_QUERY_ITEM;
  292. extern const StaticQName QN_GOOGLE_MUC_ADMIN_QUERY_ITEM_REASON;
  293. // PubSub: http://xmpp.org/extensions/xep-0060.html
  294. extern const char NS_PUBSUB[];
  295. extern const StaticQName QN_PUBSUB;
  296. extern const StaticQName QN_PUBSUB_ITEMS;
  297. extern const StaticQName QN_PUBSUB_ITEM;
  298. extern const StaticQName QN_PUBSUB_PUBLISH;
  299. extern const StaticQName QN_PUBSUB_RETRACT;
  300. extern const StaticQName QN_ATTR_PUBLISHER;
  301. extern const char NS_PUBSUB_EVENT[];
  302. extern const StaticQName QN_NODE;
  303. extern const StaticQName QN_PUBSUB_EVENT;
  304. extern const StaticQName QN_PUBSUB_EVENT_ITEMS;
  305. extern const StaticQName QN_PUBSUB_EVENT_ITEM;
  306. extern const StaticQName QN_PUBSUB_EVENT_RETRACT;
  307. extern const StaticQName QN_NOTIFY;
  308. extern const char NS_PRESENTER[];
  309. extern const StaticQName QN_PRESENTER_PRESENTER;
  310. extern const StaticQName QN_PRESENTER_PRESENTATION_ITEM;
  311. extern const StaticQName QN_PRESENTER_PRESENTATION_TYPE;
  312. extern const StaticQName QN_PRESENTER_PRESENTATION_ID;
  313. // JEP 0030
  314. extern const StaticQName QN_CATEGORY;
  315. extern const StaticQName QN_VAR;
  316. extern const char NS_DISCO_INFO[];
  317. extern const char NS_DISCO_ITEMS[];
  318. extern const StaticQName QN_DISCO_INFO_QUERY;
  319. extern const StaticQName QN_DISCO_IDENTITY;
  320. extern const StaticQName QN_DISCO_FEATURE;
  321. extern const StaticQName QN_DISCO_ITEMS_QUERY;
  322. extern const StaticQName QN_DISCO_ITEM;
  323. // JEP 0020
  324. extern const char NS_FEATURE[];
  325. extern const StaticQName QN_FEATURE_FEATURE;
  326. // JEP 0004
  327. extern const char NS_XDATA[];
  328. extern const StaticQName QN_XDATA_X;
  329. extern const StaticQName QN_XDATA_INSTRUCTIONS;
  330. extern const StaticQName QN_XDATA_TITLE;
  331. extern const StaticQName QN_XDATA_FIELD;
  332. extern const StaticQName QN_XDATA_REPORTED;
  333. extern const StaticQName QN_XDATA_ITEM;
  334. extern const StaticQName QN_XDATA_DESC;
  335. extern const StaticQName QN_XDATA_REQUIRED;
  336. extern const StaticQName QN_XDATA_VALUE;
  337. extern const StaticQName QN_XDATA_OPTION;
  338. // JEP 0045
  339. extern const char NS_MUC[];
  340. extern const StaticQName QN_MUC_X;
  341. extern const StaticQName QN_MUC_ITEM;
  342. extern const StaticQName QN_MUC_AFFILIATION;
  343. extern const StaticQName QN_MUC_ROLE;
  344. extern const StaticQName QN_CLIENT_VERSION;
  345. extern const StaticQName QN_LOCALE;
  346. extern const char STR_AFFILIATION_NONE[];
  347. extern const char STR_ROLE_PARTICIPANT[];
  348. extern const char NS_GOOGLE_SESSION[];
  349. extern const StaticQName QN_GOOGLE_USER_ID;
  350. extern const StaticQName QN_GOOGLE_CIRCLE_ID;
  351. extern const StaticQName QN_GOOGLE_SESSION_BLOCKED;
  352. extern const StaticQName QN_GOOGLE_SESSION_BLOCKING;
  353. extern const char NS_MUC_OWNER[];
  354. extern const StaticQName QN_MUC_OWNER_QUERY;
  355. extern const char NS_MUC_USER[];
  356. extern const StaticQName QN_MUC_USER_CONTINUE;
  357. extern const StaticQName QN_MUC_USER_X;
  358. extern const StaticQName QN_MUC_USER_ITEM;
  359. extern const StaticQName QN_MUC_USER_STATUS;
  360. extern const StaticQName QN_MUC_USER_REASON;
  361. extern const StaticQName QN_MUC_USER_ABUSE_VIOLATION;
  362. // JEP 0055 - Jabber Search
  363. extern const char NS_SEARCH[];
  364. extern const StaticQName QN_SEARCH_QUERY;
  365. extern const StaticQName QN_SEARCH_ITEM;
  366. extern const StaticQName QN_SEARCH_ROOM_NAME;
  367. extern const StaticQName QN_SEARCH_ROOM_JID;
  368. extern const StaticQName QN_SEARCH_ROOM_DOMAIN;
  369. extern const StaticQName QN_SEARCH_HANGOUT_ID;
  370. extern const StaticQName QN_SEARCH_EXTERNAL_ID;
  371. // JEP 0115
  372. extern const char NS_CAPS[];
  373. extern const StaticQName QN_CAPS_C;
  374. extern const StaticQName QN_VER;
  375. extern const StaticQName QN_EXT;
  376. // Avatar - JEP 0153
  377. extern const char kNSVCard[];
  378. extern const StaticQName kQnVCardX;
  379. extern const StaticQName kQnVCardPhoto;
  380. // JEP 0172 User Nickname
  381. extern const char NS_NICKNAME[];
  382. extern const StaticQName QN_NICKNAME;
  383. // JEP 0085 chat state
  384. extern const char NS_CHATSTATE[];
  385. extern const StaticQName QN_CS_ACTIVE;
  386. extern const StaticQName QN_CS_COMPOSING;
  387. extern const StaticQName QN_CS_PAUSED;
  388. extern const StaticQName QN_CS_INACTIVE;
  389. extern const StaticQName QN_CS_GONE;
  390. // JEP 0091 Delayed Delivery
  391. extern const char kNSDelay[];
  392. extern const StaticQName kQnDelayX;
  393. extern const StaticQName kQnStamp;
  394. // Google time stamping (higher resolution)
  395. extern const char kNSTimestamp[];
  396. extern const StaticQName kQnTime;
  397. extern const StaticQName kQnMilliseconds;
  398. extern const char NS_JINGLE_INFO[];
  399. extern const StaticQName QN_JINGLE_INFO_QUERY;
  400. extern const StaticQName QN_JINGLE_INFO_STUN;
  401. extern const StaticQName QN_JINGLE_INFO_RELAY;
  402. extern const StaticQName QN_JINGLE_INFO_SERVER;
  403. extern const StaticQName QN_JINGLE_INFO_TOKEN;
  404. extern const StaticQName QN_JINGLE_INFO_HOST;
  405. extern const StaticQName QN_JINGLE_INFO_TCP;
  406. extern const StaticQName QN_JINGLE_INFO_UDP;
  407. extern const StaticQName QN_JINGLE_INFO_TCPSSL;
  408. extern const char NS_GOOGLE_CALLPERF_STATS[];
  409. extern const StaticQName QN_CALLPERF_STATS;
  410. extern const StaticQName QN_CALLPERF_SESSIONID;
  411. extern const StaticQName QN_CALLPERF_LOCALUSER;
  412. extern const StaticQName QN_CALLPERF_REMOTEUSER;
  413. extern const StaticQName QN_CALLPERF_STARTTIME;
  414. extern const StaticQName QN_CALLPERF_CALL_LENGTH;
  415. extern const StaticQName QN_CALLPERF_CALL_ACCEPTED;
  416. extern const StaticQName QN_CALLPERF_CALL_ERROR_CODE;
  417. extern const StaticQName QN_CALLPERF_TERMINATE_CODE;
  418. extern const StaticQName QN_CALLPERF_DATAPOINT;
  419. extern const StaticQName QN_CALLPERF_DATAPOINT_TIME;
  420. extern const StaticQName QN_CALLPERF_DATAPOINT_FRACTION_LOST;
  421. extern const StaticQName QN_CALLPERF_DATAPOINT_CUM_LOST;
  422. extern const StaticQName QN_CALLPERF_DATAPOINT_EXT_MAX;
  423. extern const StaticQName QN_CALLPERF_DATAPOINT_JITTER;
  424. extern const StaticQName QN_CALLPERF_DATAPOINT_RTT;
  425. extern const StaticQName QN_CALLPERF_DATAPOINT_BYTES_R;
  426. extern const StaticQName QN_CALLPERF_DATAPOINT_PACKETS_R;
  427. extern const StaticQName QN_CALLPERF_DATAPOINT_BYTES_S;
  428. extern const StaticQName QN_CALLPERF_DATAPOINT_PACKETS_S;
  429. extern const StaticQName QN_CALLPERF_DATAPOINT_PROCESS_CPU;
  430. extern const StaticQName QN_CALLPERF_DATAPOINT_SYSTEM_CPU;
  431. extern const StaticQName QN_CALLPERF_DATAPOINT_CPUS;
  432. extern const StaticQName QN_CALLPERF_CONNECTION;
  433. extern const StaticQName QN_CALLPERF_CONNECTION_LOCAL_ADDRESS;
  434. extern const StaticQName QN_CALLPERF_CONNECTION_REMOTE_ADDRESS;
  435. extern const StaticQName QN_CALLPERF_CONNECTION_FLAGS;
  436. extern const StaticQName QN_CALLPERF_CONNECTION_RTT;
  437. extern const StaticQName QN_CALLPERF_CONNECTION_TOTAL_BYTES_S;
  438. extern const StaticQName QN_CALLPERF_CONNECTION_BYTES_SECOND_S;
  439. extern const StaticQName QN_CALLPERF_CONNECTION_TOTAL_BYTES_R;
  440. extern const StaticQName QN_CALLPERF_CONNECTION_BYTES_SECOND_R;
  441. extern const StaticQName QN_CALLPERF_CANDIDATE;
  442. extern const StaticQName QN_CALLPERF_CANDIDATE_ENDPOINT;
  443. extern const StaticQName QN_CALLPERF_CANDIDATE_PROTOCOL;
  444. extern const StaticQName QN_CALLPERF_CANDIDATE_ADDRESS;
  445. extern const StaticQName QN_CALLPERF_MEDIA;
  446. extern const StaticQName QN_CALLPERF_MEDIA_DIRECTION;
  447. extern const StaticQName QN_CALLPERF_MEDIA_SSRC;
  448. extern const StaticQName QN_CALLPERF_MEDIA_ENERGY;
  449. extern const StaticQName QN_CALLPERF_MEDIA_FIR;
  450. extern const StaticQName QN_CALLPERF_MEDIA_NACK;
  451. extern const StaticQName QN_CALLPERF_MEDIA_FPS;
  452. extern const StaticQName QN_CALLPERF_MEDIA_FPS_NETWORK;
  453. extern const StaticQName QN_CALLPERF_MEDIA_FPS_DECODED;
  454. extern const StaticQName QN_CALLPERF_MEDIA_JITTER_BUFFER_SIZE;
  455. extern const StaticQName QN_CALLPERF_MEDIA_PREFERRED_JITTER_BUFFER_SIZE;
  456. extern const StaticQName QN_CALLPERF_MEDIA_TOTAL_PLAYOUT_DELAY;
  457. // Muc invites.
  458. extern const StaticQName QN_MUC_USER_INVITE;
  459. // Multiway audio/video.
  460. extern const char NS_GOOGLE_MUC_USER[];
  461. extern const StaticQName QN_GOOGLE_MUC_USER_AVAILABLE_MEDIA;
  462. extern const StaticQName QN_GOOGLE_MUC_USER_ENTRY;
  463. extern const StaticQName QN_GOOGLE_MUC_USER_MEDIA;
  464. extern const StaticQName QN_GOOGLE_MUC_USER_TYPE;
  465. extern const StaticQName QN_GOOGLE_MUC_USER_SRC_ID;
  466. extern const StaticQName QN_GOOGLE_MUC_USER_STATUS;
  467. extern const StaticQName QN_LABEL;
  468. extern const char NS_GOOGLE_MUC_MEDIA[];
  469. extern const StaticQName QN_GOOGLE_MUC_AUDIO_MUTE;
  470. extern const StaticQName QN_GOOGLE_MUC_VIDEO_MUTE;
  471. extern const StaticQName QN_GOOGLE_MUC_VIDEO_PAUSE;
  472. extern const StaticQName QN_GOOGLE_MUC_RECORDING;
  473. extern const StaticQName QN_GOOGLE_MUC_MEDIA_BLOCK;
  474. extern const StaticQName QN_STATE_ATTR;
  475. extern const char AUTH_MECHANISM_GOOGLE_COOKIE[];
  476. extern const char AUTH_MECHANISM_GOOGLE_TOKEN[];
  477. extern const char AUTH_MECHANISM_OAUTH2[];
  478. extern const char AUTH_MECHANISM_PLAIN[];
  479. } // namespace jingle_xmpp
  480. #endif // THIRD_PARTY_LIBJINGLE_XMPP_XMPP_CONSTANTS_H_