summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-07-08 17:46:43 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-07-08 17:46:43 (GMT)
commit1f64592f6e76c89706eaa343113a1ec6f9f6a9c5 (patch)
tree28e5d453053c07cbb2bba73e24e355616ff26232 /Swift/Controllers
parent9cdf921519a3e74f480497d9f9f55606ff129639 (diff)
downloadswift-contrib-1f64592f6e76c89706eaa343113a1ec6f9f6a9c5.zip
swift-contrib-1f64592f6e76c89706eaa343113a1ec6f9f6a9c5.tar.bz2
Added setJID on ChatWindow.
Not wired in yet.
Diffstat (limited to 'Swift/Controllers')
-rw-r--r--Swift/Controllers/UIInterfaces/ChatWindow.h2
-rw-r--r--Swift/Controllers/UnitTest/MockChatWindow.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/Swift/Controllers/UIInterfaces/ChatWindow.h b/Swift/Controllers/UIInterfaces/ChatWindow.h
index f65328d..946cd2c 100644
--- a/Swift/Controllers/UIInterfaces/ChatWindow.h
+++ b/Swift/Controllers/UIInterfaces/ChatWindow.h
@@ -29,6 +29,8 @@ namespace Swift {
ChatWindow() {}
virtual ~ChatWindow() {};
+ virtual void setJID(const JID& jid) = 0;
+
/** Add message to window.
* @return id of added message (for acks).
*/
diff --git a/Swift/Controllers/UnitTest/MockChatWindow.h b/Swift/Controllers/UnitTest/MockChatWindow.h
index a5765fd..6276b58 100644
--- a/Swift/Controllers/UnitTest/MockChatWindow.h
+++ b/Swift/Controllers/UnitTest/MockChatWindow.h
@@ -37,6 +37,7 @@ namespace Swift {
virtual void replaceMessage(const std::string&, const std::string&, const boost::posix_time::ptime&) {};
void setAckState(const std::string& /*id*/, AckState /*state*/) {};
virtual void flash() {};
+ virtual void setJID(const JID& jid) {}
boost::signal<void ()> onClosed;
boost::signal<void ()> onAllMessagesRead;