/* * Copyright (c) 2012 Mateusz Piękos * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ #pragma once #include #include #include "Swiften/JID/JID.h" #include "Swift/Controllers/XMPPEvents/MessageEvent.h" namespace Swift { class WhiteboardWindow; class WhiteboardWindowFactory; class WhiteboardController { public: WhiteboardController(StanzaChannel* stanzaChannel, const JID& toJID, WhiteboardWindowFactory* whiteboardWindowFactory); ~WhiteboardController(); void handleIncomingMessage(boost::shared_ptr message); private: void handleItemChange(std::string item); WhiteboardWindow* whiteboardWindow_; StanzaChannel* stanzaChannel_; JID toJID_; }; }