• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * libjingle
3  * Copyright 2004--2005, Google Inc.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  *  1. Redistributions of source code must retain the above copyright notice,
9  *     this list of conditions and the following disclaimer.
10  *  2. Redistributions in binary form must reproduce the above copyright notice,
11  *     this list of conditions and the following disclaimer in the documentation
12  *     and/or other materials provided with the distribution.
13  *  3. The name of the author may not be used to endorse or promote products
14  *     derived from this software without specific prior written permission.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
17  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
19  * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  */
27 
28 #ifndef TALK_XMPP_CONSTANTS_H_
29 #define TALK_XMPP_CONSTANTS_H_
30 
31 #include <string>
32 #include "webrtc/libjingle/xmllite/qname.h"
33 #include "talk/xmpp/jid.h"
34 
35 namespace buzz {
36 
37 extern const char NS_CLIENT[];
38 extern const char NS_SERVER[];
39 extern const char NS_STREAM[];
40 extern const char NS_XSTREAM[];
41 extern const char NS_TLS[];
42 extern const char NS_SASL[];
43 extern const char NS_BIND[];
44 extern const char NS_DIALBACK[];
45 extern const char NS_SESSION[];
46 extern const char NS_STANZA[];
47 extern const char NS_PRIVACY[];
48 extern const char NS_ROSTER[];
49 extern const char NS_VCARD[];
50 extern const char NS_AVATAR_HASH[];
51 extern const char NS_VCARD_UPDATE[];
52 extern const char STR_CLIENT[];
53 extern const char STR_SERVER[];
54 extern const char STR_STREAM[];
55 
56 extern const char STR_GET[];
57 extern const char STR_SET[];
58 extern const char STR_RESULT[];
59 extern const char STR_ERROR[];
60 
61 extern const char STR_FORM[];
62 extern const char STR_SUBMIT[];
63 extern const char STR_TEXT_SINGLE[];
64 extern const char STR_LIST_SINGLE[];
65 extern const char STR_LIST_MULTI[];
66 extern const char STR_HIDDEN[];
67 extern const char STR_FORM_TYPE[];
68 
69 extern const char STR_FROM[];
70 extern const char STR_TO[];
71 extern const char STR_BOTH[];
72 extern const char STR_REMOVE[];
73 extern const char STR_TRUE[];
74 
75 extern const char STR_TYPE[];
76 extern const char STR_NAME[];
77 extern const char STR_ID[];
78 extern const char STR_JID[];
79 extern const char STR_SUBSCRIPTION[];
80 extern const char STR_ASK[];
81 extern const char STR_X[];
82 extern const char STR_GOOGLE_COM[];
83 extern const char STR_GMAIL_COM[];
84 extern const char STR_GOOGLEMAIL_COM[];
85 extern const char STR_DEFAULT_DOMAIN[];
86 extern const char STR_TALK_GOOGLE_COM[];
87 extern const char STR_TALKX_L_GOOGLE_COM[];
88 extern const char STR_XMPP_GOOGLE_COM[];
89 extern const char STR_XMPPX_L_GOOGLE_COM[];
90 
91 #ifdef FEATURE_ENABLE_VOICEMAIL
92 extern const char STR_VOICEMAIL[];
93 extern const char STR_OUTGOINGVOICEMAIL[];
94 #endif
95 
96 extern const char STR_UNAVAILABLE[];
97 
98 extern const char NS_PING[];
99 extern const StaticQName QN_PING;
100 
101 extern const char NS_MUC_UNIQUE[];
102 extern const StaticQName QN_MUC_UNIQUE_QUERY;
103 extern const StaticQName QN_HANGOUT_ID;
104 
105 extern const char STR_GOOGLE_MUC_LOOKUP_JID[];
106 extern const char STR_MUC_ROOMCONFIG_ROOMNAME[];
107 extern const char STR_MUC_ROOMCONFIG_FEATURES[];
108 extern const char STR_MUC_ROOM_FEATURE_ENTERPRISE[];
109 extern const char STR_MUC_ROOMCONFIG[];
110 extern const char STR_MUC_ROOM_FEATURE_HANGOUT[];
111 extern const char STR_MUC_ROOM_FEATURE_HANGOUT_LITE[];
112 extern const char STR_MUC_ROOM_FEATURE_BROADCAST[];
113 extern const char STR_MUC_ROOM_FEATURE_MULTI_USER_VC[];
114 extern const char STR_MUC_ROOM_FEATURE_RECORDABLE[];
115 extern const char STR_MUC_ROOM_FEATURE_CUSTOM_RECORDING[];
116 extern const char STR_MUC_ROOM_OWNER_PROFILE_ID[];
117 extern const char STR_MUC_ROOM_FEATURE_ABUSE_RECORDABLE[];
118 
119 extern const char STR_ID_TYPE_CONVERSATION[];
120 extern const char NS_GOOGLE_MUC_HANGOUT[];
121 extern const StaticQName QN_GOOGLE_MUC_HANGOUT_INVITE;
122 extern const StaticQName QN_GOOGLE_MUC_HANGOUT_INVITE_TYPE;
123 extern const StaticQName QN_ATTR_CREATE_ACTIVITY;
124 extern const StaticQName QN_GOOGLE_MUC_HANGOUT_PUBLIC;
125 extern const StaticQName QN_GOOGLE_MUC_HANGOUT_INVITEE;
126 extern const StaticQName QN_GOOGLE_MUC_HANGOUT_NOTIFICATION_STATUS;
127 extern const StaticQName QN_GOOGLE_MUC_HANGOUT_NOTIFICATION_TYPE;
128 extern const StaticQName QN_GOOGLE_MUC_HANGOUT_HANGOUT_START_CONTEXT;
129 extern const StaticQName QN_GOOGLE_MUC_HANGOUT_CONVERSATION_ID;
130 
131 extern const StaticQName QN_STREAM_STREAM;
132 extern const StaticQName QN_STREAM_FEATURES;
133 extern const StaticQName QN_STREAM_ERROR;
134 
135 extern const StaticQName QN_XSTREAM_BAD_FORMAT;
136 extern const StaticQName QN_XSTREAM_BAD_NAMESPACE_PREFIX;
137 extern const StaticQName QN_XSTREAM_CONFLICT;
138 extern const StaticQName QN_XSTREAM_CONNECTION_TIMEOUT;
139 extern const StaticQName QN_XSTREAM_HOST_GONE;
140 extern const StaticQName QN_XSTREAM_HOST_UNKNOWN;
141 extern const StaticQName QN_XSTREAM_IMPROPER_ADDRESSIING;
142 extern const StaticQName QN_XSTREAM_INTERNAL_SERVER_ERROR;
143 extern const StaticQName QN_XSTREAM_INVALID_FROM;
144 extern const StaticQName QN_XSTREAM_INVALID_ID;
145 extern const StaticQName QN_XSTREAM_INVALID_NAMESPACE;
146 extern const StaticQName QN_XSTREAM_INVALID_XML;
147 extern const StaticQName QN_XSTREAM_NOT_AUTHORIZED;
148 extern const StaticQName QN_XSTREAM_POLICY_VIOLATION;
149 extern const StaticQName QN_XSTREAM_REMOTE_CONNECTION_FAILED;
150 extern const StaticQName QN_XSTREAM_RESOURCE_CONSTRAINT;
151 extern const StaticQName QN_XSTREAM_RESTRICTED_XML;
152 extern const StaticQName QN_XSTREAM_SEE_OTHER_HOST;
153 extern const StaticQName QN_XSTREAM_SYSTEM_SHUTDOWN;
154 extern const StaticQName QN_XSTREAM_UNDEFINED_CONDITION;
155 extern const StaticQName QN_XSTREAM_UNSUPPORTED_ENCODING;
156 extern const StaticQName QN_XSTREAM_UNSUPPORTED_STANZA_TYPE;
157 extern const StaticQName QN_XSTREAM_UNSUPPORTED_VERSION;
158 extern const StaticQName QN_XSTREAM_XML_NOT_WELL_FORMED;
159 extern const StaticQName QN_XSTREAM_TEXT;
160 
161 extern const StaticQName QN_TLS_STARTTLS;
162 extern const StaticQName QN_TLS_REQUIRED;
163 extern const StaticQName QN_TLS_PROCEED;
164 extern const StaticQName QN_TLS_FAILURE;
165 
166 extern const StaticQName QN_SASL_MECHANISMS;
167 extern const StaticQName QN_SASL_MECHANISM;
168 extern const StaticQName QN_SASL_AUTH;
169 extern const StaticQName QN_SASL_CHALLENGE;
170 extern const StaticQName QN_SASL_RESPONSE;
171 extern const StaticQName QN_SASL_ABORT;
172 extern const StaticQName QN_SASL_SUCCESS;
173 extern const StaticQName QN_SASL_FAILURE;
174 extern const StaticQName QN_SASL_ABORTED;
175 extern const StaticQName QN_SASL_INCORRECT_ENCODING;
176 extern const StaticQName QN_SASL_INVALID_AUTHZID;
177 extern const StaticQName QN_SASL_INVALID_MECHANISM;
178 extern const StaticQName QN_SASL_MECHANISM_TOO_WEAK;
179 extern const StaticQName QN_SASL_NOT_AUTHORIZED;
180 extern const StaticQName QN_SASL_TEMPORARY_AUTH_FAILURE;
181 
182 // These are non-standard.
183 extern const char NS_GOOGLE_AUTH[];
184 extern const char NS_GOOGLE_AUTH_PROTOCOL[];
185 extern const StaticQName QN_GOOGLE_AUTH_CLIENT_USES_FULL_BIND_RESULT;
186 extern const StaticQName QN_GOOGLE_ALLOW_NON_GOOGLE_ID_XMPP_LOGIN;
187 extern const StaticQName QN_GOOGLE_AUTH_SERVICE;
188 
189 extern const StaticQName QN_DIALBACK_RESULT;
190 extern const StaticQName QN_DIALBACK_VERIFY;
191 
192 extern const StaticQName QN_STANZA_BAD_REQUEST;
193 extern const StaticQName QN_STANZA_CONFLICT;
194 extern const StaticQName QN_STANZA_FEATURE_NOT_IMPLEMENTED;
195 extern const StaticQName QN_STANZA_FORBIDDEN;
196 extern const StaticQName QN_STANZA_GONE;
197 extern const StaticQName QN_STANZA_INTERNAL_SERVER_ERROR;
198 extern const StaticQName QN_STANZA_ITEM_NOT_FOUND;
199 extern const StaticQName QN_STANZA_JID_MALFORMED;
200 extern const StaticQName QN_STANZA_NOT_ACCEPTABLE;
201 extern const StaticQName QN_STANZA_NOT_ALLOWED;
202 extern const StaticQName QN_STANZA_PAYMENT_REQUIRED;
203 extern const StaticQName QN_STANZA_RECIPIENT_UNAVAILABLE;
204 extern const StaticQName QN_STANZA_REDIRECT;
205 extern const StaticQName QN_STANZA_REGISTRATION_REQUIRED;
206 extern const StaticQName QN_STANZA_REMOTE_SERVER_NOT_FOUND;
207 extern const StaticQName QN_STANZA_REMOTE_SERVER_TIMEOUT;
208 extern const StaticQName QN_STANZA_RESOURCE_CONSTRAINT;
209 extern const StaticQName QN_STANZA_SERVICE_UNAVAILABLE;
210 extern const StaticQName QN_STANZA_SUBSCRIPTION_REQUIRED;
211 extern const StaticQName QN_STANZA_UNDEFINED_CONDITION;
212 extern const StaticQName QN_STANZA_UNEXPECTED_REQUEST;
213 extern const StaticQName QN_STANZA_TEXT;
214 
215 extern const StaticQName QN_BIND_BIND;
216 extern const StaticQName QN_BIND_RESOURCE;
217 extern const StaticQName QN_BIND_JID;
218 
219 extern const StaticQName QN_MESSAGE;
220 extern const StaticQName QN_BODY;
221 extern const StaticQName QN_SUBJECT;
222 extern const StaticQName QN_THREAD;
223 extern const StaticQName QN_PRESENCE;
224 extern const StaticQName QN_SHOW;
225 extern const StaticQName QN_STATUS;
226 extern const StaticQName QN_LANG;
227 extern const StaticQName QN_PRIORITY;
228 extern const StaticQName QN_IQ;
229 extern const StaticQName QN_ERROR;
230 
231 extern const StaticQName QN_SERVER_MESSAGE;
232 extern const StaticQName QN_SERVER_BODY;
233 extern const StaticQName QN_SERVER_SUBJECT;
234 extern const StaticQName QN_SERVER_THREAD;
235 extern const StaticQName QN_SERVER_PRESENCE;
236 extern const StaticQName QN_SERVER_SHOW;
237 extern const StaticQName QN_SERVER_STATUS;
238 extern const StaticQName QN_SERVER_LANG;
239 extern const StaticQName QN_SERVER_PRIORITY;
240 extern const StaticQName QN_SERVER_IQ;
241 extern const StaticQName QN_SERVER_ERROR;
242 
243 extern const StaticQName QN_SESSION_SESSION;
244 
245 extern const StaticQName QN_PRIVACY_QUERY;
246 extern const StaticQName QN_PRIVACY_ACTIVE;
247 extern const StaticQName QN_PRIVACY_DEFAULT;
248 extern const StaticQName QN_PRIVACY_LIST;
249 extern const StaticQName QN_PRIVACY_ITEM;
250 extern const StaticQName QN_PRIVACY_IQ;
251 extern const StaticQName QN_PRIVACY_MESSAGE;
252 extern const StaticQName QN_PRIVACY_PRESENCE_IN;
253 extern const StaticQName QN_PRIVACY_PRESENCE_OUT;
254 
255 extern const StaticQName QN_ROSTER_QUERY;
256 extern const StaticQName QN_ROSTER_ITEM;
257 extern const StaticQName QN_ROSTER_GROUP;
258 
259 extern const StaticQName QN_VCARD;
260 extern const StaticQName QN_VCARD_FN;
261 extern const StaticQName QN_VCARD_PHOTO;
262 extern const StaticQName QN_VCARD_PHOTO_BINVAL;
263 extern const StaticQName QN_VCARD_AVATAR_HASH;
264 extern const StaticQName QN_VCARD_AVATAR_HASH_MODIFIED;
265 
266 #if defined(FEATURE_ENABLE_PSTN)
267 extern const StaticQName QN_VCARD_TEL;
268 extern const StaticQName QN_VCARD_VOICE;
269 extern const StaticQName QN_VCARD_HOME;
270 extern const StaticQName QN_VCARD_WORK;
271 extern const StaticQName QN_VCARD_CELL;
272 extern const StaticQName QN_VCARD_NUMBER;
273 #endif
274 
275 #if defined(FEATURE_ENABLE_RICHPROFILES)
276 extern const StaticQName QN_USER_PROFILE_QUERY;
277 extern const StaticQName QN_USER_PROFILE_URL;
278 
279 extern const StaticQName QN_ATOM_FEED;
280 extern const StaticQName QN_ATOM_ENTRY;
281 extern const StaticQName QN_ATOM_TITLE;
282 extern const StaticQName QN_ATOM_ID;
283 extern const StaticQName QN_ATOM_MODIFIED;
284 extern const StaticQName QN_ATOM_IMAGE;
285 extern const StaticQName QN_ATOM_LINK;
286 extern const StaticQName QN_ATOM_HREF;
287 #endif
288 
289 extern const StaticQName QN_XML_LANG;
290 
291 extern const StaticQName QN_ENCODING;
292 extern const StaticQName QN_VERSION;
293 extern const StaticQName QN_TO;
294 extern const StaticQName QN_FROM;
295 extern const StaticQName QN_TYPE;
296 extern const StaticQName QN_ID;
297 extern const StaticQName QN_CODE;
298 extern const StaticQName QN_NAME;
299 extern const StaticQName QN_VALUE;
300 extern const StaticQName QN_ACTION;
301 extern const StaticQName QN_ORDER;
302 extern const StaticQName QN_MECHANISM;
303 extern const StaticQName QN_ASK;
304 extern const StaticQName QN_JID;
305 extern const StaticQName QN_NICK;
306 extern const StaticQName QN_SUBSCRIPTION;
307 extern const StaticQName QN_TITLE1;
308 extern const StaticQName QN_TITLE2;
309 extern const StaticQName QN_AFFILIATION;
310 extern const StaticQName QN_ROLE;
311 extern const StaticQName QN_TIME;
312 
313 extern const StaticQName QN_XMLNS_CLIENT;
314 extern const StaticQName QN_XMLNS_SERVER;
315 extern const StaticQName QN_XMLNS_STREAM;
316 
317 // Presence
318 extern const char STR_SHOW_AWAY[];
319 extern const char STR_SHOW_CHAT[];
320 extern const char STR_SHOW_DND[];
321 extern const char STR_SHOW_XA[];
322 extern const char STR_SHOW_OFFLINE[];
323 
324 extern const char NS_GOOGLE_PSTN_CONFERENCE[];
325 extern const StaticQName QN_GOOGLE_PSTN_CONFERENCE_STATUS;
326 extern const StaticQName QN_ATTR_STATUS;
327 
328 // Presence connection status
329 extern const char STR_PSTN_CONFERENCE_STATUS_CONNECTING[];
330 extern const char STR_PSTN_CONFERENCE_STATUS_JOINING[];
331 extern const char STR_PSTN_CONFERENCE_STATUS_CONNECTED[];
332 extern const char STR_PSTN_CONFERENCE_STATUS_HANGUP[];
333 
334 // Subscription
335 extern const char STR_SUBSCRIBE[];
336 extern const char STR_SUBSCRIBED[];
337 extern const char STR_UNSUBSCRIBE[];
338 extern const char STR_UNSUBSCRIBED[];
339 
340 // Google Invite
341 extern const char NS_GOOGLE_SUBSCRIBE[];
342 extern const StaticQName QN_INVITATION;
343 extern const StaticQName QN_INVITE_NAME;
344 extern const StaticQName QN_INVITE_SUBJECT;
345 extern const StaticQName QN_INVITE_MESSAGE;
346 
347 // Kick
348 extern const char NS_GOOGLE_MUC_ADMIN[];
349 extern const StaticQName QN_GOOGLE_MUC_ADMIN_QUERY;
350 extern const StaticQName QN_GOOGLE_MUC_ADMIN_QUERY_ITEM;
351 extern const StaticQName QN_GOOGLE_MUC_ADMIN_QUERY_ITEM_REASON;
352 
353 // PubSub: http://xmpp.org/extensions/xep-0060.html
354 extern const char NS_PUBSUB[];
355 extern const StaticQName QN_PUBSUB;
356 extern const StaticQName QN_PUBSUB_ITEMS;
357 extern const StaticQName QN_PUBSUB_ITEM;
358 extern const StaticQName QN_PUBSUB_PUBLISH;
359 extern const StaticQName QN_PUBSUB_RETRACT;
360 extern const StaticQName QN_ATTR_PUBLISHER;
361 
362 extern const char NS_PUBSUB_EVENT[];
363 extern const StaticQName QN_NODE;
364 extern const StaticQName QN_PUBSUB_EVENT;
365 extern const StaticQName QN_PUBSUB_EVENT_ITEMS;
366 extern const StaticQName QN_PUBSUB_EVENT_ITEM;
367 extern const StaticQName QN_PUBSUB_EVENT_RETRACT;
368 extern const StaticQName QN_NOTIFY;
369 
370 extern const char NS_PRESENTER[];
371 extern const StaticQName QN_PRESENTER_PRESENTER;
372 extern const StaticQName QN_PRESENTER_PRESENTATION_ITEM;
373 extern const StaticQName QN_PRESENTER_PRESENTATION_TYPE;
374 extern const StaticQName QN_PRESENTER_PRESENTATION_ID;
375 
376 // JEP 0030
377 extern const StaticQName QN_CATEGORY;
378 extern const StaticQName QN_VAR;
379 extern const char NS_DISCO_INFO[];
380 extern const char NS_DISCO_ITEMS[];
381 
382 extern const StaticQName QN_DISCO_INFO_QUERY;
383 extern const StaticQName QN_DISCO_IDENTITY;
384 extern const StaticQName QN_DISCO_FEATURE;
385 
386 extern const StaticQName QN_DISCO_ITEMS_QUERY;
387 extern const StaticQName QN_DISCO_ITEM;
388 
389 // JEP 0020
390 extern const char NS_FEATURE[];
391 extern const StaticQName QN_FEATURE_FEATURE;
392 
393 // JEP 0004
394 extern const char NS_XDATA[];
395 extern const StaticQName QN_XDATA_X;
396 extern const StaticQName QN_XDATA_INSTRUCTIONS;
397 extern const StaticQName QN_XDATA_TITLE;
398 extern const StaticQName QN_XDATA_FIELD;
399 extern const StaticQName QN_XDATA_REPORTED;
400 extern const StaticQName QN_XDATA_ITEM;
401 extern const StaticQName QN_XDATA_DESC;
402 extern const StaticQName QN_XDATA_REQUIRED;
403 extern const StaticQName QN_XDATA_VALUE;
404 extern const StaticQName QN_XDATA_OPTION;
405 
406 // JEP 0045
407 extern const char NS_MUC[];
408 extern const StaticQName QN_MUC_X;
409 extern const StaticQName QN_MUC_ITEM;
410 extern const StaticQName QN_MUC_AFFILIATION;
411 extern const StaticQName QN_MUC_ROLE;
412 extern const StaticQName QN_CLIENT_VERSION;
413 extern const StaticQName QN_LOCALE;
414 extern const char STR_AFFILIATION_NONE[];
415 extern const char STR_ROLE_PARTICIPANT[];
416 
417 extern const char NS_GOOGLE_SESSION[];
418 extern const StaticQName QN_GOOGLE_USER_ID;
419 extern const StaticQName QN_GOOGLE_CIRCLE_ID;
420 extern const StaticQName QN_GOOGLE_SESSION_BLOCKED;
421 extern const StaticQName QN_GOOGLE_SESSION_BLOCKING;
422 
423 extern const char NS_MUC_OWNER[];
424 extern const StaticQName QN_MUC_OWNER_QUERY;
425 
426 extern const char NS_MUC_USER[];
427 extern const StaticQName QN_MUC_USER_CONTINUE;
428 extern const StaticQName QN_MUC_USER_X;
429 extern const StaticQName QN_MUC_USER_ITEM;
430 extern const StaticQName QN_MUC_USER_STATUS;
431 extern const StaticQName QN_MUC_USER_REASON;
432 extern const StaticQName QN_MUC_USER_ABUSE_VIOLATION;
433 
434 // JEP 0055 - Jabber Search
435 extern const char NS_SEARCH[];
436 extern const StaticQName QN_SEARCH_QUERY;
437 extern const StaticQName QN_SEARCH_ITEM;
438 extern const StaticQName QN_SEARCH_ROOM_NAME;
439 extern const StaticQName QN_SEARCH_ROOM_JID;
440 extern const StaticQName QN_SEARCH_ROOM_DOMAIN;
441 extern const StaticQName QN_SEARCH_HANGOUT_ID;
442 extern const StaticQName QN_SEARCH_EXTERNAL_ID;
443 
444 // JEP 0115
445 extern const char NS_CAPS[];
446 extern const StaticQName QN_CAPS_C;
447 extern const StaticQName QN_VER;
448 extern const StaticQName QN_EXT;
449 
450 
451 // Avatar - JEP 0153
452 extern const char kNSVCard[];
453 extern const StaticQName kQnVCardX;
454 extern const StaticQName kQnVCardPhoto;
455 
456 // JEP 0172 User Nickname
457 extern const char NS_NICKNAME[];
458 extern const StaticQName QN_NICKNAME;
459 
460 // JEP 0085 chat state
461 extern const char NS_CHATSTATE[];
462 extern const StaticQName QN_CS_ACTIVE;
463 extern const StaticQName QN_CS_COMPOSING;
464 extern const StaticQName QN_CS_PAUSED;
465 extern const StaticQName QN_CS_INACTIVE;
466 extern const StaticQName QN_CS_GONE;
467 
468 // JEP 0091 Delayed Delivery
469 extern const char kNSDelay[];
470 extern const StaticQName kQnDelayX;
471 extern const StaticQName kQnStamp;
472 
473 // Google time stamping (higher resolution)
474 extern const char kNSTimestamp[];
475 extern const StaticQName kQnTime;
476 extern const StaticQName kQnMilliseconds;
477 
478 extern const char NS_JINGLE_INFO[];
479 extern const StaticQName QN_JINGLE_INFO_QUERY;
480 extern const StaticQName QN_JINGLE_INFO_STUN;
481 extern const StaticQName QN_JINGLE_INFO_RELAY;
482 extern const StaticQName QN_JINGLE_INFO_SERVER;
483 extern const StaticQName QN_JINGLE_INFO_TOKEN;
484 extern const StaticQName QN_JINGLE_INFO_HOST;
485 extern const StaticQName QN_JINGLE_INFO_TCP;
486 extern const StaticQName QN_JINGLE_INFO_UDP;
487 extern const StaticQName QN_JINGLE_INFO_TCPSSL;
488 
489 extern const char NS_GOOGLE_CALLPERF_STATS[];
490 extern const StaticQName QN_CALLPERF_STATS;
491 extern const StaticQName QN_CALLPERF_SESSIONID;
492 extern const StaticQName QN_CALLPERF_LOCALUSER;
493 extern const StaticQName QN_CALLPERF_REMOTEUSER;
494 extern const StaticQName QN_CALLPERF_STARTTIME;
495 extern const StaticQName QN_CALLPERF_CALL_LENGTH;
496 extern const StaticQName QN_CALLPERF_CALL_ACCEPTED;
497 extern const StaticQName QN_CALLPERF_CALL_ERROR_CODE;
498 extern const StaticQName QN_CALLPERF_TERMINATE_CODE;
499 extern const StaticQName QN_CALLPERF_DATAPOINT;
500 extern const StaticQName QN_CALLPERF_DATAPOINT_TIME;
501 extern const StaticQName QN_CALLPERF_DATAPOINT_FRACTION_LOST;
502 extern const StaticQName QN_CALLPERF_DATAPOINT_CUM_LOST;
503 extern const StaticQName QN_CALLPERF_DATAPOINT_EXT_MAX;
504 extern const StaticQName QN_CALLPERF_DATAPOINT_JITTER;
505 extern const StaticQName QN_CALLPERF_DATAPOINT_RTT;
506 extern const StaticQName QN_CALLPERF_DATAPOINT_BYTES_R;
507 extern const StaticQName QN_CALLPERF_DATAPOINT_PACKETS_R;
508 extern const StaticQName QN_CALLPERF_DATAPOINT_BYTES_S;
509 extern const StaticQName QN_CALLPERF_DATAPOINT_PACKETS_S;
510 extern const StaticQName QN_CALLPERF_DATAPOINT_PROCESS_CPU;
511 extern const StaticQName QN_CALLPERF_DATAPOINT_SYSTEM_CPU;
512 extern const StaticQName QN_CALLPERF_DATAPOINT_CPUS;
513 extern const StaticQName QN_CALLPERF_CONNECTION;
514 extern const StaticQName QN_CALLPERF_CONNECTION_LOCAL_ADDRESS;
515 extern const StaticQName QN_CALLPERF_CONNECTION_REMOTE_ADDRESS;
516 extern const StaticQName QN_CALLPERF_CONNECTION_FLAGS;
517 extern const StaticQName QN_CALLPERF_CONNECTION_RTT;
518 extern const StaticQName QN_CALLPERF_CONNECTION_TOTAL_BYTES_S;
519 extern const StaticQName QN_CALLPERF_CONNECTION_BYTES_SECOND_S;
520 extern const StaticQName QN_CALLPERF_CONNECTION_TOTAL_BYTES_R;
521 extern const StaticQName QN_CALLPERF_CONNECTION_BYTES_SECOND_R;
522 extern const StaticQName QN_CALLPERF_CANDIDATE;
523 extern const StaticQName QN_CALLPERF_CANDIDATE_ENDPOINT;
524 extern const StaticQName QN_CALLPERF_CANDIDATE_PROTOCOL;
525 extern const StaticQName QN_CALLPERF_CANDIDATE_ADDRESS;
526 extern const StaticQName QN_CALLPERF_MEDIA;
527 extern const StaticQName QN_CALLPERF_MEDIA_DIRECTION;
528 extern const StaticQName QN_CALLPERF_MEDIA_SSRC;
529 extern const StaticQName QN_CALLPERF_MEDIA_ENERGY;
530 extern const StaticQName QN_CALLPERF_MEDIA_FIR;
531 extern const StaticQName QN_CALLPERF_MEDIA_NACK;
532 extern const StaticQName QN_CALLPERF_MEDIA_FPS;
533 extern const StaticQName QN_CALLPERF_MEDIA_FPS_NETWORK;
534 extern const StaticQName QN_CALLPERF_MEDIA_FPS_DECODED;
535 extern const StaticQName QN_CALLPERF_MEDIA_JITTER_BUFFER_SIZE;
536 extern const StaticQName QN_CALLPERF_MEDIA_PREFERRED_JITTER_BUFFER_SIZE;
537 extern const StaticQName QN_CALLPERF_MEDIA_TOTAL_PLAYOUT_DELAY;
538 
539 // Muc invites.
540 extern const StaticQName QN_MUC_USER_INVITE;
541 
542 // Multiway audio/video.
543 extern const char NS_GOOGLE_MUC_USER[];
544 extern const StaticQName QN_GOOGLE_MUC_USER_AVAILABLE_MEDIA;
545 extern const StaticQName QN_GOOGLE_MUC_USER_ENTRY;
546 extern const StaticQName QN_GOOGLE_MUC_USER_MEDIA;
547 extern const StaticQName QN_GOOGLE_MUC_USER_TYPE;
548 extern const StaticQName QN_GOOGLE_MUC_USER_SRC_ID;
549 extern const StaticQName QN_GOOGLE_MUC_USER_STATUS;
550 extern const StaticQName QN_LABEL;
551 
552 extern const char NS_GOOGLE_MUC_MEDIA[];
553 extern const StaticQName QN_GOOGLE_MUC_AUDIO_MUTE;
554 extern const StaticQName QN_GOOGLE_MUC_VIDEO_MUTE;
555 extern const StaticQName QN_GOOGLE_MUC_VIDEO_PAUSE;
556 extern const StaticQName QN_GOOGLE_MUC_RECORDING;
557 extern const StaticQName QN_GOOGLE_MUC_MEDIA_BLOCK;
558 extern const StaticQName QN_STATE_ATTR;
559 
560 
561 extern const char AUTH_MECHANISM_GOOGLE_COOKIE[];
562 extern const char AUTH_MECHANISM_GOOGLE_TOKEN[];
563 extern const char AUTH_MECHANISM_OAUTH2[];
564 extern const char AUTH_MECHANISM_PLAIN[];
565 
566 }  // namespace buzz
567 
568 #endif  // TALK_XMPP_CONSTANTS_H_
569