diff options
author | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-06-05 13:49:26 (GMT) |
---|---|---|
committer | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-06-05 13:49:26 (GMT) |
commit | 21e358a55e6eee1036fe95993c5715382d08c0c8 (patch) | |
tree | c512cb0b6640c1fee942cf55fa76954a8100568c /Swift/QtUI/Whiteboard/QtWhiteboardWindow.h | |
parent | dfeab948530982d10a7754a93a37cd8422888378 (diff) | |
download | swift-contrib-21e358a55e6eee1036fe95993c5715382d08c0c8.zip swift-contrib-21e358a55e6eee1036fe95993c5715382d08c0c8.tar.bz2 |
Moved whiteboard handling to WhiteboardManager
Diffstat (limited to 'Swift/QtUI/Whiteboard/QtWhiteboardWindow.h')
-rw-r--r-- | Swift/QtUI/Whiteboard/QtWhiteboardWindow.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Swift/QtUI/Whiteboard/QtWhiteboardWindow.h b/Swift/QtUI/Whiteboard/QtWhiteboardWindow.h index f472629..9ced322 100644 --- a/Swift/QtUI/Whiteboard/QtWhiteboardWindow.h +++ b/Swift/QtUI/Whiteboard/QtWhiteboardWindow.h @@ -7,6 +7,8 @@ #pragma once #include <Swift/Controllers/UIInterfaces/WhiteboardWindow.h> +#include <Swiften/Elements/Message.h> +#include "Swiften/JID/JID.h" #include <QWidget> #include <QGraphicsView> @@ -23,11 +25,14 @@ #include "GView.h" namespace Swift { + class StanzaChannel; + class QtWhiteboardWindow : public QWidget, public WhiteboardWindow { Q_OBJECT; public: - QtWhiteboardWindow(); + QtWhiteboardWindow(StanzaChannel *stanzaChannel, const JID& jid); + void handleIncommingMessage(boost::shared_ptr<Message> message); void addItem(const std::string& item); void show(); @@ -67,5 +72,8 @@ namespace Swift { QToolButton* textButton; QToolButton* polygonButton; QToolButton* selectButton; + + StanzaChannel* stanzaChannel_; + JID jid_; }; } |