blob: aa1ace3f845e41c64d6ce0ac7567cf02623ce86c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/*
* Copyright (c) 2012 Mateusz Piękos
* Licensed under the simplified BSD license.
* See Documentation/Licenses/BSD-simplified.txt for more information.
*/
#pragma once
#include <boost/shared_ptr.hpp>
#include <Swiften/Client/StanzaChannel.h>
#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<MessageEvent> message);
private:
void handleItemChange(std::string item);
WhiteboardWindow* whiteboardWindow_;
StanzaChannel* stanzaChannel_;
JID toJID_;
};
}
|