session-manager.h revision b45b3ca12c271745b18a142d10a6ac8efd9f79cc
/**
* Whiteboard session manager
*
* Authors:
* David Yip <yipdw@rose-hulman.edu>
* Bob Jamison (Pedro port)
*
* Copyright (c) 2005 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <glibmm.h>
#include <list>
#include <bitset>
#include "desktop.h"
#include "jabber_whiteboard/pedrogui.h"
#include "jabber_whiteboard/message-queue.h"
#include "jabber_whiteboard/defines.h"
#include "gc-alloc.h"
{
static void showClient();
static SessionManager& instance();
/**
* Handles all incoming XMPP events associated with this document
* apart from CONNECT_REQUEST, which is handled in SessionManager
*/
/**
* Initiates a shared session with a user or conference room.
*
* \param to The recipient to which this desktop will be linked, specified as a JID.
* \param type Type of the session; i.e. private message or group chat.
*/
/**
* Terminates an Inkboard session to a given recipient. If the session to be
* terminated does not exist, does nothing.
*
* \param sessionId The session identifier to be terminated.
*/
/**
* Adds a session to whiteboard
*
* \param sessionId The session identifier to be terminated.
*/
/**
* Locates an Inkboard session by recipient JID.
*
* \param to The recipient JID identifying the session to be located.
* \return A pointer to the InkboardDocument associated with the Inkboard session,
* or NULL if no such session exists.
*/
{}
bool checkInvitationQueue();
char* createSessionId(int size);
};
} // namespace Whiteboard
} // namespace Inkscape
#endif /* __SESSION_MANAGER_H__ */
/*
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 :