Code

working on session establishment
[inkscape.git] / src / jabber_whiteboard / inkboard-document.h
index aa726b1f912751f262d331ad3537bb2b5545c4b2..1249c42f89f74ceb3e98aff05faffd93c69042d8 100644 (file)
@@ -27,16 +27,20 @@ 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;
     }
 
+    SessionManager *sm;
+
     void setRecipient(Glib::ustring const& val);
     Glib::ustring getRecipient() const;
 
+    void setSession();
+
     void startSessionNegotiation();
     void terminateSession();
     void processInkboardEvent(Message::Wrapper mtype, unsigned int seqnum, Glib::ustring const& data);
@@ -66,7 +70,7 @@ private:
 
     void _initBindings();
 
-    SessionType _type;
+    State::SessionType _type;
     Glib::ustring _recipient;
 
     KeyNodeTable _tracker;