summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCatalin Badea <catalin.badea392@gmail.com>2012-07-01 21:47:54 (GMT)
committerCatalin Badea <catalin.badea392@gmail.com>2012-07-01 21:47:54 (GMT)
commitfbeef036efeabe1218490f5a7659d8779350af7c (patch)
tree7146244351d6375b40640f81cbc3580ade0808e6 /Swift/Controllers/HistoryController.h
parent831075a8aeb15dc79c84d28d284b5cdbae2f60ea (diff)
downloadswift-contrib-fbeef036efeabe1218490f5a7659d8779350af7c.zip
swift-contrib-fbeef036efeabe1218490f5a7659d8779350af7c.tar.bz2
update history window on new message
Diffstat (limited to 'Swift/Controllers/HistoryController.h')
-rw-r--r--Swift/Controllers/HistoryController.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/Controllers/HistoryController.h b/Swift/Controllers/HistoryController.h
index 5c0378a..babda8a 100644
--- a/Swift/Controllers/HistoryController.h
+++ b/Swift/Controllers/HistoryController.h
@@ -10,6 +10,7 @@
#include <boost/date_time/posix_time/posix_time.hpp>
#include <vector>
#include <set>
+#include <Swiften/Base/boost_bsignals.h>
namespace Swift {
class HistoryManager;
@@ -25,6 +26,8 @@ namespace Swift {
std::vector<HistoryMessage> getMessages(const JID& selfJID, const JID& contactJID, bool isGroupChat) const;
void getAllContacts(const JID& selfJID, std::set<JID>& mucs, std::set<JID>& contacts) const;
+ boost::signal<void (const HistoryMessage&)> onNewMessage;
+
private:
HistoryManager* localHistory_;
bool remoteArchiveSupported_;