1 /**
2 * Whiteboard session manager
3 * Definitions
4 *
5 * Authors:
6 * Dale Harvey <harveyd@gmail.com>
7 *
8 * Copyright (c) 2006 Authors
9 *
10 * Released under GNU GPL, read the file 'COPYING' for more information
11 */
13 #ifndef __INKSCAPE_WHITEBOARD_DEFINES_CPP__
14 #define __INKSCAPE_WHITEBOARD_DEFINES_CPP__
16 #include "jabber_whiteboard/defines.h"
18 namespace Inkscape {
20 namespace Whiteboard {
22 char const * const MessageString[] = {
23 // image and internal data
24 "CHANGE_NOT_REPEATABLE",
25 "CHANGE_REPEATABLE",
26 "DUMMY_CHANGE",
27 "CHANGE_COMMIT",
28 "DOCUMENT_BEGIN",
29 "DOCUMENT_END",
31 // 1-1 connections
32 "connect-request",
33 "CONNECT_REQUEST_RESPONSE_USER",
34 // chat connections
35 "CONNECT_REQUEST_RESPONSE_CHAT",
37 // chatroom document synchronization
38 "CHATROOM_SYNCHRONIZE_REQUEST",
39 "CHATROOM_SYNCHRONIZE_RESPONSE",
41 // requests
42 "DOCUMENT_SENDER_REQUEST",
43 "DOCUMENT_SENDER_REQUEST_RESPONSE",
44 "DOCUMENT_REQUEST",
46 // notifications
47 "CONNECTED_SIGNAL",
48 "DISCONNECTED_FROM_USER_SIGNAL",
50 // error responses
51 "CONNECT_REQUEST_REFUSED_BY_PEER",
52 "UNSUPPORTED_PROTOCOL_VERSION",
53 "ALREADY_IN_SESSION",
55 // error cases, i.e. garbled messages or bad clients. These should
56 // never actually be transmitted
57 "UNKNOWN"
58 };
60 }
61 }
63 #endif
65 /*
66 Local Variables:
67 mode:c++
68 c-file-style:"stroustrup"
69 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
70 indent-tabs-mode:nil
71 fill-column:99
72 End:
73 */
74 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :