summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-12-26 23:07:49 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-12-26 23:07:49 (GMT)
commit8aed9641dd20a3375f8a443189c7ca6243cf9fc6 (patch)
treea3ef33d52dcc1562db52e92ac730662459880bb6 /Swift/Controllers/ChatControllerBase.h
parent4d89c280976426c9e29ee9235b296afc4d38a7cd (diff)
downloadswift-8aed9641dd20a3375f8a443189c7ca6243cf9fc6.zip
swift-8aed9641dd20a3375f8a443189c7ca6243cf9fc6.tar.bz2
Additional plumbing for chat rebinding.
Diffstat (limited to 'Swift/Controllers/ChatControllerBase.h')
-rw-r--r--Swift/Controllers/ChatControllerBase.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Swift/Controllers/ChatControllerBase.h b/Swift/Controllers/ChatControllerBase.h
index 91b72a8..c780789 100644
--- a/Swift/Controllers/ChatControllerBase.h
+++ b/Swift/Controllers/ChatControllerBase.h
@@ -28,12 +28,13 @@ namespace Swift {
virtual ~ChatControllerBase();
void showChatWindow();
void activateChatWindow();
void setAvailableServerFeatures(boost::shared_ptr<DiscoInfo> info);
void handleIncomingMessage(boost::shared_ptr<MessageEvent> message);
void setEnabled(bool enabled);
+ void setToJID(const JID& jid) {toJID_ = jid;};
protected:
ChatControllerBase(const JID& self, StanzaChannel* stanzaChannel, IQRouter* iqRouter, ChatWindowFactory* chatWindowFactory, const JID &toJID, PresenceOracle* presenceOracle, AvatarManager* avatarManager);
virtual void postSendMessage(const String&) {};
virtual String senderDisplayNameFromMessage(const JID& from) = 0;
virtual bool isIncomingMessageFromMe(boost::shared_ptr<Message>) = 0;