defines.h revision 6b15695578f07a3f72c4c9475c1a261a3021472a
/**
* Whiteboard session manager
* Definitions
*
* Authors:
* David Yip <yipdw@rose-hulman.edu>
*
* Copyright (c) 2005 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifndef __WHITEBOARD_DEFINES_H__
#define __WHITEBOARD_DEFINES_H__
#include "jabber_whiteboard/message-tags.h"
#include "jabber_whiteboard/internal-constants.h"
// message types
// explicitly numbered to aid protocol description later on
enum MessageType {
// image and internal data
CHANGE_REPEATABLE = 1,
DUMMY_CHANGE = 2,
CHANGE_COMMIT = 3,
DOCUMENT_BEGIN = 4,
DOCUMENT_END = 5,
// 1-1 connections
CONNECT_REQUEST_USER = 6,
// chat connections
// chatroom document synchronization
// requests
DOCUMENT_SENDER_REQUEST = 11,
DOCUMENT_REQUEST = 13,
// notifications
CONNECTED_SIGNAL = 14,
// error responses
ALREADY_IN_SESSION = 18,
// error cases, i.e. garbled messages or bad clients. These should
// never actually be transmitted
UNKNOWN = 21
};
// Responses to whiteboard invitations
enum InvitationResponses {
};
// Message handler modes
enum HandlerMode {
};
// Actions to pass to the node tracker when we modify a node in
// the document tree upon event serialization
enum NodeTrackerAction {
};
}
}
#endif
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :