index 0c147d35e38e6b4fd924d5f98441f8ce2995a4ee..71de75e19c05b24dcd9bb4b1224a964e19bdcfd4 100644 (file)
#include "xml/document.h"
#include "xml/simple-node.h"
-
+#include "jabber_whiteboard/defines.h"
#include "jabber_whiteboard/keynode.h"
#include "jabber_whiteboard/session-manager.h"
namespace Whiteboard {
+
class InkboardDocument : public XML::SimpleNode, public XML::Document {
public:
- explicit InkboardDocument(int code, SessionType type, Glib::ustring const& to);
+
+ explicit InkboardDocument(int code, State::SessionType type, Glib::ustring const& to);
- XML::NodeType type() const
- {
- return Inkscape::XML::DOCUMENT_NODE;
- }
+ XML::NodeType type() const
+ {
+ return Inkscape::XML::DOCUMENT_NODE;
+ }
+
+ void setRecipient(Glib::ustring const& val);
+ Glib::ustring getRecipient() const;
- void setRecipient(Glib::ustring const& val);
- Glib::ustring getRecipient() const;
+ void setSessionIdent(Glib::ustring const& val);
+ Glib::ustring getSessionIdent() const;
void startSessionNegotiation();
void terminateSession();
- void processInkboardEvent(MessageType mtype, unsigned int seqnum, Glib::ustring const& data);
+ void processInkboardEvent(Message::Wrapper mtype, Glib::ustring const& data);
+
+ bool sendProtocol(const Glib::ustring &destJid, Message::Wrapper mwrapper,
+ Message::Message message);
+
protected:
/**
}
private:
- void _initBindings();
- SessionType _type;
- Glib::ustring _recipient;
+ void _initBindings();
+
+ SessionManager *_sm;
+ State::SessionType _type;
+
+ Glib::ustring _session;
+ Glib::ustring _recipient;
KeyNodeTable _tracker;
};