summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-07-07 20:29:10 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-07-07 20:29:10 (GMT)
commit3ef9dabfc62cb3daf0b88543a5d65d31e8eb5977 (patch)
tree980de61384d9cb924d130eedb051245f02434776 /Swift/Controllers/Chat/ChatControllerBase.h
parentebda58fd30c7a4aec8f04e3751de869579b71cac (diff)
downloadswift-contrib-3ef9dabfc62cb3daf0b88543a5d65d31e8eb5977.zip
swift-contrib-3ef9dabfc62cb3daf0b88543a5d65d31e8eb5977.tar.bz2
Add setUnreadCount to ChatListView
Resolves: #904
Diffstat (limited to 'Swift/Controllers/Chat/ChatControllerBase.h')
-rw-r--r--Swift/Controllers/Chat/ChatControllerBase.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/Controllers/Chat/ChatControllerBase.h b/Swift/Controllers/Chat/ChatControllerBase.h
index 3364ccb..86c1ef2 100644
--- a/Swift/Controllers/Chat/ChatControllerBase.h
+++ b/Swift/Controllers/Chat/ChatControllerBase.h
@@ -49,6 +49,9 @@ namespace Swift {
virtual void setToJID(const JID& jid) {toJID_ = jid;};
/** Used for determining when something is recent.*/
boost::signal<void (const std::string& /*activity*/)> onActivity;
+ boost::signal<void ()> onUnreadCountChanged;
+ int getUnreadCount();
+ const JID& getToJID() {return toJID_;}
protected:
ChatControllerBase(const JID& self, StanzaChannel* stanzaChannel, IQRouter* iqRouter, ChatWindowFactory* chatWindowFactory, const JID &toJID, PresenceOracle* presenceOracle, AvatarManager* avatarManager, bool useDelayForLatency, UIEventStream* eventStream, EventController* eventController, TimerFactory* timerFactory);