Code

moving trunk for module inkscape
[inkscape.git] / src / jabber_whiteboard / internal-constants.h
1 /**
2  * Whiteboard session manager
3  * Internal constants
4  * 
5  * Authors:
6  * David Yip <yipdw@rose-hulman.edu>
7  *
8  * Copyright (c) 2005 Authors
9  *
10  * Released under GNU GPL, read the file 'COPYING' for more information
11  */
13 #ifndef __WHITEBOARD_INTERNAL_CONSTANTS_H__
14 #define __WHITEBOARD_INTERNAL_CONSTANTS_H__
16 namespace Inkscape {
18 namespace Whiteboard {
20 // TODO: breaking these up into namespaces would be nice, but it's too much typing
21 // for now
23 // Protocol versions
24 extern char const* MESSAGE_PROTOCOL_V1;
25 extern int const HIGHEST_SUPPORTED;
27 // Node types (as strings)
28 extern char const* NODETYPE_DOCUMENT_STR;
29 extern char const* NODETYPE_ELEMENT_STR;
30 extern char const* NODETYPE_TEXT_STR;
31 extern char const* NODETYPE_COMMENT_STR;
33 // Number of chars to allocate for type field (in SessionManager::sendMessage)
34 extern int const TYPE_FIELD_SIZE;
36 // Number of chars to allocate for sequence number field (in SessionManager::sendMessage)
37 extern int const SEQNUM_FIELD_SIZE;
39 // Designators for certain "special" nodes in the document
40 // These nodes are "special" because they are generally present in all documents
41 extern char const* DOCUMENT_ROOT_NODE;
42 extern char const* DOCUMENT_NAMEDVIEW_NODE;
44 // Names of these special nodes
45 extern char const* DOCUMENT_ROOT_NAME;
46 extern char const* DOCUMENT_NAMEDVIEW_NAME;
48 // Inkboard client states
49 extern int const IN_WHITEBOARD;
50 extern int const LOGGED_IN;
51 extern int const IN_CHATROOM;
52 extern int const WAITING_FOR_INVITE_RESPONSE;
53 extern int const CONNECTING_TO_CHAT;
54 extern int const WAITING_TO_SYNC_TO_CHAT;
55 extern int const SYNCHRONIZING_WITH_CHAT;
56 extern int const OPEN_FOR_DOC;
57 extern int const PLAYING_SESSION_FILE;
59 // update this if any other status flags are added
60 #define NUM_FLAGS       9
62 // TODO: make this user-configurable, within sane limits
63 // ("sane" limits being roughly in the range (10, 100], from personal testing)
64 // Based on discussions with Ted, it seems that we're going to make the Jabber guys
65 // accomodate Inkscape, not the other way around...
66 // Dispatch interval (in milliseconds)
67 extern int const SEND_TIMEOUT;
68 }
70 }
72 #endif
74 /*
75   Local Variables:
76   mode:c++
77   c-file-style:"stroustrup"
78   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
79   indent-tabs-mode:nil
80   fill-column:99
81   End:
82 */
83 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :