summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCatalin Badea <catalin.badea392@gmail.com>2012-07-03 13:17:51 (GMT)
committerCatalin Badea <catalin.badea392@gmail.com>2012-07-03 13:17:51 (GMT)
commit40dc0541e60549cc2db83005f45b51f93d42cc00 (patch)
treea197714d94fd3681802555e0783e6df694d7d6cc /Swift/Controllers/HistoryController.h
parentfbeef036efeabe1218490f5a7659d8779350af7c (diff)
downloadswift-contrib-40dc0541e60549cc2db83005f45b51f93d42cc00.zip
swift-contrib-40dc0541e60549cc2db83005f45b51f93d42cc00.tar.bz2
Added message type logging. Fixed handling new messages.
Diffstat (limited to 'Swift/Controllers/HistoryController.h')
-rw-r--r--Swift/Controllers/HistoryController.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Swift/Controllers/HistoryController.h b/Swift/Controllers/HistoryController.h
index babda8a..c08e112 100644
--- a/Swift/Controllers/HistoryController.h
+++ b/Swift/Controllers/HistoryController.h
@@ -11,10 +11,10 @@
#include <vector>
#include <set>
#include <Swiften/Base/boost_bsignals.h>
+#include <Swiften/History/HistoryMessage.h>
namespace Swift {
class HistoryManager;
- class HistoryMessage;
class JID;
class HistoryController {
@@ -22,9 +22,9 @@ namespace Swift {
HistoryController();
~HistoryController();
- void addMessage(const std::string& message, const JID& fromJID, const JID& toJID, bool isGroupChat, const boost::posix_time::ptime& timeStamp);
- 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;
+ void addMessage(const std::string& message, const JID& fromJID, const JID& toJID, HistoryMessage::Type type, const boost::posix_time::ptime& timeStamp);
+ std::vector<HistoryMessage> getMessages(const JID& selfJID, const JID& contactJID, HistoryMessage::Type type) const;
+ std::set<JID> getContacts(const JID& selfJID, HistoryMessage::Type type) const;
boost::signal<void (const HistoryMessage&)> onNewMessage;